:root {
    /* Brand */
    --brand-dark: #131A22;
    --brand-dark-soft: #1A2533;
    --brand-orange: #FF9900;
    --brand-orange-bright: #FFB347;
    --brand-green: #25D366;
    --primary-action: #009844;
    --primary-action-dim: #3de273;

    /* Surfaces (Design System) */
    --surface: #f8f9ff;
    --surface-container: #e9eefa;
    --surface-container-low: #eff4ff;
    --surface-container-lowest: #ffffff;
    --inverse-surface: #2b3139;

    /* Text */
    --on-surface: #161c24;
    --text-muted: #666666;

    /* Outline */
    --outline-variant: #c5c6cb;

    /* Spacing / Radius scale */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 999px;
}

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
}

/* Header Styles - 2 Tier Design */
.header {
    background: rgba(43, 49, 57, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.45rem 0.95rem 0.45rem 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.logo:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 153, 0, 0.35);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

.logo-badge {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.logo-image {
    width: 2.1rem;
    height: 2.1rem;
    display: block;
    object-fit: contain;
}

.logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
}

.logo-return {
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo-rush {
    color: var(--brand-orange);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover .logo-rush {
    color: var(--brand-orange-bright);
    text-shadow: 0 0 12px rgba(255, 179, 71, 0.25);
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 50%;
}

.search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--surface-container);
    border: 1px solid rgba(197, 198, 203, 0.25);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    font-size: 0.95rem;
    color: var(--on-surface);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: rgba(22, 28, 36, 0.4);
}

.search-input:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

.search-btn {
    padding: 0.625rem 1.5rem;
    background-color: var(--brand-orange);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--brand-orange-bright);
}

.header-bottom {
    background-color: var(--brand-dark-soft);
    border-top: 1px solid #2a3f54;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
}

/* nav wrapper lets the menu shrink so arrow buttons stay visible */
.nav-container nav {
    flex: 1;
    min-width: 0;
    display: flex;
}

/* Scrollable category row (desktop + mobile) */
.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0.75rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-block;
    padding: 0.15rem 0;
}

.nav-menu a:hover {
    color: var(--brand-orange-bright);
}

/* Edge fades to signal scrollability */
.nav-container::before,
.nav-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-container::before {
    left: 20px;
    background: linear-gradient(to right, var(--brand-dark-soft), transparent);
}

.nav-container::after {
    right: 20px;
    background: linear-gradient(to left, var(--brand-dark-soft), transparent);
}

.nav-container.can-scroll-left::before {
    opacity: 1;
}

.nav-container.can-scroll-right::after {
    opacity: 1;
}

