/* --- 1. VARIABLES & RESET (MATCHING INDEX.HTML) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- CHARCOAL & COPPER THEME --- */
    --primary: #36454F; 
    --primary-dark: #2A363D;
    --secondary: #5D5C61;
    --accent: #B87333;
    
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    
    /* ORIGINAL GRADIENT (For Buttons/UI) */
    --gradient: linear-gradient(135deg, #36454F 0%, #5D5C61 100%);
    
    /* NEW: HIGH CONTRAST GRADIENT (Exclusively for "ShopsBuzz" text) */
    /* Deep Black-Charcoal to Bright Metallic Silver */
    --logo-gradient: linear-gradient(120deg, #000000 0%, #bdc3c7 100%);
    
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- 2. HEADER LAYOUT --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

/* Header Hide/Show Class */
.header-hidden {
    transform: translateY(-100%);
}

/* --- 3. HEADER ELEMENTS --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto; 
    justify-content: center;
}

.accessory-icon {
    font-size: 1.8rem; 
    color: var(--primary); 
    transition: color 0.3s;
}

.accessory-icon:hover {
    color: var(--accent); 
}

.logo-container .brand-name {
    padding: 0 12px; 
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    
    /* UPDATED: Uses the special high-contrast gradient */
    background: var(--logo-gradient);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAV LINKS */
.nav-links {
    display: none;
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
        align-items: center;
        flex: 1; 
    }

    .nav-links > a,
    .nav-item .menu-trigger {
        font-weight: 500;
        color: var(--text-dark);
        position: relative;
        cursor: pointer;
        padding: 5px 0;
        display: flex;
        align-items: center;
        gap: 5px; 
    }

    /* Hover Line Effect */
    .nav-links > a::after,
    .nav-item .menu-trigger::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: var(--primary);
        transition: width 0.3s;
    }

    .nav-links > a:hover::after,
    .nav-item:hover .menu-trigger::after {
        width: 100%;
    }
    
    .nav-links > a:hover,
    .nav-item:hover .menu-trigger {
        color: var(--primary); 
    }
    
    .nav-item .menu-arrow {
        font-size: 0.8rem; 
        transition: transform 0.3s;
    }
    
    .nav-item:hover .menu-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }
}

/* ICONS */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1; 
    justify-content: flex-end; 
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-dark);
    position: relative; 
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- 4. MEGA MENU STYLES --- */
.nav-item {
    display: flex;
    align-items: center;
    position: static; 
}

/* FIX: Force-hide class to instantly hide the menu (used by internal mega-menu links) */
.nav-item .mega-menu.force-hide {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important;
}

/* FIX: Class added by JS to temporarily suppress hover functionality on the main item click/internal links click */
.nav-item.no-hover .mega-menu {
    /* Prevents the default :hover rule from triggering the menu visibility */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
}

.mega-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 40px 5%;
    opacity: 0;
    visibility: hidden;
    margin-top: 10px;
    transition: all 0.3s ease;
    z-index: 999;
}

/* CSS HOVER VISIBILITY: This is the default mechanism */
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    gap: 40px;
}

.menu-column h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--accent); 
    display: inline-block;
    padding-bottom: 5px;
}

.menu-column ul li { margin-bottom: 12px; }

.menu-column ul li a {
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.2s;
}

.menu-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- 5. PAGE HEADER SECTION (JS SLIDESHOW) --- */
#categories {
    scroll-margin-top: 120px;
}

.page-header {
    position: relative;
    height: 500px; /* Increased height slightly for better impact */
    overflow: hidden;
    margin-bottom: 50px;
    background-color: #333; /* Fallback color */
}

/* The container for the images */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* The individual slide images */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space without stretching */
    /* Crucial for no black screen: They are stacked. We fade opacity. */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth 1 second cross-fade */
    z-index: 1;
}

/* The class JS adds to show an image */
.slide-img.active {
    opacity: 1;
    z-index: 2; /* Ensures active image is on top during transition */
}

/* Content Overlay (Text) - Kept similar to before */
.page-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker gradient to ensure text pop against bright images */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    z-index: 10; /* Above images */
    padding: 0 20px;
    pointer-events: none; /* Allows clicks to pass through to arrows */
}

/* Re-enable pointer events for buttons inside the overlay */
.page-header-content a, .page-header-content button {
    pointer-events: auto;
}

