/* SMBG B2B offline theme bundle */

/* --- about-us.css --- */
body.page-about .app-main {
    max-width: none;
    padding: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 38%, #fff 100%);
}

.about-page {
    padding: 0 0 48px;
}

.about-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */
.about-hero {
    position: relative;
    margin: 0 -16px 32px;
    padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px);
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(135deg, #061f38 0%, #08284a 42%, #0f4c75 100%);
    color: #fff;
    box-shadow: 0 24px 48px rgba(8, 40, 74, 0.18);
}

.about-hero-glow {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 68%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: end;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.about-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.about-lead {
    margin: 0;
    max-width: 58ch;
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

.about-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.about-hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.about-hero-stats {
    display: grid;
    gap: 12px;
}

.about-hero-stat {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.about-hero-stat--accent {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(255, 255, 255, 0.08));
    border-color: rgba(201, 162, 39, 0.35);
}

.about-hero-stat strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-hero-stat span {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* Section heads */
.about-section-head {
    margin-bottom: 20px;
}

.about-section-head--center {
    text-align: center;
}

.about-section-kicker {
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.about-section-kicker--light {
    color: rgba(255, 255, 255, 0.68);
}

.about-section-head h2,
.about-pillars h2,
.about-why h2,
.about-stores h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* Bento pillars */
.about-pillars {
    margin-bottom: 28px;
}

.about-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.about-bento-card {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(8, 40, 74, 0.06);
}

.about-bento-card--vision {
    grid-column: span 5;
}

.about-bento-card--mission {
    grid-column: span 7;
}

.about-bento-card--values {
    grid-column: span 12;
}

.about-bento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f1fa, #f8fafc);
    color: var(--primary);
}

.about-bento-icon svg {
    width: 22px;
    height: 22px;
}

.about-bento-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.about-bento-card > p,
.about-bento-intro {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

.about-bento-intro {
    margin-bottom: 16px;
}

.about-mission-grid,
.about-values-grid {
    display: grid;
    gap: 12px;
}

.about-mission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
}

.about-mission-item,
.about-value-item {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.about-mission-item strong,
.about-value-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.94rem;
    color: var(--primary);
}

.about-mission-item p,
.about-value-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Impact band */
.about-impact {
    margin: 0 -16px 28px;
    padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 40px);
    background: linear-gradient(135deg, #08284a 0%, #0a355f 100%);
    color: #fff;
}

.about-impact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 28px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.about-impact-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.about-impact-copy p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
}

.about-impact-stats {
    display: grid;
    gap: 12px;
}

.about-impact-stat {
    padding: 18px 20px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-impact-stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-impact-stat span {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Reach */
.about-reach {
    margin-bottom: 28px;
}

.about-reach-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 20px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 12px 32px rgba(8, 40, 74, 0.05);
}

.about-reach-copy h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.about-reach-copy p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

.about-reach-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    border-radius: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #bfdbfe;
    box-shadow: var(--shadow);
}

.about-reach-stat strong {
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.about-reach-stat > span {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.about-reach-stat p {
    margin: 12px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Why choose us */
.about-why {
    margin-bottom: 28px;
}

.about-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-why-card {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(8, 40, 74, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(8, 40, 74, 0.1);
}

.about-why-num {
    margin-bottom: 14px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #e2e8f0;
}

.about-why-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.about-why-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--muted);
}

/* Forward */
.about-forward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 28px;
    padding: 24px 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-forward-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
}

.about-forward-icon svg {
    width: 22px;
    height: 22px;
}

.about-forward h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.about-forward p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

/* Stores */
.about-stores {
    margin-bottom: 28px;
}

.about-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #fed7aa;
    box-shadow: 0 8px 24px rgba(154, 52, 18, 0.06);
}

.about-store-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.about-store-card strong {
    font-size: 0.96rem;
    color: #9a3412;
}

/* CTA band */
.about-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 24px;
    background: linear-gradient(135deg, #08284a 0%, #0f4c75 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(8, 40, 74, 0.16);
}

.about-cta-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-cta-copy p {
    margin: 0;
    max-width: 48ch;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-cta-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.about-cta-secondary:hover,
.about-cta-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-bento-card--vision,
    .about-bento-card--mission,
    .about-bento-card--values {
        grid-column: span 12;
    }

    .about-mission-grid,
    .about-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 899px) {
    .about-hero-inner,
    .about-impact-inner,
    .about-reach-card,
    .about-why-grid,
    .about-store-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        border-radius: 0 0 22px 22px;
    }

    .about-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 599px) {
    .about-shell {
        padding: 0 12px;
    }

    .about-hero,
    .about-impact {
        margin-left: -12px;
        margin-right: -12px;
    }

    .about-bento-card,
    .about-why-card,
    .about-forward,
    .about-reach-card {
        padding: 20px 18px;
    }
}


/* --- app.css --- */
:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #08284a;
    --primary-dark: #061f38;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 10px 30px rgba(8, 40, 74, 0.08);
    --radius: 18px;
    --header-bg: #08284a;
    --header-height: 132px;
    --bottom-nav-inner: 60px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-height: calc(var(--bottom-nav-inner) + var(--safe-bottom));
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    touch-action: manipulation;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, select {
    font: inherit;
}

.app-shell {
    min-height: 100dvh;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + 12px);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #90b2d6;
    border-bottom: 1px solid rgba(8, 40, 74, 0.12);
    padding: 12px 16px 14px;
}

.mobile-mini-header {
    display: none;
}

@media (max-width: 560px) {
    .mobile-mini-header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -12px -16px 10px;
        padding: 6px 12px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--primary);
        background: rgba(255, 255, 255, 0.35);
        border-bottom: 1px solid rgba(8, 40, 74, 0.1);
    }
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header .brand-text {
    color: var(--primary);
}

.app-header .icon-btn {
    border-color: rgba(8, 40, 74, 0.15);
    background: rgba(255, 255, 255, 0.55);
    color: var(--primary);
}

.app-header .icon-btn:hover,
.app-header .icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(8, 40, 74, 0.25);
}

.mobile-menu-btn {
    color: var(--primary);
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.mobile-menu.is-open {
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(8, 40, 74, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.24s ease;
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.mobile-menu-head h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.mobile-menu-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
}

.mobile-menu-link,
.mobile-menu-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active,
.mobile-menu-group summary:hover {
    background: #eef3f8;
    color: var(--primary);
}

.mobile-menu-link--hot {
    color: #dc2626;
}

.mobile-menu-group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-group summary::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-group[open] summary::after {
    content: '−';
}

.mobile-menu-sub {
    display: grid;
    gap: 2px;
    padding: 0 8px 8px 18px;
}

.mobile-menu-sublink {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-sublink:hover {
    background: #f8fafc;
    color: var(--primary);
}

body.mobile-menu-open {
    overflow: hidden;
}

html[dir="rtl"] .mobile-menu-panel {
    right: auto;
    left: 0;
    box-shadow: 12px 0 40px rgba(8, 40, 74, 0.18);
    transform: translateX(-105%);
}

html[dir="rtl"] .mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

@media (min-width: 900px) {
    .mobile-menu,
    .mobile-menu-btn {
        display: none !important;
    }
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.search-form {
    position: relative;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 10px;
    box-shadow: var(--shadow);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: 0 0 auto;
}

.search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    min-width: 0;
}

.search-scan-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #e8eef4;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-scan-btn svg {
    width: 20px;
    height: 20px;
}

.search-scan-btn:hover,
.search-scan-btn:focus-visible {
    background: #d4e0ec;
}

.search-submit {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 60;
}

.suggestion-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--surface-2);
}

.suggestion-item img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
}

.suggestion-meta {
    min-width: 0;
}

.suggestion-meta strong,
.suggestion-meta span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta span {
    color: var(--muted);
    font-size: 0.85rem;
}

.suggestion-show-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface-2);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.suggestion-show-all:hover,
.suggestion-show-all:focus-visible,
.suggestion-show-all.active {
    background: #e8eef5;
    color: var(--primary-dark);
}

.suggestion-show-all svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.app-main {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-header .mobile-lang-switch {
    background: rgba(255, 255, 255, 0.45);
}

.app-header .mobile-lang-pill {
    color: var(--primary);
}

.app-header .signout-btn {
    border-color: rgba(8, 40, 74, 0.15);
    background: rgba(255, 255, 255, 0.55);
    color: var(--primary);
}

.app-header .signout-btn:hover,
.app-header .signout-btn:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(8, 40, 74, 0.25);
    color: var(--primary);
}

.mobile-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-lang-pill {
    min-width: 38px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.mobile-lang-pill.is-active {
    background: #fff;
    color: var(--primary);
}

.signout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.signout-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.signout-btn:hover,
.signout-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.login-page {
    min-height: 100vh;
    background: #f3f4f6;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

.login-hero {
    display: none;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
    z-index: 1;
}

.login-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    width: min(100%, 460px);
    background: var(--surface);
    border-radius: 28px;
    padding: 36px 32px 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.login-header {
    margin-bottom: 28px;
}

.login-header h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.login-subtitle {
    margin: 0;
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.9rem;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 10px;
}

.login-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.login-field input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 15px 16px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.login-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #d1d5db;
    cursor: not-allowed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-submit.is-ready {
    background: #111827;
    cursor: pointer;
}

.login-submit.is-ready:hover {
    background: #000;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #6b7280;
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #111827;
}

.login-link {
    color: #2563eb;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-divider {
    position: relative;
    margin: 28px 0 20px;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 14px;
    background: #fff;
    color: #9ca3af;
    font-size: 0.9rem;
}

.social-login {
    display: grid;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.store-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-social-link {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.store-social-link svg {
    width: 17px;
    height: 17px;
    display: block;
}

.store-social-link:hover,
.store-social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(8, 40, 74, 0.12);
}

.store-social-link--youtube:hover,
.store-social-link--youtube:focus-visible {
    color: #fff;
    background: #ff0000;
    border-color: #ff0000;
}

.store-social-link--linkedin:hover,
.store-social-link--linkedin:focus-visible {
    color: #fff;
    background: #0a66c2;
    border-color: #0a66c2;
}

.store-social-link--x:hover,
.store-social-link--x:focus-visible {
    color: #fff;
    background: #000;
    border-color: #000;
}

.store-social-link--facebook:hover,
.store-social-link--facebook:focus-visible {
    color: #fff;
    background: #1877f2;
    border-color: #1877f2;
}

.store-social-link--instagram:hover,
.store-social-link--instagram:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 70%, #515bd4);
    border-color: #dd2a7b;
}

.login-footer {
    margin: 24px 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.92rem;
}

@media (max-width: 899px) {
    body.page-products .products-content,
    body.page-clearance .products-content,
    body.page-business-types .business-types-page,
    body.page-business-type .business-type-page {
        padding-bottom: 4px;
    }

    .products-pagination,
    .clearance-pagination,
    .pagination {
        margin-bottom: 4px;
    }

    .app-main > :last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 900px) {
    .login-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    }

    .login-hero {
        display: block;
        min-height: 100vh;
    }

    .login-panel {
        padding: 40px 48px;
        background: #f3f4f6;
    }

    .login-card {
        width: min(100%, 500px);
        padding: 42px 40px 34px;
    }
}

@media (min-width: 1200px) {
    .login-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .login-panel {
        padding: 48px 64px;
    }
}

.partner-banner-wrapper {
    width: calc(100% + 32px);
    margin: -4px -16px 16px;
    height: 300px;
    overflow: hidden;
    background: #f9fafb;
    border-radius: 0;
}

.partner-banner-frame {
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.partner-banner-frame.is-loaded {
    opacity: 1;
}

.eyebrow {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.section {
    margin-bottom: 24px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.link-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
}

.section-meta,
.muted,
.tiny {
    color: var(--muted);
}

.tiny {
    font-size: 0.78rem;
    margin: 4px 0 0;
}

.category-filmstrip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.category-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.category-chip:hover,
.category-chip:focus-visible {
    background: var(--surface-2);
    border-color: #b8c9d9;
    color: var(--primary);
}

.category-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 220px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.product-scroll .product-card {
    scroll-snap-align: start;
}

.category-card,
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 10px 10px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
}

.card-action-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.card-action-btn:hover,
.card-action-btn:focus-visible {
    border-color: #c7d2fe;
    color: var(--primary-dark);
}

.card-action-website {
    color: var(--primary);
}

.copy-barcode-btn.is-copied {
    color: var(--success);
    border-color: #bbf7d0;
}

.category-card img,
.product-card-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f8fafc;
}

.category-card-body,
.product-card-body {
    padding: 12px;
}

.category-card-body h3,
.product-card-body h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.category-card-body span {
    color: var(--muted);
    font-size: 0.82rem;
}

.product-card-media {
    position: relative;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.badge-new {
    background: var(--primary);
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.stock-pill.large {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.stock-in {
    background: #dcfce7;
    color: var(--success);
}

.stock-low {
    background: #fef3c7;
    color: var(--warning);
}

.stock-out {
    background: #fee2e2;
    color: var(--danger);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary,
.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.filter-bar {
    display: grid;
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    align-items: end;
}

.filter-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
}

.filter-open-btn svg {
    width: 18px;
    height: 18px;
}

.filter-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    line-height: 20px;
    text-align: center;
}

.products-layout {
    display: grid;
    gap: 18px;
    align-items: start;
}

.products-main {
    min-width: 0;
}

.products-filter-sidebar {
    position: relative;
    z-index: 30;
}

.products-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 79;
}

.products-filter-backdrop[hidden] {
    display: none !important;
}

.products-filter-sidebar-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.products-filter-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.products-filter-sidebar-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.products-filter-sidebar-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.products-filter-sidebar-close svg {
    width: 16px;
    height: 16px;
}

.products-filter-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.products-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.products-filter-search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    min-width: 0;
    font-size: 0.84rem;
}

.products-filter-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 6px;
}

