/* ========================================
   Canamart - Pink & White Theme
   CSS Custom Properties & Reset
======================================== */
:root {
    /* Colors - Pink & White Theme */
    --color-pink-50: #fff4f7;
    --color-pink-100: #ffe8ee;
    --color-pink-200: #f8cbd7;
    --color-pink-300: #efa2b7;
    --color-pink-400: #e87898;
    --color-pink-500: #d9577c;  /* Primary */
    --color-pink-600: #c94369;
    --color-pink-700: #a93458;
    --color-pink-800: #862b49;
    --color-pink-900: #62223a;

    --color-white: #ffffff;
    --color-cream: #fffbfc;
    --color-cream-100: #fff4f7;

    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;

    --color-success: #c94369;
    --color-warning: #f59e0b;
    --color-error: #c94369;

    /* Semantic Colors */
    --color-bg: var(--color-white);
    --color-bg-alt: var(--color-cream);
    --color-bg-card: var(--color-white);
    --color-text: #34272c;
    --color-text-muted: #706168;
    --color-text-light: #92858b;
    --color-border: #efd8df;
    --color-border-light: #f6e8ed;
    --color-primary: var(--color-pink-500);
    --color-primary-hover: var(--color-pink-600);
    --color-primary-light: var(--color-pink-50);
    --color-focus: var(--color-pink-400);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(134, 43, 73, 0.05);
    --shadow-sm: 0 2px 8px rgba(134, 43, 73, 0.07);
    --shadow-md: 0 8px 24px rgba(134, 43, 73, 0.09);
    --shadow-lg: 0 16px 48px rgba(134, 43, 73, 0.12);
    --shadow-xl: 0 24px 64px rgba(134, 43, 73, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --container-padding: 24px;
    --header-height: 72px;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

main > section[id] {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Background Blobs Animation
======================================== */
.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle at 30% 30%, var(--color-pink-300), transparent 70%);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle at 70% 70%, var(--color-pink-400), transparent 70%);
    bottom: 10%; left: -50px;
    animation-delay: -7s;
}

.blob-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle at 50% 50%, var(--color-pink-200), transparent 70%);
    top: 40%; right: 20%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ========================================
   Top Bar (from canamart.vn)
======================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) + 10);
    background: linear-gradient(90deg, var(--color-pink-600), var(--color-pink-700));
    color: var(--color-white);
    font-size: 0.75rem;
    line-height: 1;
    padding: 8px 0;
    transform: translateY(0);
    transition: transform var(--transition-base), opacity var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.top-bar.top-bar--hidden {
    transform: translateY(-100%);
    opacity: 0.8;
    pointer-events: none;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}
.top-bar-item:hover { opacity: 0.85; }

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 16px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
}

.top-bar-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.top-bar-text {
    font-weight: 500;
}
.top-bar-text strong {
    font-weight: 700;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-ship {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-weight: 500;
    white-space: nowrap;
}
.top-bar-ship svg { flex-shrink: 0; opacity: 0.9; }

/* Adjust header for top bar */
.header {
    top: 36px; /* top-bar height */
    transition: top var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.header.top-bar--hidden {
    top: 0;
}

/* ========================================
   Promotion Banner Slider (from canamart.vn)
======================================== */
.promotion-banner-section {
    position: relative;
    z-index: var(--z-sticky);
    overflow: hidden;
}

.promotion-banner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
}

.promotion-banner-track {
    display: flex;
    transition: transform var(--transition-slow);
    will-change: transform;
}

.promotion-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform var(--transition-slow);
    transform: translateX(50px);
}
.promotion-banner-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.promotion-banner-link {
    display: block;
    width: 100%;
    line-height: 0;
}
.promotion-banner-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.promotion-banner-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    padding: 0 12px;
}

.promotion-banner-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.promotion-banner-arrow:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}
.promotion-banner-arrow:active { transform: scale(0.95); }
.promotion-banner-arrow svg { width: 20px; height: 20px; }

.promotion-banner-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promotion-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.promotion-banner-dot:hover { background: rgba(255, 255, 255, 0.9); transform: scale(1.2); }
.promotion-banner-dot.is-active {
    background: var(--color-white);
    width: 28px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   Side Promotions (Fixed left/right from canamart.vn)
======================================== */
.side-promotion {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    z-index: var(--z-sticky);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    max-width: 180px;
}

.side-promotion-left {
    left: 16px;
}
.side-promotion-right {
    right: 16px;
    transform: translateY(-50%) translateX(100%);
}

.side-promotion.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.side-promotion-link {
    display: block;
    line-height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.side-promotion-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}
.side-promotion-link:hover img { transform: scale(1.05); }

.side-promotion-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    z-index: 1;
}
.side-promotion-close:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: scale(1.15);
}

/* ========================================
   Social Float (Desktop & Mobile from canamart.vn)
======================================== */
.social-float {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: var(--z-fixed);
}

.social-float-desktop {
    position: absolute;
    top: calc(var(--header-height) + 100px);
    left: 50%;
    transform: translateX(calc(-50% + 680px));
    background: var(--color-pink-50);
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-pink-200);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-50% + 680px)) translateY(-20px);
    transition: all var(--transition-slow);
}
.social-float-desktop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(calc(-50% + 680px)) translateY(0);
}
.social-float-desktop--fixed {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    left: 50%;
    transform: translateX(calc(-50% + 680px)) !important;
    background: var(--color-pink-50);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-xl);
    animation: slideInDown 0.35s ease;
}
@keyframes slideInDown {
    from { transform: translateX(calc(-50% + 680px)) translateY(-100%); opacity: 0; }
    to { transform: translateX(calc(-50% + 680px)) translateY(0); opacity: 1; }
}

.social-float-mobile {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 120px;
    flex-direction: column;
    gap: 8px;
    z-index: var(--z-fixed);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.social-float-inner {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(169, 52, 88, 0.14);
    box-shadow: 0 10px 30px rgba(42, 21, 31, 0.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.social-float-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    color: var(--color-white);
    box-shadow: 0 3px 9px rgba(28, 20, 24, 0.12);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}
.social-float-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 7px 16px rgba(28, 20, 24, 0.18);
}
.social-float-link:active { transform: scale(0.9); }
.social-float-link:focus-visible,
.social-link:focus-visible {
    outline: 3px solid #f7a4bd;
    outline-offset: 3px;
}
.social-float-facebook {
    background: #1877f2;
    color: #fff;
}
.social-float-facebook:hover { background: #166fe5; }
.social-float-shopee {
    background: #fff;
    color: #d9577c;
}
.social-float-shopee:hover { background: #fff3ed; }
.social-float-lazada {
    background: #fff;
    color: #f44369;
}
.social-float-lazada:hover { background: #fff3f5; }
.social-float-zalo {
    background: #fff;
    color: #0068ff;
}
.social-float-zalo:hover { background: #eef5ff; }

.social-float-mobile .social-float-link {
    width: 52px;
    height: 52px;
    background: var(--color-white);
    color: var(--color-pink-600);
    box-shadow: var(--shadow-lg);
}
.social-float-mobile .social-float-link:hover {
    background: var(--color-pink-50);
    transform: scale(1.1);
}
.social-float-mobile .social-float-facebook {
    background: #1877f2;
    color: #fff;
}
.social-float-mobile .social-float-facebook:hover { background: #166fe5; }
.social-float-mobile .social-float-shopee,
.social-float-mobile .social-float-lazada,
.social-float-mobile .social-float-zalo {
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.social-float-mobile .social-float-shopee { color: #d9577c; }
.social-float-mobile .social-float-lazada { color: #f44369; }
.social-float-mobile .social-float-zalo { color: #0068ff; }

.social-float-icon {
    flex-shrink: 0;
    display: block;
    transition: transform var(--transition-base);
}

.social-float-tiktok {
    position: relative;
}
.social-float-tiktok .social-float-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #fff 0%, #ffe8ee 100%);
}
.social-float-mobile .social-float-tiktok .social-float-icon-wrap {
    width: 52px;
    height: 52px;
}

.tiktok-icon {
    z-index: 2;
    color: #111;
    filter: drop-shadow(-1px 0 #25f4ee) drop-shadow(1px 0 #d9577c);
}

/* TikTok Spin Ring Effect - "Đĩa" quay */
.tiktok-spin-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        #ff0050 90deg,
        transparent 180deg,
        #00f2ea 270deg,
        transparent 360deg
    );
    -webkit-mask:
        radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px)),
        conic-gradient(#fff, #fff);
    mask:
        radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px)),
        conic-gradient(#fff, #fff);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: tiktokSpin 3s linear infinite;
    animation-play-state: paused;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

@keyframes tiktokSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.social-float-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 4px 10px;
    background: var(--color-gray-900);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 10;
}
.social-float-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-gray-900);
}
.social-float-link:hover .social-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 1024px) {
    .social-float-desktop { display: none !important; }
    .social-float-mobile { display: flex !important; }
    .side-promotion { display: none !important; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.7rem; padding: 6px 0; }
    .top-bar-item { gap: 4px; }
    .top-bar-badge { min-width: 28px; height: 14px; font-size: 0.55rem; }
    .top-bar-text { display: none; }
    .top-bar-ship span { display: none; }
    .top-bar-ship svg { width: 18px; height: 18px; }

    .header { top: 30px; }
    .header.top-bar--hidden { top: 0; }

    .promotion-banner-controls { bottom: 12px; gap: 8px; }
    .promotion-banner-arrow { width: 36px; height: 36px; }
    .promotion-banner-dot { width: 8px; height: 8px; }
    .promotion-banner-dot.is-active { width: 24px; }

    .social-float-mobile { right: 12px; bottom: 100px; }
    .social-float-mobile .social-float-link { width: 48px; height: 48px; }
    .social-float-mobile .social-float-tiktok .social-float-icon-wrap { width: 48px; height: 48px; }
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: var(--z-fixed);
    transition: box-shadow var(--transition-base), background var(--transition-base);
    box-sizing: border-box;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 62px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    background: var(--color-pink-500);
    box-shadow: 0 6px 16px rgba(134, 43, 73, 0.14);
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(134, 43, 73, 0.2); }
.logo-mark { display: block; width: 100%; height: 100%; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-primary-light); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-light); }
.nav-link::after {
    content: ''; position: absolute; bottom: 4px; left: 50%;
    width: 0; height: 2px; background: var(--color-primary);
    border-radius: 2px; transition: width var(--transition-base), left var(--transition-base);
}
.nav-link.active::after { width: 60%; left: 20%; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.icon-btn:hover { background: var(--color-primary-light); color: var(--color-primary); transform: scale(1.05); }
.icon-btn:active { transform: scale(0.95); }

.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    font-size: 0.7rem; font-weight: 700;
    color: var(--color-white); background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    transform: scale(0); transition: transform var(--transition-bounce);
}
.cart-count.visible { transform: scale(1); }

.mobile-menu-btn { display: none; }
.hamburger {
    width: 24px; height: 2px; background: var(--color-text);
    position: relative; border-radius: 2px; transition: background var(--transition-fast);
}
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }
.mobile-menu-btn[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-btn[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(0, 0); }
.mobile-menu-btn[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg) translate(0, 0); }

.mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-white); border-bottom: 1px solid var(--color-border-light);
    padding: 16px; display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--shadow-lg); transform: translateY(-100%); opacity: 0;
    pointer-events: none; transition: transform var(--transition-base), opacity var(--transition-base);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav-link { padding: 12px 16px; font-weight: 500; border-radius: var(--radius-md); transition: background var(--transition-fast); }
.mobile-nav-link:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.85rem; font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-pink-200);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 82, 112, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(255, 82, 112, 0); } }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-top: 16px;
    letter-spacing: -0.02em;
}
.highlight { color: var(--color-primary); position: relative; }
.highlight::after {
    content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 8px;
    background: linear-gradient(90deg, var(--color-pink-200), var(--color-pink-100));
    z-index: -1; border-radius: 4px;
}

.hero-desc {
    font-size: 1.1rem; color: var(--color-text-muted);
    margin-top: 20px; max-width: 480px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    font-weight: 600; font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1;
}
.btn-primary {
    background: var(--color-primary); color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: transparent; color: var(--color-text);
    border: 2px solid var(--color-border);
}
.btn-outline:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }
.btn-full { width: 100%; }

.hero-stats {
    display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-number {
    display: block; font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.5rem; font-weight: 700; color: var(--color-primary);
    line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }

/* Hero Visual - Milk Bottles */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-mockup { position: relative; width: 100%; max-width: 480px; }

.milk-bottles {
    display: flex; justify-content: center; gap: 16px;
    perspective: 1000px;
}

.bottle {
    position: relative;
    width: 80px; height: 160px;
    animation: bottleFloat 4s ease-in-out infinite;
}
.bottle-1 { animation-delay: 0s; z-index: 3; }
.bottle-2 { animation-delay: -1.3s; z-index: 2; transform: scale(1.05); }
.bottle-3 { animation-delay: -2.6s; z-index: 1; }

@keyframes bottleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(5px) rotate(-1deg); }
    75% { transform: translateY(-8px) rotate(1deg); }
}

