/* Ayurveda Theme Overrides */
:root {
    --primary-color: #5e7952; /* Olive Green */
    --secondary-color: #8b5a2b; /* Earthy Brown */
    --accent-color: #d4af37; /* Muted Gold */
    --light-green: #e8f5e9;
    --bg-color: #fdfbf7; /* Cream/Off-white */
    --text-color: #3e3e3e; /* Dark Grey */
    --font-heading: "Resist Mono", monospace;
    --font-body: "Resist Mono", monospace;
    --header-bg: #333333;
    --brand-orange: #F7941D;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header Overrides */
.header.shop .topbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    color: #333;
}

.header.shop .topbar .content .left li,
.header.shop .topbar .right li a {
    color: #444;
}

.header.shop .topbar .right li a:hover {
    color: var(--brand-orange);
}

.header.shop .middle-inner {
    background-color: #fff;
    border-bottom: none;
}

.header.shop .logo a {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header.shop .search-bar-top .search-bar .btnn {
    background: var(--header-bg);
    color: #fff;
}

.header.shop .search-bar-top .search-bar .btnn:hover {
    background: var(--brand-orange);
}

.header.shop .header-inner {
    background-color: var(--header-bg);
}

.header.shop .nav li {
    margin-right: 2px;
}

.header.shop .nav li a {
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 15px 15px;
}

.header.shop .nav li:hover > a,
.header.shop .nav li.active > a {
    background-color: var(--brand-orange);
    color: #fff !important;
}

/* Dropdown Menu Styles */
.header.shop .nav li .dropdown {
    background: #fff;
    width: 260px;
    top: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.header.shop .nav li .dropdown li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f6f6f6;
    position: relative;
}

.header.shop .nav li .dropdown li a {
    color: #333 !important; /* Dark text for dropdown items */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
}

.header.shop .nav li .dropdown li:hover > a {
    background-color: var(--brand-orange);
    color: #fff !important;
    padding-left: 25px; /* Slight slide effect */
}

/* Sub-Dropdown (Flyout) */
.header.shop .nav li .dropdown li .sub-dropdown {
    left: 100%;
    top: -1px; /* Align top */
    margin: 0;
    border: 1px solid #eee;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    background: #fff;
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header.shop .nav li .dropdown li:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Slider / Hero */
.hero-slider .single-slider {
    background-color: var(--bg-color);
}

.hero-slider .hero-text h1 {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.hero-slider .hero-text p {
    color: var(--text-color);
}

.hero-slider .hero-text .btn {
    background: var(--primary-color);
    color: #fff;
}

.hero-slider .hero-text .btn:hover {
    background: var(--secondary-color);
}

/* Products */
/* Products - Grid View */
/* Products - Grid View */
.single-product {
    margin-bottom: 30px;
}

.single-product .product-img {
    position: relative;
    overflow: hidden;
    height: 300px !important; /* Force fixed height */
    width: 100%;
    border-radius: 8px !important; /* Soft curve */
}

.single-product .product-img a {
    display: block;
    height: 100%;
    width: 100%;
}

/* Target all likely image classes with !important to prevent overrides */
.single-product .product-img img,
.single-product .product-img img.default-img,
.single-product .product-img img.hover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Crucial for aspect ratio */
    object-position: center;
    transition: all 0.4s ease;
    border-radius: 8px !important; /* Ensure image itself also curves if needed */
}

.single-product .product-content h3 a {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.single-product .product-content h3 a:hover {
    color: var(--primary-color);
}

.single-product .product-price {
    margin-top: 5px;
}

.single-product .product-price span {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 15px;
}

/* Products - List/Small Block View */
.single-list .list-image {
    height: 250px !important;
    overflow: hidden;
    position: relative;
    border-radius: 8px !important; /* Soft curve */
}

.single-list .list-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 8px !important;
}

/* Shop List View Overrides */
.shop-home-list .shop-list-left .content h4 {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: #2e3b28; /* Deep dark green */
    color: #d1d1d1;
}

.footer .about .logo {
    color: #fff;
    font-family: var(--font-heading);
}

.footer .single-footer h4 {
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.footer .single-footer ul li a {
    color: #ccc;
}

.footer .single-footer ul li a:hover {
    color: var(--accent-color);
}

/* Sections */
.section-title h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    position: relative;
}

.section-title h2::after {
    background: var(--accent-color);
}

.small-banner .single-banner .content h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.small-banner .single-banner .content a {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Buttons General */
.btn {
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-body);
}

.btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Preloader */
.preloader-icon span {
    background: var(--primary-color);
}

/* Login & Register Pages */
.shop.login .login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--light-green);
}

.shop.login .login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.shop.login .login-form p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.shop.login .form .form-group label {
    color: var(--primary-color);
    font-weight: 500;
}

.shop.login .form .form-group input {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 12px;
    height: auto;
    background: #fdfdfd;
}

.shop.login .form .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(93, 117, 83, 0.2);
}

.shop.login .form .btn {
    width: 100%;
    margin-bottom: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.shop.login .form .btn:hover {
    background: var(--secondary-color);
}

.shop.login .lost-pass {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--secondary-color);
}

.shop.login .lost-pass:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Social Buttons reuse brand colors but with softer hover? Keeping brand colors for recognition */
.btn-facebook { background: #3b5998 !important; }
.btn-github { background: #444 !important; }
.btn-google { background: #db4437 !important; }

.shop.login .checkbox label {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ayurveda Login Page Redesign */
.ayurveda-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(93, 117, 83, 0.15);
    overflow: hidden;
    margin: 20px 0;
}

.login-image-side {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(93, 117, 83, 0.4); 
}

.login-welcome-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 30px;
}

.login-welcome-text h3 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-welcome-text p {
    color: #f1f8e9;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.login-form-side {
    padding: 20px;
    background: #fff;
}

.shop.login .login-form {
    box-shadow: none; 
    border: none;
    padding: 30px 40px;
}

.social-login-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}

.social-login-separator span {
    background: #fff;
    padding: 0 10px;
    color: #888;
    position: relative;
    font-size: 14px;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-login-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
}

.login-btn .btn-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.login-btn .btn-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.footer .about .logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Rounded Corners Global Override */
img, 
.single-banner img, 
.shop-single-blog img,
.product-gallery .single-slider img {
    border-radius: 8px;
}

/* Exclude specific images from rounding if necessary, e.g., logos or icons */
.logo img, .footer .logo img {
    border-radius: 0 !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF; /* Ensure icon is white */
    border-radius: 50%;
    text-align: center;
    font-size: 34px; /* Larger icon */
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-bounce 2s infinite ease-in-out;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

@keyframes whatsapp-bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