/* Scroll arrow buttons */
.nav-scroll-btn {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.nav-scroll-btn:hover {
    background: var(--brand-orange);
    transform: scale(1.08);
}

.nav-scroll-btn.visible {
    display: inline-flex;
}

.nav-scroll-btn--prev {
    margin-right: 0.5rem;
}

.nav-scroll-btn--next {
    margin-left: 0.5rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Hero Banner */
.hero-banner {
    background-color: var(--brand-dark);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
    margin-bottom: 3rem;
}

.hero-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-tag {
    color: var(--brand-green);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btn {
    background-color: var(--brand-orange);
    color: var(--brand-dark);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #f3a847;
}

.clear-filter-btn {
    margin-top: 1rem;
}

.hero-image {
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    object-fit: contain;
}

/* ── Hero Sale Slider ── */
.hero-slider-container {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    min-height: 350px;
    user-select: none;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.hero-slide img {
    display: block;
    width: 100%;
    max-width: 430px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hero-slide img:hover {
    transform: scale(1.02);
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.88;
}

.hero-slider-arrow:hover {
    background: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: var(--brand-orange);
}

.hero-slider-arrow--prev {
    left: 15px;
}

.hero-slider-arrow--next {
    right: 15px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 20px;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.hero-slider-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--brand-orange);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-family: 'Manrope', 'Inter', sans-serif;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--surface-container-lowest);
    border: 1px solid rgba(197, 198, 203, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 153, 0, 0.28);
    box-shadow: 0 20px 40px rgba(22, 28, 36, 0.05);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--surface-container-low);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(19, 26, 34, 0.82);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    z-index: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.product-availability {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.14);
    color: #0f7a3a;
    font-size: 0.73rem;
    font-weight: 800;
    z-index: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    max-height: 280px;
    object-fit: contain;
    background-color: #fff;
    display: block;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.8rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-category-chip,
.product-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-category-chip {
    background: rgba(255, 153, 0, 0.12);
    color: #9a5d00;
}

.product-status {
    color: #17523a;
    background: rgba(37, 211, 102, 0.11);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--brand-dark);
    text-align: left;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: capitalize;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

/* Clickable description → opens full-details modal */
.product-description[role="button"] {
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.product-description[role="button"]:hover {
    color: var(--brand-orange);
}

.product-description[role="button"]:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.product-price-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}

.product-price-original {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-discount-pill {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.02em;
}

.price-current {
    font-weight: 800;
    color: inherit;
}

.price-original {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.media-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.cart-item__old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.35rem;
    font-weight: 400;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-top: auto;
    background: linear-gradient(135deg, #25d366, #12b85a);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 16px 26px rgba(37, 211, 102, 0.22);
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 20px 32px rgba(37, 211, 102, 0.28);
}

/* Footer */
.footer {
    background-color: var(--brand-dark);
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #ccc;
}

.footer-column h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;

}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;

}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: #ccc;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    transition: color 0.3s;
    text-decoration-line: none;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        padding: 0.85rem 16px 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.75rem 1rem;
    }

    .logo {
        order: 1;
        gap: 0.6rem;
        max-width: 100%;
        padding: 0.35rem 0.7rem 0.35rem 0.35rem;
        font-size: 1.2rem;
        letter-spacing: 0.03em;
        line-height: 1;
    }

    .logo-badge {
        width: 2.35rem;
        height: 2.35rem;
    }

    .logo-image {
        width: 1.7rem;
        height: 1.7rem;
    }

    .user-profile {
        order: 2;
        margin-left: auto;
        font-size: 1.35rem;
    }

    .cart-toggle-btn {
        order: 2;
        margin-left: auto;
    }

    .search-box {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .search-input,
    .search-btn {
        min-height: 42px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        gap: 1.25rem;
        padding: 0.75rem 0;
        -ms-overflow-style: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

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

    .hero-content {
        padding: 2rem 1.5rem 1.25rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-image,
    .hero-slider-container {
        display: flex !important;
        width: 100%;
        min-height: 240px;
        max-height: 320px;
        padding: 0 !important;
        background: var(--surface);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-slide {
        padding: 16px 20px;
    }

    .hero-slide img,
    .hero-logo {
        max-height: 220px;
        max-width: 100%;
    }

    .hero-slider-arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.85rem;
    }

    .hero-slider-arrow--prev {
        left: 8px;
    }

    .hero-slider-arrow--next {
        right: 8px;
    }

    .hero-slider-dots {
        bottom: 10px;
        padding: 3px 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .container {
        padding: 1.25rem 12px;
    }

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

    .product-image {
        min-height: 160px;
    }

    .product-body {
        padding: 0.8rem;
        gap: 0.7rem;
    }

    .product-meta {
        gap: 0.45rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.8rem;
        min-height: 3.2em;
    }

    .product-price {
        font-size: 1.15rem;
    }

    .whatsapp-btn {
        padding: 0.8rem 0.75rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .header-top {
        padding: 0.75rem 12px 0.8rem;
        gap: 0.55rem 0.75rem;
    }

    .logo {
        gap: 0.5rem;
        padding: 0.3rem 0.55rem 0.3rem 0.3rem;
        font-size: 0.98rem;
    }

    .logo-badge {
        width: 1.9rem;
        height: 1.9rem;
    }

    .logo-image {
        width: 1.35rem;
        height: 1.35rem;
    }

    .hero-content {
        padding: 1.5rem 1.15rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }

    .hero-image,
    .hero-slider-container {
        min-height: 200px;
        max-height: 270px;
    }

    .hero-slide {
        padding: 12px 14px;
    }

    .hero-slide img,
    .hero-logo {
        max-height: 180px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: 190px;
    }

    .product-availability {
        font-size: 0.68rem;
        padding: 0.24rem 0.6rem;
    }

    .product-status,
    .product-category-chip {
        font-size: 0.7rem;
    }

    .footer {
        margin-top: 3rem;
    }
}

/* ── Result count ── */
.result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Skeleton loader ── */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: 1.25rem;
}

.skeleton-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    margin: 14px 1.25rem 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-line.w70 {
    width: 70%;
}

.skeleton-line.w50 {
    width: 50%;
}

.skeleton-line.w40 {
    width: 40%;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    opacity: 0.35;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: white;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    place-items: center;
}

.page-num:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.page-num.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}

.page-ellipsis {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Product image lazy load ── */
.product-image {
    background: #f5f5f5;
    transition: opacity 0.3s;
}

.product-image.loading {
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

/* ── Nav active link ── */
.nav-link.active {
    color: var(--brand-orange);
}

/* ── WhatsApp modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 153, 0, 0.16), transparent 36%),
        rgba(10, 14, 20, 0.68);
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active {
    display: grid;
}

/* Explicitly hide checkout overlay by default */
#checkoutOverlay {
    display: none;
}
#checkoutOverlay.active {
    display: grid;
}

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

.wa-modal {
    width: min(100%, 680px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 249, 252, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 28px 80px rgba(7, 10, 16, 0.34);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
}

.wa-modal__media {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(37, 211, 102, 0.11), rgba(37, 211, 102, 0.02)),
        #f2f6f3;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-product-image {
    display: block;
    width: 100%;
    height: 60vh;
    object-fit: contain;
    border-radius: 22px;
    background: white;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
}

/* ── Image Carousel (WhatsApp modal) ── */
.wa-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
}

.wa-carousel__track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.wa-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-height: 340px;
}

.wa-carousel__img {
    display: block;
    width: 100%;
    height: 60vh;
    object-fit: contain;
    border-radius: 16px;
}

.wa-carousel__slide--error {
    background: #f5f5f5;
}

.wa-carousel__no-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.wa-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--brand-dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.wa-carousel__arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.wa-carousel__arrow--prev {
    left: 12px;
}

.wa-carousel__arrow--next {
    right: 12px;
}

.wa-carousel__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.wa-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.wa-carousel__dot.active {
    background: var(--brand-orange);
    transform: scale(1.25);
}

.wa-carousel__count {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 5;
    letter-spacing: 0.02em;
}

/* Product card image count badge */
.product-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

@media (max-width: 720px) {
    .wa-carousel__slide {
        min-height: 240px;
        padding: 1rem;
    }


    .wa-carousel__arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.8rem;
    }

    .wa-carousel__arrow--prev {
        left: 8px;
    }

    .wa-carousel__arrow--next {
        right: 8px;
    }
}

.wa-modal__content {
    padding: 1.35rem 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wa-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wa-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #177a3f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wa-close {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.06);
    border: none;
    font-size: 1rem;
    color: #5f6877;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wa-close:hover {
    color: var(--brand-dark);
    background: rgba(17, 24, 39, 0.1);
    transform: rotate(8deg);
}

.wa-modal__lead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.wa-icon {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 1.15rem;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #25d366, #12b85a);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.26);
    font-size: 1.5rem;
    margin: 0;
    flex-shrink: 0;
}

.wa-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-green);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.wa-modal h3 {
    font-size: 1.45rem;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
    line-height: 1.15;
}