.bottle-cap {
    width: 50px; height: 20px;
    background: linear-gradient(180deg, var(--color-pink-300), var(--color-pink-500));
    border-radius: 8px 8px 4px 4px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.bottle-cap::after {
    content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px;
}

.bottle-body {
    width: 80px; height: 130px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,240,245,0.8));
    border: 2px solid var(--color-pink-200);
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md), inset 0 -20px 40px rgba(255,255,255,0.5);
}

.bottle-body::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 40%, var(--bottle-liquid) 60%);
    opacity: 0.6;
}
.bottle[data-type="tuoi"] .bottle-body::before { --bottle-liquid: #fff8f0; }
.bottle[data-type="hat"] .bottle-body::before { --bottle-liquid: #f5e6d3; }
.bottle[data-type="chua"] .bottle-body::before { --bottle-liquid: #ffe4ec; }

.bottle-label {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 16px;
    background: var(--color-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-pink-200);
    white-space: nowrap;
}
.label-icon { font-size: 1.5rem; }
.label-text { font-size: 0.7rem; font-weight: 600; color: var(--color-text); }

/* Floating Particles */
.floating-particles { position: absolute; inset: -50px; pointer-events: none; z-index: 0; }
.particle {
    position: absolute; font-size: 1.5rem;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.7; filter: drop-shadow(0 4px 12px rgba(255,82,112,0.2));
}
.particle:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 10%; animation-delay: -1s; }
.particle:nth-child(3) { top: 50%; left: 0; animation-delay: -2s; }
.particle:nth-child(4) { top: 60%; right: 5%; animation-delay: -3s; }
.particle:nth-child(5) { bottom: 20%; left: 10%; animation-delay: -4s; }
.particle:nth-child(6) { bottom: 10%; right: 15%; animation-delay: -5s; }
.particle:nth-child(7) { top: 30%; left: -10%; animation-delay: -6s; }
.particle:nth-child(8) { bottom: 30%; right: -10%; animation-delay: -7s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.7; }
    25% { transform: translateY(-30px) rotate(10deg) scale(1.1); opacity: 1; }
    50% { transform: translateY(20px) rotate(-5deg) scale(0.9); opacity: 0.5; }
    75% { transform: translateY(-15px) rotate(5deg) scale(1.05); opacity: 0.8; }
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--color-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-md); color: var(--color-primary);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 10;
}
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ========================================
   Category Tabs
======================================== */
.category-tabs {
    position: sticky; top: var(--header-height);
    z-index: var(--z-sticky);
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    padding: 12px 0;
}
.tabs-wrapper {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--container-padding);
    scrollbar-width: none; -ms-overflow-style: none;
}
.tabs-wrapper::-webkit-scrollbar { display: none; }
.tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-weight: 600; font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}
.tab-btn:hover { background: var(--color-primary-light); border-color: var(--color-pink-300); color: var(--color-primary); }
.tab-btn.active {
    background: var(--color-primary); color: var(--color-white);
    border-color: var(--color-primary); box-shadow: var(--shadow-md);
}

/* ========================================
   Section Common
======================================== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; padding: 6px 14px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-primary); background: var(--color-primary-light);
    border-radius: var(--radius-full);
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 12px;
}
.section-desc { color: var(--color-text-muted); margin-top: 12px; font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* ========================================
   Products Section
======================================== */
.products { padding: 80px 0; background: var(--color-bg-alt); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--color-bg-card); border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden; position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    animation: cardEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
@keyframes cardEnter { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

.product-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-xl);
    border-color: var(--color-pink-300);
}

.product-image {
    aspect-ratio: 1; background: var(--color-primary-light);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-image img { transform: scale(1.05); }
.image-note {
    position: absolute; bottom: 10px; left: 10px; z-index: 2;
    padding: 4px 8px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.88); color: var(--color-text-muted);
    font-size: 0.65rem; font-weight: 600; line-height: 1.2;
    backdrop-filter: blur(6px);
}

.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; font-size: 0.7rem; font-weight: 700;
    border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-new { background: var(--color-primary); color: var(--color-white); }
.badge-bestseller { background: #fbbf24; color: var(--color-gray-900); }
.badge-sale { background: var(--color-error); color: var(--color-white); }

.product-wishlist {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}
.product-wishlist:hover, .product-wishlist.active {
    background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary);
}
.product-wishlist svg { width: 18px; height: 18px; }

.product-info { padding: 20px; }
.product-category { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 1.05rem; font-weight: 600; margin-top: 6px; color: var(--color-text); line-height: 1.3; }
.product-desc { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-light); }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.current-price { font-family: 'Be Vietnam Pro', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.original-price { font-size: 0.85rem; color: var(--color-text-light); text-decoration: line-through; }

.btn-add-cart {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--color-primary-light); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-base); border: 1px solid var(--color-pink-200);
}
.btn-add-cart:hover { background: var(--color-primary); color: var(--color-white); transform: scale(1.1); }
.btn-add-cart:active { transform: scale(0.95); }
.btn-add-cart.added { background: var(--color-success); color: var(--color-white); border-color: var(--color-success); }
.btn-add-cart svg { width: 20px; height: 20px; }

.load-more-wrapper { text-align: center; margin-top: 40px; }

/* Empty State */
.products-grid.empty {
    grid-template-columns: 1fr; justify-items: center;
}
.empty-state {
    text-align: center; padding: 60px 20px; max-width: 320px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 8px; }
.empty-state p { color: var(--color-text-muted); }

/* ========================================
   Benefits Section
======================================== */
.benefits { padding: 80px 0; background: var(--color-bg); }
.benefits-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.benefit-card {
    background: var(--color-bg-card); padding: 32px 24px;
    border-radius: var(--radius-xl); border: 1px solid var(--color-border-light);
    text-align: center; transition: all var(--transition-base);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-pink-300); }
.benefit-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

/* ========================================
   About Section
======================================== */
.about { padding: 100px 0; background: var(--color-bg-alt); position: relative; overflow: hidden; }
.about::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-pink-200), transparent);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.about-visual { position: relative; }
.about-mockup { position: relative; aspect-ratio: 4/3; }
.factory-illustration {
    position: absolute; inset: 0; background: var(--color-bg-card);
    border-radius: var(--radius-2xl); border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xl); overflow: hidden;
}
.factory-building {
    position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(180deg, var(--color-pink-50), var(--color-white));
    border-top: 2px solid var(--color-pink-200);
}
.factory-building::before {
    content: ''; position: absolute; top: -30px; left: 20%; width: 60px; height: 80px;
    background: var(--color-pink-100); border: 2px solid var(--color-pink-300); border-bottom: none;
    border-radius: 20px 20px 0 0;
}
.factory-building::after {
    content: ''; position: absolute; top: -50px; right: 20%; width: 40px; height: 100px;
    background: var(--color-pink-100); border: 2px solid var(--color-pink-300); border-bottom: none;
    border-radius: 15px 15px 0 0;
}
.factory-smoke {
    position: absolute; top: 15%; left: 25%; width: 8px; height: 8px;
    background: var(--color-gray-400); border-radius: 50%; opacity: 0.6;
    animation: smokeRise 3s ease-in-out infinite;
}
.factory-smoke.smoke-2 { left: 65%; top: 18%; animation-delay: -1.5s; width: 6px; height: 6px; }
@keyframes smokeRise { 0% { transform: translateY(0) scale(1); opacity: 0.6; } 100% { transform: translateY(-60px) scale(1.5); opacity: 0; } }

.conveyor {
    position: absolute; bottom: 15%; left: 10%; right: 10%; height: 8px;
    background: linear-gradient(90deg, var(--color-gray-300), var(--color-gray-400));
    border-radius: 4px; overflow: hidden;
}
.conveyor::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.3) 20px, rgba(255,255,255,0.3) 24px);
    animation: conveyorMove 1s linear infinite;
}
@keyframes conveyorMove { from { background-position: 0 0; } to { background-position: 48px 0; } }

.milk-boxes-on-belt { position: absolute; bottom: calc(15% + 8px); left: 10%; right: 10%; display: flex; gap: 16px; justify-content: center; }
.mini-box {
    width: 32px; height: 40px; background: var(--color-white);
    border: 1px solid var(--color-pink-300); border-radius: 6px;
    animation: boxMove 4s ease-in-out infinite;
}
.mini-box:nth-child(2) { animation-delay: -1s; background: var(--color-pink-50); }
.mini-box:nth-child(3) { animation-delay: -2s; background: var(--color-cream); }
.mini-box:nth-child(4) { animation-delay: -3s; background: var(--color-pink-100); }
@keyframes boxMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(40px); } }

.experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    padding: 20px 24px; background: var(--color-primary); color: var(--color-white);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
    font-weight: 600; font-size: 1rem; white-space: nowrap;
    animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.about-content { padding-top: 20px; }
.about-desc { margin-top: 16px; color: var(--color-text-muted); line-height: 1.8; }
.about-desc + .about-desc { margin-top: 12px; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.stat-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--color-bg-card); border-radius: var(--radius-lg); border: 1px solid var(--color-border-light); transition: all var(--transition-base); }
.stat-item:hover { border-color: var(--color-pink-300); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 1.5rem; flex-shrink: 0; }
.stat-item .stat-number { font-size: 1.75rem; }
.stat-item .stat-label { font-size: 0.85rem; color: var(--color-text-muted); }

/* ========================================
   Testimonials
======================================== */
.testimonials { padding: 80px 0; background: var(--color-bg); }
.testimonials-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 16px 8px 24px; margin: 0 -8px; scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 calc(50% - 12px); min-width: 300px; max-width: 380px;
    scroll-snap-align: start;
    background: var(--color-bg-card); padding: 32px;
    border-radius: var(--radius-xl); border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-pink-300); transform: translateY(-4px); }
.testimonial-stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.trust-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #ffe9f1;
    color: #a93458;
    font-size: 1.5rem;
}
.trust-card-title { margin-bottom: 10px; color: var(--color-text); font-size: 1.1rem; }
.trust-card-text { min-height: 82px; margin-bottom: 18px; color: var(--color-text-muted); line-height: 1.65; }
.trust-card-text a { color: #a93458; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trust-card-source {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 12px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}
.trust-card-source a { color: #a93458; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-pink-300), var(--color-pink-500));
    color: var(--color-white); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.author-name { display: block; font-weight: 600; color: var(--color-text); }
.author-meta { display: block; font-size: 0.8rem; color: var(--color-text-light); }

.testimonials-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dot {
    width: 10px; height: 10px; border-radius: var(--radius-full);
    background: var(--color-border); border: none; padding: 0;
    transition: all var(--transition-base);
}
.testimonial-dot:hover { background: var(--color-pink-300); }
.testimonial-dot.active { background: var(--color-primary); transform: scale(1.2); }

/* ========================================
   Newsletter
======================================== */
.newsletter { padding: 80px 0; background: var(--color-bg-alt); }
.newsletter-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink-600));
    border-radius: var(--radius-2xl); padding: 48px; color: var(--color-white);
    position: relative; overflow: hidden;
}
.newsletter-card::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: shineRotate 20s linear infinite;
}
@keyframes shineRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.newsletter-content { position: relative; z-index: 2; max-width: 500px; }
.newsletter-icon { font-size: 3rem; margin-bottom: 16px; display: block; animation: iconBounce 2s ease-in-out infinite; }
@keyframes iconBounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.05); } }
.newsletter-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; margin-bottom: 12px; }
.newsletter-content p { font-size: 1rem; opacity: 0.9; line-height: 1.6; }

.newsletter-form { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; position: relative; z-index: 2; }
.newsletter-form input {
    flex: 1; min-width: 240px; padding: 16px 20px;
    background: var(--color-white); color: var(--color-text);
    border: 2px solid transparent; border-radius: var(--radius-full);
    font-size: 1rem; transition: all var(--transition-base);
}
.newsletter-form input::placeholder { color: var(--color-gray-400); }
.newsletter-form input:focus { outline: none; border-color: var(--color-pink-300); box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
.newsletter-form .btn-primary { background: var(--color-white); color: var(--color-primary); padding: 16px 32px; }
.newsletter-form .btn-primary:hover { background: var(--color-gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.newsletter-note { position: relative; z-index: 2; margin-top: 16px; font-size: 0.8rem; opacity: 0.8; text-align: center; }
.newsletter-note a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }

/* ========================================
   Footer
======================================== */
.footer { background: var(--color-gray-900); color: var(--color-gray-300); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--color-gray-500); margin-top: 16px; line-height: 1.7; max-width: 300px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-link {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--color-gray-800); color: var(--color-gray-400);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-base);
}
.social-link:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }
.social-link-facebook { background: #1877f2; color: #fff; }
.social-link-tiktok { background: #111; color: #fff; }
.social-link-zalo { background: #0068ff; color: #fff; }

.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--color-gray-400); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-pink-300); }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; align-items: flex-start; gap: 12px; color: var(--color-gray-400); font-size: 0.9rem; line-height: 1.6; }
.contact-info svg { flex-shrink: 0; color: var(--color-pink-400); margin-top: 2px; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; border-top: 1px solid var(--color-gray-800);
}
.footer-bottom-left p { color: var(--color-gray-500); font-size: 0.9rem; }
.certifications { color: var(--color-gray-600); font-size: 0.75rem; margin-top: 8px; }
.footer-bottom-right { display: flex; gap: 24px; }
.footer-bottom-right a { color: var(--color-gray-500); font-size: 0.85rem; transition: color var(--transition-fast); }
.footer-bottom-right a:hover { color: var(--color-pink-300); }

