/* template-one.css */

:root {
    --premium-brown: #7E4424;
    --premium-brown-dark: #61311c;
    --premium-white: #ffffff;
    --premium-black: #000000;
    --premium-gray: #f8f9fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Adjustments */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Top Navigation */
/* Top Navigation Refined */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1c0f0a !important; /* Solid background for visibility */
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.7);
    padding: 15px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.premium-nav.nav-scrolled {
    background: rgba(15, 10, 5, 0.99);
    padding: 8px 0;
}

.premium-nav.nav-up .nav-categories {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.nav-categories {
    width: 100%;
    padding: 0 4%;
    transition: all 0.3s ease;
    max-height: 100px;
    opacity: 1;
}

/* Navigation Container Refined */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.nav-search .premium-search-bar {
    margin-bottom: 0;
}

.nav-search .premium-search-bar input {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px 12px 50px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.nav-search .premium-search-bar i {
    left: 18px;
    font-size: 0.9rem;
}

.nav-categories {
    width: 100%;
    padding: 0 4%;
}

.nav-categories .premium-category-wrapper {
    margin: 0;
}

.premium-nav .nav-logo {
    display: flex;
    align-items: center;
}

.premium-nav .nav-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.premium-nav .nav-logo img:hover {
    transform: scale(1.05);
}

.premium-nav .menu-toggle {
    background: var(--premium-brown);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-text {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-nav .menu-toggle:hover {
    background: var(--premium-brown-dark);
    transform: scale(1.05);
}

/* Hero Section */
.premium-hero {
    margin-top: 0;
    height: 100vh;
    padding-top: 80px; /* Compensation for fixed nav */
    min-height: 600px;
    position: relative;
    background-image: url('../images/hero-items.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Hero Bottom Notch */
.premium-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 35px solid var(--bg);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 30px;
}

.hero-ornament {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    opacity: 0.9;
}

.hero-ornament i {
    color: #D4AF37; /* Premium Gold */
    font-size: 2rem;
    position: relative;
}

.hero-ornament i::before, 
.hero-ornament i::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37);
}

.hero-ornament i::before { right: 100%; margin-right: 15px; transform: scaleX(-1); }
.hero-ornament i::after { left: 100%; margin-left: 15px; }

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: capitalize;
    color: rgba(255,255,255,0.95);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 10vw, 4.8rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 45px;
    background: var(--premium-brown);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(126, 68, 36, 0.3);
}

.premium-btn:hover {
    background: var(--premium-white);
    color: var(--premium-brown);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Scroll Indicators Override */
.scroll-down {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    margin: 2rem auto 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
    transform: translateY(5px);
}
/* Search & Filter Bar Section - Now 100% Inside Hero */
.premium-search-wrapper {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    padding: 0 4%;
    width: 100%;
    max-width: 1000px;
}

.premium-search-container {
    background: var(--surface);
    border-radius: 24px;
    padding: 1.5rem 2.2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.premium-search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.premium-search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
}

.premium-search-bar input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.premium-search-bar input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.1);
}

.premium-category-wrapper {
    position: relative;
    padding: 0 10px;
}

/* Category Scroll Arrow Improvements */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--premium-brown);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
}

.scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn:hover {
    background: #D4AF37; /* Gold on hover */
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.prev { left: -22px; }
.scroll-btn.next { right: -22px; }

/* Desktop visibility logic from JS remains, just styling here */

/* Responsive Adjustments */
@media (max-width: 768px) {
    .premium-hero { 
        height: auto; 
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-title { 
        font-size: 2.5rem; 
        margin-bottom: 2rem;
    }
    
    .premium-search-container {
        padding: 1.25rem;
        width: 100%;
        border-radius: 16px;
    }
    
    .premium-search-wrapper {
        margin-top: 2rem;
    }

    .premium-search-bar input {
        padding: 15px 15px 15px 45px;
        font-size: 0.95rem;
    }

    .scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .scroll-btn.prev { left: -15px; }
    .scroll-btn.next { right: -15px; }
}

/* Category Pills Premium */
.premium-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    flex: 1;
}

.premium-pill {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.premium-pill.active {
    background: var(--premium-brown);
    color: white;
    box-shadow: 0 8px 20px rgba(126, 68, 36, 0.25);
}

.premium-pill:hover:not(.active) {
    background: #e9e9e9;
}

/* Floating Action Button */
.fab-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-label {
    background: #1e293b; /* Dark sidebar-bg color */
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 500;
    font-size: 0.85rem;
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.fab-contact:hover .contact-label {
    transform: translateX(0);
    opacity: 1;
}

.fab-btn {
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

/* Page Section Container */
.container {
    padding-bottom: 5rem;
}

/* Adjustments for Mobile */
@media (max-width: 768px) {
    .premium-nav {
        padding: 10px 0;
    }

    .nav-search {
        display: none; /* Hide search on mobile in nav, maybe add to sidebar? */
    }

    .menu-text {
        display: none; /* Icon only on mobile */
    }
}

/* Main Section Title */
.main-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
}

.main-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--premium-brown);
    border-radius: 2px;
}

/* Category Title Refinement */
.category-block .category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--premium-brown) !important;
    margin-bottom: 2rem !important;
    justify-content: center;
}

.category-block .category-title::after {
    display: none !important; /* Remove line after category title for cleaner look */
}

/* Sidebar Navigation - GSAP CONTROLLED */
/* Sidebar Navigation - GSAP CONTROLLED (Final IDs) */
/* Sidebar Navigation - ABSOLUTE RELIABILITY VERSION */
#templateOneSidebar {
    position: fixed;
    top: 0;
    right: -350px; /* Physically off-screen */
    width: 320px;
    height: 100vh;
    background: #1c0f0a;
    z-index: 100000;
    box-shadow: -15px 0 60px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

#templateOneOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
}

.sidebar-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255,255,255,0.02);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    color: #D4AF37;
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.sidebar-footer p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
}

.sidebar-link {
    background: #2a1810 !important; /* Slightly lighter than sidebar bg */
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #ffffff !important;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: #D4AF37;
}

.sidebar-link span {
    flex: 1;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--premium-brown);
    color: white;
    border-color: #D4AF37;
    transform: translateX(-5px);
}

.sidebar-link.active {
    box-shadow: 0 4px 20px rgba(126, 68, 36, 0.5);
    background: var(--premium-brown);
}

/* No Results Message Styling */
.no-results {
    display: none; /* Hidden by default */
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    margin: 20px 0;
}

.no-results-content i {
    font-size: 3rem;
    color: var(--premium-brown);
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-results-content h3 {
    font-family: var(--font-heading);
    color: #D4AF37;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-results-content p {
    color: #888;
    max-width: 400px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Floating Cart Button --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--premium-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(126, 68, 36, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart:hover {
    transform: scale(1.1) translateY(-5px);
    background: #8e5434;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #D4AF37;
    color: #1a0f0a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a0f0a;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #1a0f0a;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    color: #D4AF37;
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.1);
}

.cart-footer {
    padding: 20px 25px 35px; /* Extra bottom padding for mobile navigation bars */
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #1a0f0a;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 15px 20px;
    }
    
    .cart-body {
        padding: 15px;
    }

    .cart-footer {
        padding: 15px 20px 30px;
    }

    .place-order-btn {
        padding: 14px;
        font-size: 0.95rem;
    }
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

#cartTotal {
    color: #D4AF37;
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* --- Cart Item Styling --- */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
}

.cart-item-price {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 8px;
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.qty-btn:hover {
    color: #D4AF37;
}

.remove-item {
    color: #ff4d4d;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- Modal Action Styles --- */
.modal-footer-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-val {
    color: white;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--premium-brown);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(126, 68, 36, 0.3);
}

.add-to-cart-btn:hover {
    background: #8e5434;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 68, 36, 0.4);
}