.wa-modal__subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.wa-summary {
    padding: 1rem 1rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wa-summary__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.wa-summary__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
}

.wa-summary__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.wa-summary strong {
    color: var(--brand-orange);
    font-size: 1.5rem;
    line-height: 1;
}

.wa-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.wa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wa-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.wa-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #25d366, #12b85a);
    color: white;
    padding: 0.95rem 1.25rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 16px 28px rgba(37, 211, 102, 0.24);
}

.wa-confirm-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 20px 34px rgba(37, 211, 102, 0.3);
}

.wa-confirm-btn:focus-visible,
.wa-close:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .modal-overlay {
        padding: 0.75rem;
    }

    .wa-modal {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .wa-modal__media {
        padding: 1rem;
    }


    .wa-modal__content {
        padding: 1rem 1rem 1.15rem;
    }

    .wa-modal h3 {
        font-size: 1.25rem;
    }

    .wa-modal__lead {
        align-items: start;
    }

    .wa-icon {
        width: 3.15rem;
        height: 3.15rem;
        font-size: 1.25rem;
        border-radius: 1rem;
    }

    .wa-chips span {
        width: 100%;
    }
}

/* ── Error banner ── */
.api-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Product image hover hint ── */
.product-image-wrapper {
    cursor: default;
    position: relative;
    overflow: hidden;
}

.product-image-wrapper[tabindex="0"] {
    cursor: pointer;
}

.product-image-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(19, 26, 34, 0.55);
    color: white;
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 2;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.product-image-hover i {
    font-size: 1.6rem;
    opacity: 0.9;
}