/* ========================================
   Back to Top
======================================== */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: var(--z-fixed);
    width: 48px; height: 48px; border-radius: var(--radius-full);
    background: var(--color-primary); color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all var(--transition-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-hover); transform: translateY(-4px); }

/* ========================================
   Cart Sidebar
======================================== */
.cart-sidebar {
    position: fixed; top: 0; right: -480px; width: 480px; max-width: 100vw;
    height: 100vh; z-index: var(--z-modal); display: flex;
    transition: right var(--transition-base);
}
.cart-sidebar.open { right: 0; }
.cart-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.cart-sidebar.open .cart-backdrop { opacity: 1; visibility: visible; }
.cart-panel {
    position: relative; width: 100%; height: 100%;
    background: var(--color-white); display: flex; flex-direction: column;
    box-shadow: var(--shadow-xl); transform: translateX(100%);
    transition: transform var(--transition-base);
}
.cart-sidebar.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-border-light); }
.cart-header h3 { font-size: 1.25rem; font-weight: 700; }
.cart-item-count { color: var(--color-text-muted); font-weight: 500; }
.cart-close {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); transition: all var(--transition-fast);
}
.cart-close:hover { background: var(--color-gray-100); color: var(--color-text); }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.cart-empty svg { margin: 0 auto 16px; color: var(--color-gray-300); }
.cart-empty p { margin-bottom: 24px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    display: flex; gap: 12px; padding: 12px;
    background: var(--color-bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light); position: relative;
}
.cart-item-image { width: 60px; height: 60px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--color-primary); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--color-white); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text); transition: all var(--transition-fast); }
.qty-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }
.qty-value { font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove { color: var(--color-text-light); font-size: 0.8rem; margin-top: 8px; transition: color var(--transition-fast); }
.cart-item-remove:hover { color: var(--color-error); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--color-border-light); background: var(--color-bg-alt); }
.cart-summary { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border-light); margin-top: 8px; padding-top: 16px; }
.total-amount { color: var(--color-primary); }
.cart-reward-note { margin: 0 0 12px; color: var(--color-pink-700); font-size: 0.8rem; line-height: 1.5; text-align: center; }
.secure-note { text-align: center; font-size: 0.75rem; color: var(--color-text-light); margin-top: 12px; }

/* ========================================
   Toast Notifications
======================================== */
.toast-container { position: fixed; bottom: 24px; left: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border-left: 4px solid var(--color-primary); min-width: 280px; max-width: 400px; animation: toastEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes toastEnter { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
.toast.removing { animation: toastExit 0.3s ease-in forwards; }
@keyframes toastExit { to { opacity: 0; transform: translateX(100px); } }
.toast-icon { flex-shrink: 0; font-size: 1.25rem; }
.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.info .toast-icon { color: var(--color-primary); }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.9rem; }
.toast-message { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2px; }
.toast-close { flex-shrink: 0; color: var(--color-text-light); padding: 4px; transition: color var(--transition-fast); }
.toast-close:hover { color: var(--color-text); }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; max-width: 400px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { order: 2; max-width: 500px; margin: 0 auto; }
    .about-content { order: 1; text-align: center; }
    .about-stats { justify-content: center; }
    .stat-item { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding-top: 20px; min-height: auto; padding-bottom: 50px; }
    .hero-title { font-size: 2.25rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-card { --card-width: 100%; }
    .benefits-grid { grid-template-columns: 1fr; }
    .testimonial-card { flex: 0 0 calc(100% - 12px); min-width: 280px; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .newsletter-card { padding: 32px 24px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; }
    .cart-sidebar { width: 100%; right: -100%; }
    #cartSidebar.cart-sidebar.open { right: 0; }
    .toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { min-width: auto; max-width: none; }
}

@media (max-width: 480px) {
    .logo { width: 90px; height: 54px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 2rem; }
    .category-tabs { padding: 8px 0; }
    .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ========================================
   Print Styles
======================================== */
/* ========================================
   Products Toolbar
======================================== */
.products-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; margin-bottom: 8px;
    flex-wrap: wrap; gap: 16px;
}
.results-count { font-size: 0.9rem; color: var(--color-text-muted); }
.sort-select {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--color-border); border-radius: var(--radius-full);
    background: var(--color-white); color: var(--color-text);
    font-size: 0.85rem; font-weight: 500; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: all var(--transition-fast);
}
.sort-select:hover { border-color: var(--color-pink-300); }
.sort-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }

/* ========================================
   Product Card Enhancements
======================================== */
.product-compare {
    position: absolute; top: 12px; right: 56px; z-index: 2;
    width: 36px; height: 36px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}
.product-compare:hover, .product-compare.active {
    background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary);
}
.product-compare svg { width: 18px; height: 18px; }

.product-img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.4s ease;
    position: absolute; inset: 0;
}
.product-img.loaded { opacity: 1; }
.product-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; z-index: 0; transition: opacity 0.3s ease;
}
.product-img.loaded + .product-placeholder { opacity: 0; pointer-events: none; }

.product-quick-view {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--color-white); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px);
    transition: all var(--transition-base); border: 1px solid var(--color-border-light);
}
.product-card:hover .product-quick-view { opacity: 1; transform: translateY(0); }
.product-quick-view:hover { background: var(--color-primary); color: var(--color-white); }

.product-rating {
    display: flex; align-items: center; gap: 6px; margin-top: 8px;
}
.stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }
.rating-value { font-weight: 600; font-size: 0.85rem; color: var(--color-text); }
.review-count { font-size: 0.75rem; color: var(--color-text-light); }

.btn-add-cart.adding {
    background: var(--color-success); color: var(--color-white); border-color: var(--color-success);
}
.btn-add-cart.adding svg { animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes checkPop { 0% { transform: scale(0) rotate(-45deg); } 50% { transform: scale(1.3) rotate(0); } 100% { transform: scale(1) rotate(0); } }

/* ========================================
   Compare Bar
======================================== */
.compare-bar {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    z-index: var(--z-fixed); display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; background: var(--color-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl); border: 1px solid var(--color-border-light);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Ensure hidden attribute works */
    visibility: visible;
}
.compare-bar[hidden] {
    display: none !important;
    visibility: hidden !important;
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.compare-info { font-weight: 600; color: var(--color-text); white-space: nowrap; }
.compare-info #compareCount { color: var(--color-primary); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.compare-close {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); font-size: 1.2rem; font-weight: 700;
    transition: all var(--transition-fast);
}
.compare-close:hover { background: var(--color-gray-100); color: var(--color-text); }
.compare-bar .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ========================================
   Quick View Modal
======================================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: var(--z-modal-backdrop);
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; animation: modalFadeIn 0.2s ease forwards;
}
@keyframes modalFadeIn { to { opacity: 1; } }
.modal-overlay.closing { animation: modalFadeOut 0.2s ease forwards; }
@keyframes modalFadeOut { to { opacity: 0; } }

.modal-panel {
    background: var(--color-white); border-radius: var(--radius-xl);
    max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl); transform: scale(0.95);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modalSlideUp { to { transform: scale(1); } }

.quick-view-panel { position: relative; }
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--color-white); color: var(--color-text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--color-primary-light); color: var(--color-primary); transform: rotate(90deg); }

.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-gallery { position: relative; background: var(--color-bg-alt); }
.qv-main-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.qv-main-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-thumbs { display: flex; gap: 8px; padding: 16px; justify-content: center; }
.qv-thumb {
    width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden;
    border: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast);
    background: var(--color-white); padding: 2px;
}
.qv-thumb:hover, .qv-thumb.active { border-color: var(--color-primary); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }

.qv-info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.qv-info .product-badge { align-self: flex-start; }
.qv-info .product-category { color: var(--color-primary); font-size: 0.8rem; }
.qv-info h2 { font-size: 1.5rem; line-height: 1.3; }
.qv-rating { display: flex; align-items: center; gap: 8px; }
.qv-rating .stars { font-size: 1rem; }
.qv-desc { color: var(--color-text-muted); line-height: 1.7; }
.qv-price { display: flex; align-items: baseline; gap: 12px; }
.qv-price .current-price { font-size: 1.75rem; }
.qv-price .original-price { font-size: 1rem; }
.qv-qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qv-qty label { font-weight: 600; color: var(--color-text); }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.qty-selector .qty-btn { width: 44px; height: 44px; font-size: 1.2rem; color: var(--color-text); }
.qty-selector .qty-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }
#qvQty { width: 60px; text-align: center; border: none; outline: none; font-weight: 600; }
.stock-status { font-size: 0.8rem; font-weight: 500; }
.stock-status.in-stock { color: var(--color-success); }
.stock-status.low-stock { color: var(--color-warning); }
.stock-status.out-of-stock { color: var(--color-error); }
.qv-actions { display: flex; gap: 12px; margin-top: 8px; }
.btn-lg { padding: 16px 24px; font-size: 1rem; }
.qv-actions .btn-outline { flex-shrink: 0; width: 52px; height: 52px; }
.qv-specs, .qv-nutrition { border-top: 1px solid var(--color-border-light); padding-top: 16px; }
.qv-specs h4, .qv-nutrition h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--color-text); }
.qv-specs dl, .qv-nutrition dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: 0.85rem; }
.qv-specs dt, .qv-nutrition dt { color: var(--color-text-muted); }
.qv-specs dd, .qv-nutrition dd { color: var(--color-text); font-weight: 500; }

/* ========================================
   Search Overlay
======================================== */
.search-overlay {
    position: fixed; inset: 0; z-index: var(--z-modal);
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center; padding-top: var(--header-height);
    opacity: 0; visibility: hidden; transform: translateY(-20px);
    transition: all var(--transition-base);
}
.search-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-panel {
    width: 100%; max-width: 640px; background: var(--color-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: var(--shadow-xl);
    overflow: hidden; transform: translateY(-10px);
    transition: transform var(--transition-base);
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border-light); }
.search-header h3 { font-size: 1.1rem; font-weight: 600; }
.search-close { width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all var(--transition-fast); }
.search-close:hover { background: var(--color-gray-100); color: var(--color-text); }
.search-input-wrapper { position: relative; padding: 16px 20px; }
.search-icon { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); pointer-events: none; }
.search-input-wrapper input {
    width: 100%; padding: 14px 16px 14px 52px;
    border: 2px solid var(--color-border); border-radius: var(--radius-full);
    font-size: 1.1rem; background: var(--color-bg-alt); color: var(--color-text);
    transition: all var(--transition-fast);
}
.search-input-wrapper input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-light); }
.search-clear { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-text-light); transition: all var(--transition-fast); }
.search-clear:hover { background: var(--color-gray-200); color: var(--color-text); }
.search-results { max-height: 50vh; overflow-y: auto; padding: 0 20px 20px; }
.search-hint, .search-empty { text-align: center; padding: 40px 20px; color: var(--color-text-muted); }
.search-result-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--radius-md); transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border-light);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-primary-light); }
.sri-icon { font-size: 1.5rem; }
.sri-info { display: flex; flex-direction: column; gap: 2px; }
.sri-name { font-weight: 500; color: var(--color-text); }
.sri-name mark { background: var(--color-primary-light); color: var(--color-primary); padding: 0 2px; border-radius: 2px; }
.sri-price { font-size: 0.85rem; color: var(--color-primary); font-weight: 600; }

/* ========================================
   AI Chat Widget
======================================== */
.ai-chat-widget { position: fixed; bottom: 88px; right: 24px; z-index: var(--z-fixed); }
body.ai-chat-open #nl-badge-frame { display: none !important; }
.ai-chat-toggle {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink-600));
    color: var(--color-white); border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg); cursor: pointer;
    transition: all var(--transition-base); white-space: nowrap;
}
.ai-chat-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.ai-toggle-icon { font-size: 1.25rem; animation: botBounce 2s ease-in-out infinite; }
@keyframes botBounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.1); } }
.ai-toggle-text { font-weight: 600; font-size: 0.9rem; }
.ai-notification {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--color-error); color: var(--color-white);
    font-size: 0.7rem; font-weight: 700; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.ai-chat-panel {
    position: absolute; bottom: 80px; right: 0; width: 380px; max-width: calc(100vw - 48px);
    height: 500px; max-height: 70vh; background: var(--color-white);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light); overflow: hidden;
    display: flex; flex-direction: column; opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.95); transition: all var(--transition-base);
}
.ai-chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-chat-backdrop { position: absolute; z-index: 0; inset: -1000px; background: transparent; }
.ai-chat-window { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.ai-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg-alt);
}
.ai-header-info { display: flex; align-items: center; gap: 12px; }
.ai-header-info .ai-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--color-pink-300), var(--color-pink-500)); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ai-header-info h4 { font-size: 1rem; font-weight: 600; }
.ai-status { font-size: 0.75rem; color: var(--color-success); }
.ai-chat-close { width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all var(--transition-fast); }
.ai-chat-close:hover { background: var(--color-gray-100); color: var(--color-text); }

