/* Foundation & Variables - Galeries Lafayette Style */
:root {
    /* Color Palette */
    --clr-white: #FFFFFF;
    --clr-black: #111111;
    --clr-grey-gallery: #F4F4F4;
    /* Light structured grey */
    --clr-grey-border: #E5E5E5;
    --clr-grey-text: #666666;

    /* The Signature Accent Color */
    --clr-violet: #8801D2;
    --clr-violet-hover: #6701a1;

    /* Typography */
    --font-heading: 'Bodoni Moda', 'Didot', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;

    /* Transitions */
    --transition: all 0.25s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-white);
    color: var(--clr-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--clr-black);
    font-weight: 600;
}

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

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

/* -- Top Announcement Bar (Marquee) -- */
.top-bar {
    background-color: var(--clr-grey-gallery);
    color: var(--clr-black);
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    /* Espace entre chaque phrase */
    animation: marquee 25s linear infinite;
}

/* Pause animation on hover giving user time to read if they want */
.top-bar:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls precisely half its duplicated length */
}

/* -- Solid Structured Header -- */
.main-header {
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-grey-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    max-width: 1600px;
    margin: 0 auto;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    gap: 1.5rem;
}

.header-right {
    justify-content: flex-end;
    gap: 2rem;
}

.header-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    width: 140px;
}

/* Logo styling for JPEG on white background - enlarged without breaking header */
.logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 60px;
    width: auto;
    z-index: 10;
    mix-blend-mode: multiply;
}

.footer-logo {
    mix-blend-mode: multiply;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--clr-grey-gallery);
    padding: 10px 15px;
    border-radius: 4px;
    width: 300px;
}

.search-box input {
    border: none;
    background: transparent;
    margin-left: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
    font-weight: 500;
    position: relative;
}

.icon-link:hover {
    color: var(--clr-violet);
}

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

/* -- Mega Menu Navigation -- */
.mega-nav {
    border-top: 1px solid var(--clr-grey-gallery);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-links a.highlight {
    color: var(--clr-violet);
}

.nav-links a.sale {
    color: #D32F2F;
    /* Red for sales/bons plans */
}

/* Buttons */
.btn-primary {
    background-color: var(--clr-violet);
    color: var(--clr-white);
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-black);
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--clr-black);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--clr-black);
    color: var(--clr-white);
}

/* -- Vibrant Campaign Hero -- */
.campaign-hero {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 4%;
}

.campaign-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
    background-color: #E5E5E5;
}

.campaign-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.campaign-overlay {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background: transparent;
    padding: 2rem 0;
    max-width: 600px;
}

.campaign-label {
    display: inline-block;
    color: var(--clr-violet);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9);
}

.campaign-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--clr-black);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
}

.campaign-text {
    font-size: 1.1rem;
    color: var(--clr-black);
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9);
}

/* -- Collections Showcase Section -- */
.collections-section {
    padding: 5rem 4% 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.collection-subtext {
    font-size: 1.1rem;
    color: var(--clr-grey-text);
    margin-top: -0.5rem;
}

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

.category-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounding for a structural feel */
    background: var(--clr-black);
    display: block;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.85;
    /* Darken image slightly so white text pops */
}

.category-card:hover .cat-img {
    transform: scale(1.05);
    /* Smooth luxury zoom */
    opacity: 0.7;
    /* Darken further on hover to draw attention to text */
}

.cat-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cat-title {
    font-size: 2rem;
    color: var(--clr-white);
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Ensure readability */
}

.cat-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    display: inline-block;
}

.category-card:hover .cat-link {
    opacity: 1;
    transform: translateY(0);
    color: var(--clr-violet);
}

/* -- Department Store Grid -- */
.department-grid {
    padding: 5rem 4%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.filter-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--clr-grey-gallery);
    border: 1px solid transparent;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #E0E0E0;
}

.filter-btn.active {
    background: var(--clr-black);
    color: var(--clr-white);
}

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

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--clr-white);
    color: var(--clr-black);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d92d20;
    /* High-end red */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.product-img-box {
    position: relative;
    background-color: var(--clr-grey-gallery);
    /* Studio white/grey backdrop */
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.product-card:hover .prod-img {
    transform: scale(1.03);
    /* Subtle zoom */
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--clr-white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--clr-grey-border);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 20;
    /* Ensure it is clickable above images and links */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    color: #D32F2F;
    /* Red heart on hover */
}

.quick-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: var(--clr-violet);
    color: var(--clr-white);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .quick-add-btn {
    transform: translateY(0);
}

