/* Customer UI. Keep the existing admin theme independent of this scope. */
@font-face {
    font-family: Inter;
    src: url('/fonts/inter/InterVariable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.customer-experience {
    --store-ink: #1f1c17;
    --store-muted: #6d655c;
    --store-accent: #1f1c17;
    --store-soft: #f6f2ec;
    --store-line: #e7dfd6;
    --store-shadow: none;
    --store-font-body: Inter, "Segoe UI", system-ui, sans-serif;
    --store-font-heading: var(--store-font-body);
    --bs-body-bg: #fffdfa;
    --bs-body-color: #1f1c17;
    --bs-secondary-bg: #f6f2ec;
    --bs-tertiary-bg: #f6f2ec;
    --bs-border-color: #e7dfd6;
    --bs-primary: #1f1c17;
    --bs-primary-rgb: 31, 28, 23;
    --bs-link-color: #1f1c17;
    --bs-link-color-rgb: 31, 28, 23;
    --bs-link-hover-color: #39332b;
    --bs-link-hover-color-rgb: 57, 51, 43;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 18px;
    min-height: 100vh;
    background: #fffdfa;
    color: var(--store-ink);
    font: 400 15px/1.55 var(--store-font-body);
    color-scheme: light;
    display: flex;
    flex-direction: column;
}
html:has(.customer-experience), body:has(.customer-experience) { background: #fffdfa !important; }
.customer-experience .container { max-width: 1480px; padding-inline: 32px; }
.customer-experience .storefront-shell { flex: 1; min-height: 60vh; background: #fffdfa; }
.customer-experience .storefront-page { padding-block: 28px !important; }
.customer-experience h1, .customer-experience h2, .customer-experience h3,
.customer-experience h4, .customer-experience h5, .customer-experience h6 { font-family: var(--store-font-body); color: var(--store-ink); font-weight: 650; letter-spacing: -.025em; }
.customer-experience h1 { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.2; margin-bottom: 24px; }
.customer-experience h2 { font-size: 23px; line-height: 1.3; }
.customer-experience h3 { font-size: 19px; }
.customer-experience h4 { font-size: 18px; }
.customer-experience .text-muted { color: var(--store-muted) !important; }
.customer-experience a { text-underline-offset: 3px; }
.customer-experience :is(a, button, input, select, summary, textarea):focus-visible { outline: 2px solid var(--store-accent); outline-offset: 3px; }
.customer-experience .customer-skip-link { position: fixed; top: -90px; left: 24px; z-index: 2000; padding: 12px 18px; background: var(--store-ink); color: #fff; }
.customer-experience .customer-skip-link:focus { top: 12px; }
.customer-experience :is(button, input, select, textarea) { font-family: var(--store-font-body); }
.customer-experience .btn { border-radius: 12px; font-size: 14px; font-weight: 600; padding: 10px 16px; box-shadow: none; }
.customer-experience .btn-sm { padding: 7px 12px; font-size: 13px; }
.customer-experience :is(.btn-primary, .btn-dark, .storefront-quick-add-primary) {
    --bs-btn-bg: var(--store-accent); --bs-btn-border-color: var(--store-accent);
    --bs-btn-hover-bg: #39332b; --bs-btn-hover-border-color: #39332b;
    --bs-btn-active-bg: #39332b; --bs-btn-active-border-color: #39332b;
    background: var(--store-accent); color: #fff; border: 1px solid var(--store-accent); box-shadow: none;
}
.customer-experience :is(.btn-primary, .btn-dark, .storefront-quick-add-primary):hover:not(:disabled) { background: #39332b; border-color: #39332b; color: #fff; }
.customer-experience :is(.btn-outline-dark, .btn-outline-secondary, .btn-outline-primary) { background: #fffdfa; color: var(--store-ink); border: 1px solid var(--store-line); }
.customer-experience :is(.btn-outline-dark, .btn-outline-secondary, .btn-outline-primary):hover { background: var(--store-soft); border-color: #8c949f; color: var(--store-ink); }
.customer-experience .btn-link { color: var(--store-accent); }
.customer-experience :is(.form-control, .form-select) { min-height: 42px; font-size: 14px; border-radius: 12px; border-color: var(--store-line); background-color: #fff; color: var(--store-ink); box-shadow: none; }
.customer-experience :is(.form-control, .form-select):focus { border-color: var(--store-accent); box-shadow: 0 0 0 3px rgb(31 28 23 / 10%); }
.customer-experience .form-label { font-size: 13px; font-weight: 600; }
.customer-experience input:is([type='checkbox'], [type='radio']) { accent-color: var(--store-accent); }
.customer-experience .form-check-input:checked { background-color: var(--store-accent); border-color: var(--store-accent); }
.customer-experience .card { border: 1px solid var(--store-line); border-radius: 12px; background: #fffdfa; box-shadow: none; }
.customer-experience .card-body { padding: 24px; }
.customer-experience .card-header { padding: 16px 24px; border-bottom: 1px solid var(--store-line); background: var(--store-soft); color: var(--store-ink); font-weight: 650; }
.customer-experience :is(.list-group-item, .modal-content) { background: #fffdfa; color: var(--store-ink); border-color: var(--store-line); border-radius: 12px; box-shadow: none; }
.customer-experience .table { --bs-table-bg: #fff; --bs-table-color: var(--store-ink); --bs-table-striped-bg: #f6f2ec; --bs-table-striped-color: var(--store-ink); --bs-table-hover-bg: #f6f2ec; border-color: var(--store-line); font-size: 14px; }
.customer-experience .table thead th { padding-block: 13px; background: var(--store-soft); color: var(--store-muted); font-size: 12px; font-weight: 650; }
.customer-experience .table td { padding-block: 16px; }
.customer-experience .alert { border-radius: 12px; font-size: 14px; padding: 16px 20px; }
.customer-experience .alert-info { background: #f1f4f8; color: #33435a; border-color: #d5dee9; }
.customer-experience .alert-warning { background: #fff8eb; color: #704f12; border-color: #ead8b3; }
.customer-experience .alert-danger { background: #fff1f2; color: #951b25; border-color: #edc7cc; }
.customer-experience .alert-success { background: #eff8f2; color: #23663b; border-color: #c5dfce; }

/* Navigation and identity */
.customer-experience .storefront-nav { position: relative; background: #fffdfa; padding: 12px 0; border-color: var(--store-line) !important; }
.customer-experience .storefront-nav > .container { flex-wrap: nowrap; gap: 28px; }
.customer-experience .storefront-brand { flex: 0 0 auto; max-width: 230px; margin: 0; padding: 0; color: var(--store-ink); }
.customer-experience .storefront-brand-site-logo { width: 190px; height: 60px; display: flex; align-items: center; }
.customer-experience .storefront-brand-site-logo img { width: 100%; height: 100%; object-fit: contain; }
.customer-experience .storefront-brand-logo { width: 48px; height: 48px; border-radius: 4px; background: #fffdfa; border-color: var(--store-line); }
.customer-experience .storefront-brand-text { font-size: 19px; white-space: normal; }
.customer-experience .storefront-search { flex: 1 1 420px; max-width: 660px; min-width: 150px; }
.customer-experience .storefront-search .store-search-input { min-height: 44px; background: #f6f2ec; border: 1px solid var(--store-line); border-radius: 12px; font-size: 13px; padding-left: 16px; box-shadow: none; }
.customer-experience .store-search-submit { background: transparent; color: var(--store-muted); border-radius: 4px; box-shadow: none; }
.customer-experience .storefront-header-actions { order: 2; flex: 0 1 auto; flex-wrap: nowrap; gap: 18px !important; }
.customer-experience .store-vat-toggle { border-radius: 5px; background: #f6f2ec; box-shadow: none; padding: 2px; }
.customer-experience .store-vat-toggle-btn { border-radius: 3px; padding: 8px; font-size: 11px; font-weight: 550; }
.customer-experience .store-vat-toggle-btn.active { background: #fffdfa; color: var(--store-ink); box-shadow: 0 1px 3px #1f1c1720; }
.customer-experience .cart-link { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--store-ink); }
.customer-experience .cart-count { margin: 0; font-size: 11px; background: var(--store-accent); }
.customer-experience .storefront-account-menu { position: relative; }
.customer-experience .storefront-account-menu > summary { list-style: none; white-space: nowrap; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 13px; }
.customer-experience .storefront-account-menu > summary::-webkit-details-marker { display: none; }
.customer-experience .storefront-account-popover { position: absolute; right: 0; top: 100%; z-index: 1090; min-width: 230px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--store-line); border-radius: 12px; background: #fffdfa; box-shadow: 0 12px 30px #1f1c1718; }
.customer-experience .store-category-bar { background: var(--store-ink); border: 0 !important; color: #fff; }
.customer-experience .store-category-menu-shell { padding: 0; }
.customer-experience .store-category-nav { min-height: 46px; justify-content: flex-start; gap: 28px; overflow: visible; }
.customer-experience .store-category-rail { display: flex; gap: 28px; flex: 1; min-width: 0; overflow: hidden; }
.customer-experience .store-category-rail > * { flex-shrink: 0; }
.customer-experience .store-category-overflow-menu { position: relative; flex-shrink: 0; }
.customer-experience .store-category-overflow-summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.customer-experience .store-category-overflow-list { position: absolute; right: 0; top: 100%; z-index: 1080; min-width: 230px; max-height: 65vh; overflow-y: auto; background: var(--store-ink); padding: 8px 18px; border: 1px solid #343b46; border-radius: 12px; }
.customer-experience .store-category-overflow-list > * { display: block; width: 100%; text-align: left; }
.customer-experience [data-category-nav] [hidden] { display: none !important; }
.customer-experience :is(.store-category-top-link, .store-category-all-link) { min-height: 46px; padding: 12px 0; color: #fff; border-radius: 0; font-size: 13px; font-weight: 550; background: transparent; }
.customer-experience :is(.store-category-top-link, .store-category-all-link):is(:hover, :focus, .active) { color: #fff; background: transparent; }
.customer-experience .store-category-top-link.active::after { background: var(--store-soft); bottom: 0; height: 3px; }
.customer-experience .store-category-bar :is(.store-category-top-link, .store-category-all-link, .customer-category-disclosure > summary):focus-visible { outline: 2px solid var(--store-soft); outline-offset: -3px; }
.customer-experience .store-category-all-link { margin-left: 0; }
.customer-experience .store-category-mega-panel { background: #fffdfa; color: var(--store-ink); border-radius: 0 0 6px 6px; border-color: var(--store-line); box-shadow: 0 16px 32px #1f1c171c; }
.customer-experience :is(.store-category-mega-feature, .store-category-brand-tile, .store-category-brand-hero, .store-category-mobile-panel) { background: var(--store-soft); border-radius: 12px; border-color: var(--store-line); box-shadow: none; }
.customer-experience .store-category-mega-feature { color: var(--store-ink); min-width: 0; }
.customer-experience .store-category-mega-feature p { color: var(--store-muted); font-weight: 400; line-height: 1.55; }
.customer-experience .store-category-mega-eyebrow { color: var(--store-muted); font-weight: 650; }
.customer-experience .store-category-mega-feature-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; border: 1px solid var(--store-line); border-radius: 12px; font-weight: 600; }
.customer-experience :is(.store-category-mega-link, .store-category-mega-column-title-link, .store-category-brand-tile) { color: var(--store-ink); }
.customer-experience .store-category-count { background: var(--store-soft); color: var(--store-muted); border-radius: 4px; }
.customer-experience .customer-category-disclosure { display: none; }
.customer-experience .search-suggestions { background: #fffdfa; border-color: var(--store-line); border-radius: 12px; box-shadow: 0 12px 30px #1f1c1718; }
.customer-experience :is(.search-suggestions-header, .suggestion-thumb) { background: var(--store-soft); border-color: var(--store-line); border-radius: 4px; }
.customer-experience .suggestion-item { color: var(--store-ink); border-color: var(--store-line); }
.customer-experience .suggestion-item:hover { background: var(--store-soft); }

/* Catalog layout and accessible native filter drawer. */
.customer-experience :is(.catalog-products-section, .category-page-results) { padding: 0; border: 0; border-radius: 0; background: #fffdfa; box-shadow: none; }
.customer-experience :is(.catalog-products-section, .category-page-results):has(> .catalog-filter-rail) { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 28px; row-gap: 20px; align-items: start; }
.customer-experience :is(.catalog-products-section, .category-page-results) > :is(.product-grid, .catalog-state-card, .alert, .store-pagination) { grid-column: 2; }
.customer-experience :is(.catalog-toolbar, .category-page-results-head) { grid-column: 2; grid-row: 1; padding: 0 205px 0 0; margin: 0; border: 0; background: #fffdfa; box-shadow: none; min-height: 46px; gap: 16px; align-items: center; }
/* Keep result feedback immediately beneath the toolbar, independent of rail height. */
.customer-experience :is(.catalog-products-section, .category-page-results) > .catalog-results-body { grid-column: 2; grid-row: 2; min-width: 0; align-self: start; }
.customer-experience .catalog-filter-loading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--store-ink); }
.customer-experience .catalog-results-loading { opacity: .45; pointer-events: none; }
.customer-experience .catalog-toolbar-copy h1 { margin: 0 !important; }
.customer-experience :is(.catalog-toolbar-metrics, .category-page-results-context) { display: flex; gap: 12px; }
.customer-experience .catalog-toolbar-pill { background: none; border: 0; border-radius: 0; padding: 0; color: var(--store-muted); font-size: 12px; font-weight: 400; }
.customer-experience .catalog-filter-rail { grid-column: 1; grid-row: 1 / span 2; padding-right: 22px; border-right: 1px solid var(--store-line); }
.customer-experience .catalog-sort-bar { grid-column: 2; grid-row: 1; justify-self: end; width: 185px; z-index: 1; }
.customer-experience .catalog-filter-group { border-bottom: 1px solid var(--store-line); padding: 0 0 20px; margin-bottom: 20px; }
.customer-experience .catalog-filter-group summary { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; min-height: 32px; cursor: pointer; list-style: none; }
.customer-experience .catalog-filter-group summary::-webkit-details-marker { display: none; }
.customer-experience .catalog-filter-group[open] summary i { transform: rotate(180deg); }
.customer-experience .catalog-filter-options { display: grid; max-height: 252px; overflow-y: auto; gap: 5px; margin-top: 10px; padding: 3px; scrollbar-width: thin; }
.customer-experience .catalog-filter-options label { display: flex; align-items: center; gap: 9px; min-height: 28px; font-size: 12px; cursor: pointer; overflow-wrap: anywhere; }
.customer-experience .catalog-filter-options input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; }
.customer-experience .catalog-stock-toggle { min-height: 32px; gap: 10px; padding: 0; background: transparent; color: var(--store-ink); border: 0; border-radius: 0; }
.customer-experience .catalog-stock-toggle span { color: var(--store-ink); font-size: 13px; }
.customer-experience .catalog-clear-filters { color: var(--store-accent); background: none; border: 0; padding: 6px 0; font-size: 13px; text-decoration: underline; }
.customer-experience .catalog-controls-compact { padding: 0; margin: 0 0 24px; border: 0; border-radius: 0; background: #fffdfa; box-shadow: none; }
.customer-experience .catalog-control-row { gap: 16px; align-items: start; }
.customer-experience .catalog-controls-compact .catalog-control-row { display: flex; flex-wrap: wrap; }
.customer-experience .catalog-controls-compact .catalog-sort-field { width: 185px; }
.customer-experience .catalog-controls-compact .catalog-filter-groups { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 16px; }
.customer-experience .catalog-controls-compact .catalog-filter-groups > details { flex: 1 1 180px; min-width: 0; }
.customer-experience .catalog-controls-compact .catalog-filter-groups > .grouped-color-filter { flex: 1 1 200px; min-width: 0; }
.customer-experience .catalog-control-field { gap: 5px; }
.customer-experience .catalog-control-field span { font-size: 12px; color: var(--store-muted); }
.customer-experience .catalog-control-field .form-select { border-radius: 12px; font-size: 13px; background-color: #fff; }
.customer-experience .catalog-mobile-toolbar { display: none; }
.customer-experience .catalog-filter-dialog { inset: 0 0 0 auto; width: min(400px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; margin: 0 0 0 auto; border: 0; border-left: 1px solid var(--store-line); color: var(--store-ink); background: #fffdfa; }
.customer-experience .catalog-filter-dialog[open] { display: flex; flex-direction: column; }
.customer-experience .catalog-filter-dialog::backdrop { background: rgb(22 26 32 / 40%); }
.customer-experience .catalog-filter-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--store-line); }
.customer-experience .catalog-filter-dialog-header h2 { margin: 0; font-size: 20px; }
.customer-experience .catalog-filter-dialog-body { padding: 20px 24px; flex: 1; overflow-y: auto; }
.customer-experience .catalog-filter-dialog-footer { padding: 18px 24px; border-top: 1px solid var(--store-line); }
.customer-experience .catalog-filter-dialog-footer .btn { width: 100%; }

/* One product-card family across all customer catalogs. */
.customer-experience .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.customer-experience .product-card { min-width: 0; border: 1px solid var(--store-line); border-radius: 18px; background: #fffdfa; box-shadow: 0 8px 24px rgb(31 28 23 / 5%); overflow: hidden; transition: none; }
.customer-experience .product-card:hover { transform: none; box-shadow: none; }
.customer-experience .product-card .product-media { aspect-ratio: 4 / 4.8; padding: 16px; border-radius: 0; background: var(--store-soft); }
.customer-experience .product-card .product-media img { object-fit: contain; mix-blend-mode: normal; }
.customer-experience .product-card-body { background: #fffdfa; padding: 16px; gap: 10px; }
.customer-experience .product-card-kicker { font-size: 10px; font-weight: 500; letter-spacing: .035em; margin: 0 0 3px; color: var(--store-muted); }
.customer-experience .product-card-title { font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.customer-experience .product-card-info-link:hover .product-card-title { text-decoration: underline; }
.customer-experience .product-color-palette { min-height: 28px; gap: 6px; padding: 3px; }
.customer-experience .product-color-swatch { width: 44px; height: 44px; min-width: 44px; flex-basis: 44px; border-radius: 50%; border: 1px solid #1f1c1730; box-shadow: none; }
.customer-experience .product-color-swatch-button { position: relative; background: transparent; border: 0; }
.customer-experience .product-color-swatch-button::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px rgb(31 28 23 / 25%); }
.customer-experience .product-color-swatch-button.selected { outline: 2px solid var(--store-accent); outline-offset: 2px; box-shadow: none; }
/* Keep the selected ring's full circumference inside the scrollport and
   leave room between adjacent rings.
   Higher specificity preserves this spacing through the mobile overrides. */
.customer-experience .product-color-palette:has(> .product-color-swatch-button) { min-height: 56px; padding: 6px; gap: 12px; scroll-padding-inline: 6px; }
.customer-experience .product-color-palette > .product-color-swatch-button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; scroll-margin-inline: 6px; }
/* Do not snap a focused swatch back out of view after revealing its ring. */
.customer-experience .product-color-palette:has(> .product-color-swatch-button:focus) { scroll-snap-type: none; }
.customer-experience .product-size-palette { min-height: 30px; gap: 6px; }
.customer-experience .product-size-chip { min-width: 28px; min-height: 28px; padding: 3px 8px; border: 1px solid var(--store-line); border-radius: 999px; background: #fffdfa; color: var(--store-ink); font-size: 10px; font-weight: 450; }
.customer-experience .product-size-chip.out { color: var(--store-muted); text-decoration: line-through; background: #f6f2ec; }
.customer-experience .product-size-chip-button { min-height: 44px; min-width: 44px; height: auto; max-width: none; font-size: 13px; }
.customer-experience .product-size-chip-button.selected { background: var(--store-ink); color: #fff; border-color: var(--store-ink); box-shadow: 0 0 0 1px var(--store-accent); }
.customer-experience .product-card-availability { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--store-muted); }
.customer-experience .product-card-availability .stock-pill { position: static; display: block; width: 7px; height: 7px; min-width: 7px; min-height: 7px; padding: 0; background: #18864b; border: 0; border-radius: 50%; box-shadow: none; }
.customer-experience .product-card-availability .stock-pill.out { background: #818792; }
.customer-experience .product-card-footer { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 2px; }
.customer-experience .storefront-price-current { font-weight: 700; color: var(--store-accent); }
.customer-experience .storefront-price-compare { color: var(--store-muted); }
.customer-experience .product-card .price-tag { font-size: 16px; line-height: 1.3; }
.customer-experience .product-card-price-caption { display: block; font-size: 10px; color: var(--store-muted); }
.customer-experience .storefront-price-badge { border-radius: 999px; background: var(--store-soft); color: var(--store-ink); font-size: 11px; }
.customer-experience .storefront-price-bulk { background: var(--store-soft); color: var(--store-muted); border-radius: 4px; font-size: 11px; }
.customer-experience .product-card-cta { padding: 10px 12px; width: 100%; min-height: 44px; border: 1px solid var(--store-ink); border-radius: 12px; background: var(--store-ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.customer-experience .product-card:hover .product-card-cta { background: var(--store-ink); color: #fff; }
.customer-experience .product-card .product-card-cta:hover { color: #fff; background: #39332b; }
.customer-experience .product-new-badge { background: var(--store-ink); font-size: 10px; padding: 5px 7px; min-height: 24px; font-weight: 550; border-radius: 4px; }
.customer-experience .store-pagination .pagination { gap: 6px; }
.customer-experience .store-pagination .page-link { border-radius: 5px; border-color: transparent; background: #fffdfa; color: var(--store-ink); box-shadow: none; font-size: 13px; min-width: 36px; }
.customer-experience .store-pagination .page-item.active .page-link { background: var(--store-accent); border-color: var(--store-accent); color: #fff; }

/* Category/company headings and existing page structures. */
.customer-experience :is(.category-page-header, .category-command, .concept-shop-hero) { padding: 0 0 24px; background: #fffdfa; border: 0; border-bottom: 1px solid var(--store-line); border-radius: 0; box-shadow: none; gap: 24px; }
.customer-experience .concept-shop-hero { display: flex; flex-direction: column; align-items: stretch; }
.customer-experience .concept-shop-identity { flex: none; width: 100%; }
.customer-experience .concept-shop-copy h1 { font-size: 28px; margin-bottom: 4px; }
.customer-experience .concept-shop-description { margin: 0; max-width: 680px; color: var(--store-muted); }
.customer-experience :is(.concept-shop-logo, .category-page-logo) { width: 64px; height: 64px; border-radius: 4px; border: 1px solid var(--store-line); background: #fffdfa; box-shadow: none; }
.customer-experience .concept-shop-balance { min-width: 170px; padding: 12px 18px; border: 1px solid var(--store-line); border-radius: 12px; display: grid; gap: 2px; }
.customer-experience .concept-shop-balance span { color: var(--store-muted); font-size: 12px; }
.customer-experience .concept-shop-balance strong { font-size: 22px; letter-spacing: -.03em; }
.customer-experience .storefront-page:has(.concept-shop-hero) > .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-experience :is(.category-page-explorer, .category-page-explorer-card, .catalog-jump-card, .catalog-overview-main, .catalog-state-card, .category-command, .storefront-cart-mobile-card) { background: #fffdfa; border-color: var(--store-line); border-radius: 12px; box-shadow: none; }
.customer-experience :is(.category-page-explorer-card, .catalog-jump-card):hover { background: var(--store-soft); transform: none; box-shadow: none; }
.customer-experience :is(.category-page-summary-chip, .category-page-explorer-card-count, .category-page-explorer-card-child) { border-radius: 4px; background: var(--store-soft); color: var(--store-muted); border-color: var(--store-line); }
.customer-experience .eyebrow { color: var(--store-muted); font-size: 11px; font-weight: 550; letter-spacing: .06em; }
.customer-experience .store-crumbs .breadcrumb { font-size: 12px; margin-bottom: 24px; }
.customer-experience .store-crumbs a { color: var(--store-muted); }
.customer-experience .catalog-state-card { padding: 36px 28px; border: 1px solid var(--store-line); }

/* Product selection and transaction surfaces. */
.customer-experience .store-hero { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--store-line); border-radius: 0; background: #fffdfa; box-shadow: none; }
.customer-experience .store-hero h1 { margin-bottom: 10px; }
.customer-experience .customer-auth-page { max-width: 620px; margin: 12px auto 48px; }
.customer-experience .customer-auth-page > .row > :is(.col-lg-6, .col-lg-8) { width: 100%; }
.customer-experience .customer-auth-page .store-hero { margin-bottom: 28px !important; }
.customer-experience .customer-section-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0; }
.customer-experience .customer-section-nav a { color: var(--store-muted); text-decoration: none; font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; }
.customer-experience .customer-section-nav a:hover { color: var(--store-accent); border-bottom-color: var(--store-accent); }
.customer-experience :is(#account-profile, #account-current-orders, #account-previous-orders) { scroll-margin-top: 24px; }
.customer-experience .concept-shop-manage-tabs .nav-link { border-radius: 4px; color: var(--store-muted); background: transparent; }
.customer-experience .concept-shop-manage-tabs .nav-link.active { background: var(--store-ink); color: #fff; }
.customer-experience .product-detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.customer-experience .product-gallery { padding: 0; border: 0; background: #fffdfa; border-radius: 0; box-shadow: none; }
.customer-experience .product-gallery-main { width: 100%; height: min(620px, 60vw); object-fit: contain; padding: 30px; background: var(--store-soft); border: 0; border-radius: 18px; }
.customer-experience .product-gallery-thumb { border: 1px solid var(--store-line); border-radius: 4px; background: var(--store-soft); padding: 8px; }
.customer-experience .product-gallery-thumb.active { border-color: var(--store-accent); box-shadow: 0 0 0 1px var(--store-accent); }
.customer-experience .product-summary { padding: 0; border: 0; border-radius: 0; background: #fffdfa; box-shadow: none; }
.customer-experience .product-summary .price-tag { font-size: 26px; }
.customer-experience .storefront-variant-selector { display: grid; gap: 20px; margin: 24px 0; }
.customer-experience .storefront-variant-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-experience .storefront-variant-selector .product-color-swatch { width: 44px; height: 44px; }
.customer-experience :is(.product-specs, .product-download-link, .checkout-info-panel, .checkout-parcelshops, .checkout-summary-list) { border-radius: 12px; border-color: var(--store-line); background: var(--store-soft); box-shadow: none; }
.customer-experience .product-specs { padding: 16px; font-size: 13px; }
.customer-experience .product-spec-row { border-color: var(--store-line); }
.customer-experience .product-spec-row dt { color: var(--store-muted); }
.customer-experience .storefront-quick-add-drawer { --bs-offcanvas-width: 460px; background: #fffdfa; color: var(--store-ink); border-radius: 0; border-color: var(--store-line); box-shadow: none; font-family: var(--store-font-body); }
.customer-experience :is(.storefront-quick-add-drawer .offcanvas-header, .storefront-quick-add-drawer .offcanvas-body) { background: #fffdfa; border-color: var(--store-line); }
.customer-experience .storefront-quick-add-drawer .offcanvas-title { font-family: var(--store-font-body); font-size: 22px; }
.customer-experience .storefront-quick-add-copy h3 { font-family: var(--store-font-body); font-size: 17px; }
.customer-experience .storefront-quick-add-media { background: var(--store-soft); border-radius: 4px; border-color: var(--store-line); }
.customer-experience .storefront-quick-add-drawer .product-size-chip-button.selected { background: var(--store-ink); color: #fff; border-color: var(--store-ink); }
.customer-experience .storefront-toast { border-radius: 12px; box-shadow: 0 12px 28px #1f1c1718; }
.customer-experience .storefront-toast :is(.toast-header, .toast-body) { background: #eff8f2 !important; }
.customer-experience .storefront-toast-thumb { border-radius: 4px; }
.customer-experience .storefront-cart-thumb { width: 80px; height: 90px; border-radius: 4px; background: var(--store-soft); border-color: var(--store-line); }
.customer-experience .storefront-cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.customer-experience .storefront-cart-summary { padding: 24px; margin-top: 24px; background: var(--store-soft); border: 1px solid var(--store-line); border-radius: 12px; }
.customer-experience .checkout-info-panel { padding: 24px; border: 1px solid var(--store-line); background: #fffdfa; }
.customer-experience .checkout-summary-list { border: 1px solid var(--store-line); overflow: hidden; }
.customer-experience .checkout-summary-list > .list-group-item { border: 0; border-radius: 0; border-bottom: 1px solid var(--store-line); padding: 16px 20px; }
.customer-experience .checkout-summary-list > .list-group-item:last-child { border-bottom: 0; background: var(--store-soft); font-size: 18px; font-weight: 650; }
.customer-experience .checkout-check { display: flex; align-items: start; gap: 10px; padding-left: 0; }
.customer-experience .checkout-check .form-check-input { flex-shrink: 0; float: none; margin: 3px 0 0; }
.customer-experience .customer-linked-page { max-width: 1000px; margin-inline: auto; }
.customer-experience .customer-invite-page { max-width: 680px; margin-inline: auto; }
.customer-experience .customer-state { margin: 24px auto; padding: 48px 24px; text-align: center; max-width: 760px; background: var(--store-soft); border: 1px solid var(--store-line); border-radius: 12px; }
.customer-experience .customer-state > i { display: block; font-size: 28px; color: var(--store-muted); margin-bottom: 16px; }
.customer-experience .customer-state h2 { font-size: 22px; margin-bottom: 12px; }
.customer-experience .customer-state p { color: var(--store-muted); }
.customer-experience .customer-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--store-muted); }
.customer-experience .customer-loading .spinner-border { color: var(--store-accent); }
.customer-experience .checkout-shipping-option { background: #fffdfa; border-color: var(--store-line); border-radius: 12px; box-shadow: none; }
.customer-experience .checkout-shipping-option.selected { background: #fffdfa; border-color: var(--store-accent); box-shadow: inset 0 0 0 1px var(--store-accent); }
.customer-experience .checkout-parcelshop-item { background: #fffdfa; border-color: var(--store-line); border-radius: 4px; }
.customer-experience .checkout-parcelshop-item.selected { background: var(--store-soft); border-color: var(--store-accent); }
.customer-experience .checkout-parcelshop-map { border-radius: 12px; }
.customer-experience :is(.legal-page, .legal-content) { max-width: 900px; margin-inline: auto; }
.customer-experience .legal-page { padding: 0; background: #fffdfa; box-shadow: none; border: 0; border-radius: 0; }
.customer-experience .legal-page :is(p, li) { line-height: 1.8; }
.customer-experience .legal-cookie-table th { background: var(--store-soft); }
.customer-experience .storefront-footer { margin-top: 32px; background: #fffdfa; color: var(--store-muted); border-color: var(--store-line) !important; font-size: 12px; }
.customer-experience .storefront-footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
.customer-experience .storefront-footer h2 { font-size: 13px; font-weight: 650; color: var(--store-ink); }
.customer-experience .storefront-footer address { font-size: 12px; line-height: 1.7; }
.customer-experience .storefront-footer-links { display: flex; flex-wrap: wrap; flex-direction: row; align-content: start; gap: 8px 24px; }
.customer-experience .storefront-footer-links h2 { flex-basis: 100%; }
.customer-experience .storefront-footer a { color: var(--store-muted); }
.customer-experience #blazor-error-ui { background: #fff1f2; border-top: 1px solid #edc7cc; color: #951b25; padding: 16px 48px 16px 24px; box-shadow: none; font-size: 14px; }

@media (max-width: 1199px) {
    .customer-experience .container { padding-inline: 24px; }
    .customer-experience .storefront-nav > .container { gap: 18px; }
    .customer-experience .storefront-brand-site-logo { width: 158px; height: 50px; }
    .customer-experience .product-grid, .customer-experience .storefront-page:has(.concept-shop-hero) > .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-experience .store-vat-toggle-btn { font-size: 10px; padding-inline: 5px; }
}
@media (max-width: 991px) {
    .customer-experience .storefront-nav > .container { flex-wrap: wrap; }
    .customer-experience .storefront-search { order: 3; flex: 1 0 100%; max-width: 100%; }
    .customer-experience .storefront-header-actions { margin-left: auto; }
    .customer-experience .customer-category-disclosure { display: block; }
    .customer-experience .customer-category-disclosure > summary { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 550; list-style: none; cursor: pointer; }
    .customer-experience .store-category-mobile-menu { padding-bottom: 16px; }
    .customer-experience :is(.store-category-mobile-root-link, .store-category-mobile-summary, .store-category-mobile-link) { color: var(--store-ink); background: #fffdfa; border-radius: 4px; font-size: 13px; }
    .customer-experience :is(.catalog-filter-rail, .catalog-sort-bar, .catalog-controls-compact) { display: none; }
    .customer-experience :is(.catalog-products-section, .category-page-results):has(> .catalog-filter-rail) { display: flex; flex-direction: column; gap: 20px; }
    .customer-experience :is(.catalog-products-section, .category-page-results) > * { width: 100%; }
    .customer-experience .catalog-mobile-toolbar { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 0; }
    .customer-experience .catalog-mobile-toolbar > * { flex: 1; min-width: 0; }
    .customer-experience .catalog-mobile-toolbar .catalog-sort-field { display: block; margin: 0; }
    .customer-experience .catalog-mobile-toolbar .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
    .customer-experience :is(.catalog-toolbar, .category-page-results-head) { padding: 0; }
    .customer-experience .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .customer-experience .product-gallery-main { height: 480px; }
    .customer-experience .concept-shop-hero { flex-wrap: wrap; }
    .customer-experience .concept-shop-identity { flex-basis: 100%; }
    .customer-experience .concept-shop-balance { flex: 1; }
}
@media (max-width: 575px) {
    .customer-experience { font-size: 14px; }
    .customer-experience .container { padding-inline: 16px; }
    .customer-experience .storefront-page { padding-block: 20px !important; }
    .customer-experience .storefront-nav { padding-block: 8px 12px; }
    .customer-experience .storefront-nav > .container { gap: 8px 14px; }
    .customer-experience .storefront-brand-site-logo { width: 132px; height: 44px; }
    .customer-experience .storefront-brand { max-width: 40%; }
    .customer-experience .storefront-header-actions { gap: 12px !important; flex-wrap: wrap; }
    .customer-experience .storefront-account-menu > summary { font-size: 12px; }
    .customer-experience .store-vat-toggle { order: 3; }
    .customer-experience .storefront-header-actions:has(.store-vat-toggle) { flex: 1; max-width: 52%; }
    .customer-experience .storefront-account-popover { right: -45px; }
    .customer-experience .product-grid, .customer-experience .storefront-page:has(.concept-shop-hero) > .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .customer-experience .product-card .product-media { aspect-ratio: 4 / 4.8; padding: 12px; }
    .customer-experience .product-card-title { font-size: 12px; }
    .customer-experience .product-card-kicker { font-size: 9px; }
    .customer-experience .product-card-body { padding: 12px; gap: 8px; }
    .customer-experience .product-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .customer-experience .product-card-cta { width: 100%; min-height: 44px; }
    .customer-experience .product-card .price-tag { font-size: 15px; }
    .customer-experience .product-color-palette { gap: 5px; }
    .customer-experience .product-color-swatch-button { width: 44px; height: 44px; min-width: 44px; }
    .customer-experience .catalog-toolbar { flex-wrap: wrap; gap: 6px; }
    .customer-experience .product-gallery-main { height: 380px; }
    .customer-experience .card-body, .customer-experience .checkout-info-panel { padding: 18px; }
    .customer-experience .concept-shop-balance { padding: 10px 14px; }
    .customer-experience .storefront-footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .customer-experience .storefront-footer-links { gap: 10px 18px; }
    .customer-experience .storefront-quick-add-drawer { width: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .customer-experience *, .customer-experience *::before, .customer-experience *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.customer-experience .grouped-color-filter .catalog-filter-group { padding-bottom: 10px; margin-bottom: 10px; }
.customer-experience .grouped-color-filter .product-color-palette { flex: 0 0 auto; margin: 0; }
.customer-experience .catalog-control-row > .grouped-color-filter { min-width: 200px; max-width: 360px; }

.customer-experience .grouped-color-filter .product-color-swatch { width: 22px; height: 22px; min-width: 22px; flex-basis: 22px; }

/* Concept-shop controls: overlays on desktop, a single scrolling dialog on mobile. */
.customer-experience .concept-catalog-controls { min-width: 0; margin-bottom: 24px; }
.customer-experience .concept-catalog-controls .catalog-control-row { flex-wrap: nowrap; align-items: center; gap: 10px; }
.customer-experience .concept-catalog-controls .catalog-filter-groups { flex: 1; flex-wrap: nowrap; align-items: center; gap: 10px; }
.customer-experience .concept-catalog-controls .catalog-filter-groups > .concept-filter-disclosure { position: relative; flex: 0 1 auto; min-width: 0; border: 0; padding: 0; }
.customer-experience .concept-catalog-controls .concept-filter-disclosure > summary { min-height: 44px; padding: 10px 14px; gap: 8px; border: 1px solid var(--store-line); border-radius: 8px; font-size: 14px; }
.customer-experience .concept-catalog-controls .concept-filter-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 280px; max-height: min(420px, 60vh); overflow-y: auto; padding: 12px; border: 1px solid var(--store-line); border-radius: 8px; background: #fffdfa; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.customer-experience .concept-catalog-controls .catalog-filter-options { max-height: none; overflow: visible; margin: 0; padding: 0; }
.customer-experience .concept-catalog-controls .catalog-filter-options label { min-height: 44px; font-size: 14px; flex-wrap: wrap; }
.customer-experience .concept-catalog-controls .grouped-color-filter .catalog-filter-group > summary { min-height: 44px; font-size: 14px; padding-block: 10px; }
.customer-experience .concept-filter-dialog .catalog-filter-options label { min-height: 44px; font-size: 14px; }
.customer-experience .concept-filter-dialog .grouped-color-filter .catalog-filter-group > summary { min-height: 44px; font-size: 14px; padding-block: 10px; }
.customer-experience .concept-catalog-controls .catalog-stock-toggle { min-height: 44px; flex-shrink: 0; }
.customer-experience .concept-catalog-controls .catalog-sort-field { margin: 0 0 0 auto; width: 185px; flex-shrink: 0; }
.customer-experience .concept-catalog-controls .form-select { min-height: 44px; font-size: 14px; }
.customer-experience .concept-catalog-controls .catalog-controls-compact { margin-bottom: 12px; }
.customer-experience .concept-filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.customer-experience .concept-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.customer-experience .concept-filter-chips .btn { min-height: 44px; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.customer-experience .concept-filter-summary > .catalog-clear-filters { margin-left: auto; }
.customer-experience .concept-catalog-controls .catalog-clear-filters { min-height: 44px; }
.customer-experience .concept-catalog-controls :is(button, select, summary, input):focus-visible { outline: 2px solid var(--store-ink); outline-offset: 3px; }
.customer-experience .concept-filter-dialog .catalog-filter-dialog-header .btn-close { min-width: 44px; min-height: 44px; padding: 0; }
.customer-experience .concept-filter-dialog .catalog-filter-dialog-body { min-height: 0; overscroll-behavior: contain; }
.customer-experience .concept-filter-dialog .catalog-filter-groups { display: block; }
.customer-experience .concept-filter-dialog .concept-filter-disclosure { margin-bottom: 12px; }
.customer-experience .concept-filter-dialog .concept-filter-popover { position: static; width: auto; max-height: none; overflow: visible; border: 0; box-shadow: none; }
.customer-experience .concept-filter-dialog .catalog-filter-dialog-footer { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 12px 16px; }
.customer-experience .concept-filter-dialog .catalog-filter-dialog-footer .catalog-clear-filters { flex: 0 0 auto; width: auto; }
.customer-experience .concept-filter-dialog .catalog-filter-dialog-footer .btn-primary { flex: 1; min-width: 0; min-height: 44px; white-space: normal; }
@media (max-width: 991px) {
    .customer-experience .concept-catalog-controls .catalog-mobile-toolbar { margin-bottom: 12px; gap: 8px; }
    .customer-experience .concept-catalog-controls .catalog-sort-field { flex: 1; width: auto; min-width: 0; }
    .customer-experience .concept-filter-trigger { min-height: 44px; font-size: 14px; }
    .customer-experience .concept-filter-chips { order: 3; flex-basis: 100%; }
    .customer-experience .concept-filter-dialog .catalog-filter-dialog-header { padding: 12px 16px; }
    .customer-experience .concept-filter-dialog .catalog-filter-dialog-body { padding: 12px 16px; }
}

.customer-experience .concept-filter-desktop .catalog-sort-field { width: auto; flex-direction: row; align-items: center; gap: 10px; }
.customer-experience .concept-filter-desktop .catalog-sort-field select { width: 185px; }
.customer-experience .concept-filter-desktop .concept-sort-label { font-size: 14px; font-weight: 400; text-transform: none; white-space: nowrap; color: var(--store-ink); }
.customer-experience .catalog-mobile-toolbar .concept-sort-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Keep availability visible after selection, including quick add. */
.customer-experience .product-size-chip-button.selected.out { background: #f6f2ec; color: var(--store-muted); border-color: var(--store-muted); text-decoration: line-through; box-shadow: 0 0 0 2px var(--store-ink); }

.customer-experience .storefront-account-action { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--store-ink); text-decoration: none; font: inherit; font-size: 14px; }
.customer-experience .storefront-account-action:hover, .customer-experience .storefront-account-action:focus-visible { background: #f6f2ec; }
.customer-experience .storefront-account-divider { margin: 2px 0; border-color: var(--store-line); opacity: 1; }

.customer-experience .storefront-brand-logo { width: clamp(130px, 18vw, 230px); height: 78px; display: flex; background: transparent; border: 0; border-radius: 0; }
.customer-experience .storefront-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.customer-experience .concept-shop-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-experience .concept-shop-copy { min-width: 0; }
.customer-experience .concept-shop-identity { min-width: 0; }
@media (max-width: 767.98px) {
    .customer-experience .storefront-brand-logo { width: clamp(120px, 35vw, 180px); height: 66px; }
    .customer-experience .storefront-nav > .container { flex-wrap: wrap; gap: 12px; }
    .customer-experience .storefront-search { order: 3; flex-basis: 100%; max-width: none; }
    .customer-experience .storefront-header-actions { gap: 10px !important; }
    .customer-experience .storefront-brand { max-width: 45%; }
}

.customer-experience .concept-shop-hero { gap: 16px; }
.customer-experience .concept-shop-budget-panel:empty { display: none; }
.customer-experience .concept-shop-copy h1 { overflow-wrap: anywhere; }
/* Keep the outgoing page's geometry for return-scroll restoration, but never
   present it as content for the destination while enhanced navigation runs. */
#storefront-main[data-storefront-navigation-pending] > .storefront-page { visibility: hidden; pointer-events: none; }
.storefront-navigation-status { position: fixed; inset-inline: 0; inset-block-start: 35vh; padding: 1.5rem; z-index: 2; }
