/* Legacy Vision storefront brand layer.
   Keeps the shopping experience on the same black, gold and cream system as the landing page. */

:root {
    color-scheme: dark;
    --font-heading: 'Noto Sans Khmer', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Noto Sans Khmer', 'Inter', sans-serif;
    --color-bg: #050505;
    --color-white: #0d0c0a;
    --color-surface: #12100c;
    --color-border: rgba(229, 186, 77, 0.34);
    --color-border-light: rgba(229, 186, 77, 0.18);
    --color-text: #fff8e8;
    --color-text-secondary: #cdbf9e;
    --color-text-muted: #9c9075;
    --color-primary: #d5a735;
    --color-primary-hover: #f4d37b;
    --color-primary-light: rgba(213, 167, 53, 0.14);
    --color-primary-dark: #8f6717;
    --color-accent: #d5a735;
    --color-success: #d5a735;
    --color-success-light: rgba(213, 167, 53, 0.14);
    --color-warning: #f4d37b;
    --color-warning-light: rgba(244, 211, 123, 0.14);
    --color-error-light: rgba(220, 38, 38, 0.16);
    --gradient-primary: linear-gradient(135deg, #f4d37b 0%, #d5a735 55%, #a87819 100%);
    --gradient-warm: linear-gradient(135deg, #f4d37b 0%, #d5a735 100%);
    --gradient-hero: linear-gradient(120deg, #050505 0%, #12100c 56%, #2a1c06 100%);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.38);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.46);
    --header-height: 64px;
}

html,
body {
    background: #050505;
}

body {
    color: var(--color-text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 8%, rgba(213, 167, 53, 0.09), transparent 24rem),
        linear-gradient(#050505, #050505);
}

::selection {
    color: #050505;
    background: #f4d37b;
}

.header {
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.96);
    border-bottom-color: rgba(229, 186, 77, 0.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    gap: clamp(0.65rem, 1.4vw, 1.25rem);
}

.logo.legacy-shop-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.55rem;
    min-width: max-content;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.legacy-shop-brand img {
    width: 40px;
    height: 40px;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(213, 167, 53, 0.18));
}

.legacy-shop-brand > span {
    display: grid;
    line-height: 1;
}

.legacy-shop-brand strong {
    color: #f4d37b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.legacy-shop-brand small {
    margin-top: 0.3rem;
    color: #fff8e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.34em;
}

.nav-links {
    gap: 0;
}

.nav-link {
    position: relative;
    color: #d8ccb0;
    border-radius: 0;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #f4d37b;
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 0.7rem;
    bottom: -0.72rem;
    left: 0.7rem;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(213, 167, 53, 0.45);
}

.search-input,
.search-input-lg,
.form-input,
.promo-input input {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--color-border);
}

.search-input::placeholder,
.search-input-lg::placeholder,
.form-input::placeholder {
    color: #887e69;
}

.search-input:focus,
.search-input-lg:focus,
.form-input:focus,
.promo-input input:focus {
    color: var(--color-text);
    background: #0d0c0a;
    border-color: #d5a735;
    box-shadow: 0 0 0 3px rgba(213, 167, 53, 0.13);
    outline: none;
}

.header-btn {
    color: #cdbf9e;
    border: 1px solid transparent;
}

.header-btn:hover,
.header-btn.active {
    color: #f4d37b;
    background: rgba(213, 167, 53, 0.1);
    border-color: rgba(213, 167, 53, 0.3);
}

.badge-count,
.cart-count {
    color: #050505;
    background: #f4d37b;
}

.global-search-dropdown,
.search-dropdown,
.sort-menu,
.user-dropdown,
.notif-dropdown,
.toast {
    color: var(--color-text);
    background: #0d0c0a;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.search-result-item:hover,
.search-result-item.active,
.search-suggestion:hover,
.search-suggestion.active,
.sort-option:hover,
.user-dropdown-item:hover {
    color: #fff8e8;
    background: rgba(213, 167, 53, 0.1);
}

.section {
    background: transparent;
}

.shop-page-hero,
.legacy-page-hero,
body .campaign-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff8e8;
    background-color: #050505;
    background-image:
        linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, 0.98) 34%, rgba(3, 3, 3, 0.78) 57%, rgba(3, 3, 3, 0.16) 100%),
        url('/static/images/legacy-home/hero-landing.jpg');
    background-repeat: no-repeat;
    background-position: center, right bottom;
    background-size: 100% 100%, auto 100%;
    border-bottom: 1px solid rgba(229, 186, 77, 0.26);
}