.product-image-hover span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-image-wrapper[tabindex="0"]:hover .product-image-hover,
.product-image-wrapper[tabindex="0"]:focus-visible .product-image-hover {
    opacity: 1;
}

.product-image-wrapper[tabindex="0"]:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: -2px;
}

/* Video badge on product card */
.product-video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 153, 0, 0.92);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Media Gallery modal ── */
#mediaOverlay {
    display: none;
}

.media-modal {
    width: min(96%, 1060px);
    height: min(88vh, 670px);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.media-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 30;
}

.media-close:hover {
    color: #0f172a;
    background: #e2e8f0;
    transform: rotate(90deg) scale(1.05);
}

.media-close:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

/* Left Column: Media Showcase & Gallery */
.media-modal__left {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-right: 1px solid #eef2f6;
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Media carousel */
.media-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.media-carousel__track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.media-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
    background: #f8fafc;
}

.media-carousel__img {
    position: static;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.07));
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-carousel__video {
    position: static;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.media-carousel__slide--error {
    background: #f1f5f9;
}

.media-carousel__no-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3.5rem;
}

.media-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--brand-dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.media-carousel__arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.media-carousel__arrow--prev {
    left: 12px;
}

.media-carousel__arrow--next {
    right: 12px;
}

.media-carousel__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.media-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.media-carousel__dot.active {
    background: var(--brand-orange);
    transform: scale(1.3);
}

.media-carousel__dot--video {
    border-radius: 3px;
}

.media-carousel__count {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 10;
    letter-spacing: 0.04em;
}

.media-carousel__zoom-controls {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.media-carousel__zoom-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.media-carousel__zoom-btn:hover {
    background: white;
    color: var(--brand-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Strip */
.media-carousel__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    flex-shrink: 0;
}

.media-carousel__thumbs::-webkit-scrollbar {
    height: 4px;
}

.media-carousel__thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.media-carousel__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #f1f5f9;
    cursor: pointer;
    padding: 2px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.media-carousel__thumb.active {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.25);
    transform: scale(1.05);
}

.media-thumb-video {
    width: 100%;
    height: 100%;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 5px;
}

/* Right Column: Product Info & Actions */
.media-modal__right {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    padding: 2rem 2.25rem 1.5rem;
    position: relative;
    box-sizing: border-box;
}

.media-modal__content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.media-modal__content-scroll::-webkit-scrollbar {
    width: 5px;
}

.media-modal__content-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.media-modal__content-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.media-modal__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.media-modal__category {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 153, 0, 0.12);
    color: #b45309;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.media-modal__stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.74rem;
    font-weight: 700;
}

.media-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.media-modal__price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-price-block {
    display: flex;
    flex-direction: column;
}

.media-price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 3px;
}

.media-modal__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.media-modal__price .price-current {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
}

.media-modal__price .price-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.media-discount-badge {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.media-modal__desc-wrap {
    display: flex;
    flex-direction: column;
}

.media-desc-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-modal__description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-line;
    word-break: break-word;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    border: 1px solid #f1f5f9;
    max-height: none;
    overflow: visible;
}

.media-modal__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.media-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.media-highlight-item i {
    font-size: 1.2rem;
    color: var(--brand-orange);
    flex-shrink: 0;
}

.media-highlight-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.media-highlight-item span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
}

/* Bottom Action Buttons */
.media-modal__actions {
    display: flex;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.media-add-cart {
    flex: 1.3;
    height: 48px;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 700;
    background: var(--brand-orange);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.28);
}

.media-add-cart:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 153, 0, 0.35);
}