.page-header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header-content p {
    font-size: 1.2rem;
    color: #f3f4f6;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 800px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* --- SLIDER ARROWS --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); /* Subtle transparent white */
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20; /* Must be above overlay text */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Frosted glass effect */
    border: 1px solid rgba(255,255,255,0.2);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-arrow:hover {
    background: var(--gradient); /* Use theme gradient on hover */
    transform: translateY(-50%) scale(1.1);
    border-color: transparent;
}

/* CTA Button Styling (Kept the same) */
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.6);
}

/* --- 6. CATEGORY & PRODUCT GRIDS --- */
.category-grid{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2% 80px;
    display: grid;
    /* Mobile/Tablet: Auto-fit based on minimum size */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
}

/* --- PRODUCT GRID LAYOUT --- */
.product-grid {
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    /* Default for mobile: fit as many as possible */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* ON DESKTOP: FORCE EXACTLY 4 CARDS PER ROW */
@media (min-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- CATEGORY CARD STYLES (Keep existing) --- */
.category-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Specific Images */
.card-watches::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('../images/watch.jpg');
}
.card-jewelry::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('../images/jewelry.jpg');
}
.card-bags::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('../images/bag.jpg');
}
.card-eyewear::before {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('../images/eyewear.jpg');
}

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

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.shop-now {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--white);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.shop-now:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateX(-50%) translateY(-5px);
}

.category-card:hover .shop-now {
    opacity: 1;
    bottom: 50px;
}

/* --- PRODUCT CARD STYLES (Updated Layout) --- */
.product-card-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative; /* Essential for Cart button positioning */
}

.product-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image-placeholder {
    height: 220px; 
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* No relative position needed here anymore as buttons moved out */
}

.product-info {
    padding: 15px 15px 20px; /* Extra bottom padding for visual balance */
    display: flex;
    flex-direction: column;
    position: relative; /* Essential for Heart button positioning */
    flex-grow: 1;
}

/* --- BUTTONS & ICONS --- */

/* 1. Wishlist (Heart) - Top Right of White Area */
/* Replace existing .card-wishlist-btn styles with this */
.card-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    
    /* New: Create the white circle background */
    background-color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Add a subtle shadow for depth */
    
    /* New: Center the heart icon inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
    color: #777; /* Slightly darker grey for contrast against white */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5; /* Ensure it sits on top */
}

/* Add a hover effect */
.card-wishlist-btn:hover {
    transform: scale(1.1);
    color: #e74c3c;
}

/* Ensure the red color sticks when active (added to wishlist) */
.card-wishlist-btn i.fas {
    color: #e74c3c;
}

/* 2. Add to Cart (Icon) - Bottom Right of Card */
.card-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.card-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.card-cart-btn i {
    font-size: 0.9rem;
}

/* --- TEXT STYLING --- */
.product-category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-right: 25px; /* Avoid overlap with heart icon */
}

.product-title-text {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--primary-dark);
    line-height: 1.3;
    padding-right: 20px;
}

.product-price-text {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
    padding-bottom: 5px; /* Align with cart button */
}

/* --- 7. TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    top: 100px;
    right: -350px;
    background: var(--gradient);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
    font-size: 1rem;
    min-width: 280px;
}

.toast-notification.show {
    right: 0;
}

/* --- 8. FOOTER STYLES --- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 5% 1rem;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #f8fafc;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    text-shadow: 0 0 8px rgba(67, 97, 238, 0.4);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #64748b;
}

/* --- 9. DYNAMIC PRODUCT DISPLAY AREA STYLES --- */
#product-display-area {
    display: none; 
}

.products-section {
    max-width: 1400px;
    margin: 40px auto 80px; 
    padding: 0 5%;
    min-height: 50vh; 
}

.product-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

#subcategory-filter {
    padding: 12px 35px 12px 20px;
    background: var(--white); 
    color: var(--primary-dark); 
    border-radius: 50px;
    border: 2px solid var(--primary); 
    font-weight: 600; 
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%232A363D" d="M10 4L6 8 2 4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; 
    padding-right: 35px;
    transition: all 0.3s ease;
}

#subcategory-filter:hover {
    border-color: var(--accent); 
    color: var(--accent); 
}

#subcategory-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 69, 79, 0.4); 
    border-color: var(--primary-dark);
}

.product-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

#current-category {
    color: var(--primary);
    font-weight: 700;
}

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