.shop-page-hero::before,
.legacy-page-hero::before,
body .campaign-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        linear-gradient(30deg, transparent 46%, rgba(229, 186, 77, 0.1) 47%, rgba(229, 186, 77, 0.1) 48%, transparent 49%),
        linear-gradient(-30deg, transparent 46%, rgba(229, 186, 77, 0.07) 47%, rgba(229, 186, 77, 0.07) 48%, transparent 49%);
    background-size: 64px 112px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 58%);
    mask-image: linear-gradient(90deg, #000, transparent 58%);
}

.shop-page-hero::after,
.legacy-page-hero::after,
body .campaign-hero::after {
    content: none;
}

.shop-page-hero-inner {
    min-height: 430px;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.legacy-hero-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
}

.legacy-hero-copy {
    max-width: 720px;
}

.shop-page-kicker,
.campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #f4d37b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.shop-page-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: #d5a735;
    box-shadow: 0 0 12px rgba(229, 186, 77, 0.68);
}

.shop-page-hero h1,
.legacy-page-hero h1,
body .campaign-hero-title {
    max-width: 700px;
    margin: 1.35rem 0 0.85rem;
    color: #f4d37b;
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 4.8vw, 4.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.legacy-slogan-stage {
    max-width: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

.legacy-slogan-stage .legacy-slogan {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(120px, 0, 0);
    transition:
        opacity 0.55s ease,
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.legacy-slogan-stage .legacy-slogan.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.legacy-slogan-stage .legacy-slogan.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translate3d(-52px, 0, 0);
    transition-duration: 0.32s, 0.42s;
}

.shop-page-hero h1 small,
.legacy-page-hero h1 small {
    display: block;
    margin-top: 0.32rem;
    color: #fff8e8;
    font-size: 0.55em;
    font-weight: 600;
}

.shop-page-hero p,
.legacy-page-hero p,
body .campaign-hero-subtitle {
    max-width: 620px;
    color: #ded2b7;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.legacy-page-hero {
    min-height: 430px;
    padding: 3.25rem 0;
    display: flex;
    align-items: center;
    text-align: left;
}

body .campaign-hero {
    min-height: 430px;
    padding: 3.25rem 0;
    display: flex;
    align-items: center;
    text-align: left;
}

body .campaign-badge {
    color: #f4d37b;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

body .campaign-badge svg {
    width: 16px;
    height: 16px;
}

body .campaign-hero-content {
    max-width: 720px;
    margin: 0;
    text-align: left;
}

.legacy-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    margin-top: 1.35rem;
    padding: 0.56rem 0.85rem;
    color: #ead79d;
    background: rgba(229, 186, 77, 0.08);
    border: 1px solid rgba(229, 186, 77, 0.28);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legacy-hero-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5ba4d;
    box-shadow: 0 0 10px #e5ba4d;
}

.legacy-hero-index {
    position: absolute;
    right: 0;
    bottom: 1.75rem;
    color: rgba(255, 248, 232, 0.44);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legacy-hero-highlights {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    background: #030303;
}

.legacy-hero-highlight-grid {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 1px solid rgba(229, 186, 77, 0.24);
    border-bottom: 1px solid rgba(229, 186, 77, 0.24);
    border-left: 1px solid rgba(229, 186, 77, 0.24);
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.legacy-hero-highlight-grid > div {
    min-height: 164px;
    padding: 1.4rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    background: linear-gradient(180deg, #0c0b09, #070706);
}

.legacy-hero-highlight-grid > div + div {
    border-left: 1px solid rgba(229, 186, 77, 0.2);
}

.legacy-hero-highlight-grid .legacy-highlight-icon {
    width: 58px;
    height: 58px;
    min-height: 58px;
    display: grid;
    place-items: center;
    color: #f4d37b;
    background:
        radial-gradient(circle at 50% 30%, rgba(244, 211, 123, 0.2), transparent 66%),
        linear-gradient(180deg, rgba(229, 186, 77, 0.1), rgba(229, 186, 77, 0.035));
    border: 1px solid rgba(229, 186, 77, 0.42);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 248, 232, 0.025),
        0 10px 28px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(213, 167, 53, 0.08);
    font-size: 1.9rem;
    line-height: 1;
}

.legacy-hero-highlight-grid .legacy-highlight-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    stroke-width: 1.8;
}

.legacy-hero-highlight-grid strong {
    color: #f0d57e;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
}

.legacy-hero-highlight-grid small {
    color: #91866e;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.72rem;
    line-height: 1.55;
}

.shop-listing-section {
    padding-top: 2rem;
}

.search-input-wrap,
.filter-bar {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.search-input-wrap {
    border-radius: var(--radius-lg);
}

.search-input-wrap .search-input-lg {
    border-color: transparent;
}

.filter-bar {
    background: linear-gradient(180deg, rgba(20, 18, 14, 0.98), rgba(11, 10, 8, 0.98));
}

.filter-chips {
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip,
.sort-btn,
.category-pill {
    color: #cdbf9e;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(229, 186, 77, 0.14);
}

.filter-chip:hover,
.sort-btn:hover,
.category-pill:hover {
    color: #f4d37b;
    background: rgba(213, 167, 53, 0.1);
    border-color: rgba(229, 186, 77, 0.34);
}

.filter-chip.active,
.category-pill.active {
    color: #050505;
    background: var(--gradient-primary);
    border-color: #d5a735;
}

.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.product-card,
body .campaign-card,
.how-it-works-step,
.cart-items,
.cart-summary {
    color: var(--color-text);
    background: linear-gradient(180deg, #12100c 0%, #0b0a08 100%);
    border: 1px solid rgba(229, 186, 77, 0.26);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.product-card:hover,
body .campaign-card:hover {
    border-color: rgba(244, 211, 123, 0.66);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(213, 167, 53, 0.08);
}

.product-img-wrap,
.product-card-image,
body .campaign-card-image {
    background: #17140e;
    border-bottom: 1px solid rgba(229, 186, 77, 0.2);
}

.product-info {
    color: var(--color-text);
}

.product-brand,
.campaign-card-desc,
.section-subtitle {
    color: var(--color-text-secondary);
}

.product-name,
.campaign-card-title,
.section-title,
.how-it-works-step h3 {
    color: #fff8e8;
}

.price-now,
.stat-value.prize,
.section-link,
.campaign-countdown,
.stars {
    color: #f4d37b;
}

.quick-btn {
    color: #f4d37b;
    background: rgba(5, 5, 5, 0.88);
    border: 1px solid rgba(229, 186, 77, 0.32);
}

.quick-btn:hover {
    color: #050505;
    background: #f4d37b;
}

.add-cart-overlay,
.btn-primary,
.step-number {
    color: #080704;
    background: var(--gradient-primary);
}

.btn-primary:hover {
    color: #050505;
    box-shadow: 0 9px 22px rgba(213, 167, 53, 0.22);
}

.btn-secondary {
    color: #f4d37b;
    background: rgba(213, 167, 53, 0.08);
    border-color: rgba(229, 186, 77, 0.34);
}

.badge-new,
.campaign-status-badge.active,
.campaign-status-badge.ending {
    color: #080704;
    background: #f4d37b;
}

.badge-hot {
    color: #080704;
    background: #d5a735;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.07);
}

.progress-fill {
    background: var(--gradient-primary);
}

.campaign-card-footer,
.search-dropdown-section {
    border-color: var(--color-border-light);
}

.how-it-works-step {
    position: relative;
    overflow: hidden;
}

.how-it-works-step::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20%;
    left: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d5a735, transparent);
}

.legacy-deals-hero + .section {
    min-height: 350px;
}

.footer {
    color: #fff8e8;
    background: #080705;
    border-top: 1px solid rgba(229, 186, 77, 0.25);
}

.footer .legacy-shop-brand {
    margin-bottom: 0.9rem;
}

.footer-text,
.footer-link,
.footer-bottom {
    color: #cdbf9e;
    opacity: 1;
}

.footer-title,
.app-download-title {
    color: #f4d37b;
}

.footer-link:hover {
    color: #f4d37b;
}

.footer-bottom {
    border-top-color: rgba(229, 186, 77, 0.2);
}

.app-store-btn {
    border: 1px solid rgba(229, 186, 77, 0.26);
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .search-box {
        max-width: none;
    }

    .shop-page-hero-inner,
    .legacy-page-hero,
    body .campaign-hero {
        min-height: 390px;
    }

    .legacy-hero-highlight-grid > div {
        min-height: 148px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 108px;
    }

    .header {
        height: auto;
        min-height: var(--header-height);
    }

    .header-inner {
        height: auto;
        min-height: var(--header-height);
        padding: 0.55rem 0.8rem 0.7rem;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        gap: 0.45rem;
    }

    .legacy-shop-brand {
        order: 1;
    }

    .legacy-shop-brand img {
        width: 34px;
        height: 34px;
    }

    .legacy-shop-brand strong {
        font-size: 0.76rem;
    }

    .legacy-shop-brand small {
        font-size: 0.42rem;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-btn {
        width: 32px;
        height: 32px;
    }

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

    .search-input {
        min-height: 34px;
    }

    .shop-page-hero-inner {
        min-height: 360px;
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }

    .shop-page-hero,
    .legacy-page-hero,
    body .campaign-hero {
        background-image:
            linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, 0.96) 42%, rgba(3, 3, 3, 0.74) 68%, rgba(3, 3, 3, 0.2) 100%),
            url('/static/images/legacy-home/hero-landing.jpg');
    }

    .legacy-hero-copy,
    body .campaign-hero-content {
        max-width: 76%;
    }

    .shop-page-kicker,
    .campaign-badge {
        gap: 0.48rem;
        font-size: 0.59rem;
        letter-spacing: 0.11em;
    }

    .shop-page-kicker::before {
        width: 22px;
    }

    .shop-page-hero h1,
    .legacy-page-hero h1,
    body .campaign-hero-title {
        margin-top: 1rem;
        font-size: 2.15rem;
        line-height: 1.3;
    }

    .legacy-slogan-stage .legacy-slogan {
        transform: translate3d(42px, 0, 0);
    }

    .legacy-slogan-stage .legacy-slogan.is-active {
        transform: translate3d(0, 0, 0);
    }

    .legacy-slogan-stage .legacy-slogan.is-leaving {
        transform: translate3d(-24px, 0, 0);
    }

    .shop-page-hero p,
    .legacy-page-hero p,
    body .campaign-hero-subtitle {
        font-size: 0.82rem;
    }

    body .campaign-hero,
    .legacy-page-hero {
        min-height: 360px;
        padding: 2.2rem 0;
    }

    .legacy-hero-chip {
        margin-top: 1rem;
        padding: 0.48rem 0.65rem;
        font-size: 0.55rem;
    }

    .legacy-hero-index {
        display: none;
    }

    .legacy-hero-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legacy-hero-highlight-grid > div {
        min-height: 132px;
        padding: 1rem 0.55rem;
    }

    .legacy-hero-highlight-grid > div:nth-child(odd) {
        border-left: 0;
    }

    .legacy-hero-highlight-grid > div:nth-child(n + 3) {
        border-top: 1px solid rgba(229, 186, 77, 0.2);
    }

    .legacy-hero-highlight-grid .legacy-highlight-icon {
        width: 50px;
        height: 50px;
        min-height: 50px;
        border-radius: 15px;
        font-size: 1.55rem;
    }

    .legacy-hero-highlight-grid .legacy-highlight-icon svg {
        width: 27px;
        height: 27px;
    }

    .legacy-hero-highlight-grid strong {
        font-size: 0.76rem;
    }

    .legacy-hero-highlight-grid small {
        font-size: 0.61rem;
    }

    .section {
        padding: 2rem 0;
    }

    .filter-bar {
        padding: 0.7rem;
    }

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

@media (max-width: 390px) {
    .header-inner {
        padding-right: 0.65rem;
        padding-left: 0.65rem;
    }

    .legacy-hero-copy,
    body .campaign-hero-content {
        max-width: 79%;
    }

    .shop-page-hero h1,
    .legacy-page-hero h1,
    body .campaign-hero-title {
        font-size: 1.9rem;
    }

    .shop-page-hero p,
    .legacy-page-hero p,
    body .campaign-hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.7;
    }

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

@media (max-width: 350px) {
    .notif-bell-wrap {
        display: none;
    }
}

/* One consistent navigation row across the landing page and every storefront page.
   Store utilities remain available without repeating Shop/Campaign links. */
:root {
    --header-height: 76px;
}

.header.legacy-unified-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) minmax(210px, 280px) max-content max-content;
    align-items: center;
    column-gap: clamp(10px, 1.15vw, 18px);
    width: 100%;
    height: auto;
    min-height: var(--header-height);
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: max(20px, calc((100% - 1320px) / 2), env(safe-area-inset-right, 0px));
    padding-left: max(20px, calc((100% - 1320px) / 2), env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(229, 186, 77, 0.24);
    background: rgba(3, 3, 3, 0.98);
}

.legacy-primary-row,
.legacy-header-utilities,
.legacy-unified-header .legacy-primary-inner,
.legacy-unified-header .legacy-utility-inner {
    display: contents;
}

.legacy-unified-header .legacy-shop-brand {
    grid-column: 1;
    grid-row: 1;
}

.legacy-unified-header .legacy-shop-brand img {
    width: 42px;
    height: 46px;
}

.legacy-unified-header .legacy-shop-brand strong {
    font-size: 1.02rem;
    letter-spacing: 0.14em;
}

.legacy-unified-header .legacy-shop-brand small {
    margin-top: 0.32rem;
    font-size: 0.55rem;
    letter-spacing: 0.32em;
}

.legacy-site-nav {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex: 1 1 auto;
    min-height: var(--header-height);
    align-items: stretch;
    justify-content: center;
    gap: clamp(10px, 1.1vw, 18px);
    white-space: nowrap;
}

.legacy-site-link {
    position: relative;
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: #eee2c7;
    font-size: clamp(0.78rem, 0.82vw, 0.91rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.legacy-site-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #d5a735;
    content: '';
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
}

.legacy-site-link:hover,
.legacy-site-link.active {
    color: #f4d37b;
}

.legacy-site-link:hover::after,
.legacy-site-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.legacy-primary-actions {
    display: flex;
    grid-column: 5;
    grid-row: 1;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.legacy-app-button {
    display: inline-flex;
    min-width: 134px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border-radius: 10px;
    color: #100d07;
    background: linear-gradient(135deg, #f1cd6d, #c88d20);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.legacy-app-button:hover {
    color: #100d07;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(213, 167, 53, 0.2);
}

.legacy-language {
    display: inline-flex;
    align-items: center;
    color: #eee2c7;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.legacy-menu-button,
.legacy-mobile-menu {
    display: none;
}

.legacy-unified-header .legacy-utility-inner .search-box {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
}

.legacy-unified-header .legacy-utility-inner .header-actions {
    grid-column: 4;
    grid-row: 1;
    flex: 0 0 auto;
}

.legacy-menu-button {
    width: 46px;
    height: 44px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(229, 186, 77, 0.28);
    border-radius: 10px;
    background: #11100d;
}

.legacy-menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #f4d37b;
}

.legacy-menu-button:focus-visible,
.legacy-site-link:focus-visible,
.legacy-mobile-link:focus-visible,
.legacy-app-button:focus-visible {
    outline: 2px solid #f4d37b;
    outline-offset: 3px;
}

@media (max-width: 1320px) {
    .header.legacy-unified-header {
        grid-template-columns: max-content minmax(200px, 1fr) max-content max-content;
    }

    .legacy-site-nav,
    .legacy-language {
        display: none;
    }

    .legacy-menu-button {
        display: inline-flex;
    }

    .legacy-primary-actions {
        grid-column: 4;
        margin-left: auto;
    }

    .legacy-unified-header .legacy-utility-inner .search-box {
        grid-column: 2;
    }

    .legacy-unified-header .legacy-utility-inner .header-actions {
        grid-column: 3;
    }

    .legacy-mobile-menu {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
        margin-right: -20px;
        margin-left: -20px;
        padding: 1px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
        background: rgba(3, 3, 3, 0.99);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    }

    .legacy-mobile-link {
        display: flex;
        min-height: 48px;
        align-items: center;
        padding: 11px 14px;
        border-bottom: 1px solid rgba(229, 186, 77, 0.16);
        color: #f5e5bd;
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.45;
        text-decoration: none;
    }

    .legacy-mobile-link:hover,
    .legacy-mobile-link.active {
        color: #f4d37b;
        background: rgba(213, 167, 53, 0.1);
    }

    .legacy-mobile-utility {
        color: #cdbf9e;
    }

    .legacy-mobile-app {
        color: #100d07;
        background: linear-gradient(135deg, #f1cd6d, #c88d20);
    }

}

@media (max-width: 900px) {
    .header.legacy-unified-header {
        grid-template-columns: max-content 1fr max-content;
    }

    .legacy-unified-header .legacy-utility-inner .search-box,
    .legacy-unified-header .legacy-utility-inner .header-actions {
        display: none;
    }

    .legacy-primary-actions {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 68px;
    }

    .header.legacy-unified-header {
        column-gap: 8px;
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        padding-left: max(12px, env(safe-area-inset-left, 0px));
    }

    .legacy-unified-header .legacy-primary-inner .legacy-shop-brand {
        order: initial;
        gap: 0.42rem;
    }

    .legacy-unified-header .legacy-shop-brand img {
        width: 34px;
        height: 37px;
    }

    .legacy-unified-header .legacy-shop-brand strong {
        font-size: 0.78rem;
    }

    .legacy-unified-header .legacy-shop-brand small {
        margin-top: 0.24rem;
        font-size: 0.4rem;
    }

    .legacy-primary-actions {
        margin-left: auto;
        gap: 7px;
    }

    .legacy-app-button {
        min-width: 0;
        min-height: 40px;
        padding: 8px 11px;
        border-radius: 9px;
        font-size: 0.7rem;
    }

    .legacy-menu-button {
        width: 42px;
        height: 40px;
    }

    .legacy-mobile-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-right: -12px;
        margin-left: -12px;
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        padding-bottom: 14px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
    }

    .legacy-mobile-link {
        min-height: 46px;
        padding: 10px 11px;
        font-size: 0.76rem;
    }

}

@media (max-width: 350px) {
    .legacy-app-button {
        max-width: 86px;
        padding-inline: 8px;
        font-size: 0.64rem;
    }

    .legacy-unified-header .legacy-shop-brand > span {
        display: none;
    }
}

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

/* Dedicated About, How-to-buy and Contact pages. */
.legacy-info-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 500px;
    color: #fff8e8;
    background:
        radial-gradient(circle at 78% 34%, rgba(229, 186, 77, 0.22), transparent 24rem),
        linear-gradient(115deg, #030303 0%, #090806 58%, #241803 100%);
    border-bottom: 1px solid rgba(229, 186, 77, 0.28);
}

.legacy-info-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, transparent 46%, rgba(229, 186, 77, 0.1) 47%, rgba(229, 186, 77, 0.1) 48%, transparent 49%),
        linear-gradient(-30deg, transparent 46%, rgba(229, 186, 77, 0.07) 47%, rgba(229, 186, 77, 0.07) 48%, transparent 49%);
    background-size: 64px 112px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 76%);
    mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.legacy-info-hero-inner {
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.legacy-info-hero-copy {
    max-width: 690px;
    padding: 4rem 0;
}

.legacy-info-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #f4d37b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legacy-info-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #d5a735;
    box-shadow: 0 0 12px rgba(229, 186, 77, 0.62);
}

.legacy-info-hero h1 {
    margin: 1.2rem 0 1rem;
    color: #f4d37b;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.legacy-info-hero p {
    max-width: 650px;
    color: #ded2b7;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
}

.legacy-info-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.legacy-info-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.legacy-info-actions .btn svg,
.legacy-help-band .btn svg {
    width: 18px;
    height: 18px;
}

.legacy-info-portrait {
    position: relative;
    align-self: end;
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.legacy-info-portrait::after {
    content: '';
    position: absolute;
    right: 6%;
    bottom: 0;
    left: 6%;
    height: 42%;
    z-index: -1;
    background: radial-gradient(ellipse, rgba(213, 167, 53, 0.26), transparent 68%);
    filter: blur(12px);
}

.legacy-info-orbit {
    position: absolute;
    width: 390px;
    height: 390px;
    top: 38px;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    border: 1px solid rgba(244, 211, 123, 0.52);
    border-radius: 50%;
    box-shadow: 0 0 46px rgba(213, 167, 53, 0.2), inset 0 0 34px rgba(213, 167, 53, 0.1);
}

.legacy-info-portrait img {
    width: auto;
    height: 450px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.48));
}

.legacy-info-portrait-label {
    position: absolute;
    right: 0;
    bottom: 1.35rem;
    width: min(275px, 78%);
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.2rem;
    color: #fff8e8;
    background: rgba(5, 5, 5, 0.88);
    border: 1px solid rgba(229, 186, 77, 0.38);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.legacy-info-portrait-label strong {
    color: #f4d37b;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.86rem;
}

.legacy-info-portrait-label span {
    color: #b9ac8e;
    font-size: 0.65rem;
    line-height: 1.5;
}

.legacy-info-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: #050505;
}

.legacy-info-section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.legacy-info-section-heading > span {
    color: #d5a735;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legacy-info-section-heading h2,
.legacy-story-copy h2,
.legacy-help-band h2 {
    margin: 0.75rem 0;
    color: #fff8e8;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.45;
}

.legacy-info-section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.legacy-info-section-heading p,
.legacy-story-copy p {
    color: #a99d83;
    font-family: 'Noto Sans Khmer', sans-serif;
    line-height: 1.85;
}

.legacy-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.legacy-value-card,
.legacy-how-card {
    position: relative;
    overflow: hidden;
    color: #fff8e8;
    background: linear-gradient(180deg, #12100c, #090806);
    border: 1px solid rgba(229, 186, 77, 0.26);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.legacy-value-card {
    min-height: 250px;
    padding: 1.6rem;
    border-radius: 20px;
}

.legacy-value-card::before,
.legacy-how-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 18%;
    left: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d5a735, transparent);
}

.legacy-value-icon,
.legacy-how-icon {
    display: grid;
    place-items: center;
    color: #f4d37b;
    background: linear-gradient(180deg, rgba(229, 186, 77, 0.14), rgba(229, 186, 77, 0.04));
    border: 1px solid rgba(229, 186, 77, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.legacy-value-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.2rem;
    border-radius: 17px;
}

.legacy-value-icon svg,
.legacy-how-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.8;
}

.legacy-value-card h3,
.legacy-how-card h3 {
    color: #f0d57e;
    font-family: 'Noto Sans Khmer', sans-serif;
}

.legacy-value-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.legacy-value-card p,
.legacy-how-card p {
    color: #978b73;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.82rem;
    line-height: 1.75;
}

.legacy-story-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: linear-gradient(145deg, #100d08, #050505 58%);
    border-top: 1px solid rgba(229, 186, 77, 0.18);
}

.legacy-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.legacy-story-copy h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.legacy-story-copy p + p {
    margin-top: 0.9rem;
}

.legacy-story-quote {
    position: relative;
    margin: 0;
    padding: 2rem;
    background: linear-gradient(145deg, #f8e9c3, #ead19b);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
}

.legacy-story-quote > span {
    color: #a87819;
    font-family: Georgia, serif;
    font-size: 4.6rem;
    line-height: 0.65;
}

.legacy-story-quote > p {
    margin: 0.7rem 0 1.3rem;
    color: #211a0f;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.75;
}

.legacy-story-quote footer {
    display: grid;
    gap: 0.18rem;
    color: #3d3019;
}

.legacy-story-quote footer small {
    color: #796642;
}

.legacy-app-showcase {
    justify-self: end;
    width: min(390px, 100%);
    padding: 1.7rem;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(30, 24, 13, 0.96), rgba(7, 7, 6, 0.96));
    border: 1px solid rgba(229, 186, 77, 0.34);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 40px rgba(213, 167, 53, 0.08);
}

.legacy-app-logo-wrap {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    background: #050505;
    border: 1px solid rgba(229, 186, 77, 0.34);
    border-radius: 26px;
}

.legacy-app-logo-wrap img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.legacy-app-showcase > strong {
    color: #f4d37b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
}

.legacy-app-showcase > span {
    color: #a99d83;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.78rem;
}

.legacy-app-badges {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.legacy-app-badges a {
    display: block;
    border: 1px solid rgba(229, 186, 77, 0.28);
    border-radius: 7px;
    overflow: hidden;
}

.legacy-app-badges svg {
    display: block;
    height: 40px;
    width: auto;
}

.legacy-how-grid {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
}

.legacy-how-card {
    min-height: 240px;
    padding: 1.5rem;
    border-radius: 20px;
}

.legacy-how-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(244, 211, 123, 0.24);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.legacy-how-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1.15rem;
    border-radius: 16px;
}

.legacy-how-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legacy-help-band {
    padding: 2.2rem 0;
    background: linear-gradient(90deg, #1b1203, #0b0906 52%, #211603);
    border-top: 1px solid rgba(229, 186, 77, 0.28);
    border-bottom: 1px solid rgba(229, 186, 77, 0.22);
}

.legacy-help-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.legacy-help-band-inner > div > span {
    color: #d5a735;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 0.78rem;
}

.legacy-help-band h2 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.legacy-contact-hero {
    min-height: 350px;
}

.legacy-contact-hero-inner {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.legacy-contact-hero-inner > div {
    max-width: 720px;
}

.legacy-contact-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.legacy-contact-hero-icon {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f4d37b;
    background: linear-gradient(145deg, rgba(229, 186, 77, 0.16), rgba(229, 186, 77, 0.035));
    border: 1px solid rgba(229, 186, 77, 0.42);
    border-radius: 40px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4), 0 0 38px rgba(213, 167, 53, 0.12);
}

.legacy-contact-hero-icon svg {
    width: 72px;
    height: 72px;
    stroke-width: 1.35;
}

.contact-form-section .card,
.contact-info-section .card,
.info-card,
.faq-item {
    color: #fff8e8;
    background: linear-gradient(180deg, #12100c, #0b0a08);
    border: 1px solid rgba(229, 186, 77, 0.24);
}

.contact-info-item a {
    color: #cdbf9e;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: #f4d37b;
}

@media (max-width: 1024px) {
    .legacy-info-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
        gap: 1.5rem;
    }

    .legacy-info-portrait {
        min-height: 430px;
    }

    .legacy-info-portrait img {
        height: 410px;
    }

    .legacy-info-orbit {
        width: 340px;
        height: 340px;
    }

    .legacy-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .legacy-info-hero,
    .legacy-info-hero-inner {
        min-height: 0;
    }

    .legacy-info-hero-inner {
        grid-template-columns: 1fr;
    }

    .legacy-info-hero-copy {
        padding: 3rem 0 1rem;
    }

    .legacy-info-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.35rem);
    }

    .legacy-info-hero p {
        font-size: 0.86rem;
    }

    .legacy-info-portrait {
        width: min(420px, 100%);
        min-height: 370px;
        margin: 0 auto;
    }

    .legacy-info-portrait img {
        height: 360px;
    }

    .legacy-info-orbit {
        width: 300px;
        height: 300px;
        top: 32px;
    }

    .legacy-values-grid,
    .legacy-story-grid {
        grid-template-columns: 1fr;
    }

    .legacy-story-quote {
        padding: 1.6rem;
    }

    .legacy-app-showcase {
        justify-self: center;
        margin-bottom: 3rem;
    }

    .legacy-help-band-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .legacy-contact-hero-inner {
        min-height: 320px;
    }

    .legacy-contact-hero-icon {
        width: 100px;
        height: 100px;
        border-radius: 28px;
    }

    .legacy-contact-hero-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 520px) {
    .legacy-info-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .legacy-info-actions .btn {
        width: 100%;
    }

    .legacy-info-portrait-label {
        right: 50%;
        width: 86%;
        transform: translateX(50%);
    }

    .legacy-how-grid {
        grid-template-columns: 1fr;
    }

    .legacy-how-card,
    .legacy-value-card {
        min-height: 0;
    }

    .legacy-app-badges {
        flex-direction: column;
    }

    .legacy-contact-hero-inner {
        min-height: 300px;
    }

    .legacy-contact-hero-icon {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

    .legacy-contact-hero-icon svg {
        width: 38px;
        height: 38px;
    }
}