.product-details {
    padding: 0 5px;
}

.brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-grey-text);
    display: block;
    margin-bottom: 4px;
}

.prod-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--clr-black);
}

.prod-price {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
}

.color-swatches {
    display: flex;
    gap: 6px;
}

.swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
}

.swatch.border {
    border: 1px solid var(--clr-grey-border);
}

.view-more-container {
    text-align: center;
}

/* -- Services Banner Marquee -- */
.services-banner {
    background-color: var(--clr-grey-gallery);
    border-top: 1px solid var(--clr-grey-border);
    border-bottom: 1px solid var(--clr-grey-border);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.services-marquee {
    display: flex;
    width: max-content;
    animation: scroll-services 20s linear infinite;
}

.services-banner:hover .services-marquee {
    animation-play-state: paused;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 4rem;
    text-align: center;
    min-width: 300px;
    /* Ensure a consistent block width */
    border-right: 1px solid var(--clr-grey-border);
}

.service-icon {
    font-size: 2rem;
    color: var(--clr-violet);
    margin-bottom: 15px;
}

.service-item h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.85rem;
    color: var(--clr-grey-text);
}

@keyframes scroll-services {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Shift left by one third since we have 3 identical sets */
        transform: translateX(-33.3333%);
    }
}

/* -- Corporate Footer -- */
.corporate-footer {
    background-color: var(--clr-white);
    padding-top: 4rem;
}

.footer-top {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4% 4rem;
    border-bottom: 1px solid var(--clr-grey-border);
}

.newsletter-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-block h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.newsletter-block p {
    color: var(--clr-grey-text);
    margin-bottom: 20px;
}

.ns-input-group {
    display: flex;
}

.ns-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--clr-black);
    border-right: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.ns-input-group input:focus {
    outline: none;
    border-left: 2px solid var(--clr-violet);
    border-top: 2px solid var(--clr-violet);
    border-bottom: 2px solid var(--clr-violet);
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 4rem 4%;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--clr-grey-text);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--clr-violet);
    text-decoration: underline;
}

.footer-logo {
    width: 200px;
    margin-bottom: 1.5rem;
}

.social-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--clr-grey-gallery);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--clr-black);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--clr-violet);
    color: var(--clr-white);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    background-color: var(--clr-grey-gallery);
    padding: 1.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--clr-grey-text);
}

.legal-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.legal-links a:hover {
    color: var(--clr-black);
}

/* --- Instagram Reviews Section --- */
.ig-reviews-section {
    padding: 3rem 0;
    background-color: #fafafa;
    overflow: hidden;
}

.ig-reviews-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ig-reviews-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-black);
    margin-bottom: 0.5rem;
}

.ig-reviews-header p {
    color: var(--clr-grey-text);
    font-size: 1rem;
}

.ig-reviews-marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ig-reviews-marquee:hover .ig-marquee-content {
    animation-play-state: paused;
}

.ig-marquee-content {
    display: flex;
    animation: scroll-ig 60s linear infinite;
}

.ig-review-card {
    background: var(--clr-white);
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    margin: 0 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    gap: 12px;
    white-space: normal;
    /* Override the marquee nowrap */
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ig-review-card:hover {
    transform: translateY(-5px);
}

.ig-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ig-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.ig-username {
    font-weight: bold;
    font-size: 0.95rem;
    color: #262626;
    /* Instagram dark grey */
}

.ig-stars {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.ig-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

@keyframes scroll-ig {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .ecommerce-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ecommerce-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item:nth-child(2) {
        border-right: none;
    }

    .service-item:nth-child(1),
    .service-item:nth-child(2) {
        border-bottom: 1px solid var(--clr-grey-border);
    }

    .footer-links-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column[style*="span 2"],
    .footer-column[style*="span 3"] {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {

    .search-box,
    .header-right span {
        display: none;
    }

    .mega-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 0;
        border-top: 1px solid var(--clr-grey-border);
    }

    .mega-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--clr-grey-gallery);
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        width: 100%;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        display: none;
        width: 100%;
        padding: 0;
    }

    .dropdown-nav:hover .dropdown-menu {
        display: block;
    }


    .menu-toggle {
        display: block;
    }

    .campaign-overlay {
        left: 5%;
        right: 5%;
        bottom: 5%;
        padding: 2rem;
    }

    .campaign-title {
        font-size: 2.2rem;
    }

    .campaign-container {
        height: 50vh;
        min-height: 400px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ecommerce-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-banner {
        grid-template-columns: 1fr;
    }

    .service-item {
        border-right: none !important;
        border-bottom: 1px solid var(--clr-grey-border) !important;
    }

    .service-item:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 480px) {
    .ecommerce-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-card {
        height: 350px;
    }

    .header-container {
        padding: 1rem 4%;
    }

    .logo-img {
        height: 45px;
    }

    .header-right {
        gap: 1rem;
    }
}

/* Dropdown styles for Top Menu */
.dropdown-nav {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--clr-white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid var(--clr-black);
}

.dropdown-nav:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--clr-black);
    text-transform: capitalize;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--clr-grey-gallery);
}

