/* --- 1. GLOBAL SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505; /* Deep black-onyx background */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #d4af37; /* Luxury Gold */
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- 2. HERO / WELCOME SECTION --- */
.hero {
    height: 100vh;
    position: relative; /* Needed for the background layers */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #111; /* Fallback color */
}

.hero-button {
    background: transparent;
    color: #d4af37; /* Gold color */
    border: 1px solid #d4af37;
    padding: 15px 40px;
    font-family: 'Cinzel', serif; /* Or your chosen heading font */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 25px;
    position: relative;
    z-index: 10; /* Ensures it's clickable over the background */
}

.hero-button:hover {
    background: #d4af37;
    color: #000; /* Text turns black for contrast */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px); /* Subtle lift effect */
}

.arrow-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 10px 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.arrow-btn:hover:not(:disabled) {
    background: #d4af37;
    color: #000;
}

.arrow-btn:disabled {
    cursor: not-allowed;
    border-color: #444;
    color: #444;
}
/* This creates a layer for the background images to fade on */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind the content */
    
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    
    /* 1. INCREASE BRIGHTNESS: Reduced overlay from 0.6 (60%) to 0.2 (20%) */
    animation: smoothHeroFade 18s ease-in-out infinite;
    
    /* 2. ADD VIBRANCY: This prevents the image from looking "washed out" */
    filter: brightness(1.1) contrast(1.05); 
}

/* Keeps your text/logo on top of the fading images */
.hero-content {
    color:white;
    position: relative;
    text-shadow:0 2px 10px rgba(0,0,0,0.8);
    z-index: 2; 
    animation: fadeIn 2s ease-out;
    font-size:3.5rem;
}

@keyframes smoothHeroFade {
    0%, 100% { 
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('uploads/slide1.jpeg'); 
    }
    33% { 
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('uploads/slide2.jpeg'); 
    }
    66% { 
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('uploads/slide3.jpeg'); 
    }
}

.hero-content {
    border: 1px solid rgba(212, 175, 55, 0.3); /* Thin gold frame around the text */
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4); /* Darker semi-transparent box */
    backdrop-filter: blur(5px); /* Modern frosted glass effect */
}

.hero-content h2 {
    /* Bodoni is a classic "Vogue" style font */
    font-family: 'Bodoni Moda', serif; 
    font-style: italic;
    font-size: 4rem; /* Makes it the clear centerpiece */
    font-weight: 700;
    color: #d4af37;
    text-transform: capitalize; /* "Experience the Essence..." looks better than all caps */
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Adds depth */
}

.hero-content p {
    /* Cinzel is a "Stone Carved" Roman style font, very regal */
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 6px; /* High spacing = High Luxury */
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.cta-button:hover {
    background: #d4af37;
    color: #000;
}

/* --- 3. HEADER & NAVIGATION --- */
.container {
    background-color: #ffffff; /* Pure white background */
    max-width: 900px; 
    margin: 0 auto;
    padding: 20px;
}
#mainLogo {
    width: 120px;           /* Size of the circle */
    height: 120px;          /* Height must match Width for a perfect circle */
    
    border-radius: 50%;     /* This makes it circular */
    border: 2px solid #d4af37; /* The "Grand" Gold ring */
    
    object-fit: cover;      /* Ensures the logo fills the circle perfectly */
    padding: 5px;           /* Space between the logo and the gold ring */
    background: rgba(0, 0, 0, 0.3); /* Subtle dark background inside the circle */
    
    display: block;
    margin: 0 auto 20px auto;
    
    box-shadow: 0px 4px 15px rgba(212, 175, 55, 0.3); /* Soft gold glow */
    transition: transform 0.4s ease;
}

#mainLogo:hover {
    transform: scale(1.1) rotate(5deg); /* Elegant tilt and zoom on hover */
    border-color: #ffffff; /* Turns white-gold on hover */
}

header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #d4af37;
    object-fit: cover;
}
/* Ensure the Hero Content centers the logo perfectly */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Search and Filter Row */
.search-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

#searchInput, #categoryFilter {
    background: #f9f9f9; /* Light gray input */
    border: 1px solid #ddd;
    color: #333; /* Dark text for typing */
    padding: 12px;
    border-radius: 4px;
}

#searchInput:focus, #categoryFilter:focus {
    border-color: #d4af37;
    background: #fff;
}