.products-filter-section {
    border-bottom: 1px solid var(--border);
}

.products-filter-section:last-child {
    border-bottom: none;
}

.products-filter-section summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
}

.products-filter-section summary::-webkit-details-marker {
    display: none;
}

.products-filter-section summary::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.products-filter-section[open] summary::after {
    content: '−';
    background: #eef4fb;
    border-color: #d7e5f4;
}

.filter-option-list,
.filter-brand-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 140px;
    overflow-y: auto;
    padding: 0 2px 8px;
}

.filter-option-item,
.filter-brand-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 8px;
    cursor: pointer;
}

.filter-option-item:hover,
.filter-brand-item:hover {
    background: #f8fafc;
}

.filter-option-item[hidden],
.filter-brand-item[hidden] {
    display: none !important;
}

.filter-option-item input,
.filter-brand-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.filter-option-name,
.filter-brand-name {
    font-size: 0.86rem;
    font-weight: 500;
    min-width: 0;
}

.filter-option-name small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.filter-brand-count {
    font-size: 0.72rem;
    color: var(--muted);
    background: #eef2ff;
    padding: 2px 7px;
    border-radius: 999px;
}

.filter-brand-empty {
    margin: 0 0 12px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.products-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-field {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.filter-field select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--surface);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--primary);
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.product-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.product-gallery,
.product-info,
.product-description {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.product-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    text-decoration: none;
    color: inherit;
}

.product-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 4px;
}

.product-brand {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
}

.brand-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.brand-search-wrap .search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: 0 0 auto;
}

.brand-search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    min-width: 0;
    font-size: 0.95rem;
}

.brand-search-clear {
    border: 0;
    background: var(--surface-2);
    color: var(--primary);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.brands-page .section-head h1 {
    font-size: 1.2rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.brand-card[hidden] {
    display: none;
}

.brand-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.brand-card:active,
.brand-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.brand-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 118px;
    padding: 12px;
    background: #fff;
}

.brand-card-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.brand-card-body {
    padding: 8px 6px 10px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.brand-card-body h3 {
    margin: 0 0 4px;
    font-size: 0.7rem;
    line-height: 1.25;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.brand-count {
    display: inline-block;
    font-size: 0.62rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 6px;
}

.brand-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-page-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px;
}

.brand-page-head h1 {
    margin: 0 0 4px;
}

.product-title {
    margin: 0 0 14px;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    line-height: 1.35;
    word-break: break-word;
}

.price-block {
    min-width: 0;
}

.product-gallery-main img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 16px;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
}

.thumb-btn {
    border: 2px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.thumb-btn.active {
    border-color: var(--primary);
}

.thumb-btn img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.price-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.35rem;
    line-height: 1.2;
}

.price-muted {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.2;
}

.stock-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-2);
    margin-bottom: 16px;
}

.stock-panel-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-detail {
    margin: 0;
    color: var(--muted);
}

.stock-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    color: var(--muted);
    font-size: 0.88rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.meta-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 0;
}

.meta-label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.meta-item-barcode {
    grid-column: 1 / -1;
    text-align: center;
}

.meta-item-barcode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.meta-item-barcode .barcode-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.meta-item-barcode .barcode-visual svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.meta-item-barcode .barcode-value {
    display: block;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    word-break: break-all;
}

.barcode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.barcode-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
}

.barcode-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.product-description h2,
.description-panel h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.description-content {
    line-height: 1.6;
    color: #334155;
    word-break: break-word;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    min-height: var(--bottom-nav-inner);
    padding: 0 0 var(--safe-bottom);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(8, 40, 74, 0.08);
}

.bottom-nav-item,
.bottom-nav-item--btn {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--bottom-nav-inner);
    padding: 6px 2px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.bottom-nav-item:active,
.bottom-nav-item--btn:active {
    background: rgba(8, 40, 74, 0.05);
}

.bottom-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    line-height: 0;
}

.bottom-nav-item svg,
.bottom-nav-item--btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.bottom-nav-label {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-nav-item.active,
.bottom-nav-item--btn.active {
    color: var(--primary);
    background: rgba(8, 40, 74, 0.06);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 700;
}

.bottom-nav-badge,
.bottom-nav-badge[data-cart-count] {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}

.bottom-nav-badge[hidden],
.bottom-nav-badge[data-cart-count][hidden] {
    display: none;
}

/* Mobile scrollable footer (above fixed tab bar) */
.mobile-footer {
    margin-top: 8px;
    padding: 24px 16px 20px;
    background: linear-gradient(180deg, #eef3f8 0%, #e8eef5 100%);
    border-top: 1px solid var(--border);
}

.mobile-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}

.mobile-footer-brand strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
}

.mobile-footer-brand p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.mobile-footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-footer-links::-webkit-scrollbar {
    display: none;
}

.mobile-footer-links a {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 0;
    white-space: nowrap;
}

.mobile-footer .store-social {
    margin: 4px 0 16px;
}

.mobile-footer-meta {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(8, 40, 74, 0.1);
}

.mobile-footer-phone {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-footer-copy {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.45;
}

.install-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--bottom-nav-height) + 12px);
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 45;
}

.install-banner[hidden] {
    display: none !important;
}

/* ── Scanner modal ── */
.camera-modal[hidden] { display: none !important; }

.camera-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.95);
}

.camera-modal-content {
    width: min(100%, 550px);
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    max-height: 92vh;
    overflow-y: auto;
}

.camera-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 4px solid #007bff;
}

.camera-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.camera-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #ff4757;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.camera-close-btn:hover { transform: scale(1.12); background: #ff3742; }
.camera-close-btn svg { width: 18px; height: 18px; }

.scanner-container {
    position: relative;
    height: 360px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid #007bff;
    background: #000;
}

@media (max-height: 700px) {
    .scanner-container { height: 260px; }
}

#qr-reader { height: 100% !important; width: 100% !important; border-radius: 15px; }
#qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* iPhone focus overlay */
.iphone-focus-overlay {
    position: absolute;
    left: 50%; top: 50%;
    width: 280px; height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    border: 4px solid #00ff00;
    background: rgba(0,255,0,0.04);
    box-shadow: 0 0 25px rgba(0,255,0,0.55);
    pointer-events: none;
    z-index: 5;
    animation: focusPulse 1.2s infinite;
}

.focus-corner {
    position: absolute;
    width: 28px; height: 28px;
}
.focus-corner.top-left    { top:-4px; left:-4px;   border-top:4px solid #0f0; border-left:4px solid #0f0;   border-top-left-radius:15px; }
.focus-corner.top-right   { top:-4px; right:-4px;  border-top:4px solid #0f0; border-right:4px solid #0f0;  border-top-right-radius:15px; }
.focus-corner.bottom-left { bottom:-4px; left:-4px; border-bottom:4px solid #0f0; border-left:4px solid #0f0; border-bottom-left-radius:15px; }
.focus-corner.bottom-right{ bottom:-4px; right:-4px;border-bottom:4px solid #0f0; border-right:4px solid #0f0;border-bottom-right-radius:15px; }

.focus-instructions {
    position: absolute;
    left: 50%; bottom: 8px;
    transform: translateX(-50%);
    border-radius: 20px;
    border: 2px solid #0f0;
    background: rgba(0,0,0,0.82);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f0;
    white-space: nowrap;
}

/* Scanner controls overlay */
.scanner-controls {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.scanner-control-btn {
    width: 40px; height: 40px;
    border: 2px solid #0f0;
    border-radius: 999px;
    background: rgba(0,0,0,0.78);
    color: #0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.scanner-control-btn:hover {
    transform: scale(1.1);
    background: rgba(0,255,0,0.18);
}

.scanner-control-btn svg { width: 18px; height: 18px; }

/* Scanning status bar */
.scanning-status {
    margin-top: 14px;
    border-radius: 12px;
    border: 2px solid rgba(0,123,255,0.3);
    background: rgba(0,123,255,0.08);
    padding: 11px 14px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.scanning-status.ready {
    color: #16a34a;
    background: rgba(22,163,74,0.08);
    border-color: rgba(22,163,74,0.3);
    animation: statusPulse 1.2s ease-in-out infinite;
}

.scanner-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Scan result */
.scan-result {
    margin-top: 16px;
    border-radius: 14px;
    border: 3px solid #16a34a;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 16px;
    font-weight: 700;
    color: #14532d;
    animation: successPop 0.5s ease-out;
}

.scan-result code {
    background: #f0fdf4;
    border-radius: 6px;
    padding: 2px 8px;
    color: #007bff;
    font-weight: 700;
}

/* ── Keyframes ── */
@keyframes focusPulse {
    0%,100% { box-shadow: 0 0 25px rgba(0,255,0,0.55); transform: translate(-50%,-50%) scale(1); }
    50%      { box-shadow: 0 0 40px rgba(0,255,0,0.8);  transform: translate(-50%,-50%) scale(1.02); }
}
@keyframes statusPulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.01); }
}
@keyframes successPop {
    0%   { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1);    opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.install-banner p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.install-banner-actions {
    display: flex;
    gap: 8px;
}

@media (min-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-card-logo {
        height: 128px;
    }

    .brand-card-logo img {
        max-height: 84px;
    }

    .brand-card-body h3 {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .product-detail {
        grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
        align-items: start;
    }

    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filter-bar {
        grid-template-columns: auto repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brand-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .app-main {
        padding: 24px;
    }
}

@media (display-mode: standalone) {
    .install-banner {
        display: none !important;
    }
}


/* --- branding-request.css --- */
.page-branding .app-main {
    max-width: none;
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.branding-page {
    padding: 20px 16px 32px;
}

.branding-shell {
    width: min(100%, 820px);
    margin: 0 auto;
}

.branding-page-intro {
    margin-bottom: 20px;
    text-align: center;
}

.branding-page-intro h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    line-height: 1.2;
}

.branding-page-intro p {
    margin: 0 auto;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.branding-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.92rem;
}

.branding-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.branding-card-body {
    padding: 24px 20px;
    display: grid;
    gap: 28px;
}

.branding-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.branding-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.branding-section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    border-radius: 999px;
    background: var(--primary);
    flex-shrink: 0;
}

.branding-required {
    color: #dc2626;
}

.branding-fields {
    display: grid;
    gap: 16px;
}

.branding-grid {
    display: grid;
    gap: 16px;
}

.branding-grid-2 {
    grid-template-columns: 1fr;
}

.branding-field {
    display: grid;
    gap: 8px;
}

.branding-label,
.branding-field > label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.branding-field input[type="text"],
.branding-field input[type="email"],
.branding-field input[type="tel"],
.branding-field select,
.branding-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.branding-field textarea {
    min-height: 120px;
    resize: vertical;
}

.branding-field input::placeholder,
.branding-field textarea::placeholder {
    color: #94a3b8;
}

.branding-field input:hover,
.branding-field select:hover,
.branding-field textarea:hover {
    border-color: #cbd5e1;
}

.branding-field input:focus,
.branding-field select:focus,
.branding-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 40, 74, 0.1);
}

.branding-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.branding-radio,
.branding-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.branding-radio input,
.branding-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.branding-radio:has(input:checked),
.branding-check:has(input:checked) {
    border-color: var(--primary);
    background: rgba(8, 40, 74, 0.04);
}

.branding-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.branding-check-inline {
    width: fit-content;
}

.branding-actions {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.branding-submit {
    width: 100%;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.branding-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.branding-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.branding-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.branding-confirmation {
    min-height: calc(100vh - var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.branding-confirmation-card {
    width: min(100%, 560px);
    padding: 36px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.branding-confirmation-card h1 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.branding-confirmation-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.branding-confirmation-id {
    margin-top: 18px !important;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.branding-confirmation-id span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

.branding-confirmation-id strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.branding-confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (min-width: 640px) {
    .branding-page {
        padding: 28px 24px 40px;
    }

    .branding-card-body,
    .branding-actions {
        padding-left: 28px;
        padding-right: 28px;
    }

    .branding-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .branding-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .branding-check-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* --- business-types.css --- */
body.page-business-types .app-main,
body.page-business-type .app-main {
    padding: 0;
    max-width: none;
}

body.page-business-types {
    background: #f1f5f9;
}

/* Hub */
.business-hub-hero {
    padding: clamp(28px, 5vw, 48px) 16px;
    background: linear-gradient(135deg, #061f38 0%, #08284a 50%, #0f4c75 100%);
    color: #fff;
}

.business-hub-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.business-hub-eyebrow {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.business-hub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.business-hub-lead {
    margin: 0;
    max-width: 62ch;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.business-hub-current {
    margin: 16px 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

.business-hub-current a {
    color: #f0d78c;
    font-weight: 700;
}

.business-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.business-type-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 12px 32px rgba(8, 40, 74, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.business-type-card:hover,
.business-type-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(8, 40, 74, 0.12);
    border-color: var(--business-accent, var(--primary));
}

.business-type-card.is-selected {
    border-color: var(--business-accent, var(--primary));
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--business-accent) 6%, #fff) 100%);
}

.business-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--business-accent) 14%, #fff);
    font-size: 1.6rem;
}

.business-type-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--primary);
}

.business-type-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.business-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.business-type-tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
}

.business-type-cta {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--business-accent, var(--primary));
}

/* Business type catalogue */
body.page-business-type {
    background: #f7f7f7;
}

.page-business-type .products-content {
    padding: 16px 20px 24px;
    background: #f7f7f7;
}

.page-business-type .products-toolbar {
    margin: 0 0 12px;
    padding: 10px 12px;
    overflow: visible;
}

.business-toolbar-head--full {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

body.page-business-type .business-toolbar-head--full .catalog-toolbar-main,
body.page-business-type .business-toolbar-head--full .business-toolbar-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    width: 100%;
}

body.page-business-type .business-toolbar-head--full .catalog-toolbar-count {
    align-self: auto;
    text-align: right;
}

.business-toolbar-head--full .catalog-toolbar-breadcrumb {
    margin-bottom: 12px;
}

.business-toolbar-head--full .business-toolbar-brand {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.business-toolbar-head--full .catalog-toolbar-title h1 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.2;
    margin: 0;
}

.business-toolbar-head--full .business-toolbar-desc {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 62ch;
}

.business-toolbar-head--full .business-toolbar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
}

.business-toolbar-head--full .catalog-toolbar-count {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
}

.business-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--business-accent, var(--primary)) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--business-accent, var(--primary)) 18%, #e5e5e5);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.business-type-switch {
    white-space: nowrap;
}

.business-chip-section {
    background: #eef2f6;
    border-bottom: 1px solid rgba(8, 40, 74, 0.08);
    padding: 14px 16px;
}

.business-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
}

.business-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.business-chip:hover {
    border-color: color-mix(in srgb, var(--business-accent, var(--primary)) 45%, var(--border));
    transform: translateY(-1px);
}

.business-chip.is-active {
    background: var(--business-accent, var(--primary));
    border-color: transparent;
    color: #fff;
}

.catalog-toolbar .products-toolbar-search {
    padding: 0 14px;
    margin-top: 14px;
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .business-chip-section {
        padding: 16px 24px;
    }

    .catalog-toolbar .products-toolbar-search {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.business-categories-strip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 0;
}

.business-categories-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--primary);
}

.business-categories-head p {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

.business-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.business-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.business-category-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.business-category-pill.is-active,
.business-category-pill:hover {
    border-color: var(--business-accent, var(--primary));
    background: color-mix(in srgb, var(--business-accent) 8%, #fff);
}

.products-toolbar-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.products-toolbar-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
}

.business-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.business-product-card .product-card-media {
    position: relative;
}

@media (max-width: 768px) {
    .business-toolbar-head--full {
        padding: 12px 14px;
    }

    .business-toolbar-head--full .business-toolbar-main {
        flex-direction: column;
        gap: 12px;
    }

    .business-toolbar-head--full .business-toolbar-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid #ebebeb;
    }

    .business-toolbar-head--full .catalog-toolbar-count {
        text-align: left;
    }

    .business-toolbar-head--full .business-toolbar-desc {
        font-size: 0.78rem;
    }
}

@media (max-width: 599px) {
    .business-chip-section {
        padding: 12px 16px;
    }

    .business-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .business-chip-row::-webkit-scrollbar {
        display: none;
    }

    .business-chip {
        flex-shrink: 0;
    }

    .business-hub-grid {
        grid-template-columns: 1fr;
    }
}


/* --- cart.css --- */
.cart-widget {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fafbfc;
}

.cart-widget--compact {
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
}

.cart-widget-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cart-price-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

.cart-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.cart-price-value {
    font-size: 0.98rem;
    color: var(--primary);
}

.cart-price-rsp {
    color: #0f766e;
}

.cart-widget-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 40px;
    height: 42px;
    border: 0;
    background: #fff;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover,
.qty-btn:focus-visible {
    background: #eef4f8;
}

.qty-input {
    width: 64px;
    height: 42px;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    background: #fff;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-widget--compact .cart-widget-actions {
    flex-direction: row;
    align-items: center;
}

.cart-widget--compact .qty-stepper {
    flex: 1;
}

.cart-widget--compact .qty-stepper {
    justify-content: space-between;
}

.cart-widget--compact .qty-input {
    flex: 1;
}

.header-cart-btn {
    position: relative;
}

.header-cart-btn .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
}

