/* ==========================================================================
   Neeladri Natural Aromas - Premium Stylesheet
   ========================================================================== */

/* Custom Fonts & Styling Variables */
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;600;700&family=Geologica:wght@300;400;500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #557a66;        /* Primary Theme Color (Matching brand's theme color rgb(136,173,153)) */
    --primary-hover: #3d5849;
    --dark-green: #1b4332;           /* Forest Green for headings */
    --accent-gold: #c6a052;          /* Gold accent color */
    --bg-light: #f7f9f6;             /* Warm light background */
    --body-text: #333333;
    --light-border: #e2e8e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Geologica', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-alt: 'Cabin', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--bg-light);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Header Area styling */
.top-bar {
    background-color: #2b302c;
    color: #e2e8e0;
    font-size: 13px;
    padding: 8px 0;
    font-family: var(--font-alt);
}
.top-bar a {
    color: #e2e8e0;
}
.top-bar a:hover {
    color: var(--accent-gold);
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition);
    z-index: 1020;
}
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.4s ease-in-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-logo img {
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

/* Search Bar styling */
.search-form-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.search-input {
    border-radius: 30px;
    padding: 10px 25px;
    border: 1px solid var(--light-border);
    padding-right: 50px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(85, 122, 102, 0.2);
    border-color: var(--primary-color);
    outline: none;
}
.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-button:hover {
    background: var(--primary-hover);
}

/* Autocomplete live search */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 5px;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    transition: var(--transition);
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: var(--bg-light);
}
.suggestion-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}
.suggestion-info {
    flex: 1;
}
.suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 2px;
}
.suggestion-price {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Navigation Menu */
.navbar-nav .nav-link {
    font-family: var(--font-alt);
    font-weight: 600;
    color: #4a544f;
    padding: 15px 15px !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* Category dropdown */
.nav-categories-dropdown .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
}
.nav-categories-dropdown .dropdown-item {
    padding: 10px 20px;
    font-family: var(--font-alt);
    font-weight: 500;
    color: var(--body-text);
}
.nav-categories-dropdown .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Header Quick Actions icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.action-btn {
    position: relative;
    color: #4a544f;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.action-btn:hover {
    color: var(--primary-color);
}
.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-gold);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Slider (Swiper / Carousel) */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(27,67,50,0.65) 0%, rgba(27,67,50,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 600px;
    padding-left: 20px;
    animation: fadeInUp 1s ease-out;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f1f1f1;
}
.hero-btn {
    background-color: var(--accent-gold);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-alt);
    border: 2px solid var(--accent-gold);
    transition: var(--transition);
}
.hero-btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Grid styling */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 20px;
    border: 1px solid var(--light-border);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.category-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}
.category-card:hover .category-icon-wrapper {
    background-color: var(--primary-color);
}
.category-icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: var(--transition);
}
.category-card:hover .category-icon-wrapper img {
    filter: brightness(0) invert(1);
}
.category-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 5px;
}

/* Product Cards Grid */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    transition: var(--transition);
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #fff;
    overflow: hidden;
}
.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-gold);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

/* Product Overlays and buttons on hover */
.product-actions-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
    transition: var(--transition);
}
.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.overlay-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.overlay-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Product details content */
.product-details {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    font-family: var(--font-alt);
    font-weight: 600;
}
.product-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px; /* Fixed height for clean grid alignment */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card-title a {
    color: var(--dark-green);
}
.product-card-title a:hover {
    color: var(--primary-color);
}
.price-container {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
    font-weight: normal;
}
.new-price {
    color: var(--accent-gold);
}
.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-alt);
    width: 100%;
    margin-top: auto;
    transition: var(--transition);
}
.add-to-cart-btn:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Sidebar filter */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--light-border);
    padding: 20px;
    margin-bottom: 25px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--light-border);
    padding-bottom: 10px;
    margin-bottom: 18px;
    color: var(--dark-green);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}
.widget-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-menu-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f7f9f6;
}
.widget-menu-list li:last-child {
    border-bottom: none;
}
.widget-menu-list a {
    color: #555;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}
.widget-menu-list a:hover,
.widget-menu-list li.active a {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Universal Slide Drawer Framework (Cart & Mobile Menu) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: white;
    z-index: 1050;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.drawer-right {
    right: 0;
    transform: translate3d(100%, 0, 0);
}
.drawer-left {
    left: 0;
    transform: translate3d(-100%, 0, 0);
}
.slide-drawer.active {
    transform: translate3d(0, 0, 0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
}
.drawer-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.drawer-close {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: var(--transition);
}
.drawer-close:hover {
    color: var(--dark-green);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--light-border);
    background-color: var(--bg-light);
}

/* Cart item layout in side drawer */
.cart-drawer-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
}
.cart-drawer-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--light-border);
}
.cart-drawer-info {
    flex: 1;
}
.cart-drawer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}
.cart-drawer-price {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: bold;
}
.cart-drawer-qty-desc {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}
.cart-drawer-remove {
    position: absolute;
    right: 0;
    bottom: 15px;
    color: #c94c4c;
    cursor: pointer;
    font-size: 13px;
}

/* Modals */
.niladri-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.niladri-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalPop 0.3s ease-out;
}
@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tabs for Login / Register */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-border);
    background-color: var(--bg-light);
}
.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    font-family: var(--font-alt);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: var(--transition);
}
.auth-tab-btn.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
.auth-form-container {
    padding: 25px;
}

/* Testimonial slider Section */
.testimonials-section {
    background-image: url('../uploads/testimonial_bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    height: 100%;
}
.testimonial-rating {
    color: var(--accent-gold);
    margin-bottom: 15px;
}
.testimonial-author {
    font-family: var(--font-alt);
    font-weight: 700;
    color: var(--dark-green);
    margin-top: 15px;
}

/* Footer Section */
.site-footer {
    background-color: #1a1e1b;
    color: #abb3ad;
    padding: 60px 0 20px 0;
    font-size: 14px;
}
.site-footer h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 22px;
    font-size: 18px;
}
.site-footer a {
    color: #abb3ad;
}
.site-footer a:hover {
    color: white;
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.footer-bottom {
    border-top: 1px solid #2d332e;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Floating Actions buttons */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    transition: var(--transition);
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.scroll-top.active {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background-color: var(--primary-hover);
}

/* Sticky Bottom Mobile Bar Toolbar */
.mobile-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}
.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #555;
    font-size: 11px;
    font-family: var(--font-alt);
    font-weight: 600;
}
.toolbar-item i {
    font-size: 18px;
    margin-bottom: 2px;
    position: relative;
}
.toolbar-item:hover, .toolbar-item.active {
    color: var(--primary-color);
}

/* Mobile responsive media adjustments */
@media (max-width: 991.98px) {
    .hero-slider {
        height: 450px;
    }
    .hero-title {
        font-size: 36px;
    }
    /* Hide desktop nav */
    .desktop-nav-container {
        display: none;
    }
    .scroll-top {
        bottom: 150px;
    }
    .floating-whatsapp {
        bottom: 85px;
    }
    body {
        padding-bottom: 60px; /* offset for bottom mobile bar */
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: 350px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    /* Set product grid to 2 columns on mobile */
    .product-grid-mobile-2 > div {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    .product-card {
        margin-bottom: 16px;
    }
    .product-card-title {
        font-size: 13px;
        height: 36px;
    }
    .price-container {
        font-size: 14px;
    }
    .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