.ai-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ai-message { display: flex; gap: 10px; max-width: 85%; animation: messageIn 0.3s ease; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ai-message.bot { align-self: flex-start; }
.ai-message.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-avatar { width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ai-message.bot .ai-avatar { background: linear-gradient(135deg, var(--color-pink-300), var(--color-pink-500)); color: var(--color-white); }
.ai-message.user .ai-avatar { background: var(--color-primary); color: var(--color-white); }
.ai-bubble {
    padding: 12px 16px; border-radius: var(--radius-xl); font-size: 0.9rem; line-height: 1.5;
    max-width: 100%; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap;
}
.ai-message.bot .ai-bubble { background: var(--color-bg-alt); color: var(--color-text); border-bottom-left-radius: 4px; }
.ai-message.user .ai-bubble { background: var(--color-primary); color: var(--color-white); border-bottom-right-radius: 4px; }
.ai-message.typing .ai-bubble { display: flex; align-items: center; gap: 8px; padding: 16px; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); animation: typingDot 1.4s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.ai-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.ai-quick-btn {
    padding: 8px 14px; border-radius: var(--radius-full);
    background: var(--color-bg-alt); border: 1px solid var(--color-border-light);
    color: var(--color-text); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition-fast);
    opacity: 0; animation: quickBtnIn 0.3s ease forwards;
}
@keyframes quickBtnIn { to { opacity: 1; transform: translateY(0); } }
.ai-quick-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }

.ai-chat-input-wrapper { display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--color-border-light); background: var(--color-bg-alt); }
.ai-chat-input-wrapper input { flex: 1; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-white); color: var(--color-text); font-size: 0.9rem; transition: all var(--transition-fast); }
.ai-chat-input-wrapper input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.ai-chat-send { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-white); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.ai-chat-send:hover { background: var(--color-primary-hover); transform: scale(1.05); rotate: 15deg; }

/* ========================================
   Toast Enhancements
======================================== */
.toast.warning .toast-icon { color: var(--color-warning); }
.toast.show { animation: toastEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.toast.hiding { animation: toastExit 0.3s ease-in forwards; }

/* ========================================
   Search Clear Button
======================================== */
#searchClear { opacity: 0; visibility: hidden; transition: all var(--transition-fast); }
#searchClear.visible { opacity: 1; visibility: visible; }

/* ========================================
   Responsive for New Components
======================================== */
@media (max-width: 1024px) {
    .qv-grid { grid-template-columns: 1fr; }
    .qv-gallery { max-height: 400px; }
    .ai-chat-panel { width: 100%; max-width: none; right: 0; left: 0; bottom: 0; height: 60vh; max-height: 70vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
    .ai-chat-toggle { bottom: 16px; right: 16px; padding: 10px 16px; }
    .ai-toggle-text { display: none; }
}

@media (min-width: 1025px) {
    .ai-chat-panel { position: fixed; right: auto; bottom: 96px; left: 24px; }
}

@media (max-width: 768px) {
    .products-toolbar { flex-direction: column; align-items: flex-start; }
    .toolbar-right { width: 100%; }
    .sort-select { width: 100%; }
    .search-panel { max-width: none; }
    .compare-bar { left: 16px; right: 16px; bottom: 16px; transform: none; max-width: none; }
    .compare-bar { border-radius: var(--radius-lg); padding: 12px 16px; flex-wrap: wrap; }
    .qv-info { padding: 20px; }
    .qv-thumbs { padding: 12px; }
}

@media (max-width: 480px) {
    .ai-chat-panel { height: 65vh; }
    .ai-chat-messages { padding: 16px; }
    .ai-message { max-width: 90%; }
    .quick-btn { padding: 6px 10px; font-size: 0.75rem; }
}

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    .blob, .particle, .bottle, .factory-smoke, .mini-box, .experience-badge,
    .hero-badge, .newsletter-icon, .ai-toggle-icon,
    .typing-dots span, .toast, .modal-panel, .search-panel, .ai-chat-panel,
    .compare-bar, .product-card, .btn, .tab-btn
    { animation: none !important; transition: none !important; }
}

/* ========================================
   Canamart Fresh Market Refresh
======================================== */
.header {
    background: rgba(255, 251, 252, 0.9);
    border-bottom-color: rgba(201, 67, 105, 0.12);
}

.header.scrolled {
    background: rgba(255, 251, 252, 0.97);
}

.nav-link.active::after { display: none; }
.nav-link.active,
.nav-link:hover {
    color: var(--color-pink-700);
    background: var(--color-pink-100);
}

.hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 60px;
    background:
        radial-gradient(ellipse at 82% 42%, rgba(255, 221, 231, 0.78), transparent 36%),
        linear-gradient(115deg, #fffbfc 0%, #fffbfc 48%, #fff0f4 100%);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
}

.hero-content { max-width: 620px; }

.hero-badge {
    padding: 9px 15px;
    color: var(--color-pink-700);
    background: rgba(255, 232, 238, 0.88);
    border-color: rgba(201, 67, 105, 0.16);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    animation: none;
}

.hero-title {
    margin-top: 24px;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.highlight {
    color: var(--color-pink-600);
    white-space: nowrap;
}

.highlight::after { display: none; }

.hero-desc {
    max-width: 500px;
    margin-top: 24px;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions { gap: 12px; margin-top: 30px; }

.btn {
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 14px;
}

.btn-primary {
    background: var(--color-pink-600);
    box-shadow: 0 10px 24px rgba(169, 52, 88, 0.2);
}

.btn-primary:hover { background: var(--color-pink-700); }

.btn-outline {
    border: 1px solid rgba(169, 52, 88, 0.22);
    background: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    gap: 0;
    margin-top: 42px;
}

.hero-stats .stat {
    min-width: 118px;
    padding: 0 22px;
    border-left: 1px solid var(--color-border);
}

.hero-stats .stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat-number {
    color: var(--color-pink-700);
    font-size: 2rem;
}

.hero-stats .stat-label { font-size: 0.78rem; }

.hero-visual { min-width: 0; }

.hero-mockup {
    display: flex;
    min-height: 520px;
    max-width: 560px;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero-orbit {
    position: absolute;
    width: min(92%, 450px);
    aspect-ratio: 1;
    border: 1px solid rgba(201, 67, 105, 0.14);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.94) 0 33%, transparent 34%),
        radial-gradient(circle, rgba(255, 218, 228, 0.8), rgba(255, 237, 242, 0.4) 68%, transparent 69%);
    box-shadow: inset 0 0 0 24px rgba(255, 255, 255, 0.28), 0 30px 80px rgba(169, 52, 88, 0.1);
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    inset: 8%;
    border: 1px dashed rgba(201, 67, 105, 0.2);
    border-radius: inherit;
    content: "";
}

.hero-orbit::after {
    inset: 17%;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.72);
}

.milk-bottles {
    position: relative;
    z-index: 1;
    align-items: flex-end;
    gap: clamp(10px, 2vw, 20px);
    padding-top: 64px;
}

.bottle {
    width: clamp(72px, 7.7vw, 102px);
    height: clamp(178px, 20vw, 244px);
    filter: drop-shadow(0 18px 18px rgba(112, 52, 72, 0.13));
}

.bottle-2 { transform: translateY(-18px) scale(1.08); }
.bottle-3 { animation-delay: -2.6s; }

.bottle-cap {
    width: 52%;
    height: 22px;
    background: linear-gradient(180deg, #f08eaa, #c94369);
    border-radius: 7px 7px 4px 4px;
}

.bottle-body {
    width: 100%;
    height: calc(100% - 22px);
    border: 1px solid rgba(201, 67, 105, 0.18);
    border-radius: 15px 15px 30px 30px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 244, 0.94));
    box-shadow: inset 7px 0 12px rgba(255, 255, 255, 0.9), inset -7px 0 16px rgba(201, 67, 105, 0.05);
}