.store-cart-btn {
    position: relative;
}

.store-cart-btn .store-badge[data-cart-count] {
    position: absolute;
    top: 4px;
    right: 4px;
}

.cart-badge,
.store-badge[data-cart-count] {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cart-badge[hidden],
.store-badge[data-cart-count][hidden] {
    display: none;
}

body.page-cart .app-main {
    max-width: none;
}

.cart-page {
    max-width: 1180px;
    margin: 0 auto;
}

.cart-page-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.cart-page-head h1 {
    margin: 0 0 6px;
}

.cart-meta {
    margin: 0;
    color: var(--muted);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.cart-lines {
    display: grid;
    gap: 14px;
}

.cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 150px;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cart-line-media img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: #f8fafc;
}

.cart-line-title {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.cart-line-brand {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.cart-line-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.84rem;
}

.cart-line-prices em {
    font-style: normal;
    font-weight: 700;
    color: var(--muted);
    margin-right: 4px;
}

.cart-line-moq {
    color: var(--primary);
    font-weight: 700;
}

.cart-line-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-line-totals {
    display: grid;
    gap: 10px;
    align-content: center;
}

.cart-line-total-block {
    display: grid;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--muted);
}

.cart-line-total-block strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-summary {
    position: sticky;
    top: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cart-summary h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-summary-rsp strong {
    color: #0f766e;
}

.cart-summary-note {
    margin: 14px 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cart-summary .btn {
    width: 100%;
}

.cart-empty {
    padding: 40px 20px;
}

.products-card-cart {
    padding: 0 10px 10px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.product-cart-panel {
    margin-top: 18px;
}

.product-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.product-price-grid .price-block {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafbfc;
}

.price-value.price-rsp {
    color: #0f766e;
}

.product-moq-note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 899px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .cart-line-totals {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-widget-prices {
        grid-template-columns: 1fr;
    }

    .product-price-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    body.page-cart .app-main {
        padding: 28px 24px 40px;
    }
}


/* --- category.css --- */
.category-scroll-section {
    background: #f7f7f7;
    padding: 16px 0 18px;
    border-bottom: 1px solid #e5e5e5;
}

.category-scroll-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto 12px;
    padding: 0 16px;
}

.category-scroll-eyebrow {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.category-scroll-head h2 {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary);
}

.category-scroll-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.category-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8px;
}

.category-scroll-track {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    cursor: grab;
    padding: 4px 8px 6px;
}

.category-scroll-track::-webkit-scrollbar {
    display: none;
}

.category-scroll-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.category-scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: auto;
    min-width: 168px;
    max-width: 240px;
    min-height: 72px;
    padding: 8px 14px 8px 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-scroll-item:hover,
.category-scroll-item:focus-visible {
    border-color: #b8c9d9;
    box-shadow: 0 4px 12px rgba(8, 40, 74, 0.1);
}

.category-scroll-item.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(8, 40, 74, 0.1);
    background: #fff;
}

.category-scroll-item.is-active .category-scroll-media {
    border-color: var(--primary);
}

.category-scroll-item.is-active .category-scroll-label {
    color: var(--primary);
}

.category-scroll-media {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
}

.category-scroll-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-scroll-label {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-scroll-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.category-scroll-arrow:hover,
.category-scroll-arrow:focus-visible {
    color: var(--primary);
    border-color: #b8c9d9;
}

.category-scroll-arrow svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 900px) {
    .category-scroll-section {
        padding: 18px 0 20px;
    }

    .category-scroll-head,
    .category-scroll-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .category-scroll-head {
        margin-bottom: 14px;
    }

    .category-scroll-track {
        gap: 12px;
    }

    .category-scroll-item {
        min-width: 190px;
        max-width: 260px;
        min-height: 80px;
        padding: 10px 16px 10px 10px;
        gap: 14px;
    }

    .category-scroll-media {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        padding: 8px;
    }

    .category-scroll-label {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .category-scroll-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 899px) {
    .category-scroll-arrow {
        display: none;
    }

    .category-scroll-wrap {
        padding: 0;
    }

    .category-scroll-track {
        margin: 0;
        padding: 4px 16px 6px;
        gap: 8px;
    }

    .category-scroll-item {
        min-width: 155px;
        max-width: 210px;
        min-height: 68px;
        padding: 7px 12px 7px 7px;
        gap: 10px;
    }

    .category-scroll-media {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        padding: 5px;
    }

    .category-scroll-label {
        font-size: 0.74rem;
        -webkit-line-clamp: 2;
    }
}


/* --- checkout.css --- */
body.page-checkout .app-main,
body.page-checkout .checkout-page,
body.page-order-confirmation .order-confirmation {
    max-width: 1180px;
    margin: 0 auto;
}

.checkout-page-head,
.order-confirmation-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.checkout-page-head h1,
.order-confirmation-card h1 {
    margin: 0 0 8px;
}

.checkout-eyebrow,
.order-confirmation-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.checkout-panel,
.checkout-summary,
.order-confirmation-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.checkout-panel + .checkout-panel {
    margin-top: 16px;
}

.checkout-panel h2,
.checkout-summary h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.checkout-hint,
.checkout-empty,
.order-confirmation-lead {
    color: var(--muted);
    font-size: 0.9rem;
}

.checkout-address-list,
.checkout-payment-list {
    display: grid;
    gap: 10px;
}

.checkout-address-card,
.checkout-payment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
}

.checkout-address-card:has(input:checked),
.checkout-payment-item:has(input:checked) {
    border-color: var(--primary);
    background: #f5f9fc;
}

.checkout-address-body {
    display: grid;
    gap: 4px;
}

.checkout-address-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.checkout-field {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.checkout-field select,
.checkout-field textarea,
.checkout-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}

.checkout-coupon-row {
    display: flex;
    gap: 10px;
}

.checkout-coupon-row .checkout-input {
    flex: 1;
}

.checkout-credit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checkout-credit-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.checkout-credit-grid span {
    font-size: 0.78rem;
    color: var(--muted);
}

.checkout-lines {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    max-height: 280px;
    overflow: auto;
}

.checkout-line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
}

.checkout-line-item span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.checkout-summary-actions {
    margin-bottom: 12px;
}

.checkout-line-stock {
    color: #0f766e;
}

.checkout-summary-total strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.checkout-submit {
    width: 100%;
    margin-top: 14px;
}

.checkout-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.checkout-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 12, 27, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.checkout-popup-backdrop.is-visible {
    display: flex;
}

.checkout-popup {
    width: min(720px, 100%);
    max-height: 85vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(8, 40, 74, 0.26);
}

.checkout-popup-head,
.checkout-popup-actions {
    padding: 18px 20px;
}

.checkout-popup-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.checkout-popup-head h2 {
    margin: 0 0 6px;
}

.checkout-popup-head p {
    margin: 0;
    color: var(--muted);
}

.checkout-popup-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.checkout-popup-list {
    overflow: auto;
    padding: 16px 20px;
    display: grid;
    gap: 12px;
}

.checkout-issue-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fafbfc;
}

.checkout-issue-card img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
}

.checkout-issue-body {
    display: grid;
    gap: 4px;
}

.checkout-issue-body span,
.checkout-no-issues {
    color: var(--muted);
    font-size: 0.88rem;
}

.checkout-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: end;
    border-top: 1px solid var(--border);
}

.order-confirmation-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

.order-confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #166534;
    font-size: 1.8rem;
    font-weight: 800;
}

.order-confirmation-meta {
    display: grid;
    gap: 14px;
    width: 100%;
    margin: 20px 0;
    text-align: left;
}

.order-confirmation-meta div {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafbfc;
}

.order-confirmation-meta span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.order-confirmation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.support-page {
    max-width: 1100px;
    margin: 0 auto;
}

.support-hero {
    margin-bottom: 20px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.support-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.support-card h2 {
    margin: 0 0 10px;
}

.support-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

@media (max-width: 899px) {
    .checkout-layout,
    .support-grid,
    .checkout-credit-grid {
        grid-template-columns: 1fr;
    }

    .checkout-page-head {
        flex-direction: column;
    }

    .checkout-popup-actions {
        flex-direction: column;
    }
}


/* --- clearance.css --- */
body.page-clearance {
    background: #f8f4f4;
}

body.page-clearance .app-main {
    overflow-x: clip;
}

/* ── Hero ── */
.clearance-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3b0d0d 0%, #7f1d1d 42%, #b91c1c 100%);
    background-size: 200% 200%;
    animation: clearance-hero-gradient 10s ease infinite;
}

.clearance-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(251, 191, 36, 0.18), transparent 38%);
    pointer-events: none;
    animation: clearance-hero-glow 6s ease-in-out infinite alternate;
}

.clearance-hero::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.06), transparent 30%);
    animation: clearance-hero-sweep 12s linear infinite;
    pointer-events: none;
}

.clearance-hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.clearance-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 12px 4px rgba(253, 230, 138, 0.55);
    opacity: 0;
    animation: clearance-spark-float 4s ease-in-out infinite;
}

