:root {
    /* Color Palette */
    --primary-color: #8CA67B; /* Sage Green */
    --primary-hover: #7A936A;
    --secondary-color: #D4AF37; /* Gold */
    --bg-cream: #FDFCF0;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Floating Buttons --- */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-float {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

.back-to-top {
    position: static; /* Let the container handle positioning */
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

/* Top Row styling */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
    .header-top-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
}

/* Search form */
.header-search {
    flex: 1;
    max-width: 320px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.search-form:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(140, 166, 123, 0.15);
    border-color: var(--primary-color);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.search-form input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: #999;
}

/* Centered Logo */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

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

/* Actions */
.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.action-icon {
    color: var(--text-dark);
    font-size: 1.15rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.action-icon:hover {
    color: var(--primary-color);
}

.search-mobile-icon {
    display: none;
}

.cart-icon-btn,
.wishlist-icon-btn {
    position: relative;
}

.cart-badge,
.wishlist-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-color);
    line-height: 1;
    margin-left: 0.5rem;
}

/* Bottom Row (Desktop Navigation Links) */
.header-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 0;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.nav-links li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu styling */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    min-width: 190px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-align: left;
}

.nav-dropdown a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 4rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('/static/imgs/company_imgs/img-2.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Featured Categories --- */
.section-title {
    text-align: center;
    margin: 4rem 0 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Product Listing --- */
.product-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.filter-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img {
    aspect-ratio: 3/4.2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.scroll-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4.2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --- Product Detail --- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-img {
    height: 700px;
    border-radius: 8px;
    overflow: hidden;
}

.main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb-grid img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.thumb-grid img:hover {
    opacity: 0.8;
}

.product-desc-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.product-desc-content .price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.size-selector {
    margin-bottom: 2.5rem;
}

.size-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.size-btn:hover, .size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-input button {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.qty-input input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

.action-btns {
    display: flex;
    gap: 1.5rem;
}

.add-to-cart {
    flex: 2;
}

.wishlist-large {
    flex: 1;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.product-features {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--secondary-color);
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Specific Layouts --- */
.about-brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-brief-grid h2 {
    font-size: 3rem;
}

.heritage-img-container {
    position: relative;
}

.heritage-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
}

.offer-banner {
    background: var(--primary-color);
    padding: 4rem;
    border-radius: 12px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Auth Pages --- */
.auth-page {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    background: var(--white);
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-form-side {
    flex: 1;
    padding: 4rem;
}

.auth-image-side {
    flex: 1.2;
    background-size: cover;
    background-position: center;
}

.auth-form-side h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-form-side p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.auth-form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(140, 166, 123, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-image-side {
        display: none;
    }
    
    .auth-form-side {
        padding: 3rem 2rem;
    }
}

/* --- Responsive Continued --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {
    .about-brief-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-brief-grid h2 { font-size: 2.5rem; }
    
    .heritage-badge {
        position: static !important;
        margin-top: 2rem;
        display: inline-block;
    }
}
    
    .offer-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }
    
    .offer-banner h2 { font-size: 2rem; }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .product-detail-layout { gap: 3rem; }
    .main-img { height: 500px; }
}

@media (max-width: 992px) {
    .header-bottom-row { display: none; }
    .mobile-nav-toggle { display: block; }
    
    .hero h1 { font-size: 3.5rem; }
    
    .product-page-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        display: none; /* Hide sidebar on tablet, can add a "Filter" button later */
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .main-img { height: 600px; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .search-mobile-icon { display: block; }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 { font-size: 2rem; }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-img { 
        height: auto; 
        aspect-ratio: 3/4.2;
    }
    
    .section-title { margin-bottom: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links { justify-content: center; }
    
    .product-desc-content h1 { font-size: 2rem; }
    .action-btns { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .main-img { height: 400px; }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-actions { gap: 1rem; }
    .logo img { height: 45px; }
}