/* Product Card Style */
.product-card-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.product-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-placeholder {
    height: 200px;
    background-color: var(--bg-light); 
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover; 
    background-position: center;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product-title-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 5px 0 10px;
}

.product-price-text {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
}

.product-card-item .cta-button {
    padding: 10px 20px; 
    font-size: 0.9rem;
    margin-top: 10px;
}

/* --- PRODUCT DETAIL VIEW STYLES --- */
.product-detail-section {
    max-width: 1400px;
    margin: 20px auto 80px;
    padding: 0 5%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.detail-header { margin-bottom: 30px; }

.back-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}
.back-btn:hover { color: var(--primary); }

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

@media (max-width: 900px) {
    .detail-container { grid-template-columns: 1fr; }
}

/* GALLERY CAROUSEL */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.3s ease;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    transition: all 0.2s;
}
.carousel-arrow:hover { background-color: var(--primary); color: var(--white); }
.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }

/* INFO SIDE */
.detail-category-tag {
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#detail-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 10px 0 20px;
}

.detail-price {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 30px;
}

.detail-description h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    display: inline-block;
}

.detail-description p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 40px;
}

.detail-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.wishlist-btn-large {
    background: none;
    border: 2px solid var(--border-color);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}
.wishlist-btn-large:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* SIMILAR PRODUCTS */
.similar-products-section {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
}
.similar-products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

/* --- WISHLIST BUTTON STYLES --- */
.wishlist-btn-large {
    background: none;
    border: 2px solid #e74c3c; /* Red border by default */
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #e74c3c; /* Red text */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishlist-btn-large:hover {
    background-color: #e74c3c;
    color: var(--white);
}

/* Style for when item is added */
.wishlist-btn-large.added {
    background-color: #e74c3c;
    color: var(--white);
    pointer-events: none; /* Prevent double clicking */
}

/* --- CART BUTTON ADDED STATE (NEW LOGIC) --- */

/* For the Large Detail Button */
.cta-button.added {
    background: #27ae60 !important; /* Green background */
    box-shadow: none;
    pointer-events: none; /* Disables the button */
    cursor: default;
    border-color: #27ae60;
}

/* For the Small Card Button */
.card-cart-btn.added {
    background: #27ae60 !important; /* Green background */
    transform: scale(1);
    box-shadow: none;
    pointer-events: none; /* Disables the button */
    cursor: default;
}

/* Remove hover effects for disabled buttons */
.cta-button.added:hover,
.card-cart-btn.added:hover {
    transform: none;
    box-shadow: none;
}

/* ==================== CHATBOT STYLES ==================== */

/* Floating Button */
.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007BFF;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    /* Smooth transition for hover effects */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effect: Scale up and tilt slightly */
.chatbot-trigger:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: #0056b3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* The Icon Element itself */
.chatbot-trigger i {
    transition: transform 0.3s ease;
}

/* ==================== WAVING ANIMATION ==================== */
/* Define the waving motion */
@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* Class to apply the animation (added via JS) */
.icon-waving {
    animation: wave-hand 2s infinite ease-in-out;
}

/* ... Keep your existing Window/Message styles below ... */
.chatbot-window { 
    /* ... existing styles ... */
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #007BFF;
    font-family: 'Inter', sans-serif;
}
/* ... rest of your CSS ... */

.chatbot-window.active {
    display: flex;
}

/* Header */
.chatbot-header {
    background: #007BFF; /* Primary Blue */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

#closeChatbot {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #e9ecef; /* Lighter background for messages */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Dark bubble for the USER so it stands out */
.user-message {
    background-color: #333; /* Dark Grey background */
    color: #fff;            /* White text */
    align-self: flex-end;   /* Pushes to the right */
    text-align: right;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 80%;
    margin-bottom: 5px;     /* Small gap between messages */
    display: block;         /* Ensures it takes up space */
}

/* Light bubble for the BOT */
.bot-message {
    background-color: #e5e7eb; /* Light Grey/Blue background */
    color: #1f2937;            /* Dark text */
    align-self: flex-start;    /* Pushes to the left */
    text-align: left;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    margin-bottom: 5px;
    display: block;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ced4da;
    background: white;
    align-items: center;
}

#chatbotInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#chatbotInput:focus {
    border-color: #007BFF;
}

#sendChatbotMsg {
    background: none;
    border: none;
    color: #007BFF; /* Blue Send Icon */
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

#sendChatbotMsg:hover {
    color: #0056b3;
}