#product-list {
    background-color: #ffffff; /* Ensures the grid area is white */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    transition: opacity 0.4s ease-inout;
}

.card {
    background: #ffffff; /* Match the background */
    padding: 10px;
    text-align: center;
    transition: transform 0.4s ease;
    border: 1px solid #f0f0f0; /* Very light gray border */
    max-width: 280px;
    margin: 0 auto;
    justify-content:space-between;
    flex-direction:column;
    display:flex;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Soft shadow on hover */
    border-color: #d4af37; /* Gold border on hover */
}
/* 2. Resize the Image */
.card img {
    width: 100%;            /* Fills the 300px width of the card */
    height: 300px;          /* Makes the image a perfect square */
    object-fit: contain;    /* CRUCIAL: Shows the WHOLE bottle without cropping or stretching */
    background-color: #0a0a0a; /* Adds a dark background if the photo is small */
    display: block;
    margin-bottom: 15px;
}

/* Stock Status Labels */
.stock-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
/* 3. Tighten the Text Space */
.card-info {
    padding: 5px 0;
}
.card h3 {
    color: #1a1a1a; /* Dark gray/black for the name */
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.price {
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
}

/* --- 5. BUTTONS --- */
.card button {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    width: 100%;
    padding: 14px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover:not(:disabled) {
    background: #d4af37;
    color: #000;
}

.card button:disabled {
    border-color: #333;
    color: #555;
    cursor: not-allowed;
}

/* --- 6. FOOTER --- */
footer {
    padding: 60px 20px;
    background-color: #020202;
    border-top: 0.5px solid #222;
    text-align: center;
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.social-icon {
    color: #d4af37;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.social-icon:hover {
    color: #fff;
}

/* --- 7. RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-content h2 { font-size: 2.2rem; }
    
    #product-list {
        grid-template-columns: 1fr 1fr; /* Two columns for mobile - much better! */
        gap: 12px;
        padding: 10px;
    }

    .card img {
        height: 200px; /* Shorter images so two fit on the screen nicely */
    }

    
}
#cart-icon {
    position: fixed; top: 20px; right: 20px;
    background: #d4af37; color: black;
    padding: 15px; border-radius: 50%;
    cursor: pointer; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sidebar.active { right: 0; }

.checkout-btn {
    width: 100%; padding: 15px;
    background: #d4af37; border: none;
    font-weight: bold; cursor: pointer;
    margin-top: 20px;
}
.add-cart-btn {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Bodoni Moda', serif;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.add-cart-btn:hover {
    background: #d4af37;
    color: #000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a1a;
}
.cart-item img{
    border-radius:4px;
    background:#fff;
    padding:2px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size:0.9rem;
    font-weight: bold;
    color: #ffffff;
    display:block;
}

.cart-item-price {
    color: #d4af37;
    font-size: 0.9rem;
}

.remove-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.remove-btn:hover {
    color: #ff4d4d;
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}
.card {
    position: relative; /* Necessary to position the badge */
}

.best-seller-border {
    border: 1px solid #d4af37 !important; /* Gold border for best sellers */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
/* Slideshow container */
/* 1. The Container - Clean Rectangle */
.slideshow-container {
    width: 100%;            /* Fills the screen width */
    max-width: 1100px;      /* Stops it from getting too huge on desktops */
    height: 350px;          /* FIXED HEIGHT to stop the 'jumping' effect */
    margin: 20px auto;      /* Centered with space above/below */
    position: relative;
    overflow: hidden;       /* This hides anything outside the rectangle */
    border-radius: 8px;     /* Very slight rounding for a modern look (No Oval!) */
    border: 1px solid #d4af37; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* 2. The Image - Ensuring it fills the box */
.mySlides img {
    width: 100%;
    height: 350px;          /* Match the container height exactly */
    object-fit: cover;      /* Fills the box without stretching */
    object-position: center; /* Keeps the middle of the bottle in view */
    display: block;
}

/* 3. The Text - Luxury Brand Style */
.slide-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #d4af37;
    padding: 30px 20px 15px 20px;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.8rem;
    text-align: left;
}

/* 4. The Dots - Sleek and subtle */
.dot-container {
    text-align: center;
    padding: 10px;
    margin-top: -35px; /* Pulls dots up onto the image */
    position: relative;
    z-index: 10;
}

.dot {
    height: 3px;
    width: 25px;
    margin: 0 3px;
    background-color: rgba(255,255,255,0.3);
    display: inline-block;
    transition: 0.5s;
}

.dot.active {
    background-color: #d4af37;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
@media screen and (max-width: 600px) {
    .slideshow-container, .mySlides img {
        height: 180px; /* Short banner for mobile users in Accra */
    }
    .slide-text {
        font-size: 1rem;
        bottom: 15px;
    }
}
.admin-section {
    background: #1a1a1a;
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #d4af37;
    border-radius: 10px;
}

.admin-section h3 {
    color: #d4af37;
    margin-top: 0;
}

.admin-section select, .admin-section input {
    margin: 10px 0;
    display: block;
    width: 100%;
    padding: 8px;
}


/* Ensure the sidebar itself takes the full height but doesn't scroll the whole page */

/* This is the magic part: Make the middle section scrollable */
#cart-items, .delivery-details {
    flex: 1; /* Take up available space */
    overflow-y: auto; /* Show scrollbar when content is too long */
    padding: 15px;
}

/* Styling for the Sold Out Button */
.card button:disabled {
    background: rgba(255, 77, 77, 0.05) !important; /* Very faint red tint */
    border: 1px solid #ff4d4d !important;         /* Sharp Red border */
    color: #ff4d4d !important;                  /* Sharp Red text */
    cursor: not-allowed;
    opacity: 1;                                  /* Keeps it from looking "faded" */
    font-weight: bold;
    text-transform: uppercase;
}
/* Optional: Make the scrollbar look premium/thin */
#cart-items::-webkit-scrollbar {
    width: 5px;
}
#cart-items::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}
/* --- 8. THE MASTER SIDEBAR (CART) --- */
.sidebar {
    position: fixed;
    right: -500px; /* Hide off-screen */
    top: 0;
    width: 450px; /* Much wider for a luxury feel */
    max-width: 100vw; /* Full screen on mobile */
    height: 100vh;
    background: #050505;
    color: white;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column; /* Stack: Header -> Content -> Footer */
    border-left: 1px solid #d4af37;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.sidebar.active {
    right: 0;
}

/* 8.1 Fixed Header */
.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.scent-description {
    font-size: 0.85rem;
    color: #555; /* Subtle grey so it doesn't distract from the name */
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    margin: 10px 0;
    font-style: italic;
    /* This creates a 2-line limit so long descriptions don't make cards uneven */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    min-height:2.4em;
}

/* 8.2 SCROLLABLE MIDDLE SECTION - This is the fix! */
.scrollable-content {
    flex: 1; /* Takes all available height between header and footer */
    overflow-y: auto;
    padding: 10px 25px;
}

/* 8.3 Cart Items Styling */
#cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #1a1a1a;
}