/* Subcategories in cards */
.subcat-list {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.category-card:hover .subcat-list {
    opacity: 1;
    transform: translateY(0);
}

.subcat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-body);
}

/* Fix header icon positioning for the new favorites counter */
.header-right .icon-link {
    position: relative;
}

/* --- Sidebar Styles (Cart & Favorites) --- */
.cart-overlay,
.fav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active,
.fav-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar,
.fav-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    /* Hidden off-screen */
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--clr-white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-sidebar.open,
.fav-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--clr-grey-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--clr-grey-text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--clr-grey-text);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--clr-grey-border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--clr-grey-gallery);
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--clr-grey-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-grey-border);
    border-radius: 4px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 0.9rem;
}

.remove-item {
    color: #D32F2F;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--clr-grey-border);
    background: var(--clr-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--clr-violet);
    color: var(--clr-white);
    padding: 12px 24px;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--clr-violet-hover);
}

.btn-primary:disabled {
    background: var(--clr-grey-border);
    cursor: not-allowed;
}

/* --- Premium Checkout Form Styles --- */
.checkout-fields {
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-black);
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.premium-input::placeholder {
    color: #a0a0a0;
}

.premium-input:focus {
    outline: none;
    border-color: var(--clr-violet);
    box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
    background-color: var(--clr-white);
}

textarea.premium-input {
    resize: vertical;
    min-height: 80px;
}

.premium-btn {
    width: 100%;
    padding: 16px;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: var(--clr-violet);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-btn:hover {
    background: var(--clr-violet-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.premium-btn:disabled {
    background: #d5d5d5;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- WhatsApp Widget Styles --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: pulse-wa 2s infinite;
    position: relative;
    z-index: 2;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-message {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-header {
    background: #075E54;
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.wa-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.wa-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    position: absolute;
    right: 15px;
    cursor: pointer;
    line-height: 1;
}

.wa-close:hover {
    color: white;
}

.wa-body {
    padding: 20px 15px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: #e5ddd5;
    background-size: cover;
}

.wa-body p {
    background: white;
    padding: 12px 15px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 15px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.wa-body p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-right: 8px solid white;
    border-bottom: 8px solid transparent;
}

.wa-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.wa-btn:hover {
    background: #128C7E;
}

/* --- CaloraBot Widget --- */
.calorabot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.calorabot-btn {
    width: 60px;
    height: 60px;
    background-color: var(--clr-violet);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: none;
    color: white;
    float: right;
}

.calorabot-btn:hover {
    transform: scale(1.1);
    background-color: #554499;
}

.calorabot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--clr-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.calorabot-window.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cb-header {
    background: var(--clr-black);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 3px solid var(--clr-violet);
}

.cb-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    border: 2px solid white;
}

.cb-header div {
    display: flex;
    flex-direction: column;
}

.cb-header strong {
    font-size: 1rem;
    font-family: var(--font-heading);
}

.cb-header span {
    font-size: 0.75rem;
    color: #4CAF50;
    /* Green dot for online */
    display: flex;
    align-items: center;
    gap: 5px;
}

.cb-header span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
}

.cb-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    position: absolute;
    right: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.cb-close:hover {
    color: white;
}

.cb-body {
    padding: 15px;
    background-color: #f9f9f9;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cb-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
    animation: fadeIn 0.3s ease forwards;
}

.cb-message.bot-msg {
    background: white;
    color: #333;
    border: 1px solid #eee;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cb-message.user-msg {
    background: var(--clr-violet);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(103, 80, 164, 0.2);
}

.cb-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.cb-option {
    background: transparent;
    border: 1px solid var(--clr-violet);
    color: var(--clr-violet);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.cb-option:hover {
    background: var(--clr-violet);
    color: white;
}

/* Typing indicator */
.cb-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    border: 1px solid #eee;
}

.cb-typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.cb-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.cb-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .calorabot-window {
        width: 300px;
        right: -10px;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}