.clearance-spark--1 { top: 18%; left: 8%; animation-delay: 0s; }
.clearance-spark--2 { top: 62%; left: 14%; animation-delay: 0.8s; width: 4px; height: 4px; }
.clearance-spark--3 { top: 28%; right: 12%; animation-delay: 1.4s; }
.clearance-spark--4 { top: 72%; right: 22%; animation-delay: 2.1s; width: 5px; height: 5px; }
.clearance-spark--5 { top: 44%; left: 42%; animation-delay: 2.8s; background: #fca5a5; box-shadow: 0 0 10px 3px rgba(252, 165, 165, 0.5); }
.clearance-spark--6 { top: 12%; right: 38%; animation-delay: 3.5s; width: 3px; height: 3px; }

.clearance-hero-ticker {
    position: relative;
    z-index: 1;
    margin: -16px -16px 0;
    padding: 7px 0;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.clearance-hero-ticker--reverse {
    margin-top: 0;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.14);
}

.clearance-hero-ticker--reverse .clearance-ticker-track {
    animation-direction: reverse;
    animation-duration: 28s;
    color: #fed7aa;
}

.clearance-ticker-track {
    display: flex;
    width: max-content;
    gap: 48px;
    animation: clearance-ticker 22s linear infinite;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fecaca;
}

.clearance-ticker-track span {
    padding-inline: 24px;
}

.clearance-hero-body {
    position: relative;
    z-index: 1;
}

.clearance-eyebrow {
    color: #fecaca;
}

.clearance-title {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.clearance-query-glow {
    animation: clearance-text-glow 2.4s ease-in-out infinite;
}

.clearance-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 10px;
}

.clearance-stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    animation: clearance-chip-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.clearance-stat-chip:nth-child(1) { animation-delay: 0.35s; }
.clearance-stat-chip:nth-child(2) { animation-delay: 0.5s; }
.clearance-stat-chip:nth-child(3) { animation-delay: 0.65s; }

.clearance-stat-chip--pulse {
    animation: clearance-chip-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both,
               clearance-chip-pulse 2.5s ease-in-out 1.2s infinite;
}

.clearance-lead {
    margin-bottom: 4px;
    max-width: 42rem;
}

.clearance-count-value {
    display: inline-block;
    min-width: 1.5ch;
    font-weight: 800;
    color: #fde68a;
    font-variant-numeric: tabular-nums;
}

/* Hero staggered fade-in */
.clearance-fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: clearance-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.clearance-fade-in--1 { animation-delay: 0.08s; }
.clearance-fade-in--2 { animation-delay: 0.18s; }
.clearance-fade-in--3 { animation-delay: 0.28s; }
.clearance-fade-in--4 { animation-delay: 0.42s; }
.clearance-fade-in--5 { animation-delay: 0.55s; }

/* ── Toolbar ── */
.clearance-toolbar {
    opacity: 0;
    transform: translateY(-12px);
    animation: clearance-toolbar-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.clearance-toolbar .products-filter-toggle:hover {
    animation: clearance-btn-shake 0.45s ease;
}

/* ── Product grid ── */
.clearance-grid {
    perspective: 1200px;
}

.clearance-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.clearance-card--pending {
    opacity: 0;
    transform: translateY(28px) scale(0.96) rotateX(4deg);
}

.clearance-card.is-revealed {
    animation: clearance-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--card-delay, 0ms);
}

.clearance-card.is-revealed:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow:
        0 20px 40px rgba(185, 28, 28, 0.16),
        0 0 0 1px rgba(239, 68, 68, 0.12);
}

.clearance-card-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 62%
    );
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.clearance-card:hover .clearance-card-shine {
    transform: translateX(120%);
}

.clearance-card-media {
    overflow: hidden;
}

.clearance-card-media img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.clearance-card:hover .clearance-card-media img {
    transform: scale(1.08);
}

.clearance-card-prices {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.clearance-discount-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: clearance-pill-pulse 2s ease-in-out infinite;
}

.clearance-card.is-revealed .clearance-discount-pill {
    animation: clearance-pill-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               clearance-pill-pulse 2s ease-in-out 0.6s infinite;
}

.clearance-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.clearance-sale-price {
    font-size: 1.05rem;
    color: #b91c1c;
    transition: transform 0.25s ease, color 0.25s ease;
}

.clearance-card:hover .clearance-sale-price {
    transform: scale(1.06);
    color: #991b1b;
}

.clearance-strike {
    font-size: 0.86rem;
    color: #94a3b8;
    position: relative;
    text-decoration: none;
}

.clearance-strike::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #ef4444;
    animation: clearance-strike-draw 0.6s ease forwards;
    animation-delay: 0.3s;
}

.clearance-card.is-revealed .clearance-strike::after {
    width: 100%;
}

.clearance-price-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    color: #64748b;
}

.clearance-price-meta em {
    font-style: normal;
    font-weight: 700;
    color: #475569;
}

.badge-clearance {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-weight: 800;
    transform-origin: center;
    animation: clearance-badge-wiggle 3s ease-in-out infinite;
}

.clearance-card.is-revealed .badge-clearance {
    animation: clearance-badge-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               clearance-badge-wiggle 3s ease-in-out 0.7s infinite;
}

/* High discount glow ring */
.clearance-card--hot.is-revealed {
    animation: clearance-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
               clearance-hot-glow 2.8s ease-in-out 0.8s infinite;
    animation-delay: var(--card-delay, 0ms), calc(var(--card-delay, 0ms) + 0.8s);
}

.clearance-toolbar .products-filter-chip.clearance-chip-pop {
    animation: clearance-chip-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.clearance-empty {
    border: 1px dashed rgba(185, 28, 28, 0.35);
    background: rgba(254, 226, 226, 0.35);
    animation: clearance-empty-bounce 2s ease-in-out infinite;
}

.clearance-pagination {
    opacity: 0;
    transform: translateY(16px);
    animation: clearance-fade-up 0.6s ease 0.3s forwards;
}

/* ── Keyframes ── */
@keyframes clearance-hero-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes clearance-hero-glow {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.04); }
}

@keyframes clearance-hero-sweep {
    to { transform: rotate(360deg); }
}

@keyframes clearance-spark-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20%, 80% {
        opacity: 1;
    }
    50% {
        transform: translateY(-24px) scale(1.2);
    }
}

@keyframes clearance-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes clearance-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clearance-text-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(240, 215, 140, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(240, 215, 140, 0.85), 0 0 40px rgba(251, 191, 36, 0.35);
    }
}

@keyframes clearance-chip-pop {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes clearance-chip-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
        transform: scale(1.04);
    }
}

@keyframes clearance-toolbar-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clearance-btn-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes clearance-card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96) rotateX(4deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes clearance-pill-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes clearance-pill-pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes clearance-strike-draw {
    to { width: 100%; }
}

@keyframes clearance-badge-wiggle {
    0%, 88%, 100% { transform: rotate(0deg) scale(1); }
    90% { transform: rotate(-6deg) scale(1.05); }
    94% { transform: rotate(6deg) scale(1.05); }
    98% { transform: rotate(-3deg) scale(1.02); }
}

@keyframes clearance-badge-drop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes clearance-hot-glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(8, 40, 74, 0.06), 0 0 0 0 rgba(239, 68, 68, 0.25);
    }
    50% {
        box-shadow: 0 12px 32px rgba(185, 28, 28, 0.14), 0 0 0 4px rgba(239, 68, 68, 0.12);
    }
}