.media-chat-btn {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-chat-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .media-modal {
        display: flex;
        flex-direction: column;
        width: min(95%, 520px);
        height: auto;
        max-height: 88vh;
        border-radius: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .media-modal__left {
        width: 100%;
        height: auto;
        min-height: 0;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        position: relative;
        background: #f8fafc;
    }

    .media-carousel {
        width: 100%;
        height: 290px;
        min-height: 250px;
        max-height: 310px;
    }

    .media-carousel__slide {
        padding: 8px 12px;
        height: 100%;
        box-sizing: border-box;
    }

    .media-carousel__img {
        max-height: 265px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .media-carousel__arrow {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.85rem;
        z-index: 15;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .media-carousel__arrow--prev {
        left: 8px;
    }

    .media-carousel__arrow--next {
        right: 8px;
    }

    .media-carousel__count {
        top: 10px;
        left: 10px;
        z-index: 15;
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    .media-close {
        top: 10px;
        right: 10px;
        width: 2.25rem;
        height: 2.25rem;
        z-index: 25;
    }

    .media-carousel__zoom-controls {
        bottom: 8px;
        right: 8px;
        z-index: 15;
        gap: 4px;
    }

    .media-carousel__zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .media-carousel__thumbs {
        padding: 6px 10px;
        min-height: 50px;
        gap: 6px;
        background: #ffffff;
        border-top: 1px solid #eef2f6;
    }

    .media-carousel__thumb {
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }

    .media-modal__right {
        padding: 1.25rem 1.15rem;
        height: auto;
    }

    .media-modal__content-scroll {
        overflow-y: visible;
        padding-right: 0;
    }

    .media-modal__title {
        font-size: 1.18rem;
    }

    .media-modal__highlights {
        grid-template-columns: 1fr;
    }

    .media-modal__actions {
        flex-direction: column;
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .media-modal {
        width: 96%;
        max-height: 90vh;
        border-radius: 18px;
    }

    .media-carousel {
        height: 260px;
        min-height: 230px;
    }

    .media-carousel__slide {
        padding: 6px 10px;
    }

    .media-carousel__img {
        max-height: 240px;
    }

    .media-modal__right {
        padding: 1.1rem 0.95rem;
    }

    .media-modal__title {
        font-size: 1.08rem;
    }

    .media-modal__price-card {
        padding: 0.7rem 0.85rem;
    }

    .media-modal__price .price-current {
        font-size: 1.4rem;
    }

    .media-add-cart,
    .media-chat-btn {
        height: 44px;
        font-size: 0.9rem;
    }
}

#productGrid,
#emptyState,
#pagination,
#waOverlay,
#mediaOverlay {
    display: none;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
    }

    .page-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ── Product image placeholder (no image uploaded) ── */
.product-image--placeholder {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.no-image .product-image {
    height: 220px;
    background: #f5f5f5;
}


/* About Us Page Styles */
.about-section {
    padding: 3rem 0;
}

/* About Us Page Styles */
.about-hero {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-soft));
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.about-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.why-choose-us {
    background: white;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--brand-green);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-cta {
    background: var(--brand-orange);
    color: var(--brand-dark);
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 4rem;
}

.about-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-cta p {
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.15rem;
}

.about-cta .hero-btn {
    background: var(--brand-dark);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2.5rem 1.25rem;
    }

    .about-hero .hero-title {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .about-hero .hero-subtitle {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-card {
        padding: 1.75rem 1.35rem;
    }

    .why-choose-us,
    .about-cta {
        padding: 2.5rem 1.25rem;
        margin-bottom: 2.5rem;
    }

    .about-cta h2 {
        font-size: 1.8rem;
    }

    .about-cta p {
        font-size: 1rem;
    }

    .feature-item {
        gap: 1rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   🛒 SHOPPING CART & CHECKOUT STYLES
   ────────────────────────────────────────────────────────────────────────── */

    /* Header Cart Toggle Button */
    .cart-toggle-btn {
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 153, 0, 0.2);
        background: rgba(255, 153, 0, 0.06);
        color: var(--brand-orange, #ff9900);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.15rem;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        margin-left: 0.75rem;
    }

    .cart-toggle-btn:hover {
        background: var(--brand-orange, #ff9900);
        color: white;
        transform: scale(1.05);
    }

    .cart-toggle-btn:active {
        transform: scale(0.95);
    }

    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #e11d48;
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid white;
        animation: popBadge 0.25s ease-out;
    }

    @keyframes popBadge {
        0% {
            transform: scale(0.6);
        }

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

    /* Cart Drawer Container */
    .cart-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 20, 0.4);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        z-index: 1900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: flex;
        justify-content: flex-end;
    }

    .cart-drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .cart-drawer {
        width: min(100%, 420px);
        height: 100%;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cart-drawer-overlay.active .cart-drawer {
        transform: translateX(0);
    }

    /* Cart Drawer Sections */
    .cart-drawer__header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cart-drawer__header h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--brand-dark);
    }

    .cart-drawer__close {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--text-muted);
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.15s;
    }

    .cart-drawer__close:hover {
        background: #f1f5f9;
        color: var(--brand-dark);
    }

    .cart-drawer__items {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .cart-drawer__footer {
        padding: 1.5rem;
        border-top: 1px solid #f1f5f9;
        background: #fafbfd;
    }

    .cart-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem;
        font-size: 1.05rem;
    }

    .cart-summary-row strong {
        font-size: 1.3rem;
        color: var(--brand-dark);
    }

    .checkout-btn {
        width: 100%;
        padding: 1rem;
        background: var(--brand-orange);
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
    }

    .checkout-btn:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
    }

    .checkout-btn:active {
        transform: translateY(0);
    }

    /* Cart Item Layout */
    .cart-item {
        display: flex;
        gap: 1rem;
        align-items: center;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .cart-item__img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
    }

    .cart-item__details {
        flex: 1;
    }

    .cart-item__title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--brand-dark);
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cart-item__price {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--brand-orange);
    }

    .cart-item__actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .cart-qty-btn {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        background: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-dark);
        transition: all 0.15s;
    }

    .cart-qty-btn:hover {
        border-color: var(--brand-orange);
        color: var(--brand-orange);
    }

    .cart-item__qty {
        font-size: 0.9rem;
        font-weight: 600;
        min-width: 20px;
        text-align: center;
    }

    .cart-remove-btn {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        font-size: 1rem;
        padding: 0.25rem;
        transition: color 0.15s;
    }

    .cart-remove-btn:hover {
        color: #e11d48;
    }

    /* Toast Notification */
    .toast-notification {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: var(--brand-dark);
        color: white;
        padding: 0.85rem 1.4rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        z-index: 3000;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-weight: 500;
        font-size: 0.9rem;
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        pointer-events: none;
        max-width: 90vw;
    }

    .toast-notification.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .toast-notification i {
        color: #4ade80;
        font-size: 1.1rem;
    }

    /* Cart Badge Bump Animation */
    @keyframes badgeBump {
        0% { transform: scale(1); }
        50% { transform: scale(1.35); }
        100% { transform: scale(1); }
    }

    .cart-badge.bump {
        animation: badgeBump 0.3s ease;
    }

    /* Empty Cart State */
    .cart-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: var(--text-muted);
    }

    .cart-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.4;
    }

    /* Checkout Modal */
    .checkout-modal {
        width: min(100%, 600px);
        background: white;
        border-radius: 24px;
        padding: 2rem;
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .checkout-modal__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .checkout-modal__header h3 {
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--brand-dark);
    }

    .checkout-close {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--text-muted);
        cursor: pointer;
    }

    /* Checkout Form Layout */
    .checkout-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .checkout-form-grid .form-group.span-2 {
        grid-column: span 2;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--brand-dark);
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        font-size: 0.95rem;
        color: var(--brand-dark);
        outline: none;
        transition: border-color 0.15s;
        background: #fafafa;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--brand-orange);
        background: white;
    }

    /* Order Summary Box */
    .order-summary-box {
        background: #f8fafc;
        border-radius: 14px;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
    }

    .order-summary-box h4 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--brand-dark);
    }

    .summary-line {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        color: #475569;
        margin-bottom: 0.5rem;
    }

    .summary-line.total {
        margin-top: 0.5rem;
        font-size: 1.1rem;
        color: var(--brand-dark);
    }

    .summary-line.total strong {
        color: var(--brand-orange);
    }

    .submit-order-btn {
        width: 100%;
        padding: 1rem;
        background: #10b981;
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        font-size: 1.05rem;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
        transition: all 0.2s;
    }

    .submit-order-btn:hover {
        filter: brightness(1.08);
    }

    /* Order Success Overlay */
    .order-success-body {
        text-align: center;
        padding: 2.5rem 1rem;
    }

    .order-success-body i {
        font-size: 4rem;
        color: #10b981;
        margin-bottom: 1.25rem;
        animation: scalePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes scalePop {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .order-success-body h3 {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--brand-dark);
        margin-bottom: 0.75rem;
    }

    .order-success-body p {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }

    .success-close-btn {
        padding: 0.75rem 2rem;
        background: var(--brand-dark);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .success-close-btn:hover {
        background: #1e293b;
    }

    /* Media modal actions */
    .media-modal__actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid #f1f5f9;
    }

    .media-price-block {
        display: flex;
        flex-direction: column;
    }

    .media-price-label {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .media-modal__price {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--brand-orange);
    }

    .media-action-buttons {
        display: flex;
        gap: 0.75rem;
    }

    .add-to-cart-btn {
        padding: 0.75rem 1.25rem;
        background: var(--brand-orange);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 700;
        cursor: pointer;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }

    .add-to-cart-btn:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .add-to-cart-btn:active {
        transform: translateY(0);
    }

    .chat-product-btn {
        padding: 0.75rem 1.25rem;
        background: #f1f5f9;
        color: var(--brand-dark);
        border: 1px solid #cbd5e1;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }

    .chat-product-btn:hover {
        background: #e2e8f0;
    }

    /* Card buttons */
    .product-actions {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .product-actions .add-to-cart-btn {
        flex: 1;
        justify-content: center;
        border-radius: 8px;
        padding: 0.65rem 0.5rem;
        font-size: 0.85rem;
    }

    .chat-product-btn-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        color: var(--brand-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.2s;
    }

    .chat-product-btn-icon:hover {
        background: #e2e8f0;
        color: var(--brand-orange);
    }

    /* ──────────────────────────────────────────────────────────────────────────
   💬 FLOATING CHAT WIDGET STYLES
   ────────────────────────────────────────────────────────────────────────── */
    .chat-widget {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 360px;
        border-radius: 20px;
        background: white;
        box-shadow: 0 12px 30px rgba(10, 14, 20, 0.18);
        border: 1px solid rgba(226, 232, 240, 0.8);
        z-index: 1800;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

    .chat-widget.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .chat-widget.minimized {
        height: 60px;
        width: 280px;
    }

    .chat-widget.minimized .chat-widget__body {
        display: none;
    }

    .chat-widget__header {
        padding: 0.95rem 1.25rem;
        background: var(--brand-dark);
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
    }

    .chat-widget__title-block {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .chat-widget__avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 153, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .chat-widget__title-block h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    .chat-widget__title-block p {
        font-size: 0.75rem;
        opacity: 0.8;
        margin: 0;
    }

    .chat-widget__controls {
        display: flex;
        gap: 0.5rem;
    }

    .chat-widget__controls button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 0.9rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background 0.15s;
    }

    .chat-widget__controls button:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .chat-widget__body {
        height: 400px;
        display: flex;
        flex-direction: column;
        background: #f8fafc;
    }

    .chat-widget__product-card {
        padding: 0.75rem 1rem;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .chat-widget__product-card img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        border-radius: 6px;
        background: #f8fafc;
    }

    .chat-widget__product-card h5 {
        font-size: 0.85rem;
        font-weight: 700;
        margin: 0 0 0.15rem 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--brand-dark);
    }

    .chat-widget__product-card span {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--brand-orange);
    }

    .chat-widget__messages {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .chat-message {
        max-width: 80%;
        padding: 0.65rem 0.85rem;
        border-radius: 14px;
        font-size: 0.85rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .chat-message--customer {
        background: var(--brand-orange);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 2px;
    }

    .chat-message--agent,
    .chat-message--ai {
        background: white;
        color: var(--brand-dark);
        align-self: flex-start;
        border-bottom-left-radius: 2px;
        border: 1px solid #e2e8f0;
    }

    .chat-message--ai {
        border-left: 3px solid var(--brand-orange);
    }

    .chat-widget__typing {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .chat-widget__start {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        display: grid;
        align-content: start;
        gap: 0.45rem;
        background: #f8fafc;
    }

    .chat-widget__start[hidden],
    .chat-widget__messages[hidden],
    .chat-widget__input-area[hidden] {
        display: none;
    }

    .chat-widget__start p {
        margin: 0 0 0.35rem;
        color: var(--brand-dark);
        font-size: 0.9rem;
        font-weight: 700;
    }

    .chat-widget__start label {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
    }

    .chat-widget__start label span { font-weight: 400; }

    .chat-widget__start input,
    .chat-widget__start textarea {
        width: 100%;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 0.55rem 0.65rem;
        color: var(--brand-dark);
        background: white;
        font: inherit;
        font-size: 0.82rem;
        outline: none;
        resize: vertical;
    }

    .chat-widget__start input:focus,
    .chat-widget__start textarea:focus { border-color: var(--brand-orange); }

    .chat-widget__start button {
        margin-top: 0.35rem;
        min-height: 38px;
        border: 0;
        border-radius: 8px;
        color: white;
        background: var(--brand-orange);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .chat-widget__start button:disabled,
    .chat-widget__input-area button:disabled { opacity: 0.55; cursor: wait; }

    .chat-widget__error {
        min-height: 1rem;
        color: #b42318;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .typing-dots {
        display: inline-flex;
        gap: 2px;
    }

    .typing-dots span {
        animation: typingBlink 1.4s infinite both;
        font-weight: 800;
    }

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

    .typing-dots span:nth-child(3) {
        animation-delay: .4s;
    }

    @keyframes typingBlink {
        0% {
            opacity: .2;
        }

        20% {
            opacity: 1;
        }

        100% {
            opacity: .2;
        }
    }

    .chat-widget__input-area {
        padding: 0.75rem 1rem;
        background: white;
        border-top: 1px solid #e2e8f0;
        display: flex;
        gap: 0.5rem;
    }

    .chat-widget__input-area input {
        flex: 1;
        border: 1px solid #cbd5e1;
        border-radius: 30px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        outline: none;
    }

    .chat-widget__input-area input:focus {
        border-color: var(--brand-orange);
    }

    .chat-widget__input-area button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--brand-orange);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        transition: background 0.15s;
    }

    .chat-widget__input-area button:hover {
        filter: brightness(1.08);
    }

    /* Modal setup for customer chat creation form */
    .chat-form-modal {
        width: min(100%, 400px);
        background: white;
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (max-width: 480px) {
        .chat-widget {
            width: calc(100% - 32px);
            bottom: 16px;
            right: 16px;
        }

        .chat-widget.minimized {
            width: 180px;
        }
    }

/* Desktop-safe interactive layer states */
.modal-overlay[hidden] {
    display: none !important;
}

#checkoutOverlay.active {
    display: grid;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    transform: translateX(100%);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.chat-widget {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
}

.chat-widget.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Mobile Modal Layout Fix */
@media (max-width: 720px) {
    .media-modal {
        display: flex;
        flex-direction: column;
    }

    .media-modal__info {
        flex-direction: column;
        overflow-y: auto;
        flex: 1;
        padding: 1.25rem;
    }

    .media-modal__details {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .media-modal__description {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .media-modal__actions {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .media-price-block {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .media-action-buttons {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }

    .media-action-buttons button {
        flex: 1;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   ?? MOBILE RESPONSIVENESS FIXES (Appended)
   -------------------------------------------------------------------------- */

/* 1. Media Modal Zoom Controls Overlap Fix (Global) */
.media-carousel__zoom-controls {
    top: auto !important;
    bottom: 14px !important;
}

/* 2. Chat Widget Text Overflow Fix (Global) */
.chat-widget__title-block {
    min-width: 0;
}
.chat-widget__title-block > div:not(.chat-widget__avatar) {
    min-width: 0;
    flex: 1;
}
.chat-widget__title-block h4,
.chat-widget__title-block p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    /* 3. Checkout Modal Layout Fix */
    .checkout-modal {
        padding: 1.25rem !important;
    }
    .checkout-form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .checkout-form-grid .form-group.span-2,
    .form-group.shipping-field.span-2 {
        grid-column: span 1 !important;
    }

    /* 4. Media Modal Image Height Fix */
    .media-carousel__img,
    .media-carousel__video {
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    /* 5. Chat Widget Minimized Width Fix */
    .chat-widget.minimized {
        width: 200px !important; 
    }
}

/* Shipping Distance Feedback */
.shipping-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}
.shipping-feedback.loading {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.shipping-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.shipping-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.shipping-feedback i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Use My Location Button */
.use-location-btn {
    background: transparent;
    border: none;
    color: var(--brand-accent, #3b82f6);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm, 6px);
    transition: all 0.15s ease;
}
.use-location-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}
.use-location-btn:active {
    transform: scale(0.97);
}

/* Address Input Wrapper */
.address-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.address-input-wrapper input {
    width: 100%;
    padding-right: 2.2rem !important;
}
.clear-address-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.clear-address-btn:hover {
    color: #475569;
}

/* Address Autocomplete Suggestions */
.address-suggestions-list {
    position: absolute;
    top: calc(100% - 2.2rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(197, 198, 203, 0.4);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.35rem 0;
    margin: 0;
    z-index: 1050;
    max-height: 220px;
    overflow-y: auto;
}
.address-suggestion-item {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    color: var(--brand-dark, #1e293b);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    transition: background 0.12s ease;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}
.address-suggestion-item:last-child {
    border-bottom: none;
}
.address-suggestion-item i {
    color: #94a3b8;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.address-suggestion-item:hover,
.address-suggestion-item.active {
    background: #f8fafc;
    color: #0284c7;
}
.address-suggestion-item:hover i,
.address-suggestion-item.active i {
    color: #0284c7;
}
.address-suggestion-text {
    flex: 1;
    line-height: 1.35;
    word-break: break-word;
}