.bottle[data-type="tuoi"] .bottle-cap { background: linear-gradient(180deg, #f5a9bd, #cf5477); }
.bottle[data-type="hat"] .bottle-cap { background: linear-gradient(180deg, #c9a184, #916b58); }
.bottle[data-type="chua"] .bottle-cap { background: linear-gradient(180deg, #f3bb91, #d9577c); }
.bottle[data-type="tuoi"] .bottle-body::before { --bottle-liquid: #f8e8d5; }
.bottle[data-type="hat"] .bottle-body::before { --bottle-liquid: #efe0ce; }
.bottle[data-type="chua"] .bottle-body::before { --bottle-liquid: #f8d8e2; }

.bottle-label {
    bottom: 17%;
    width: 82%;
    padding: 9px 5px;
    border: 1px solid rgba(201, 67, 105, 0.14);
    border-radius: 12px;
    background: rgba(255, 252, 253, 0.94);
}

.label-icon { font-size: 1.35rem; }
.label-text { font-size: 0.65rem; }

.floating-particles { inset: 0; z-index: 2; }

.particle {
    font-size: 1.1rem;
    filter: drop-shadow(0 4px 12px rgba(169, 52, 88, 0.16));
}

.hero-note {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 252, 253, 0.92);
    box-shadow: 0 16px 38px rgba(112, 52, 72, 0.12);
    backdrop-filter: blur(14px);
}

.hero-note-top { top: 56px; right: 0; }
.hero-note-bottom { bottom: 42px; left: 0; }

.hero-note-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--color-pink-100);
    font-size: 1.3rem;
}

.hero-note strong,
.hero-note small { display: block; }
.hero-note strong { color: var(--color-text); font-size: 0.83rem; }
.hero-note small { margin-top: 2px; color: var(--color-text-muted); font-size: 0.69rem; }
.hero-rating { color: #d59638; font-size: 0.82rem; letter-spacing: 0.08em; }
.hero-note-bottom > span:first-child { padding: 9px 10px; border-radius: 11px; background: #fff3e5; }

.hero-scroll-hint { display: none; }

.category-tabs {
    background: rgba(251, 250, 245, 0.97);
    border-bottom-color: var(--color-border-light);
}

.products { background: #fff6f8; }
.product-card {
    border-color: rgba(169, 52, 88, 0.1);
    box-shadow: 0 6px 20px rgba(112, 52, 72, 0.04);
}

.product-card:hover {
    border-color: var(--color-pink-300);
    box-shadow: 0 20px 44px rgba(112, 52, 72, 0.12);
}

.benefit-card,
.testimonial-card {
    border-color: rgba(169, 52, 88, 0.1);
    box-shadow: 0 12px 32px rgba(112, 52, 72, 0.05);
}

.newsletter-card {
    background: linear-gradient(125deg, #a93458 0%, #d9577c 58%, #e87898 100%);
}

.footer { background: #38252d; }
.contact-info a { color: inherit; }
.contact-info a:hover { color: var(--color-pink-300); }

.quick-call {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: var(--z-fixed);
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 11px;
    padding: 9px 18px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-pink-600), var(--color-pink-500));
    box-shadow: 0 12px 30px rgba(169, 52, 88, 0.28);
    color: var(--color-white);
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.quick-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(169, 52, 88, 0.34);
}

.quick-call svg {
    flex-shrink: 0;
}

.quick-call span,
.quick-call strong,
.quick-call small {
    display: block;
}

.quick-call strong { font-size: 0.8rem; }
.quick-call small { margin-top: 1px; font-size: 0.72rem; opacity: 0.88; }

@media (max-width: 1024px) {
    .hero { min-height: auto; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .hero-content { order: 1; margin: 0 auto; }
    .hero-desc { margin-right: auto; margin-left: auto; }
    .hero-actions,
    .hero-stats { justify-content: center; }
    .hero-visual { order: 2; width: 100%; max-width: 460px; margin: 0 auto; }
    .hero-mockup { min-height: 470px; }
}

@media (max-width: 768px) {
    .hero { padding-top: 16px; }
    .hero-title { margin-top: 20px; font-size: clamp(2.7rem, 10vw, 4rem); }
    .highlight { white-space: normal; }
    .hero-stats { justify-content: center; margin-top: 34px; }
    .hero-stats .stat { min-width: 0; padding: 0 14px; }
    .hero-mockup { min-height: 420px; }
    .hero-note-top { top: 32px; right: 2px; }
    .hero-note-bottom { bottom: 20px; left: 2px; }
}

@media (max-width: 480px) {
    .hero { padding-bottom: 32px; }
    .hero-title { font-size: 1.85rem; line-height: 1.18; margin-top: 12px; }
    .hero-desc { font-size: 0.85rem; line-height: 1.45; margin-top: 8px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 20px; }
    .hero-actions .btn { width: 100%; min-height: 44px; font-size: 0.9rem; }
    .hero-stats .stat { padding: 0 10px; }
    .hero-stats .stat-label { max-width: 85px; font-size: 0.68rem; }
    .hero-mockup { min-height: 360px; }
    .hero-orbit { width: 92%; }
    .bottle { height: 176px; }
    .hero-note { gap: 8px; padding: 10px 12px; }
    .hero-note-top { top: 18px; }
    .hero-note-bottom { bottom: 8px; }
    .quick-call {
        bottom: 16px;
        left: 16px;
        width: 52px;
        min-height: 52px;
        justify-content: center;
        padding: 0;
    }
    .quick-call span { display: none; }
}

/* ========================================
   Playful Shop Effects & Milk Match Game
======================================== */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: calc(var(--z-fixed) + 1);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f3a5bb, var(--color-pink-600), #f6c867);
    box-shadow: 0 1px 8px rgba(201, 67, 105, 0.25);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.product-card::after {
    position: absolute;
    z-index: 4;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
        rgba(255, 255, 255, 0.42),
        transparent 75%
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.product-card.is-spotlit::after { opacity: 1; }

.product-image::after {
    position: absolute;
    inset: -20% auto -20% -70%;
    z-index: 1;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    content: "";
    transform: skewX(-18deg);
    transition: left 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}

.product-card:hover .product-image::after { left: 130%; }

.milk-match-section {
    overflow: hidden;
    padding: 88px 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 213, 226, 0.55), transparent 26%),
        linear-gradient(180deg, #fff8fa 0%, #fff 100%);
}

.reward-wheel-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    max-width: 1040px;
    margin: 0 auto 34px;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid rgba(201, 67, 105, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(112, 52, 72, 0.09);
}

.reward-wheel-copy .section-title { margin-top: 14px; }
.reward-wheel-copy > p:not(.reward-spin-status):not(.reward-demo-note) {
    margin-top: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.reward-ticket-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    background: var(--color-cream);
    color: var(--color-text-muted);
}
.reward-ticket-count strong {
    color: var(--color-pink-700);
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}
.reward-spin-status { min-height: 44px; margin: 12px 0; color: var(--color-pink-700); font-weight: 600; }
.reward-wheel-copy .btn { min-height: 48px; }
.reward-wheel-copy .btn:disabled { cursor: not-allowed; opacity: 0.58; transform: none; }
.reward-demo-note { margin-top: 16px; color: var(--color-text-light); font-size: 0.75rem; line-height: 1.55; }
.reward-history { margin-top: 18px; color: var(--color-text-muted); font-size: 0.82rem; }
.reward-history ul { display: grid; gap: 6px; margin-top: 8px; }
.reward-history li { padding: 8px 10px; border-radius: 10px; background: var(--color-pink-50); }
.reward-wheel-wrap {
    position: relative;
    display: grid;
    width: min(100%, 300px);
    aspect-ratio: 1;
    justify-self: center;
    place-items: center;
    padding: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #ffe2eb);
    box-shadow: 0 14px 36px rgba(169, 52, 88, 0.16);
}
.reward-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background: conic-gradient(
        #ffe3ed 0deg 90deg,
        #fff1d8 90deg 180deg,
        #ffe8ee 180deg 270deg,
        #e8efff 270deg 360deg
    );
    box-shadow: inset 0 0 0 1px rgba(169, 52, 88, 0.12);
    transition: transform 3.6s cubic-bezier(0.12, 0.72, 0.12, 1);
}
.reward-wheel-pointer {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 16px solid transparent;
    border-bottom: 0;
    border-left: 16px solid transparent;
    border-top: 26px solid var(--color-pink-700);
    filter: drop-shadow(0 3px 2px rgba(70, 30, 45, 0.2));
    transform: translateX(-50%);
}
.reward-wheel-prize {
    position: absolute;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    font-size: 1.35rem;
}
.reward-wheel-prize-one { top: 13%; left: 50%; transform: translateX(-50%); }
.reward-wheel-prize-two { top: 50%; right: 13%; transform: translateY(-50%); }
.reward-wheel-prize-three { bottom: 13%; left: 50%; transform: translateX(-50%); }
.reward-wheel-prize-four { top: 50%; left: 13%; transform: translateY(-50%); }
.reward-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-pink-500), var(--color-pink-700));
    box-shadow: 0 4px 12px rgba(169, 52, 88, 0.24);
    color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    transform: translate(-50%, -50%);
}
.games-free-title { margin: 0 auto 28px; text-align: center; }

.milk-match-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 60px);
    overflow: hidden;
    border: 1px solid rgba(201, 67, 105, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(112, 52, 72, 0.09);
}

.milk-match-copy { position: relative; z-index: 1; }
.milk-match-copy .section-title { margin-top: 16px; }
.milk-match-copy .section-desc {
    margin: 14px 0 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.milk-match-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 12px;
}

.milk-match-stats > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 14px;
    background: var(--color-cream);
}

.match-stat-label { color: var(--color-text-muted); font-size: 0.68rem; }
.milk-match-stats strong { color: var(--color-pink-700); font-size: 1rem; font-variant-numeric: tabular-nums; }
.milk-match-status { min-height: 44px; margin: 10px 0 16px; color: var(--color-text-muted); font-size: 0.84rem; }
.milk-match-copy .btn { min-height: 48px; }

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.5vw, 14px);
    width: 100%;
    max-width: 480px;
    justify-self: center;
    perspective: 900px;
}

.memory-card {
    min-width: 0;
    aspect-ratio: 1;
    border: 0;
    border-radius: 18px;
    background: transparent;
    perspective: 700px;
    -webkit-tap-highlight-color: transparent;
}

.memory-card:focus-visible {
    outline: 3px solid var(--color-pink-500);
    outline-offset: 3px;
}

.memory-card:disabled { cursor: default; }
.memory-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.memory-card:not(:disabled):hover .memory-card-inner { transform: translateY(-3px); }
.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner { transform: rotateY(180deg); }

.memory-card-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 67, 105, 0.14);
    border-radius: inherit;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.memory-card-back {
    color: #fff;
    background: linear-gradient(145deg, #e87898, #b83b62);
    box-shadow: 0 8px 18px rgba(169, 52, 88, 0.18);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
}

.memory-card-front {
    background: linear-gradient(145deg, #fff8fa, #ffe8ee);
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    transform: rotateY(180deg);
}

.memory-card.matched .memory-card-front {
    border-color: rgba(22, 163, 74, 0.35);
    background: linear-gradient(145deg, #fff4f7, #f8cbd7);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

.match-decoration {
    position: absolute;
    color: var(--color-pink-300);
    opacity: 0.2;
    pointer-events: none;
}

.match-decoration-one { top: 20px; right: 28%; font-size: 2rem; animation: matchFloat 4s ease-in-out infinite; }
.match-decoration-two { right: 18px; bottom: 12px; font-size: 3rem; animation: matchFloat 5s ease-in-out infinite reverse; }

@keyframes matchFloat {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

.catch-game-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1040px;
    margin: 28px auto 0;
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid rgba(201, 67, 105, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(112, 52, 72, 0.09);
}

.catch-game-copy .section-title { margin-top: 16px; }
.catch-game-copy > p:not(.catch-game-status) { margin-top: 14px; color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.7; }
.catch-game-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.catch-game-stats span { padding: 9px 13px; border: 1px solid var(--color-border-light); border-radius: 12px; background: var(--color-cream); color: var(--color-text-muted); font-size: 0.82rem; }
.catch-game-stats strong { margin-left: 4px; color: var(--color-pink-700); font-size: 1rem; font-variant-numeric: tabular-nums; }
.catch-game-status { min-height: 44px; margin: 12px 0; color: var(--color-text-muted); font-size: 0.84rem; }
.catch-game-arena {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(201, 67, 105, 0.13);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), transparent 35%),
        linear-gradient(145deg, #fff4f7, #ffe5ed);
}

.catch-target {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(169, 52, 88, 0.18);
    font-size: 2rem;
    transition: left 180ms ease-out, top 180ms ease-out, transform 150ms ease;
    touch-action: manipulation;
}

.catch-target[hidden] { display: none; }
.catch-target:hover { transform: scale(1.1); }
.catch-target:focus-visible { outline: 3px solid var(--color-pink-600); outline-offset: 3px; }
.catch-target.caught { animation: catchPop 220ms ease-out; }
@keyframes catchPop { 50% { transform: scale(0.72); } }
.catch-arena-hint { position: absolute; top: 50%; left: 50%; color: rgba(169, 52, 88, 0.45); font-family: 'Be Vietnam Pro', sans-serif; font-size: 1.3rem; font-weight: 700; transform: translate(-50%, -50%); }
.catch-arena-sparkle { position: absolute; color: rgba(201, 67, 105, 0.3); font-size: 1.5rem; pointer-events: none; }
.catch-sparkle-one { top: 20%; left: 18%; }
.catch-sparkle-two { right: 14%; bottom: 18%; }

@media (max-width: 768px) {
    .milk-match-section { padding: 64px 0; }
    .reward-wheel-card { grid-template-columns: 1fr; gap: 22px; text-align: center; }
    .reward-wheel-wrap { grid-row: 1; width: min(72vw, 260px); }
    .reward-spin-status { min-height: 24px; }
    .milk-match-card { grid-template-columns: 1fr; gap: 24px; }
    .milk-match-copy { text-align: center; }
    .milk-match-copy .section-desc { margin-right: auto; margin-left: auto; }
    .milk-match-stats { max-width: 420px; margin-right: auto; margin-left: auto; }
    .milk-match-status { min-height: 24px; }
    .catch-game-card { grid-template-columns: 1fr; gap: 24px; }
    .catch-game-copy { text-align: center; }
    .catch-game-copy > p:not(.catch-game-status) { max-width: 520px; margin-right: auto; margin-left: auto; }
    .catch-game-stats { justify-content: center; }
    .catch-game-arena { min-height: 240px; }
}

@media (max-width: 480px) {
    .reward-wheel-card { padding: 24px 18px; border-radius: 22px; }
    .reward-wheel-wrap { width: min(68vw, 230px); }
    .reward-wheel-center { width: 56px; height: 56px; }
    .reward-wheel-prize { width: 36px; height: 36px; font-size: 1.15rem; }
    .milk-match-card { padding: 24px 18px; border-radius: 22px; }
    .catch-game-card { padding: 24px 18px; border-radius: 22px; }
    .memory-board { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 320px; }
    .memory-card { border-radius: 14px; }
    .milk-match-stats > div { padding: 8px 6px; }
    .match-stat-label { font-size: 0.62rem; }
    .catch-game-arena { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card::after,
    .product-image::after,
    .memory-card-inner,
    .match-decoration,
    .reward-wheel,
    .catch-target,
    .catch-arena-sparkle { animation: none !important; transition: none !important; }
}

/* Refined Canamart identity */
:root {
    --color-pink-50: #fff7fa;
    --color-pink-100: #ffe9f1;
    --color-pink-200: #f9cad9;
    --color-pink-300: #f39aba;
    --color-pink-400: #ef6c98;
    --color-pink-500: #ec407a;
    --color-pink-600: #e13475;
    --color-pink-700: #c2185b;
    --color-pink-800: #ad1457;
    --color-pink-900: #880e4f;

    --color-cream: #fff7fa;
    --color-cream-100: #ffe9f1;
    --color-bg: #ffffff;
    --color-bg-alt: #fff7fa;
    --color-text: #34272c;
    --color-text-muted: #706168;
    --color-text-light: #92858b;
    --color-border: #efd8df;
    --color-border-light: #f6e8ed;
    --color-primary: #ec407a;
    --color-primary-hover: #d92e6c;
    --color-primary-light: #ffe9f1;
    --color-focus: #ef6c98;

    --shadow-xs: 0 1px 2px rgba(104, 35, 61, 0.04);
    --shadow-sm: 0 4px 12px rgba(104, 35, 61, 0.05);
    --shadow-md: 0 10px 28px rgba(104, 35, 61, 0.08);
    --shadow-lg: 0 18px 44px rgba(104, 35, 61, 0.1);
    --shadow-xl: 0 26px 64px rgba(104, 35, 61, 0.13);
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6,
.stat-number,
.current-price {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header,
.header.scrolled {
    background: #ec407a;
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.header.scrolled { box-shadow: 0 8px 26px rgba(104, 35, 61, 0.16); }
.logo {
    width: 124px;
    height: 56px;
    padding: 4px 8px;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
}
.logo:hover { box-shadow: none; }
.nav { gap: 4px; }
.nav-link { border-radius: 8px; color: rgba(255, 255, 255, 0.9); }
.nav-link:hover,
.nav-link.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-link::after { background: #ffe082; bottom: 1px; }
.header-actions .icon-btn { color: #fff; }
.header-actions .icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.hero {
    min-height: auto;
    background:
        radial-gradient(ellipse at 82% 48%, rgba(255, 221, 234, 0.76), transparent 36%),
        linear-gradient(115deg, #fff 0%, #fffafa 54%, #ffe9f1 100%);
}
.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent 70%);
    content: "";
    pointer-events: none;
}
.hero-grid { gap: clamp(36px, 6vw, 88px); }
.hero-title {
    max-width: 700px;
    font-size: clamp(3rem, 5.3vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}
.highlight { color: var(--color-primary); }
.highlight::after {
    height: 2px;
    bottom: 0;
    background: linear-gradient(90deg, #ec407a, rgba(236, 64, 122, 0.18));
}
.hero-badge {
    border-radius: 5px;
    border-color: rgba(194, 24, 91, 0.16);
    background: rgba(255, 233, 241, 0.88);
    color: var(--color-primary);
    animation: none;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}
.hero-desc { max-width: 520px; font-size: 1.04rem; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { box-shadow: 0 8px 20px rgba(194, 24, 91, 0.18); }
.btn-outline { border-width: 1px; }
.hero-stats { gap: 0; }
.hero-stats .stat { min-width: 130px; padding: 2px 22px; border-left: 1px solid var(--color-border); }
.hero-stats .stat:first-child { padding-left: 0; border-left: 0; }
.stat-number { color: var(--color-primary); }
.hero-orbit {
    border-color: rgba(194, 24, 91, 0.14);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 221, 234, 0.5) 68%, transparent 69%);
}
.hero-note {
    border-color: rgba(194, 24, 91, 0.1);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(34, 49, 39, 0.1);
}
.hero-note-icon { background: #ffe9f1; }
.hero-note-bottom > span:first-child { background: #f5f0e5; }
.floating-particles { opacity: 0.42; }
.bottle-cap { background: linear-gradient(180deg, #f39aba, #ec407a); }
.bottle-body { border-color: #f9cad9; }
.bottle-label { border-color: #efd8df; border-radius: 8px; }

.category-tabs { background: rgba(255, 255, 255, 0.97); }
.tab-btn { border-radius: 8px; }
.products,
.milk-match-section {
    background: linear-gradient(180deg, #fff7fa 0%, #fff 100%);
}
.section-tag {
    border-radius: 4px;
    background: #ffe9f1;
    color: #c2185b;
    letter-spacing: 0.14em;
}
.section-title { font-weight: 600; letter-spacing: -0.025em; }
.section-header.is-official-category {
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
}
.section-header.is-official-category .section-tag,
.section-header.is-official-category .section-desc { display: none; }
.section-header.is-official-category .section-title {
    margin-top: 0;
    color: #0cabb4;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}
.product-card,
.benefit-card,
.testimonial-card,
.reward-wheel-card,
.milk-match-card,
.catch-game-card {
    border-color: #f0e2e7;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(104, 35, 61, 0.045);
}
.product-card:hover,
.benefit-card:hover,
.testimonial-card:hover {
    border-color: #f3b3c9;
    box-shadow: 0 20px 44px rgba(104, 35, 61, 0.1);
}
.product-image { background: #fff0f5; }
.product-badge { border-radius: 4px; }
.badge-bestseller { background: #e6d5aa; color: #514324; }
.product-info { padding: 20px 20px 18px; }
.benefit-card { text-align: left; }
.benefit-icon { font-size: 2rem; }
.milk-match-section {
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 221, 234, 0.58), transparent 28%),
        linear-gradient(180deg, #fff7fa 0%, #fff 100%);
}
.reward-wheel-card,
.milk-match-card,
.catch-game-card { background: rgba(255, 255, 255, 0.96); }
.reward-wheel-wrap {
    background: linear-gradient(145deg, #fff, #ffe9f1);
    box-shadow: 0 14px 36px rgba(104, 35, 61, 0.12);
}
.reward-wheel-prize-one { color: var(--color-primary); }
.memory-card-back { background: linear-gradient(145deg, #ef6c98, #c2185b); }
.memory-card-front { background: linear-gradient(145deg, #fff, #ffe9f1); }
.catch-game-arena { background: linear-gradient(145deg, #fff7fa, #ffe9f1); }

.about { background: #fff7fa; }
.factory-illustration { border-radius: 18px; }
.experience-badge {
    border-radius: 10px;
    background: #ec407a;
    animation: none;
}
.stat-item { border-radius: 12px; }
.testimonials { background: #fff; }
.testimonial-card { border-radius: 14px; }
.author-avatar { background: linear-gradient(135deg, #f39aba, #c2185b); }
.testimonial-stars { color: #f5a623; }

.newsletter { background: #fff7fa; }
.newsletter-card {
    border-radius: 18px;
    background: linear-gradient(120deg, #c2185b 0%, #ec407a 72%, #ef6c98 100%);
}
.newsletter-icon { animation: none; }
.newsletter-form .btn-primary { border-radius: 10px; }
.footer { background: #681f3d; }
.footer .logo { background: transparent; }
.footer-col a:hover,
.contact-info a:hover { color: #ffd1e1; }
.social-link:hover { background: #f5a623; color: #681f3d; }

.quick-call {
    border-radius: 12px;
    background: #ec407a;
    box-shadow: 0 12px 30px rgba(194, 24, 91, 0.24);
}
.quick-call:hover { box-shadow: 0 16px 36px rgba(194, 24, 91, 0.3); }
.back-to-top { border-radius: 12px; }
.scroll-progress {
    height: 2px;
    background: linear-gradient(90deg, #ec407a, #f5a623);
    box-shadow: none;
}

:focus-visible { outline-color: #ec407a; }

.product-category {
    color: #087b83;
    font-size: 0.8rem;
    font-weight: 700;
}
.product-name {
    color: #292126;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}
.product-desc {
    color: #51454b;
    font-size: 0.92rem;
    line-height: 1.55;
}
.current-price { color: #b82f60; }
.original-price { color: #665a60; }

@media (max-width: 1024px) {
    .hero { min-height: auto; }
    .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent); }
}

@media (max-width: 768px) {
    .hero-stats .stat { padding: 0 14px; }
    .benefit-card { text-align: center; }
}

@media (max-width: 480px) {
    .logo { width: 106px; height: 48px; }
    .hero-title { font-size: clamp(2.55rem, 11vw, 3.2rem); }
    .hero-stats .stat { border-left: 0; padding: 0 10px; }
}

@media (max-width: 768px) {
    .floating-help-dock {
        position: fixed !important;
        z-index: 1100 !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 78px) !important;
        display: flex !important;
        align-items: center !important;
        pointer-events: none !important;
        max-width: none !important;
        width: auto !important;
        gap: 0 !important;
        transition: bottom var(--transition-base), transform var(--transition-base) !important;
    }

    body.mobile-studio-enabled .floating-help-dock {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 78px) !important;
    }

    body.ai-chat-open .floating-help-dock {
        transform: none !important;
        z-index: 1200 !important;
    }

    .floating-help-actions {
        display: flex !important;
        pointer-events: auto !important;
    }

    .floating-help-actions[hidden] { display: none; }

    .contact-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        max-height: min(48dvh, 290px);
        overflow-y: auto !important;
        padding: 6px !important;
        border-radius: 24px !important;
        scrollbar-width: none !important;
    }

    .contact-buttons::-webkit-scrollbar { display: none !important; }

    .contact-btn {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .contact-btn .contact-icon,
    .contact-btn svg { width: 20px !important; height: 20px !important; }

    .contact-label { display: none !important; }

    .floating-help-dock .quick-call {
        position: static !important;
        inset: auto !important;
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #ec407a !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        border: 2px solid #fff !important;
        box-shadow: 0 4px 16px rgba(236, 64, 122, 0.45) !important;
        transition: transform 0.2s ease !important;
    }

    .floating-help-dock .quick-call:hover {
        transform: scale(1.08) !important;
    }

    .floating-help-dock .quick-call span { display: none !important; }

    .floating-help-dock .ai-chat-widget {
        position: static !important;
        inset: auto !important;
    }

    .floating-help-dock .ai-chat-toggle {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--color-primary), var(--color-pink-600)) !important;
        border: 2px solid #fff !important;
        box-shadow: 0 4px 16px rgba(236, 64, 122, 0.45) !important;
        justify-content: center !important;
    }

    .floating-help-dock .ai-toggle-text { display: none !important; }
    .floating-help-dock .ai-toggle-icon { font-size: 1.25rem; }

    body.ai-chat-open { overflow: hidden; }

    .ai-chat-panel,
    .ai-chat-panel.open {
        position: fixed;
        z-index: 1100 !important;
        inset: 0 0 auto;
        top: var(--ai-chat-viewport-top, 0px);
        width: 100vw;
        max-width: none;
        height: var(--ai-chat-viewport-height, 100vh);
        max-height: none;
        border: 0;
        border-radius: 0;
        transform: translateY(14px);
        transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
        background: var(--color-bg);
    }

    .ai-chat-panel.open { transform: translateY(0); }
    .ai-chat-backdrop { display: none; }
    .ai-chat-window { position: relative; z-index: 1; min-height: 0; display: flex; flex-direction: column; height: 100%; }
    .ai-chat-header {
        flex: 0 0 auto;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border-light);
        z-index: 2;
    }

    .ai-chat-close {
        width: auto;
        min-height: 44px;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid var(--color-border-light);
        border-radius: 12px;
        background: var(--color-white);
        color: var(--color-primary);
        white-space: nowrap;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .ai-close-label { display: inline; font-size: 0.8rem; font-weight: 600; }
    .ai-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
    .ai-message { max-width: 90%; }
    .ai-quick-replies { flex: 0 0 auto; max-height: 30vh; overflow-y: auto; padding: 0 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
    .ai-quick-btn { padding: 8px 12px; font-size: 0.75rem; }
    .ai-chat-input-wrapper {
        flex: 0 0 auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--color-bg);
        border-top: 1px solid var(--color-border-light);
    }
    .ai-chat-input-wrapper input { padding: 12px 16px; font-size: 1rem; }
    .ai-chat-send { width: 44px; height: 44px; }
}

@media (min-width: 769px) {
    .help-dock-handle,
    .ai-close-label { display: none; }
}

/* Animated home-page product banners */
.hero-mockup {
    width: 100%;
    height: 520px;
    min-height: 0;
    max-width: 560px;
}

.hero-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(201, 67, 105, 0.12);
    border-radius: 30px;
    background: #fff3f6;
    box-shadow: 0 28px 70px rgba(104, 35, 61, 0.16);
    touch-action: pan-y;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.9fr);
    align-items: center;
    overflow: hidden;
    padding: clamp(24px, 3.2vw, 42px);
    background:
        radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.78), transparent 40%),
        linear-gradient(135deg, var(--banner-start), var(--banner-end));
    opacity: 0;
    visibility: hidden;
    transform: translateX(4%);
    transition: opacity 550ms ease, transform 550ms ease, visibility 550ms;
    pointer-events: none;
}

.hero-banner-slide:nth-child(1) { --banner-start: #fff1dc; --banner-end: #ffe2cc; }
.hero-banner-slide:nth-child(2) { --banner-start: #ffe8ee; --banner-end: #f8cbd7; }
.hero-banner-slide:nth-child(3) { --banner-start: #fce6ed; --banner-end: #f6d5e0; }

.hero-banner-slide::before,
.hero-banner-slide::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-banner-slide::before {
    top: -90px;
    right: -52px;
    width: 270px;
    aspect-ratio: 1;
}

.hero-banner-slide::after {
    right: 12%;
    bottom: -180px;
    width: 320px;
    aspect-ratio: 1;
}

.hero-banner-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-banner-copy { position: relative; z-index: 2; max-width: 270px; }
.hero-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a93458;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-banner-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(169, 52, 88, 0.1);
    content: "";
}

.hero-banner-title {
    margin-top: 16px;
    color: #38252d;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.1vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-banner-desc {
    max-width: 240px;
    margin-top: 12px;
    color: #66535b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 22px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #b63361;
    box-shadow: 0 8px 18px rgba(104, 35, 61, 0.2);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-banner-cta:hover {
    background: #92274d;
    box-shadow: 0 12px 24px rgba(104, 35, 61, 0.24);
    transform: translateY(-2px);
}

.hero-banner-art {
    position: relative;
    display: grid;
    min-width: 0;
    height: 78%;
    place-items: center;
}

.hero-banner-art img {
    position: relative;
    z-index: 1;
    width: min(100%, 245px);
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 20px rgba(77, 47, 45, 0.2));
    animation: heroProductFloat 4.2s ease-in-out infinite;
}

.hero-banner-orbit {
    position: absolute;
    width: min(100%, 250px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.08) 68%, transparent 69%);
    animation: heroOrbitPulse 5s ease-in-out infinite;
}

.hero-banner-sparkle {
    position: absolute;
    top: 14%;
    right: 4%;
    color: #fff;
    font-size: 2.3rem;
    text-shadow: 0 3px 14px rgba(169, 52, 88, 0.28);
    animation: heroSparkle 2.2s ease-in-out infinite;
}

.hero-banner-controls {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 18px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-banner-dots,
.hero-banner-arrows { display: flex; align-items: center; gap: 8px; }

.hero-banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(91, 62, 70, 0.24);
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.hero-banner-dot.is-active { width: 26px; background: #b63361; }

.hero-banner-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(91, 62, 70, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #51343f;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.hero-banner-arrow:hover { background: #fff; transform: scale(1.08); }
.hero-banner-slider :focus-visible { outline: 3px solid #a93458; outline-offset: 3px; }

@keyframes heroProductFloat {
    0%, 100% { transform: translateY(3px) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes heroOrbitPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.72; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes heroSparkle {
    0%, 100% { transform: scale(0.82) rotate(-12deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(12deg); opacity: 1; }
}

@media (max-width: 1024px) {
    .hero-mockup { height: 470px; }
    .hero-banner-slide { grid-template-columns: minmax(0, 1fr) minmax(130px, 0.82fr); }
}

@media (max-width: 768px) {
    .hero-mockup { height: 420px; }
    .hero-banner-slide { padding: 28px; }
    .hero-banner-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .hero-banner-desc { font-size: 0.84rem; }
}

@media (max-width: 480px) {
    .hero-mockup { height: 360px; }
    .hero-banner-slider { border-radius: 24px; }
    .hero-banner-slide {
        grid-template-columns: minmax(0, 1.1fr) minmax(110px, 0.8fr);
        padding: 22px 18px 54px;
    }
    .hero-banner-copy { max-width: 190px; }
    .hero-banner-eyebrow { font-size: 0.58rem; letter-spacing: 0.08em; }
    .hero-banner-title { margin-top: 12px; font-size: clamp(1.5rem, 7vw, 2rem); }
    .hero-banner-desc { margin-top: 9px; font-size: 0.76rem; line-height: 1.5; }
    .hero-banner-cta { min-height: 40px; margin-top: 16px; padding: 0 12px; font-size: 0.75rem; }
    .hero-banner-art { height: 70%; }
    .hero-banner-controls { right: 16px; bottom: 12px; left: 16px; }
    .hero-banner-arrow { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner-slide,
    .hero-banner-cta,
    .hero-banner-dot,
    .hero-banner-arrow,
    .hero-banner-art img,
    .hero-banner-orbit,
    .hero-banner-sparkle {
        animation: none;
        transition: none;
    }
}

/* CanaMart-style promotional banner carousel */
.hero-mockup {
    height: auto;
    min-height: 520px;
}

.promo-banner-section {
    padding: calc(var(--header-height) + 18px) 0 32px;
    scroll-margin-top: 0;
    z-index: 250;
    position: relative;
}
.promo-banner {
    position: relative;
    height: clamp(250px, 28vw, 340px);
    overflow: hidden;
    border-radius: 22px;
    background: #e9004f;
    box-shadow: 0 18px 44px rgba(153, 0, 57, 0.2);
    isolation: isolate;
}

.promo-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 650ms cubic-bezier(0.22, 0.72, 0.24, 1);
    will-change: transform;
}

.promo-banner-slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    align-items: flex-start;
    height: 100%;
    overflow: hidden;
    padding: clamp(22px, 4vw, 52px);
    background:
        radial-gradient(circle at 73% 48%, rgba(255, 255, 255, 0.13), transparent 34%),
        linear-gradient(110deg, #ed0754 0%, #d90049 58%, #b90044 100%);
    color: #fff;
}

.promo-banner-slide::before,
.promo-banner-slide::after {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.promo-banner-slide::before {
    top: -38%;
    right: 12%;
    width: clamp(220px, 32vw, 410px);
    aspect-ratio: 1;
}

.promo-banner-slide::after {
    top: -25%;
    right: 15%;
    width: clamp(185px, 26vw, 340px);
    aspect-ratio: 1;
}

.promo-banner-slide-coral {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(110deg, #f0195c 0%, #da064f 58%, #ad0043 100%);
}

.promo-banner-slide-berry {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(110deg, #db0d60 0%, #b90057 58%, #8d124f 100%);
}

.promo-banner-slide-teal {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(110deg, #e87898 0%, #d9577c 58%, #862b49 100%);
}

.promo-banner-slide-amber {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(110deg, #ff8f00 0%, #ff6f00 58%, #e65100 100%);
}

.promo-banner-slide-rose {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(110deg, #ec407a 0%, #d81b60 58%, #ad1457 100%);
}

.promo-banner-slide-gold {
    background: radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(110deg, #ffd600 0%, #ffc107 58%, #ff8f00 100%);
    color: #333;
}

.promo-banner-slide-gold .promo-banner-kicker {
    color: #333;
}

.promo-banner-slide-gold .promo-banner-copy h2 {
    color: #333;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

.promo-banner-slide-gold .promo-banner-copy p {
    color: rgba(51, 51, 51, 0.9);
}

.promo-banner-slide-gold .promo-banner-link {
    background: #333;
    color: #fff;
}

.promo-banner-slide-gold .promo-banner-link:hover {
    background: #ffd600;
    color: #333;
}

.promo-banner-copy {
    position: relative;
    z-index: 2;
    width: 56%;
    max-width: 560px;
}

.promo-banner-logo {
    display: block;
    width: clamp(78px, 10vw, 120px);
    height: 42px;
    margin-bottom: 12px;
    object-fit: contain;
    object-position: left center;
}

.promo-banner-kicker {
    display: inline-block;
    color: #fff06a;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.promo-banner-copy h2 {
    margin-top: 6px;
    color: #fff;
    font-size: clamp(1.7rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-shadow: 0 3px 14px rgba(89, 0, 34, 0.18);
}

.promo-banner-copy p {
    max-width: 400px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.76rem, 1.2vw, 0.98rem);
    line-height: 1.45;
}

.promo-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff06a;
    color: #9c003a;
    font-size: 0.78rem;
    font-weight: 800;
    transition: background 180ms ease, transform 180ms ease;
}

.promo-banner-link:hover { background: #fff9b7; transform: translateY(-2px); }

.promo-banner-art {
    position: absolute;
    top: 0;
    right: 5%;
    bottom: 0;
    display: grid;
    width: 39%;
    place-items: center;
}

.promo-banner-art img {
    position: relative;
    z-index: 1;
    width: 62%;
    height: 83%;
    object-fit: contain;
    filter: drop-shadow(0 18px 16px rgba(80, 0, 30, 0.35));
    animation: promo-product-float 3.8s ease-in-out infinite;
}

.promo-banner-tree {
    position: absolute;
    z-index: 0;
    bottom: 10%;
    left: 1%;
    width: 25%;
    height: 58%;
    overflow: visible;
    opacity: 0.78;
    filter: drop-shadow(0 8px 8px rgba(80, 0, 30, 0.12));
}

.promo-banner-sun {
    position: absolute;
    width: min(94%, 270px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.33);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 244, 179, 0.16), rgba(255, 255, 255, 0.04) 66%, transparent 67%);
    animation: promo-sun-pulse 4.5s ease-in-out infinite;
}

.promo-banner-ribbon {
    position: absolute;
    z-index: 2;
    top: 20%;
    right: -2%;
    display: grid;
    width: clamp(68px, 9vw, 110px);
    aspect-ratio: 1;
    place-content: center;
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: #fff06a;
    box-shadow: 0 8px 22px rgba(89, 0, 34, 0.2);
    color: #a3003d;
    font-size: clamp(0.7rem, 1.4vw, 1rem);
    font-weight: 900;
    line-height: 1.08;
    text-align: center;
    transform: rotate(9deg);
}

.promo-banner-stars {
    position: absolute;
    z-index: 2;
    right: 13%;
    bottom: 15%;
    color: #fff06a;
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    letter-spacing: 0.14em;
    animation: promo-stars-glow 2.5s ease-in-out infinite;
}

.promo-banner-index {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 15px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.promo-banner-index i { color: rgba(255, 255, 255, 0.55); font-style: normal; }
.promo-banner-controls {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 12px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.promo-banner-dots { display: flex; align-items: center; gap: 7px; }

.promo-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
}

.promo-banner-dot.is-active { width: 23px; background: #fff06a; }

.promo-banner-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(116, 0, 42, 0.25);
    color: #fff;
    font: inherit;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.promo-banner-arrow:hover { background: rgba(116, 0, 42, 0.5); transform: scale(1.08); }
.promo-banner :focus-visible { outline: 3px solid #fff06a; outline-offset: 3px; }

@keyframes promo-product-float {
    0%, 100% { transform: translateY(3px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes promo-sun-pulse {
    0%, 100% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes promo-stars-glow {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (min-width: 1025px) {
    .promo-banner-section { padding: calc(var(--header-height) + 24px) 0 36px; }
    .promo-banner {
        height: clamp(310px, 24vw, 370px);
        border-radius: 28px;
        box-shadow: 0 22px 54px rgba(153, 0, 57, 0.18);
    }
    .promo-banner-slide { padding: clamp(38px, 5vw, 68px); }
    .promo-banner-copy { width: 54%; }
    .promo-banner-art { right: 7%; width: 36%; }
    .promo-banner-art img { width: 60%; height: 80%; }
    .promo-banner-tree { left: 0; width: 24%; height: 62%; }
}

@media (max-width: 1024px) {
    .hero-mockup { min-height: 470px; }
}

@media (max-width: 768px) {
    .hero-mockup { min-height: 420px; }
    .promo-banner-section { padding: calc(var(--header-height) + 18px) 0 22px; }
    .promo-banner-logo { display: none !important; }
    .promo-banner { height: 265px; border-radius: 18px; }
    .promo-banner-slide { padding: 18px 20px 28px; align-items: flex-start; }
    .promo-banner-copy { width: 58%; margin-top: 0; }
    .promo-banner-kicker { font-size: 0.65rem; letter-spacing: 0.08em; margin-bottom: 6px; }
    .promo-banner-art { right: 3%; width: 43%; }
    .promo-banner-art img { width: 68%; height: 78%; }
    .promo-banner-tree { width: 25%; height: 52%; }

    /* Product card tablet adjustments */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }
    .product-card {
        border-radius: 14px;
    }
    .product-info {
        padding: 12px 14px 16px !important;
    }
    .product-name {
        font-size: 0.92rem;
        line-height: 1.3;
    }
    .product-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
    .current-price {
        font-size: 1.05rem;
    }
    .original-price {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }
    .container {
        padding: 0 12px;
    }
    .hero-mockup { min-height: 360px; }
    .promo-banner-section { padding: calc(var(--header-height) + 20px) 0 16px; }
    .promo-banner-logo { display: none !important; }
    .promo-banner { height: 265px; border-radius: 16px; }
    .promo-banner-slide { padding: 14px 14px 26px; align-items: flex-start; }
    .promo-banner-copy { width: 60%; margin-top: 0; }
    .promo-banner-kicker { font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1.2; margin-bottom: 4px; }
    .promo-banner-copy h2 { margin-top: 2px; font-size: clamp(1.02rem, 4.6vw, 1.25rem); line-height: 1.15; letter-spacing: -0.02em; }
    .promo-banner-copy p { max-width: 200px; margin-top: 3px; font-size: 0.63rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .promo-banner-link { min-height: 28px; margin-top: 8px; padding: 0 11px; font-size: 0.64rem; border-radius: 9999px; }
    .promo-banner-art { right: 1%; width: 40%; top: 50%; transform: translateY(-50%); }
    .promo-banner-art img { width: 80%; height: 78%; object-fit: contain; }
    .promo-banner-tree { bottom: 13%; left: -2%; width: 24%; height: 48%; }
    .promo-banner-ribbon { top: 17%; right: 0; width: 56px; font-size: 0.58rem; }
    .promo-banner-stars { right: 8%; bottom: 17%; font-size: 0.82rem; }
    .promo-banner-index { right: 12px; bottom: 8px; font-size: 0.62rem; }
    .promo-banner-controls { bottom: 8px; gap: 8px; }
    .promo-banner-arrow { width: 24px; height: 24px; font-size: 1rem; }
    .promo-banner-dot { width: 7px; height: 7px; }
    .promo-banner-dot.is-active { width: 18px; }

    /* Compact 2-column products layout on mobile phones */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        border-radius: 12px !important;
        box-shadow: 0 4px 14px rgba(104, 35, 61, 0.05);
        display: flex;
        flex-direction: column;
    }
    .product-image {
        aspect-ratio: 1;
        border-radius: 12px 12px 0 0;
    }
    .product-badge {
        top: 6px !important;
        left: 6px !important;
        padding: 2px 6px !important;
        font-size: 0.56rem !important;
        font-weight: 700;
        border-radius: 4px !important;
        letter-spacing: 0.02em;
    }
    .product-badge.badge-new {
        top: 6px !important;
    }
    .product-badge.badge-new.has-prev-badge {
        top: 24px !important;
    }
    .product-wishlist {
        width: 26px !important;
        height: 26px !important;
        top: 6px !important;
        right: 6px !important;
    }
    .product-wishlist svg {
        width: 13px !important;
        height: 13px !important;
    }
    .product-compare {
        width: 26px !important;
        height: 26px !important;
        top: 6px !important;
        right: 36px !important;
    }
    .product-compare svg {
        width: 12px !important;
        height: 12px !important;
    }
    .image-note {
        bottom: 6px !important;
        left: 6px !important;
        font-size: 0.5rem !important;
        padding: 2px 5px !important;
        border-radius: 4px;
    }
    .product-info {
        padding: 8px 8px 10px !important;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .product-category {
        font-size: 0.6rem !important;
        line-height: 1.2;
        letter-spacing: 0.02em;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-name {
        font-size: 0.78rem !important;
        font-weight: 600;
        line-height: 1.25 !important;
        margin-top: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.5em;
    }
    .product-desc {
        display: none !important;
    }
    .product-rating {
        margin-top: 3px !important;
        gap: 2px !important;
        font-size: 0.62rem !important;
    }
    .stars {
        font-size: 0.6rem !important;
        letter-spacing: 0 !important;
    }
    .rating-value {
        font-size: 0.62rem !important;
    }
    .review-count {
        font-size: 0.58rem !important;
    }
    .product-footer {
        margin-top: auto !important;
        padding-top: 6px !important;
        gap: 4px !important;
        border-top: 1px solid var(--color-border-light);
        align-items: flex-end;
    }
    .product-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        min-width: 0;
        flex: 1;
    }
    .current-price {
        font-size: 0.88rem !important;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
    }
    .original-price {
        font-size: 0.68rem !important;
        line-height: 1.1;
        white-space: nowrap;
    }
    .btn-add-cart {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0;
    }
    .btn-add-cart svg {
        width: 15px !important;
        height: 15px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-banner-track,
    .promo-banner-link,
    .promo-banner-dot,
    .promo-banner-arrow,
    .promo-banner-art img,
    .promo-banner-sun,
    .promo-banner-stars {
        animation: none;
        transition: none;
    }
}

/* Polished storefront finish */
:root {
    --color-text: #30252a;
    --color-text-muted: #74666c;
    --color-border: #eadde1;
    --color-border-light: #f3eaed;
    --shadow-card: 0 8px 26px rgba(76, 34, 49, 0.07);
}

::selection {
    background: #f8cbd7;
    color: #62223a;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #c94369;
    outline-offset: 3px;
}

.header {
    box-shadow: 0 5px 22px rgba(76, 34, 49, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-card {
    overflow: hidden;
    border: 1px solid rgba(134, 43, 73, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 67, 105, 0.24);
    box-shadow: 0 16px 36px rgba(76, 34, 49, 0.13);
}

.product-image img {
    transition: transform 350ms ease;
}

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

.btn-add-cart,
.header-actions button,
.icon-btn {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-add-cart:hover,
.header-actions button:hover,
.icon-btn:hover {
    transform: translateY(-2px);
}

.promotion-banner,
.promo-banner {
    box-shadow: 0 20px 50px rgba(91, 36, 57, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-image img,
    .btn-add-cart,
    .header-actions button,
    .icon-btn {
        transition: none;
    }
}
/* Cana playful refresh: editorial desktop, app-like mobile */
:root {
    --color-primary: #d9577c;
    --color-primary-hover: #c94369;
    --color-primary-light: #fff0e9;
    --color-text: #263c35;
    --color-text-muted: #6e7b72;
    --color-bg: #fffdf8;
    --color-bg-alt: #f5f6eb;
    --color-border: #e6e9dc;
    --color-pink-500: #d9577c;
    --color-pink-600: #c94369;
    --color-pink-50: #fff0e9;
    --shadow-md: 0 12px 32px rgba(38,60,53,.09);
    --shadow-lg: 0 20px 48px rgba(38,60,53,.13);
}

body {
    background:
      radial-gradient(ellipse at 4% 23%, rgba(255,217,143,.20), transparent 24rem),
      radial-gradient(ellipse at 92% 48%, rgba(179,221,191,.22), transparent 26rem),
      var(--color-bg);
}

.top-bar {
    background: linear-gradient(90deg, #e83e8c, #d81b60);
    box-shadow: 0 4px 14px rgba(216, 27, 96, 0.2);
}
.header {
    background: rgba(255,253,248,.94);
    border-bottom: 1px solid rgba(38,60,53,.08);
    backdrop-filter: blur(16px);
}
.logo img { transition: transform .3s ease; }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-link { font-weight: 700; }
.nav-link.active, .nav-link:hover { color: #d9577c; }

.bg-blobs .blob { filter: blur(72px); opacity: .25; }
.blob-1 { background: radial-gradient(circle, #ffd394, transparent 70%); }
.blob-2 { background: radial-gradient(circle, #efa2b7, transparent 70%); }
.blob-3 { background: radial-gradient(circle, #e87898, transparent 70%); }

.product-card, .product-item, .category-card, .game-card {
    border: 1px solid rgba(38,60,53,.08);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(38,60,53,.06);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.product-card:hover, .product-item:hover, .category-card:hover, .game-card:hover {
    transform: translateY(-7px) rotate(-.35deg);
    box-shadow: 0 18px 36px rgba(38,60,53,.13);
}
button, .btn, .button { transition: transform .2s ease, filter .2s ease; }
button:hover, .btn:hover, .button:hover { filter: saturate(1.12); }
button:active, .btn:active, .button:active { transform: scale(.97); }

@media (min-width: 900px) {
    .container { --container-padding: 32px; }
    .promotion-banner-section { padding: 24px 32px 12px; }
    .promotion-banner { max-width: 1380px; }
    .header-content { min-height: 82px; }
    main > section { padding-top: clamp(36px, 5vw, 76px); padding-bottom: clamp(36px, 5vw, 76px); }
}

@media (max-width: 767px) {
    :root { --container-padding: 16px; --header-height: 62px; }
    body {
        background:
          radial-gradient(ellipse at 100% 22%, rgba(255,217,143,.2), transparent 16rem),
          #fffdf8;
    }
    .top-bar {
        padding: 7px 0;
        background: linear-gradient(90deg, #e83e8c, #d81b60);
        font-size: 10px;
    }
    .top-bar-badge {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .top-bar-content { justify-content: center; }
    .top-bar-left { display: none; }
    .top-bar-right { width: 100%; justify-content: center; }
    .top-bar-ship { font-size: 10px; }
    .header {
        top: 28px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 7px 22px rgba(38,60,53,.08);
    }
    .header-content { min-height: 62px; gap: 8px; }
    .promotion-banner-section { padding: 14px 12px 0; }
    .promotion-banner { border-radius: 20px; box-shadow: 0 14px 32px rgba(66,75,44,.15); }
    .promotion-banner-controls { bottom: 8px; }
    .promotion-banner-arrow { width: 34px; height: 34px; }
    .bg-blobs { opacity: .45; }
    .blob { filter: blur(55px); }
    .product-card, .product-item, .category-card, .game-card {
        border-radius: 17px;
        box-shadow: 0 5px 16px rgba(38,60,53,.07);
    }
    .product-card:hover, .product-item:hover, .category-card:hover, .game-card:hover {
        transform: translateY(-3px);
    }
    .social-float-mobile { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .promotion-banner-slide img, .logo img { transition: none; }
}

/* Hero slogan requested pink */
.hero-title,
.hero-title .highlight {
    color: #e84f91;
}

/* Keep category chips directly below the fixed header while scrolling. */
.category-tabs {
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-sticky);
    margin-bottom: 0;
    display: block;
}

.top-chrome-hidden .category-tabs {
    top: var(--header-height);
}

.tabs-wrapper {
    align-items: center;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (max-width: 767px) {
    .category-tabs { top: calc(var(--header-height) + 28px); }
    .category-tabs > .container { padding-inline: 0; }
    .tabs-wrapper { padding-inline: 16px; }

    /* Keep both social docks off phones; they can overlap the mobile layout. */
    #socialFloatDesktop { display: none !important; }
    #socialFloatMobile {
        display: none !important;
    }
    .mobile-menu-btn .hamburger,
    .mobile-menu-btn .hamburger::before,
    .mobile-menu-btn .hamburger::after { background: #fff; }

    /* Keep the first section below both fixed rows in mobile webviews. */
    .top-bar {
        height: var(--top-bar-height);
        min-height: var(--top-bar-height);
        padding-block: 0;
        display: flex;
        align-items: center;
    }
    .header {
        top: var(--top-bar-height);
        height: var(--header-height);
        padding-top: 0;
        background: rgba(255, 253, 248, .98);
    }
    .header.top-bar--hidden { top: 0; }
    .promo-banner-section {
        padding-top: calc(var(--top-bar-height) + var(--header-height) + 24px);
    }
}

/* Align the fixed top bar and header as separate rows. */
:root {
    --top-bar-height: 36px;
}

.top-bar {
    z-index: 410;
}

.header {
    top: var(--top-bar-height);
    height: var(--header-height);
    z-index: 400;
}

.header.top-bar--hidden {
    top: 0;
}

.header-content {
    min-height: 0;
    height: 100%;
}

.logo {
    background: #d9577c;
    border-radius: 10px;
}

.nav-link {
    color: #263c35;
}

.nav-link:hover,
.nav-link.active {
    color: #c94369;
    background: #fff0e9;
}

.header-actions .icon-btn {
    color: #263c35;
}

.header-actions .icon-btn:hover {
    color: #c94369;
    background: #fff0e9;
}

.promo-banner-section {
    padding-top: calc(var(--top-bar-height) + var(--header-height) + 24px);
}

/* Mobile social links stay hidden; desktop links use a compact left-side rail. */
#socialFloatMobile {
    display: none !important;
}

@media (min-width: 1200px) {
    #socialFloatDesktop {
        display: flex !important;
        position: fixed !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        left: 8px !important;
        z-index: 350 !important;
        width: 50px;
        padding: 6px;
        transform: translateY(-50%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: column;
        border: 1px solid rgba(232, 62, 140, 0.24);
        border-radius: 26px;
        background: rgba(255, 245, 250, 0.96);
        box-shadow: 0 10px 28px rgba(216, 27, 96, 0.18);
        backdrop-filter: blur(12px);
    }

    #socialFloatDesktop .social-float-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    #socialFloatDesktop .social-float-link {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 0;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #e83e8c;
        color: #fff;
    }
    #socialFloatDesktop .social-float-tiktok .social-float-icon-wrap {
        background: #e83e8c;
    }
    #socialFloatDesktop .social-float-tiktok .tiktok-icon {
        color: #fff;
        filter: none;
    }

    #socialFloatDesktop .social-float-icon,
    #socialFloatDesktop .social-float-icon-wrap,
    #socialFloatDesktop .social-float-icon-wrap svg {
        width: 22px;
        height: 22px;
    }
}

/* The newer in-page promo carousel replaces the legacy banner carousel. */
.promotion-banner-section {
    display: none !important;
}

.payment-methods {
    margin: 0 0 30px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
}

.payment-methods h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: .95rem;
}

.payment-method-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}

.payment-method-card {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: #fff;
    color: #52605a;
    font-size: .68rem;
    line-height: 1.25;
    transition: transform .2s ease, box-shadow .2s ease;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.payment-method-card strong { color: #862b49; font-size: .8rem; }
.payment-method-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: #fff0e9;
    color: #c94369;
    font-size: 1.15rem;
    font-weight: 800;
}
.payment-brand {
    color: #0756a5;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: -.03em;
}
.payment-momo .payment-brand { color: #a50082; }
.payment-zalopay .payment-brand { color: #0877d1; }
.payment-card .payment-brand { color: #203b76; }

@media (max-width: 480px) {
    .payment-methods { margin-bottom: 22px; padding: 18px 14px; }
    .payment-method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .payment-method-card { min-height: 54px; padding: 7px 9px; }
}

@media (min-width: 768px) {
    .header { top: var(--top-bar-height); }
    .header.top-bar--hidden { top: 0; }
}

@media (max-width: 767px) {
    :root { --top-bar-height: 28px; }
    .header { top: var(--top-bar-height); }
    .header.top-bar--hidden { top: 0; }
    .promo-banner-section {
        padding-top: calc(var(--top-bar-height) + var(--header-height) + 18px);
    }
}

@media (max-width: 480px) {
    .promo-banner-section {
        padding-top: calc(var(--top-bar-height) + var(--header-height) + 20px);
    }
}

.tab-btn {
    line-height: 1.35;
}

/* Product CTAs go to the official Shopee shop, not the simulated local cart. */
#cartBtn,
#cartSidebar {
    display: none !important;
}

.btn-add-cart {
    width: auto !important;
    min-width: 76px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.shopee-button-label {
    line-height: 1;
}

.qv-shopee-note {
    margin: 14px 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.qv-shopee-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.shopee-checkout-note {
    margin: 8px 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.85rem;
    line-height: 1.55;
}

.shopee-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .btn-add-cart {
        min-width: 68px;
        height: 32px;
        padding: 0 7px;
        font-size: 0.68rem;
    }
}

/* Keep the mobile header readable in both scroll directions. */
.header,
.header.scrolled,
.header.top-bar--hidden,
.header.scrolled.top-bar--hidden {
    background: #fff !important;
    color: #34272c !important;
    opacity: 1 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header .logo {
    background: var(--color-pink-500) !important;
}

.header .nav-link,
.header .header-actions .icon-btn {
    color: #34272c !important;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .header-actions .icon-btn:hover {
    color: var(--color-pink-700) !important;
    background: var(--color-pink-50) !important;
}

.header .mobile-menu-btn .hamburger,
.header .mobile-menu-btn .hamburger::before,
.header .mobile-menu-btn .hamburger::after {
    background: #34272c !important;
}