@keyframes clearance-empty-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (min-width: 900px) {
    .clearance-hero {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .clearance-hero-ticker {
        margin: -20px -24px 0;
    }

    .clearance-hero-ticker--reverse {
        margin-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clearance-hero,
    .clearance-hero::before,
    .clearance-hero::after,
    .clearance-spark,
    .clearance-ticker-track,
    .clearance-fade-in,
    .clearance-stat-chip,
    .clearance-stat-chip--pulse,
    .clearance-toolbar,
    .clearance-card,
    .clearance-card.is-revealed,
    .clearance-discount-pill,
    .clearance-badge-clearance,
    .badge-clearance,
    .clearance-empty,
    .clearance-pagination,
    .clearance-query-glow {
        animation: none !important;
        transition: none !important;
    }

    .clearance-card--pending {
        opacity: 1;
        transform: none;
    }

    .clearance-fade-in,
    .clearance-toolbar,
    .clearance-pagination {
        opacity: 1;
        transform: none;
    }

    .clearance-card-shine {
        display: none;
    }
}


/* --- desktop.css --- */
:root {
    --store-navy: #08284a;
    --store-navy-dark: #061f38;
    --store-max: 1280px;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

nav.bottom-nav.mobile-only {
    display: grid;
}

@media (min-width: 900px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none !important;
    }

    .app-shell {
        padding-bottom: 0;
    }

    .mobile-footer {
        display: none !important;
    }

    body:not(.page-home) .app-main {
        max-width: 1200px;
        padding: 24px;
        margin: 0 auto;
    }

    body.page-home .app-main {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .store-header {
        position: relative;
        z-index: 50;
        background: #fff;
        color: var(--text);
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }

    .store-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        max-width: none;
        width: 100%;
        margin: 0;
        min-height: 42px;
        padding: 6px max(24px, calc((100% - var(--store-max)) / 2 + 24px));
        font-size: 0.78rem;
        background: linear-gradient(90deg, var(--store-navy) 0%, #0c3560 55%, #124876 100%);
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .store-topbar-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.95);
        font: inherit;
        font-size: 0.76rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .store-topbar-chip svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        opacity: 0.9;
    }

    .store-topbar-chip:hover,
    .store-topbar-chip:focus-visible {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.32);
        color: #fff;
        transform: translateY(-1px);
    }

    .store-topbar-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        font-weight: 600;
        padding: 4px 2px;
        transition: color 0.15s ease;
    }

    .store-topbar-link svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        opacity: 0.85;
    }

    .store-topbar-link:hover,
    .store-topbar-link:focus-visible {
        color: #fff;
    }

    .store-topbar a {
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
    }

    .store-topbar a:hover {
        color: #fff;
    }

    .store-topbar-left,
    .store-topbar-right {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .store-topbar-sep {
        color: rgba(255, 255, 255, 0.35);
    }

    .store-topbar-pill {
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .store-lang-switch {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .store-lang-pill.is-active {
        background: #fff;
        color: var(--store-navy);
    }

    .store-lang-pill:hover,
    .store-lang-pill:focus-visible {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

    .store-lang-pill.is-active:hover,
    .store-lang-pill.is-active:focus-visible {
        background: #fff;
        color: var(--store-navy);
    }

    .store-mainbar {
        max-width: var(--store-max);
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
        background: #fff;
    }

    .store-nav {
        max-width: none;
        width: 100%;
        margin: 0;
        padding-left: max(24px, calc((100% - var(--store-max)) / 2 + 24px));
        padding-right: max(24px, calc((100% - var(--store-max)) / 2 + 24px));
        background: linear-gradient(90deg, var(--store-navy) 0%, #0c3560 55%, #124876 100%);
        color: #fff;
        border-top: 0;
    }

    .store-mainbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .store-logo img {
        height: 44px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    .store-search-wrap {
        position: relative;
        flex: 1;
        min-width: 0;
    }

    .store-search {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 999px;
        overflow: hidden;
        min-height: 48px;
        box-shadow: none;
    }

    .store-search-suggestions {
        left: 0;
        right: 0;
        top: calc(100% + 8px);
    }

    .store-search-input {
        flex: 1;
        border: 0;
        outline: none;
        padding: 0 18px;
        min-width: 0;
        font-size: 0.95rem;
        color: var(--text);
    }

    .store-search-btn {
        width: 48px;
        height: 48px;
        border: 0;
        background: transparent;
        color: var(--store-navy);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .store-search-btn svg {
        width: 20px;
        height: 20px;
    }

    .store-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .store-action-btn {
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--store-navy);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .store-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .store-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }

    .store-account-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 0 16px;
        border-radius: 999px;
        background: var(--store-navy);
        color: #fff;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .store-account-btn svg {
        width: 18px;
        height: 18px;
    }

    .store-nav {
        display: flex;
        align-items: center;
        gap: 22px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 14px;
        border-top: 0;
        font-size: 0.88rem;
        font-weight: 600;
        position: relative;
        z-index: 40;
        overflow: visible;
    }

    .store-nav-link,
    .store-nav-trigger {
        color: #fff;
        text-decoration: none;
        background: none;
        border: 0;
        padding: 0;
        font: inherit;
        cursor: pointer;
    }

    .store-nav-link:hover,
    .store-nav-link.is-active,
    .store-nav-trigger:hover,
    .store-nav-trigger.is-active {
        color: rgba(255, 255, 255, 0.88);
    }

    .store-nav-item.has-mega {
        position: relative;
    }

    .store-nav-item.has-mega::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }

    .store-mega {
        position: absolute;
        top: 100%;
        left: 0;
        padding-top: 10px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 80;
    }

    .store-nav-item.has-mega:hover .store-mega,
    .store-nav-item.has-mega:focus-within .store-mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .store-nav-item--last .store-mega {
        left: auto;
        right: 0;
        width: min(920px, calc(100vw - 48px));
    }

    .store-mega-inner {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: 0 24px 50px rgba(8, 40, 74, 0.16);
        overflow: hidden;
    }

    .store-mega-layout {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        min-height: 280px;
    }

    .store-mega-aside {
        padding: 22px 20px;
        background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .store-mega-eyebrow {
        margin: 0;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .store-mega-aside strong {
        font-size: 1.1rem;
        color: var(--store-navy);
        line-height: 1.25;
    }

    .store-mega-aside p {
        margin: 0;
        color: var(--muted);
        font-size: 0.84rem;
        line-height: 1.5;
        flex: 1;
    }

    .store-mega-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        background: var(--store-navy);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 700;
        text-decoration: none;
        align-self: flex-start;
        flex-shrink: 0;
        margin-top: auto;
        position: relative;
        z-index: 2;
        border: 0;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .store-mega-cta:hover,
    .store-mega-cta:focus-visible {
        background: var(--store-navy-dark);
        transform: translateY(-1px);
        color: #fff;
    }

    .store-mega-content {
        padding: 18px 20px 20px;
        min-width: 0;
    }

    .store-mega-categories {
        width: min(920px, calc(100vw - 48px));
    }

    .store-mega-brands {
        width: min(880px, calc(100vw - 48px));
    }

    .store-mega-business {
        width: min(920px, calc(100vw - 48px));
    }

    .store-mega-support {
        width: min(760px, calc(100vw - 48px));
    }

    .store-mega-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: 320px;
        overflow: auto;
        padding-right: 4px;
    }

    .store-mega-card {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        text-decoration: none;
        color: var(--text);
        background: #fff;
        transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .store-mega-card:hover,
    .store-mega-card:focus-visible {
        border-color: #b8c9d9;
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .store-mega-card-media {
        display: block;
        width: 72px;
        height: 72px;
        border-radius: 12px;
        overflow: hidden;
        background: #f8fafc;
        flex-shrink: 0;
    }

    .store-mega-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .store-mega-card-body {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .store-mega-card-body strong {
        font-size: 0.86rem;
        color: var(--store-navy);
        line-height: 1.2;
    }

    .store-mega-card-body small {
        font-size: 0.74rem;
        color: var(--muted);
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-mega-brand-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        max-height: 320px;
        overflow: auto;
        padding-right: 4px;
    }

    .store-mega-brand {
        display: grid;
        gap: 8px;
        justify-items: center;
        text-align: center;
        text-decoration: none;
        color: var(--text);
        padding: 12px 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .store-mega-brand:hover,
    .store-mega-brand:focus-visible {
        border-color: var(--store-navy);
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .store-mega-brand img {
        width: 76px;
        height: 42px;
        object-fit: contain;
    }

    .store-mega-brand span {
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-mega-business-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: 320px;
        overflow: auto;
        padding-right: 4px;
    }

    .store-mega-business-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 14px;
        text-decoration: none;
        color: var(--text);
        background: #fff;
        transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .store-mega-business-card:hover,
    .store-mega-business-card:focus-visible {
        border-color: var(--store-navy);
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .store-mega-business-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #eef3f8;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        line-height: 1;
    }

    .store-mega-business-copy {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .store-mega-business-copy strong {
        font-size: 0.84rem;
        color: var(--store-navy);
        line-height: 1.25;
    }

    .store-mega-business-copy small {
        font-size: 0.74rem;
        color: var(--muted);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-mega-support-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .store-mega-support-col h3 {
        margin: 0 0 12px;
        font-size: 0.92rem;
        color: var(--store-navy);
    }

    .store-mega-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 8px;
    }

    .store-mega-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text);
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 600;
        background: #fff;
        transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .store-mega-links a::after {
        content: '→';
        color: var(--muted);
        font-size: 0.9rem;
    }

    .store-mega-links a:hover,
    .store-mega-links a:focus-visible {
        border-color: var(--store-navy);
        background: #f8fafc;
        color: var(--store-navy);
    }

    .store-nav-item.has-mega:hover .store-nav-trigger,
    .store-nav-item.has-mega:focus-within .store-nav-trigger {
        color: #fff;
    }

    .store-hot-deals {
        margin-left: auto;
        color: #ef4444 !important;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.35);
        animation: clearance-pulse 1.8s ease-in-out infinite;
    }

    .store-hot-deals:hover {
        color: #fff !important;
        background: #ef4444;
        border-color: #ef4444;
        animation: none;
    }

    @keyframes clearance-pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
            transform: scale(1.03);
        }
    }

    .store-footer {
        background: #f8fafc;
        border-top: 1px solid var(--border);
        margin-top: 40px;
    }

    .store-footer-grid,
    .store-footer-bottom {
        max-width: var(--store-max);
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .store-footer-grid {
        display: grid;
        grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
        gap: 28px;
        padding-top: 42px;
        padding-bottom: 32px;
    }

    .store-footer h3 {
        margin: 0 0 14px;
        font-size: 1rem;
    }

    .store-footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
    }

    .store-footer a {
        color: var(--muted);
        text-decoration: none;
    }

    .store-footer a:hover {
        color: var(--primary);
    }

    .store-footer .store-social-link {
        color: var(--primary);
    }

    .store-footer-brand p,
    .store-footer-contact {
        color: var(--muted);
        line-height: 1.6;
        font-size: 0.92rem;
    }

    .store-footer-logo {
        height: 42px;
        width: auto;
        margin-bottom: 14px;
    }

    .store-social {
        margin-top: 16px;
    }

    .store-footer-phone {
        display: inline-flex;
        margin: 10px 0 14px;
        color: var(--text);
        font-weight: 700;
        text-decoration: none;
    }

    .store-live-chat {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 18px;
        border-radius: 999px;
        background: var(--store-navy);
        color: #fff !important;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
    }

    .store-app-badges {
        display: grid;
        gap: 8px;
        margin-top: 14px;
    }

    .store-app-badges span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 10px;
        background: #111827;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 600;
    }

    .store-footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 22px;
        border-top: 1px solid var(--border);
        color: var(--muted);
        font-size: 0.85rem;
    }

    .store-payments {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .store-payments span {
        padding: 4px 10px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid var(--border);
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text);
    }

    .home-desktop {
        background: #fff;
    }

    #categories,
    #categories-mobile {
        scroll-margin-top: 140px;
    }

    .home-section,
    .home-popular {
        max-width: var(--store-max);
        margin: 0 auto;
        padding: 28px 24px;
    }

    .home-category-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    .home-category-tile {
        position: relative;
        display: block;
        overflow: hidden;
        border-radius: 16px;
        min-height: 180px;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        transform: translateY(0) scale(1);
        transition:
            transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
            box-shadow 0.38s ease;
        z-index: 1;
        will-change: transform;
    }

    .home-category-tile:hover,
    .home-category-tile:focus-visible {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 22px 44px rgba(8, 40, 74, 0.28);
        z-index: 4;
    }

    .home-category-tile img {
        width: 100%;
        height: 100%;
        min-height: 180px;
        object-fit: cover;
        transform: scale(1);
        transition: transform 0.55s ease;
    }

    .home-category-tile:hover img,
    .home-category-tile:focus-visible img {
        transform: scale(1.12);
    }

    .home-category-label {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: clamp(1.4rem, 2vw, 2rem);
        font-weight: 800;
        letter-spacing: 0.08em;
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.28s ease, transform 0.32s ease;
        pointer-events: none;
    }

    .home-category-tile:hover .home-category-label,
    .home-category-tile:focus-visible .home-category-label {
        opacity: 0;
        transform: scale(0.92);
    }

    .home-category-hover {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        min-height: 52%;
        padding: 18px 14px 16px;
        text-align: center;
        color: #fff;
        background: linear-gradient(180deg, rgba(8, 40, 74, 0) 0%, rgba(8, 40, 74, 0.72) 42%, rgba(8, 40, 74, 0.94) 100%);
        transform: translateY(110%);
        opacity: 0;
        transition:
            transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
            opacity 0.32s ease;
        pointer-events: none;
    }

    .home-category-hover strong {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .home-category-hover em {
        font-style: normal;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(4px);
    }

    .home-category-tile:hover .home-category-hover,
    .home-category-tile:focus-visible .home-category-hover {
        transform: translateY(0);
        opacity: 1;
    }

    @media (prefers-reduced-motion: reduce) {
        .home-category-tile,
        .home-category-tile img,
        .home-category-label,
        .home-category-hover {
            transition: none;
        }

        .home-category-tile:hover,
        .home-category-tile:focus-visible {
            transform: none;
        }

        .home-category-tile:hover img,
        .home-category-tile:focus-visible img {
            transform: none;
        }
    }

    .home-featured {
        background: var(--store-navy);
        color: #fff;
        padding: 34px 0 40px;
    }

    .home-featured-head,
    .home-featured-track {
        max-width: var(--store-max);
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-featured-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 22px;
    }

    .home-eyebrow {
        margin: 0 0 6px;
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .home-featured h2,
    .home-section-head h2 {
        margin: 0;
        font-size: clamp(1.4rem, 2vw, 2rem);
    }

    .carousel-controls {
        display: flex;
        gap: 10px;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .home-popular .carousel-btn {
        border-color: var(--border);
        background: #fff;
        color: var(--text);
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .home-featured-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .home-featured-track::-webkit-scrollbar {
        display: none;
    }

    .home-product-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
        background: #fff;
        color: var(--text);
        border-radius: 18px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }

    .home-product-media img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        background: #f8fafc;
    }

    .home-product-body {
        padding: 14px;
    }

    .home-product-body h3 {
        margin: 0 0 8px;
        font-size: 0.95rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-product-sold {
        margin: 0 0 10px;
        color: var(--muted);
        font-size: 0.82rem;
    }

    .home-product-prices {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 8px;
    }

    .home-product-prices strong {
        font-size: 1.05rem;
    }

    .home-product-prices span {
        color: var(--muted);
        text-decoration: line-through;
        font-size: 0.85rem;
    }

    .home-product-rating {
        color: #f59e0b;
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }

    .service-highlights {
        max-width: var(--store-max);
        margin: 0 auto;
        padding: 28px 24px 10px;
    }

    .service-highlights-track {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }

    .service-item {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid var(--border);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex: 0 0 auto;
    }

    .service-item strong {
        display: block;
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .service-item span {
        display: block;
        color: var(--muted);
        font-size: 0.8rem;
    }

    .home-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .home-popular-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .home-popular-card {
        scroll-snap-align: start;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        box-shadow: var(--shadow);
    }

    .home-popular-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        background: #f8fafc;
    }

    .home-popular-body {
        padding: 12px;
    }

    .home-popular-body strong {
        display: block;
        margin-bottom: 4px;
    }

    .home-popular-body span {
        display: block;
        color: var(--muted);
        text-decoration: line-through;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .home-popular-body p {
        margin: 0;
        color: var(--muted);
        font-size: 0.82rem;
    }
}

@media (max-width: 899px) {
    .service-highlights {
        padding: 0 0 8px;
        margin-bottom: 8px;
    }

    .service-highlights-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 16px 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .service-highlights-track::-webkit-scrollbar {
        display: none;
    }

    .service-item {
        flex: 0 0 180px;
        scroll-snap-align: start;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow);
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-highlights-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .home-popular-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Contact modal (desktop topbar) */
body.contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 40, 74, 0.55);
    backdrop-filter: blur(4px);
}

.contact-modal-dialog {
    position: relative;
    width: min(100%, 720px);
    max-height: min(90vh, 860px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(8, 40, 74, 0.22);
    border: 1px solid var(--border);
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.contact-modal-close svg {
    width: 18px;
    height: 18px;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
    background: #f8fafc;
}

.contact-modal-head {
    margin-bottom: 20px;
    padding-right: 44px;
}

.contact-modal-head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--store-navy);
    letter-spacing: -0.02em;
}

.contact-modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-modal-qr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-qr-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-qr-card.is-focused {
    border-color: var(--store-navy);
    box-shadow: 0 0 0 3px rgba(8, 40, 74, 0.12);
    background: #fff;
}

.contact-qr-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.contact-qr-card-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.contact-qr-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--store-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-qr-icon svg {
    width: 16px;
    height: 16px;
}

.contact-qr-image {
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    border: 1px solid var(--border);
}

.contact-qr-link {
    display: inline-block;
    color: var(--store-navy);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-qr-link:hover,
.contact-qr-link:focus-visible {
    text-decoration: underline;
}

.contact-qr-hint {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.contact-modal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-modal-section {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.contact-modal-section h3 {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--store-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-hours-list,
.contact-locations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contact-hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-hours-list strong {
    color: var(--text);
    font-weight: 600;
}

.contact-locations-list li {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.45;
}

.contact-locations-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-locations-list strong {
    color: var(--text);
}

.contact-locations-list span {
    color: var(--muted);
}

.contact-locations-list a {
    color: var(--store-navy);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.contact-locations-list a:hover,
.contact-locations-list a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .contact-modal-qr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-modal-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .contact-modal-dialog {
        padding: 32px 28px 28px;
    }
}


/* --- home.css --- */
:root {
    --store-navy: #08284a;
    --store-navy-dark: #061f38;
    --store-navy-soft: #0f3d6b;
    --store-accent: #c9a227;
    --store-max: 1280px;
}

.home-page {
    background: #fff;
}

body.page-home .app-main {
    padding: 0;
}

body.page-home .home-page {
    padding-bottom: 8px;
}

body.page-home .home-mobile {
    padding: 0 16px;
}

body.page-home .brand-strip {
    margin-bottom: 18px;
}

body.page-home .home-mobile .brand-strip {
    margin-left: -16px;
    margin-right: -16px;
}

body.page-home .brand-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--store-max);
    margin: 0 auto;
    padding: 12px 16px 10px;
}

body.page-home .brand-strip-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary);
}

body.page-home .brand-strip-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

body.page-home .brand-strip-more {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

body.page-home .brand-strip-more:hover,
body.page-home .brand-strip-more:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-home .brand-strip-hint--desktop {
    display: none;
}

@media (min-width: 900px) {
    body.page-home .brand-strip-hint--mobile {
        display: none;
    }

    body.page-home .brand-strip-hint--desktop.brand-strip-more {
        display: inline;
    }
}

body.page-home .brand-strip-track {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 16px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    cursor: grab;
    max-width: 100%;
}

body.page-home .brand-strip-track::-webkit-scrollbar {
    display: none;
}

body.page-home .brand-strip-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

body.page-home .brand-strip-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 124px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.page-home .brand-strip-item:hover,
body.page-home .brand-strip-item:focus-visible {
    transform: translateY(-2px);
    border-color: #b8c9d9;
}

body.page-home .brand-strip-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@media (min-width: 900px) {
    body.page-home .brand-strip {
        max-width: var(--store-max);
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px 8px;
    }

    body.page-home .brand-strip-head {
        padding: 8px 0 12px;
    }

    body.page-home .brand-strip-head h2 {
        font-size: 1.25rem;
    }

    body.page-home .brand-strip-track {
        gap: 18px;
        padding: 8px 0 16px;
    }

    body.page-home .brand-strip-item {
        width: 148px;
        height: 84px;
        padding: 12px 14px;
    }
}

body.page-home .home-mobile .section:first-of-type {
    padding-top: 4px;
}

body.page-home .home-mobile .category-card,
body.page-home .home-mobile .product-card {
    border-color: #e8edf3;
    box-shadow: 0 8px 24px rgba(8, 40, 74, 0.06);
}

body.page-home .home-mobile .category-chip {
    border-color: #d7e0ea;
    color: var(--primary);
}

.banner-container {
    position: relative;
    width: 100%;
    background: #e8edf3;
    margin-bottom: 0;
}

.home-offers-marquee {
    position: relative;
    padding: 10px 16px 12px;
    background: #fff;
    border-top: 3px solid #90b2d6;
}

.home-offers-marquee-viewport {
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-offers-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    padding: 11px 0;
    animation: home-offers-marquee 38s linear infinite;
    will-change: transform;
}

.home-offers-marquee:hover .home-offers-marquee-track {
    animation-play-state: paused;
}

.home-offers-marquee-item {
    flex: 0 0 auto;
    padding: 0 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.home-offers-marquee-item:hover,
.home-offers-marquee-item:focus-visible {
    color: #065f46;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-offers-marquee-sep {
    flex: 0 0 auto;
    color: #16a34a;
    font-size: 0.55rem;
    opacity: 0.75;
    user-select: none;
}

@keyframes home-offers-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 900px) {
    .home-offers-marquee {
        max-width: var(--store-max, 1280px);
        margin: 0 auto;
        padding: 12px 24px 14px;
    }

    .home-offers-marquee-item {
        font-size: 0.92rem;
        padding: 0 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-offers-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 8px 16px;
        padding: 12px 16px;
    }

    .home-offers-marquee-sep {
        display: none;
    }
}

.banner-slider {
    position: relative;
    width: 100%;
    line-height: 0;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 1;
    text-decoration: none;
}

.banner-link.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-slide {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
    background: #e8edf3;
}

.banner-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--store-navy);
    box-shadow: 0 4px 18px rgba(8, 40, 74, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.banner-nav.prev {
    left: 12px;
}

.banner-nav.next {
    right: 12px;
}

.banner-nav:hover,
.banner-nav:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.banner-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.banner-controls {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 6;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8, 40, 74, 0.55);
    backdrop-filter: blur(8px);
}

.control-btn.play-pause {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.control-btn .play-icon {
    display: block;
}

.control-btn .pause-icon {
    display: none;
}

.control-btn.playing .play-icon {
    display: none;
}

.control-btn.playing .pause-icon {
    display: block;
}

.banner-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.banner-dots .dot.active {
    width: 22px;
    background: #fff;
}

@media (min-width: 900px) {
    .banner-nav {
        width: 48px;
        height: 48px;
    }

    .banner-nav.prev {
        left: 20px;
    }

    .banner-nav.next {
        right: 20px;
    }

    .banner-controls {
        bottom: 18px;
    }
}

@media (max-width: 899px) {
    .banner-nav {
        width: 38px;
        height: 38px;
    }

    .banner-nav.prev {
        left: 8px;
    }

    .banner-nav.next {
        right: 8px;
    }

    .banner-controls {
        bottom: 10px;
        gap: 10px;
        padding: 6px 12px;
    }
}


/* --- marketing-materials.css --- */
.marketing-materials-page {
    max-width: 1100px;
    margin: 0 auto;
}

.marketing-materials-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.marketing-materials-eyebrow {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.marketing-materials-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary);
}

.marketing-materials-intro {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.95rem;
}

.marketing-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.marketing-search-wrap .search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.marketing-search-input {
    width: 100%;
    padding: 12px 88px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

.marketing-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.marketing-brand-groups {
    display: grid;
    gap: 20px;
}

.marketing-brand-group {
    scroll-margin-top: 96px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.marketing-brand-group.is-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.marketing-brand-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.marketing-brand-group-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.marketing-brand-group-logo {
    width: 72px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.marketing-brand-group-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.marketing-brand-group-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.brand-marketing-hub-link {
    display: inline-flex;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.brand-marketing-hub-link:hover {
    text-decoration: underline;
}

.brand-marketing-cta {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

.brand-marketing-cta-text {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.brand-marketing-cta .btn {
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .marketing-materials-head {
        flex-direction: column;
    }

    .marketing-brand-group-head {
        flex-direction: column;
        align-items: stretch;
    }
}


/* --- my-account.css --- */
.account-page {
    max-width: 1100px;
    margin: 0 auto;
}

.account-page-head {
    margin-bottom: 20px;
}

.account-page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.account-user-email {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.account-menu-section {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.account-menu-section:last-of-type {
    margin-bottom: 0;
}

.account-menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
    transform: translateY(-1px);
    border-color: #b8c9d9;
    box-shadow: 0 14px 30px rgba(8, 40, 74, 0.1);
}

.account-menu-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-menu-copy strong {
    font-size: 0.98rem;
    color: var(--text);
}

.account-menu-copy span {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.45;
}

.account-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-menu-arrow {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.account-actions-bar {
    margin-top: 18px;
}

.account-signout {
    width: 100%;
}

.account-sidebar {
    display: grid;
    gap: 16px;
}

.account-contact-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.account-contact-card h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.account-contact-name {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.account-contact-address {
    display: grid;
    gap: 4px;
    margin: 0 0 12px;
    font-style: normal;
    color: var(--text);
    line-height: 1.5;
    font-size: 0.92rem;
}

.account-contact-phone,
.account-contact-email,
.account-manage-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.account-contact-phone:hover,
.account-contact-email:hover,
.account-manage-link:hover,
.account-contact-phone:focus-visible,
.account-contact-email:focus-visible,
.account-manage-link:focus-visible {
    text-decoration: underline;
}

.account-address-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.account-address-list li {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.45;
}

.account-address-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-address-list strong {
    color: var(--text);
}

.account-address-list span {
    color: var(--muted);
}

.account-empty {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (min-width: 900px) {
    .account-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        gap: 24px;
    }

    .account-signout {
        width: auto;
    }
}


/* --- new-arrivals-scroll.css --- */
.new-arrivals-section {
    margin-bottom: 20px;
    padding: 0 16px;
}

body.page-home .home-desktop .new-arrivals-section {
    max-width: var(--store-max, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px 8px;
}

.new-arrivals-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.new-arrivals-eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.new-arrivals-head h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--primary);
}

.new-arrivals-scroll {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    cursor: grab;
    margin: 0 -16px;
    padding: 4px 16px 10px;
}

.new-arrivals-scroll::-webkit-scrollbar {
    display: none;
}

.new-arrivals-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.new-arrival-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 158px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(8, 40, 74, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-arrival-card:hover,
.new-arrival-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 40, 74, 0.12);
}

.new-arrival-media {
    position: relative;
    aspect-ratio: 1;
    background: #f8fafc;
}

.new-arrival-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.new-arrival-media .badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
}

.new-arrival-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    min-height: 0;
}

.new-arrival-brand {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-arrival-body h3 {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

.new-arrival-body .products-card-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.new-arrival-body .products-price-tag {
    font-size: 0.64rem;
    padding: 2px 6px;
}

.new-arrival-body .stock-pill {
    align-self: flex-start;
    font-size: 0.64rem;
}

@media (min-width: 900px) {
    .new-arrivals-head h2 {
        font-size: 1.35rem;
    }

    .new-arrival-card {
        width: 188px;
    }

    .new-arrivals-scroll {
        gap: 16px;
        margin: 0;
        padding: 4px 0 12px;
    }
}


/* --- orders.css --- */
.orders-page {
    max-width: 1180px;
    margin: 0 auto;
}

.orders-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.orders-page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.orders-page-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.orders-page-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.orders-stat-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
}

.orders-stat-card span,
.orders-stat-card small {
    color: var(--muted);
    font-size: 0.86rem;
}

.orders-stat-card strong {
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.orders-stat-card-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0f3d6b 100%);
    border-color: transparent;
    color: #fff;
}

.orders-stat-card-primary span,
.orders-stat-card-primary small {
    color: rgba(255, 255, 255, 0.82);
}

.orders-stat-card-primary strong {
    color: #fff;
}

.orders-filters {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.orders-filters-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.orders-filter {
    display: grid;
    gap: 6px;
}

.orders-filter span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.orders-filter select,
.orders-filter input,
.orders-filter textarea,
.orders-track-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
}

.orders-filter textarea {
    min-height: 110px;
    resize: vertical;
}

.orders-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.orders-list-wrap {
    min-width: 0;
}

.orders-section-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.orders-list {
    display: grid;
    gap: 10px;
}

.orders-list-item,
.orders-return-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.orders-list-item:hover,
.orders-list-item:focus-visible,
.orders-list-item.is-active {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.orders-list-item.is-active {
    background: #f8fbff;
}

.orders-return-card {
    flex-wrap: wrap;
}

.orders-return-card.is-request {
    border-style: dashed;
}

.orders-list-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.orders-list-main strong {
    font-size: 0.95rem;
    color: var(--text);
}

.orders-list-main span,
.orders-list-main small {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.4;
}

.orders-list-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    flex-shrink: 0;
}

.orders-return-amount {
    color: var(--primary);
}

.orders-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e2e8f0;
    color: #334155;
}

.orders-status-badge.is-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.orders-status-badge.is-confirmed {
    background: #e0e7ff;
    color: #4338ca;
}

.orders-status-badge.is-shipped {
    background: #fef3c7;
    color: #b45309;
}

.orders-status-badge.is-delivered {
    background: #dcfce7;
    color: #166534;
}

.orders-status-badge.is-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.orders-detail-panel {
    min-width: 0;
}

.orders-detail-card,
.orders-detail-empty {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.orders-detail-empty h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.orders-detail-empty p {
    margin: 0;
    color: var(--muted);
}

.orders-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.orders-detail-eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.orders-detail-head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.orders-detail-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.orders-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.orders-detail-summary div {
    display: grid;
    gap: 4px;
}

.orders-detail-summary span {
    font-size: 0.78rem;
    color: var(--muted);
}

.orders-detail-block {
    margin-bottom: 18px;
}

.orders-detail-block h3 {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.orders-detail-block p {
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.5;
    font-size: 0.9rem;
}

.orders-track-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.orders-track-steps li {
    position: relative;
    padding: 0 0 18px 28px;
    color: var(--muted);
    font-size: 0.88rem;
}

.orders-track-steps li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.orders-track-steps li::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.orders-track-steps li:last-child {
    padding-bottom: 0;
}

.orders-track-steps li:last-child::after {
    display: none;
}

.orders-track-steps li.is-done::before {
    background: var(--primary);
}

.orders-track-steps li.is-current {
    color: var(--primary);
    font-weight: 700;
}

.orders-track-steps li.is-cancelled {
    color: #b91c1c;
    font-weight: 700;
}

.orders-line-items {
    display: grid;
    gap: 10px;
}

.orders-line-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafbfc;
}

.orders-line-item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.orders-line-item strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.orders-line-item span {
    font-size: 0.8rem;
    color: var(--muted);
}

.orders-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-empty,
.orders-alert,
.orders-success,
.orders-returns-note {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.orders-empty {
    border: 1px dashed var(--border);
    color: var(--muted);
    background: #f8fafc;
}

.orders-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.orders-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.orders-returns-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.orders-returns-note p {
    margin: 6px 0 0;
    color: #92400e;
    line-height: 1.5;
}

.orders-return-pending {
    display: grid;
    gap: 4px;
    justify-items: end;
}

.orders-return-pending small {
    color: var(--muted);
    font-size: 0.78rem;
}

.orders-track-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.orders-track-field {
    display: grid;
    gap: 6px;
}

.orders-track-result .orders-detail-card {
    margin-top: 0;
}

@media (min-width: 700px) {
    .orders-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-filters-row {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    }

    .orders-filter-search {
        grid-column: span 2;
    }

    .orders-track-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

@media (min-width: 960px) {
    .orders-layout,
    .orders-returns-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    }

    .orders-detail-panel {
        position: sticky;
        top: calc(var(--header-height) + 16px);
    }
}

@media (max-width: 959px) {
    .orders-detail-panel {
        order: -1;
    }
}

.return-request-form {
    display: grid;
    gap: 16px;
}

.return-request-order-card,
.return-request-items-card,
.return-request-meta-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.return-request-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.return-request-order-total {
    display: grid;
    gap: 4px;
    text-align: right;
}

.return-request-order-total span {
    color: var(--muted);
    font-size: 0.82rem;
}

.return-request-items-head h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--primary);
}

.return-request-items-head p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.return-request-items {
    display: grid;
    gap: 12px;
}

.return-request-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafbfc;
}

.return-request-item.is-selected {
    border-color: var(--primary);
    background: #f8fbff;
}

.return-request-item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.return-request-item-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.return-request-item-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.return-request-item-body strong {
    font-size: 0.9rem;
}

.return-request-item-body span {
    font-size: 0.82rem;
    color: var(--muted);
}

.return-request-qty-field {
    display: grid;
    gap: 6px;
    max-width: 140px;
}

.return-request-qty-field span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.return-request-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

.return-request-lines {
    margin: -6px 0 12px;
    padding: 0 18px 12px;
    display: grid;
    gap: 6px;
}

.return-request-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--muted);
}

.return-request-summary-card {
    margin-bottom: 10px;
}

.return-credit-note-ref {
    margin: 0 0 12px 18px;
    font-size: 0.86rem;
    color: var(--primary);
    font-weight: 600;
}

.admin-return-actions,
.admin-return-credit-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-return-credit-form h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary);
}

@media (max-width: 699px) {
    .return-request-item {
        grid-template-columns: 1fr;
    }

    .return-request-item img {
        width: 56px;
        height: 56px;
    }
}


/* --- product-detail.css --- */
body.page-product-detail {
    background: #fff;
}

body.page-product-detail .app-main {
    background: #fff;
    max-width: 1280px;
    padding: 16px 16px 32px;
}

.product-page {
    gap: 0;
}

.product-page .breadcrumb {
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--muted);
}

.product-page .breadcrumb a {
    color: var(--text);
}

.product-page .product-detail {
    gap: 28px;
    margin-bottom: 28px;
}

.product-page .product-gallery-main-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-page .product-gallery-main-btn img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 0;
    display: block;
}

.product-image-modal[hidden] {
    display: none !important;
}

body.product-image-modal-open {
    overflow: hidden;
}

.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 20, 36, 0.88);
    cursor: zoom-out;
}

.product-image-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-modal-dialog img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.product-image-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-image-modal-close svg {
    width: 20px;
    height: 20px;
}

.product-image-modal-close:hover,
.product-image-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
}

.product-image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(8, 40, 74, 0.18);
}