/* 8.4 Delivery Details Form */
.delivery-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d4af37;
}

.delivery-details h4 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.delivery-details input, 
.delivery-details textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
}

/* 8.5 Fixed Map Size */
#map {
    height: 220px !important; /* Large enough to actually use */
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #333;
}

/* 8.6 Fixed Footer */
.cart-footer {
    padding: 25px;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #d4af37;
    color: #000;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #fff;
}

.location-btn {
    background: #ffffff;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #d4af37;
    color: #fff;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 480px) {
    .sidebar { width: 100%; }
    .scrollable-content { padding: 15px; }
    #map { height: 200px !important; }
}
.stock-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Opposite side of the cart */
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.05); background: #128c7e; }
.top-welcome-bar {
    background-color: #d4af37; /* Gold background */
    color: #000; /* Black text for high contrast */
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.welcome-text-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.divider {
    opacity: 0.5;
}

/* For mobile: if the text is too long, it will center nicely */
@media (max-width: 600px) {
    .top-welcome-bar {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 900px;
    background: #111;
    border: 1px solid #d4af37;
    border-radius: 4px;
    padding: 40px;
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.modal-image-side img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    background: #fff; /* Contrast for the bottle */
}

.modal-info-side { color: white; flex: 1; }

.scent-notes-header {
    color: #d4af37;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.modal-price {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2rem;
    color: #d4af37;
    cursor: pointer;
}

/* For Mobile */
@media (max-width: 768px) {
    .modal-body { flex-direction: column; text-align: center; }
}