.product-image-modal-nav svg {
    width: 20px;
    height: 20px;
}

.product-image-modal-nav--prev {
    left: -56px;
}

.product-image-modal-nav--next {
    right: -56px;
}

.product-image-modal-nav:hover,
.product-image-modal-nav:focus-visible {
    background: #fff;
}

@media (max-width: 768px) {
    .product-image-modal {
        padding: 12px;
    }

    .product-image-modal-close {
        top: 8px;
        right: 8px;
        background: rgba(8, 40, 74, 0.72);
    }

    .product-image-modal-nav {
        width: 38px;
        height: 38px;
    }

    .product-image-modal-nav--prev {
        left: 8px;
    }

    .product-image-modal-nav--next {
        right: 8px;
    }

    .product-image-modal-dialog img {
        max-height: calc(100vh - 24px);
    }
}

.product-page .product-gallery,
.product-page .product-info,
.product-page .product-description {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.product-page .product-gallery-main-btn img {
    background: #fff;
    border-radius: 0;
}

.product-page .product-price-grid {
    gap: 20px;
    margin-bottom: 16px;
}

.product-page .product-price-grid .price-block {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-page .price-row {
    gap: 20px;
    margin-bottom: 16px;
}

.product-page .product-cart-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-page .cart-widget-actions {
    gap: 12px;
    flex-wrap: wrap;
}

.product-page .cart-widget-actions .cart-add-btn {
    flex: 1 1 140px;
    min-width: 0;
}

.product-page .wishlist-toggle-btn--inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.product-page .wishlist-toggle-btn--inline svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.product-page .wishlist-toggle-btn--inline:hover,
.product-page .wishlist-toggle-btn--inline:focus-visible {
    color: var(--primary);
}

.product-page .wishlist-toggle-btn--inline.is-active {
    color: #e11d48;
    background: transparent;
    border-color: transparent;
}

.product-page .wishlist-toggle-btn--inline.is-active svg path {
    fill: currentColor;
    stroke: currentColor;
}

.product-page .cart-widget {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 16px;
}

.product-page .cart-widget-prices {
    gap: 16px;
}

.product-page .cart-price-item {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-page .stock-panel {
    background: transparent;
    border-radius: 0;
    padding: 18px 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-page .meta-grid {
    gap: 0;
    margin-top: 4px;
}

.product-page .meta-item {
    background: transparent;
    border-radius: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.product-page .meta-item:last-child {
    border-bottom: 0;
}

.product-page .meta-item-barcode .barcode-visual {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
}

.product-page .product-description {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 0;
}

.product-page .product-description h2,
.product-page .description-panel h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 900px) {
    body.page-product-detail .app-main {
        padding: 20px 24px 40px;
    }

    .product-page .product-detail {
        gap: 40px;
        grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
    }

    .product-page .stock-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-page .meta-grid {
        grid-template-columns: 1fr;
    }
}

.product-marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-marketing-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-marketing-actions svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-origin-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-origin-flag {
    font-size: 1.35rem;
    line-height: 1;
}


/* --- products.css --- */
body.page-products {
    background: #f7f7f7;
    --catalog-radius: 4px;
    --catalog-border: #e5e5e5;
    --catalog-surface: #fff;
}

body.page-products .app-main {
    padding: 0;
    max-width: none;
}

.products-page {
    min-height: 60vh;
}

.products-hero {
    background: linear-gradient(135deg, #061f38 0%, #08284a 55%, #0f3d6b 100%);
    color: #fff;
    padding: 16px 16px 28px;
}

.products-breadcrumb {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.products-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.products-breadcrumb a:hover {
    color: #fff;
}

.products-hero-body h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.products-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.products-query {
    color: #f0d78c;
}

.products-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.products-brand-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.products-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--catalog-radius);
    background: #fff;
    padding: 8px;
    flex-shrink: 0;
}

.products-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 16px 24px;
    background: #f7f7f7;
}

body.page-products .products-layout {
    gap: 16px;
}

.products-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.catalog-sidebar-head {
    padding: 14px 16px;
    background: var(--catalog-surface);
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
}

.catalog-hero {
    background: #0a0a0a;
}

.catalog-hero-banner {
    width: 100%;
    overflow: hidden;
    background: #111;
}

.catalog-hero-image {
    display: block;
    width: 100%;
    height: clamp(132px, 32vw, 220px);
    object-fit: cover;
    object-position: center;
}

.page-brand .products-content,
.page-category .products-content {
    padding: 16px 20px 24px;
}

.page-brand .products-toolbar,
.page-category .products-toolbar {
    margin: 0 0 12px;
    padding: 10px 12px;
    overflow: visible;
}

.page-brand .products-toolbar.catalog-toolbar,
.page-category .products-toolbar.catalog-toolbar {
    border-radius: var(--catalog-radius);
    box-shadow: none;
}

.catalog-sidebar-head .catalog-toolbar-breadcrumb {
    margin: 0 0 10px;
}

.catalog-sidebar-head .catalog-toolbar-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.catalog-sidebar-head .catalog-toolbar-count {
    align-self: flex-start;
    text-align: left;
}

.catalog-sidebar-head .catalog-toolbar-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--catalog-radius);
    padding: 4px;
}

.catalog-sidebar-head .catalog-toolbar-title h1 {
    font-size: 1.05rem;
    font-weight: 700;
}

.catalog-sidebar-head .catalog-toolbar-count {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.catalog-toolbar-breadcrumb {
    margin: 0 0 4px;
    font-size: 0.62rem;
    line-height: 1.3;
    color: var(--muted);
}

.catalog-toolbar-breadcrumb a {
    color: var(--text);
}

.catalog-toolbar-breadcrumb a:hover {
    color: var(--primary);
}

.catalog-toolbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-toolbar-main--brand {
    align-items: center;
}

.catalog-toolbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-toolbar-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: var(--catalog-radius);
    background: #fff;
    border: 1px solid var(--catalog-border);
    padding: 3px;
    flex-shrink: 0;
}

.catalog-toolbar-title h1 {
    margin: 0;
    font-size: clamp(0.9rem, 2.2vw, 1.02rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.catalog-toolbar-eyebrow {
    margin: 0;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.catalog-toolbar-count {
    margin: 0;
    flex-shrink: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.catalog-toolbar .products-toolbar-row {
    padding: 6px 12px;
    align-items: center;
}

.catalog-toolbar .products-active-filters {
    padding: 0 12px 6px;
    margin-top: 0;
    border-top: none;
}

.catalog-toolbar .filter-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.62rem;
    line-height: 16px;
}

.products-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: var(--catalog-surface);
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    box-shadow: none;
}

.products-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.products-filter-btn,
.products-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.products-filter-btn svg,
.products-filter-toggle svg {
    width: 15px;
    height: 15px;
}

.products-filter-btn:hover,
.products-filter-toggle:hover {
    border-color: #b8c9d9;
    background: #f8fafc;
}

.products-toolbar-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.products-select-field {
    display: grid;
    gap: 2px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 0;
}

.products-select-field select {
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    padding: 5px 8px;
    background: #fff;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 0;
    min-height: 32px;
}

.products-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.catalog-toolbar .products-active-filters {
    margin-top: 0;
    padding-top: 0;
}

.products-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--catalog-radius);
    border: 1px solid var(--catalog-border);
    background: #f8fafc;
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 600;
}

.products-clear-filters {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.catalog-toolbar .products-clear-filters {
    font-size: 0.68rem;
}

.products-clear-filters:hover {
    color: var(--primary);
}

.products-grid {
    gap: 12px;
}

body.page-products .product-card,
.products-card {
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    box-shadow: none;
    transition: border-color 0.15s ease;
}

body.page-products .product-card:hover,
.products-card:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: none;
}

.products-card .product-card-body {
    padding: 14px;
}

.products-card-brand {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.products-card h3 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-card-sku {
    margin: 0 0 10px;
    font-size: 0.72rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.products-card-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 10px;
}

.products-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--catalog-radius);
    border: 1px solid var(--catalog-border);
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
}

.products-price-tag em {
    font-style: normal;
    color: var(--muted);
    font-weight: 700;
}

.products-price-rsp {
    color: #0f766e;
}

.products-price-moq {
    color: #64748b;
}

.products-price-strike {
    margin-left: 4px;
    color: #94a3b8;
    font-weight: 600;
    text-decoration: line-through;
}

.products-price-tag--offer {
    background: #fef3c7;
    color: #92400e;
}

.badge-offer {
    background: #f59e0b;
    color: #fff;
}

.products-demo-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.products-card .product-card-meta {
    margin-top: 0;
}

.products-card .card-action-btn:hover,
.products-card .card-action-btn:focus-visible {
    border-color: #b8c9d9;
    color: var(--primary);
}

.products-empty {
    margin-top: 8px;
    padding: 40px 24px;
    border-radius: var(--catalog-radius);
    background: #fff;
    border: 1px dashed var(--catalog-border);
}

.products-pagination,
.pagination-nav {
    margin-top: 16px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    box-shadow: none;
}

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination-nav-btn,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--catalog-radius);
    border: 1px solid var(--catalog-border);
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}

.pagination-nav-btn {
    color: var(--primary);
}

.pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pagination-page.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-nav-btn:hover,
.pagination-page:hover {
    border-color: #b8c9d9;
    color: var(--primary);
}

.pagination-ellipsis {
    padding: 0 2px;
    color: var(--muted);
    font-weight: 700;
}

.products-page-indicator {
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 640px) {
    .pagination-row {
        gap: 4px;
    }
}

body.page-products .filter-brand-count {
    background: #f0f0f0;
    color: var(--muted);
    border-radius: var(--catalog-radius);
}

/* Unified sidebar panel + flat layout */
body.page-products .products-main {
    min-width: 0;
}

@media (min-width: 992px) {
    body.page-products .products-sidebar-column {
        background: #fff;
        border: 1px solid var(--catalog-border);
        border-radius: var(--catalog-radius);
        gap: 0;
        overflow: hidden;
    }

    body.page-products .catalog-sidebar-head {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--catalog-border);
    }

    body.page-products .catalog-sidebar-head .catalog-toolbar-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    body.page-products .catalog-sidebar-head .catalog-toolbar-count {
        align-self: center;
        text-align: right;
        white-space: nowrap;
    }

    body.page-products .products-filter-sidebar-inner {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 12px 14px 14px;
    }

    body.page-products .products-filter-sidebar-head {
        border-bottom: 1px solid var(--catalog-border);
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    body.page-products .products-filter-sidebar-head h2 {
        font-size: 0.88rem;
        font-weight: 700;
    }
}

/* Flat filter sidebar on catalog pages */
body.page-products .products-filter-sidebar-head {
    border-bottom: 1px solid var(--catalog-border);
}

@media (max-width: 991px) {
    body.page-products .products-filter-sidebar-inner {
        border-radius: var(--catalog-radius);
        border-color: var(--catalog-border);
        box-shadow: none;
        padding: 12px;
    }

    body.page-products .products-filter-sidebar-head {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
}

body.page-products .products-filter-search,
body.page-products .products-filter-sections {
    border-radius: var(--catalog-radius);
    border-color: var(--catalog-border);
}

body.page-products .products-filter-search {
    background: #f7f7f7;
}

body.page-products .products-filter-sidebar-close {
    border-radius: var(--catalog-radius);
}

body.page-products .filter-option-item,
body.page-products .filter-brand-item {
    border-radius: var(--catalog-radius);
}

@media (max-width: 991px) {
    body.page-products .products-sidebar-column {
        gap: 10px;
    }
}

body.page-products .products-card-cart {
    background: #fff;
}

body.page-products .products-card-cart .cart-widget {
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--catalog-border);
    background: #fff;
    padding: 10px 12px;
}

body.page-products .products-card-cart .cart-widget--compact {
    border-radius: 0;
    padding: 10px 12px;
}

body.page-products .products-card-cart .cart-price-item,
body.page-products .products-card-cart .qty-stepper {
    border-radius: var(--catalog-radius);
    border-color: var(--catalog-border);
}

body.page-products .stock-pill {
    border-radius: var(--catalog-radius);
}

body.page-products .product-card-media .badge {
    border-radius: var(--catalog-radius);
}

@media (max-width: 991px) {
    .products-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 88vw);
        z-index: 80;
        pointer-events: none;
    }

    .products-filter-sidebar-inner {
        height: 100%;
        max-height: none;
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        pointer-events: auto;
    }

    .products-layout.is-sidebar-open .products-filter-sidebar-inner {
        transform: translateX(0);
    }

    .products-layout.is-sidebar-open .products-filter-sidebar {
        pointer-events: auto;
    }

    .products-filter-backdrop {
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    .products-layout {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
        gap: 20px;
    }

    body.page-products .products-layout {
        gap: 20px;
    }

    .products-sidebar-column {
        position: sticky;
        top: 16px;
        align-self: start;
    }

    .products-filter-sidebar {
        position: static;
        top: auto;
    }

    .products-filter-sidebar-close,
    .products-filter-backdrop {
        display: none !important;
    }

    .products-filter-toggle {
        display: none;
    }

    .products-filter-sections {
        max-height: calc(100vh - 220px);
    }
}

@media (min-width: 768px) {
    .products-hero {
        padding: 20px 24px 32px;
    }

    .products-content {
        padding: 0 24px 32px;
    }

    .products-toolbar {
        margin-top: 0;
        padding: 10px 12px;
    }

    .catalog-toolbar .products-toolbar-row,
    .catalog-toolbar .products-active-filters {
        padding-left: 12px;
        padding-right: 12px;
    }

    .catalog-toolbar-head {
        padding: 8px 12px 6px;
    }

    .catalog-toolbar .products-toolbar-selects {
        max-width: 360px;
    }

    .products-toolbar-selects {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        max-width: 360px;
        margin-left: auto;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .products-hero {
        padding: 24px 24px 36px;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    body.page-products .app-main {
        padding: 0;
    }

    .catalog-hero-image {
        height: 220px;
    }

    .catalog-toolbar {
        display: block;
    }

    .catalog-toolbar .products-toolbar-row {
        padding: 4px 0 6px 14px;
        border-bottom: none;
    }

    .catalog-toolbar .products-active-filters {
        padding: 4px 14px 6px;
        margin-top: 0;
        border-top: none;
    }
}

@media (max-width: 899px) {
    .catalog-toolbar-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-toolbar-main--brand {
        align-items: flex-start;
    }

    .catalog-toolbar-count {
        align-self: flex-start;
    }
}

.brand-marketing-section {
    scroll-margin-top: 96px;
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.brand-marketing-head {
    margin-bottom: 16px;
}

.brand-marketing-head h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-marketing-intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.brand-marketing-empty {
    margin: 0;
}

.brand-marketing-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.brand-marketing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #f7f7f7;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.brand-marketing-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-marketing-item-name {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.brand-marketing-item-product,
.brand-marketing-item-meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.brand-marketing-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.brand-marketing-download svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .brand-marketing-item {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-marketing-download {
        justify-content: center;
    }
}


/* --- register.css --- */
.page-register .app-main {
    max-width: none;
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.register-page {
    padding: 20px 16px 32px;
}

.register-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.register-page-intro {
    margin-bottom: 20px;
    text-align: center;
}

.register-page-intro h1 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.register-page-intro p {
    margin: 0 auto;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.6;
    font-size: 0.98rem;
}

.register-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.92rem;
}

.register-form {
    margin: 0;
}

.register-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.register-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.register-panel {
    padding: 24px 20px;
}

.register-panel + .register-panel {
    border-top: 1px solid var(--border);
}

.register-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.register-section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    border-radius: 999px;
    background: var(--primary);
    flex-shrink: 0;
}

.register-fields {
    display: grid;
    gap: 16px;
}

.register-grid {
    display: grid;
    gap: 16px;
}

.register-grid-2 {
    grid-template-columns: 1fr;
}

.register-fields-stack {
    gap: 14px;
}

.register-subsection {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.register-subsection-title,
.register-doc-block .register-subsection-title {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.register-doc-block {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.register-doc-block .register-fields {
    gap: 14px;
}

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #334155;
}

.register-terms input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.register-terms a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.register-field {
    display: grid;
    gap: 8px;
}

.register-field > label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.register-field input[type="text"],
.register-field input[type="email"],
.register-field input[type="tel"],
.register-field input[type="date"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.register-field input::placeholder {
    color: #94a3b8;
}

.register-field input:hover {
    border-color: #cbd5e1;
}

.register-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 40, 74, 0.1);
}

.register-field-file .register-file-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.register-field-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.register-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--primary);
    border: 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.register-file-btn:hover {
    background: var(--primary-dark);
}

.register-file-name {
    font-size: 0.86rem;
    color: var(--muted);
    word-break: break-word;
}

.register-divider {
    margin: 4px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.register-actions {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    display: grid;
    gap: 12px;
}

.register-submit {
    width: 100%;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.register-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.register-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.register-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.register-login-hint {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.register-login-hint a {
    color: var(--primary);
    font-weight: 700;
}

.register-confirmation {
    min-height: calc(100vh - var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.register-confirmation-card {
    width: min(100%, 560px);
    padding: 36px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.register-confirmation-card h1 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.register-confirmation-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.register-confirmation-id {
    margin-top: 18px !important;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.register-confirmation-id span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

.register-confirmation-id strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.register-confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (min-width: 640px) {
    .register-page {
        padding: 28px 24px 40px;
    }

    .register-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-panel {
        padding: 28px 28px 32px;
    }

    .register-actions {
        padding: 24px 28px;
    }
}

@media (min-width: 900px) {
    .register-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-panel + .register-panel {
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .register-submit {
        width: auto;
        min-width: 240px;
        justify-self: center;
    }
}


/* --- rtl.css --- */
html[dir="rtl"] body {
    font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

html[dir="rtl"] .app-shell,
html[dir="rtl"] .store-header,
html[dir="rtl"] .store-footer,
html[dir="rtl"] .products-page,
html[dir="rtl"] .cart-page,
html[dir="rtl"] .product-page {
    direction: rtl;
}

html[dir="rtl"] .store-topbar-left,
html[dir="rtl"] .store-topbar-right,
html[dir="rtl"] .store-mainbar,
html[dir="rtl"] .store-nav,
html[dir="rtl"] .store-footer-grid,
html[dir="rtl"] .products-toolbar-row,
html[dir="rtl"] .cart-line,
html[dir="rtl"] .cart-layout,
html[dir="rtl"] .product-detail,
html[dir="rtl"] .section-head,
html[dir="rtl"] .home-section-head,
html[dir="rtl"] .home-featured-head,
html[dir="rtl"] .brand-strip-head,
html[dir="rtl"] .cart-page-head,
html[dir="rtl"] .cart-line-controls,
html[dir="rtl"] .cart-widget-actions,
html[dir="rtl"] .header-top,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .products-brand-head,
html[dir="rtl"] .products-active-filters,
html[dir="rtl"] .products-filter-sidebar-head,
html[dir="rtl"] .products-filter-actions,
html[dir="rtl"] .cart-summary-row {
    direction: rtl;
}

html[dir="rtl"] .search-icon,
html[dir="rtl"] .store-search-btn {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .search-input,
html[dir="rtl"] .store-search-input {
    padding-left: 16px;
    padding-right: 42px;
}

html[dir="rtl"] .search-submit {
    border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .search-scan-btn {
    left: 72px;
    right: auto;
}

html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .products-breadcrumb {
    direction: rtl;
}

html[dir="rtl"] .home-category-hover strong,
html[dir="rtl"] .home-category-label {
    letter-spacing: 0.02em;
}

html[dir="rtl"] .qty-input {
    border-left: 0;
    border-right: 0;
}

html[dir="rtl"] .cart-line-totals,
html[dir="rtl"] .cart-line-prices,
html[dir="rtl"] .cart-widget-prices,
html[dir="rtl"] .products-card-prices {
    text-align: right;
}

html[dir="rtl"] .store-mega {
    left: auto;
    right: 0;
}

html[dir="rtl"] .store-nav-item--last .store-mega {
    left: 0;
    right: auto;
}

html[dir="rtl"] .store-mega-aside {
    border-right: 0;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .store-mega-links a::after {
    content: '←';
}

html[dir="rtl"] .checkout-summary-row,
html[dir="rtl"] .checkout-line-item,
html[dir="rtl"] .order-confirmation-meta {
    text-align: right;
}

html[dir="rtl"] .mobile-lang-switch {
    flex-direction: row-reverse;
}

html[dir="rtl"] .register-section-title {
    flex-direction: row-reverse;
}

html[dir="rtl"] .register-field-file .register-file-wrap,
html[dir="rtl"] .register-confirmation-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .register-page-intro,
html[dir="rtl"] .register-field > label,
html[dir="rtl"] .register-login-hint,
html[dir="rtl"] .register-terms {
    text-align: right;
}

html[dir="rtl"] .register-terms {
    flex-direction: row-reverse;
}

html[dir="rtl"] .branding-page-intro,
html[dir="rtl"] .branding-field > label,
html[dir="rtl"] .branding-label,
html[dir="rtl"] .branding-section-title {
    text-align: right;
}

html[dir="rtl"] .branding-section-title {
    flex-direction: row-reverse;
}

html[dir="rtl"] .branding-radio,
html[dir="rtl"] .branding-check {
    flex-direction: row-reverse;
}

html[dir="rtl"] .account-menu-item {
    grid-template-columns: auto auto minmax(0, 1fr);
}

html[dir="rtl"] .account-menu-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .account-menu-copy,
html[dir="rtl"] .account-contact-address,
html[dir="rtl"] .account-page-head {
    text-align: right;
}

@media (min-width: 900px) {
    html[dir="rtl"] .register-panel + .register-panel {
        border-left: 0;
        border-right: 1px solid var(--border);
    }
}

html[dir="rtl"] .contact-modal-head {
    padding-right: 0;
    padding-left: 44px;
    text-align: right;
}

html[dir="rtl"] .contact-modal-close {
    right: auto;
    left: 14px;
}

html[dir="rtl"] .contact-hours-list li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-locations-list li {
    text-align: right;
}

html[dir="rtl"] .orders-page-head,
html[dir="rtl"] .orders-list-main,
html[dir="rtl"] .orders-detail-block,
html[dir="rtl"] .orders-detail-empty {
    text-align: right;
}

html[dir="rtl"] .orders-list-side,
html[dir="rtl"] .orders-return-pending {
    justify-items: start;
}

html[dir="rtl"] .orders-track-steps li {
    padding-left: 0;
    padding-right: 28px;
}

html[dir="rtl"] .orders-track-steps li::before {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .orders-track-steps li::after {
    left: auto;
    right: 12px;
}

@media (min-width: 900px) {
    html[dir="rtl"] .store-search-input {
        padding-right: 48px;
        padding-left: 16px;
    }
}

html[dir="rtl"] .bottom-nav-badge,
html[dir="rtl"] .bottom-nav-badge[data-cart-count] {
    right: auto;
    left: -6px;
}


/* --- wishlist.css --- */
.wishlist-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.wishlist-eyebrow {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wishlist-page-head h1 {
    margin: 0 0 8px;
}

.wishlist-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.wishlist-lines {
    display: grid;
    gap: 14px;
}

.wishlist-line {
    grid-template-columns: 96px minmax(0, 1fr);
}

.wishlist-line-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wishlist-line-actions .cart-widget {
    flex: 1 1 260px;
}

.wishlist-remove-btn {
    flex: 0 0 auto;
}

.wishlist-page-foot {
    margin-top: 24px;
}

.wishlist-empty {
    text-align: center;
    padding: 48px 20px;
}

.wishlist-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wishlist-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.wishlist-toggle-btn.is-active {
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.25);
    background: rgba(225, 29, 72, 0.08);
}

.wishlist-toggle-btn.is-active svg path {
    fill: currentColor;
    stroke: currentColor;
}

@media (max-width: 720px) {
    .wishlist-line {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .wishlist-line-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

