/* Retail storefront, scoped to the customer experience. */
body.customer-theme { --shop-bg: #f7f8fa; --shop-surface: #fff; --shop-ink: #172d45; --shop-muted: #596b7c; --shop-line: #dbe2e8; --shop-soft: #edf2f6; --shop-accent: #f4cf55; --customer-ink: var(--shop-ink); --customer-muted: var(--shop-muted); --customer-line: var(--shop-line); background: var(--shop-bg); color: var(--shop-ink); }
html[data-theme="dark"] body.customer-theme { --shop-bg: #101a29; --shop-surface: #1a293d; --shop-ink: #e1eafb; --shop-muted: #a9bad2; --shop-line: #425d7b; --shop-soft: #22364e; }
body.customer-theme .app { display: block; height: auto; min-height: 100vh; overflow: visible; background: var(--shop-bg); }
body.customer-theme .main-content { margin: 0 auto; width: 100%; max-width: 1440px; padding: 32px 40px 56px; background: var(--shop-bg); }
body.customer-theme .main-content::before, body.customer-theme .main-content::after { display: none; }
body.customer-theme .storefront-header { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr) minmax(210px, 1fr); gap: 0 28px; padding: 0 max(24px, calc((100vw - 1360px) / 2)); background: var(--shop-surface); border-bottom: 1px solid var(--shop-line); color: var(--shop-ink); }
.storefront-announcement { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; position: relative; isolation: isolate; color: #fff; font-size: 11px; letter-spacing: .08em; }
.storefront-announcement::before { content: ''; position: absolute; z-index: -1; inset: 0 calc(-1 * max(24px, (100vw - 1360px) / 2)); background: #172d45; }
body.customer-theme .storefront-header .brand { grid-column: 1; grid-row: 2; display: flex; gap: 12px; padding: 20px 0; margin: 0; border: 0; align-items: center; min-width: 0; text-align: left; }
body.customer-theme .storefront-header .brand > div { display: block; min-width: 0; }
body.customer-theme .storefront-header .customer-brand-logo { width: 55px; height: 55px; object-fit: contain; flex: none; }
body.customer-theme .storefront-header .brand h2 { margin: 0; font-size: 17px; line-height: 1.25; color: var(--shop-ink); }
body.customer-theme .storefront-header .brand p { margin-top: 5px; font-size: 11px; color: var(--shop-muted); }
body.customer-theme .storefront-search { grid-column: 2; grid-row: 2; display: flex; align-self: center; height: 48px; border: 1px solid var(--shop-line); background: var(--shop-soft); border-radius: 6px; overflow: hidden; }
body.customer-theme .storefront-search input { flex: 1; width: 100%; min-width: 0; padding: 12px 16px; border: 0; background: transparent; color: var(--shop-ink); font: inherit; font-size: 14px; }
body.customer-theme .storefront-search button { width: 52px; flex: none; border: 0; background: var(--shop-accent); color: #172d45; display: grid; place-items: center; cursor: pointer; }
.storefront-search .customer-nav-icon { width: 22px; height: 22px; }
body.customer-theme .storefront-search:focus-within { outline: 2px solid #1683f5; outline-offset: 3px; }
body.customer-theme .storefront-header .customer-account { grid-column: 3; grid-row: 2; margin: 0; padding: 0; border: 0; align-self: center; min-width: 0; }
html body.customer-theme .storefront-header .workspace-account-row, html body.customer-theme .storefront-header .workspace-account-actions { flex-direction: row; }
html body.customer-theme .storefront-header .workspace-account-name { display: block; font-size: 12px; text-align: right; padding-right: 8px; }
body.customer-theme .storefront-header .workspace-account-name strong { color: var(--shop-ink); }
body.customer-theme .storefront-header .workspace-account-name small { color: var(--shop-muted); }
body.customer-theme .storefront-header .workspace-icon-button { background: var(--shop-soft); color: var(--shop-ink); border-color: var(--shop-line); }
body.customer-theme .storefront-header .navigation { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; border-top: 1px solid var(--shop-line); overflow-x: auto; }
/* Reset the legacy sidebar's width:100%, which made every tab take a full row. */
body.customer-theme .storefront-header .nav-item { display: flex; flex: 0 0 auto; width: auto; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 24px; color: var(--shop-muted); background: transparent; border-radius: 0; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 600; }
body.customer-theme .storefront-header .nav-item > span { display: inline; }
body.customer-theme .storefront-header .nav-item.active { border-bottom-color: var(--shop-accent); color: var(--shop-ink); background: var(--shop-soft); }
body.customer-theme .storefront-header .nav-item:hover { background: var(--shop-soft); color: var(--shop-ink); text-decoration: none; }
body.customer-theme .storefront-header .customer-nav-icon { color: currentColor; }
.storefront-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.customer-theme :focus-visible { outline: 3px solid #1683f5; outline-offset: 3px; }
body.customer-theme .customer-page-heading h1 { font-size: clamp(27px, 3vw, 38px); font-weight: 800; letter-spacing: -.035em; color: var(--shop-ink); }
.storefront-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
body.customer-theme .storefront-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--shop-muted); margin: 0 0 10px; }
.storefront-intro-note { max-width: 270px; line-height: 1.6; }
body.customer-theme .hero.featured-carousel { border: 0; border-radius: 10px; padding: 38px 44px 66px; background: #172d45; color: #fff; }
body.customer-theme .product-slide { grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); gap: 52px; min-height: 270px; }
body.customer-theme .product-slide h2 { font-size: clamp(28px, 3.1vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; max-width: 640px; }
body.customer-theme .product-slide-copy .slide-eyebrow { color: #f4cf55 !important; font-size: 11px; letter-spacing: .12em; }
body.customer-theme .product-slide-copy .slide-description { color: #c4d2e0; margin-top: 16px; }
body.customer-theme .product-slide-copy .slide-price { color: #fff; font-size: 26px; margin: 22px 0; }
body.customer-theme .slide-price span { color: #c4d2e0; }
body.customer-theme .product-slide-copy .slide-cta { background: #f4cf55; color: #172d45; border-radius: 5px; min-height: 44px; }
body.customer-theme .product-slide-visual { position: relative; height: 280px; min-height: 0; border-radius: 8px; background: #e9eef2; padding: 24px; overflow: hidden; }
/* Size photos against the frame, not the grid track's intrinsic image height. */
body.customer-theme .product-slide-visual img { position: absolute; inset: 24px; display: block; width: calc(100% - 48px); height: calc(100% - 48px); min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
body.customer-theme .product-slide-placeholder { height: 100%; background: transparent; color: #172d45; }
body.customer-theme .product-slide-placeholder strong { font-size: 68px; }
body.customer-theme .carousel-controls { left: 44px; right: 44px; bottom: 14px; }
body.customer-theme .carousel-indicator { background: #72869a; }
body.customer-theme .carousel-indicator.active { background: #f4cf55; width: 28px; border-radius: 10px; }
body.customer-theme .carousel-arrows button { background: #29415e; color: #fff; border-color: #536d8a; border-radius: 5px; }
.storefront-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 23px 0; border-bottom: 1px solid var(--shop-line); gap: 24px; }
.storefront-benefits > div { display: flex; align-items: center; justify-content: center; gap: 14px; }
.storefront-benefits .customer-nav-icon { width: 28px; height: 28px; flex: none; color: var(--shop-muted); }
body.customer-theme .storefront-benefits strong { font-size: 13px; color: var(--shop-ink); }
.storefront-benefits small { display: block; font-size: 12px; color: var(--shop-muted); margin-top: 5px; }
body.customer-theme .categories { margin-top: 32px; }
body.customer-theme .section-heading { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 20px; }
body.customer-theme .section-heading h2 { font-size: 24px; color: var(--shop-ink); letter-spacing: -.02em; }
body.customer-theme .section-heading a { color: var(--shop-ink); font-weight: 700; font-size: 13px; text-underline-offset: 5px; }
body.customer-theme .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.customer-theme .category-card { min-height: 170px; border: 1px solid var(--shop-line); padding: 24px; border-radius: 8px; background: var(--shop-surface); text-align: left; position: relative; transition: border-color .15s, transform .15s; }
body.customer-theme .category-card:hover:not(:disabled) { border-color: #8c9db0; transform: translateY(-3px); box-shadow: 0 6px 18px #10213d0d; }
body.customer-theme .category-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--shop-soft); color: var(--shop-ink); margin: 0 0 16px; }
.category-icon .customer-nav-icon { width: 26px; height: 26px; }
body.customer-theme .category-card h3 { font-size: 16px; color: var(--shop-ink); }
body.customer-theme .category-card p { font-size: 12px; color: var(--shop-muted); margin-top: 6px; }
.storefront-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; margin-top: 30px; border-left: 4px solid var(--shop-accent); background: var(--shop-soft); border-radius: 4px; }
body.customer-theme .storefront-help h2 { font-size: 20px; color: var(--shop-ink); }
.storefront-help p { margin-top: 6px; font-size: 13px; color: var(--shop-muted); }
body.customer-theme .storefront-help a { color: var(--shop-ink); min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
body.customer-theme .order-content { padding-bottom: 140px; }
body.customer-theme .order-categories { margin-top: 0; padding-bottom: 20px; border-bottom: 1px solid var(--shop-line); }
body.customer-theme .order-category { background: var(--shop-surface); color: var(--shop-ink); border-color: var(--shop-line); border-radius: 5px; }
body.customer-theme .order-category.selected { background: var(--shop-ink); color: var(--shop-bg); border-color: var(--shop-ink); }
body.customer-theme .product-heading { margin-top: 22px; }
body.customer-theme .order-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body.customer-theme .product-card { border-radius: 8px; background: var(--shop-surface); border-color: var(--shop-line); box-shadow: none; }
body.customer-theme .product-card:hover { border-color: #8c9db0; }
body.customer-theme .product-image { height: 220px; background: var(--shop-soft); border-bottom: 1px solid var(--shop-line); }
body.customer-theme .product-image .product-photo { background: var(--shop-soft); padding: 24px; }
/* Transparent product cutouts use the surrounding frame in either theme. */
body.customer-theme :is(.product-image, .modal-product-image, .cart-item-image) .product-photo { background: transparent; }
body.customer-theme :is(.product-image, .modal-product-image, .cart-item-image):has(.product-photo) > :is(.product-triangle, .product-gear, .product-square, .cart-triangle, .cart-gear, .cart-square) { visibility: hidden; }
html[data-theme="dark"] body.customer-theme img[src$="/steel-bars-cutout.png"] { filter: drop-shadow(0 0 .65px #e1eafb); }
body.customer-theme .product-category { background: transparent; color: var(--shop-muted); padding: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
body.customer-theme .product-info h3 { font-size: 16px; color: var(--shop-ink); }
body.customer-theme .product-price { color: var(--shop-ink); font-size: 23px; margin: 16px 0 8px; }
body.customer-theme .product-stock { font-size: 12px; color: var(--shop-muted); }
body.customer-theme :is(.add-product, .checkout-button, .cart-checkout-button, .place-order-button, .empty-cart button) { background: var(--shop-accent); border-color: var(--shop-accent); color: #172d45; border-radius: 5px; }
body.customer-theme :is(.add-product, .checkout-button, .cart-checkout-button, .place-order-button):hover:not(:disabled) { background: #e9bd38; border-color: #e9bd38; color: #172d45; }
body.customer-theme button:disabled { cursor: not-allowed; opacity: .5; }
body.customer-theme .cart-bar { left: max(24px, calc((100vw - 1360px) / 2)); right: max(24px, calc((100vw - 1360px) / 2)); background: var(--shop-surface); border: 1px solid var(--shop-line); box-shadow: 0 -4px 24px #00000014; }
body.customer-theme :is(.cart-items-section, .cart-summary, .checkout-card, .checkout-summary, .info-panel, .more-hero) { border-radius: 8px; box-shadow: none; border-color: var(--shop-line); }
@media (max-width: 1000px) {
    body.customer-theme .storefront-header { grid-template-columns: minmax(0, 1fr) minmax(210px, 1fr); gap: 0 20px; }
    body.customer-theme .storefront-header .customer-account { grid-column: 2; }
    body.customer-theme .storefront-search { grid-column: 1 / -1; grid-row: 3; margin-bottom: 14px; }
    body.customer-theme .storefront-header .navigation { grid-row: 4; }
    body.customer-theme .main-content { padding: 28px 24px 48px; }
    body.customer-theme .order-content { padding-bottom: 160px; }
    body.customer-theme .product-slide { gap: 28px; }
    body.customer-theme .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    body.customer-theme .storefront-header { padding: 0 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
    .storefront-announcement { font-size: 10px; justify-content: center; }
    .storefront-announcement span:last-child { display: none; }
    .storefront-announcement::before { inset-inline: -16px; }
    body.customer-theme .storefront-header .brand { padding: 14px 0; gap: 8px; }
    body.customer-theme .storefront-header .brand h2 { font-size: 13px; }
    body.customer-theme .storefront-header .brand p { display: none; }
    body.customer-theme .storefront-header .customer-brand-logo { width: 38px; height: 38px; }
    html body.customer-theme .storefront-header .workspace-account-name { display: none; }
    body.customer-theme .storefront-header .navigation { flex-wrap: nowrap; gap: 0; }
    body.customer-theme .storefront-header .nav-item { flex: 1; font-size: 12px; min-width: 0; padding: 10px 8px; gap: 5px; }
    body.customer-theme .storefront-header .nav-item .customer-nav-icon { width: 17px; height: 17px; }
    body.customer-theme .main-content { padding: 24px 16px 40px; }
    .storefront-intro { display: block; }
    .storefront-intro-note { max-width: none; }
    body.customer-theme .hero.featured-carousel { padding: 24px 24px 74px; }
    body.customer-theme .product-slide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.customer-theme .product-slide-visual { height: 200px; }
    body.customer-theme .carousel-controls { left: 24px; right: 24px; }
    .storefront-benefits { gap: 12px; }
    .storefront-benefits > div { flex-direction: column; text-align: center; gap: 8px; align-items: center; }
    .storefront-benefits small { font-size: 10px; line-height: 1.4; }
    .storefront-benefits strong { font-size: 11px; }
    body.customer-theme .section-heading h2 { font-size: 21px; }
    body.customer-theme .category-grid { gap: 12px; }
    body.customer-theme .category-card { padding: 18px; }
    .storefront-help { align-items: flex-start; flex-direction: column; padding: 22px; gap: 12px; }
    body.customer-theme .order-products { grid-template-columns: minmax(0, 1fr); }
    body.customer-theme .order-content { padding-bottom: 230px; }
    body.customer-theme .cart-bar { left: 12px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { body.customer-theme .category-card { transition: none; } }

/* Store promotions: real shopping services, with theme-independent artwork. */
.shop-promos { margin-top: 56px; }
.shop-promos-heading { text-align: center; margin-bottom: 28px; }
body.customer-theme .shop-promos-heading h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; color: var(--shop-ink); }
.shop-promos-heading > p:last-child { margin-top: 12px; color: var(--shop-muted); font-size: 14px; line-height: 1.6; }
.shop-promos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shop-promo { display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; border-radius: 10px; background: var(--shop-surface); border: 1px solid var(--shop-line); }
.shop-promo-visual { height: 175px; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; overflow: hidden; background: #f4cf55; }
.shop-promo-visual::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: #fff4cd; top: -115px; left: -95px; z-index: -1; }
.shop-promo-delivery .shop-promo-visual { background: #dce8f0; }
.shop-promo-delivery .shop-promo-visual::before { left: auto; right: -100px; top: 65px; background: #f4cf55; }
.shop-promo-online .shop-promo-visual { background: #edf2f6; }
.shop-promo-online .shop-promo-visual::before { width: 170px; height: 170px; top: -70px; left: -65px; background: #f4cf55; }
.shop-promo-help .shop-promo-visual { background: #f4cf55; }
.shop-promo-help .shop-promo-visual::before { top: 40px; left: auto; right: -70px; background: #fff4cd; }
.shop-promo-art { width: 240px; max-width: 100%; height: 170px; display: block; }
.shop-promo-copy { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.shop-promo-kicker { font-size: 9px; font-weight: 800; letter-spacing: .09em; color: var(--shop-muted); line-height: 1.6; }
body.customer-theme .shop-promo h3 { font-size: clamp(23px, 2vw, 28px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--shop-ink); margin: 12px 0; }
.shop-promo p { color: var(--shop-muted); font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
body.customer-theme .shop-promo a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; min-height: 44px; color: var(--shop-ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.shop-promo a span { font-size: 20px; }
.shop-promo-banner { margin-top: 24px; display: grid; grid-template-columns: .8fr 1.3fr 1fr; align-items: center; gap: 28px; padding: 28px 32px; border-radius: 8px; background: #172d45; border: 1px solid #425d7b; color: #fff; overflow: hidden; }
.shop-promo-banner-brand { font-size: 36px; font-weight: 900; letter-spacing: -.06em; color: #f4cf55; }
.shop-promo-banner-brand > span { display: block; font-size: 8px; letter-spacing: .12em; font-weight: 600; color: #c4d2e0; margin-top: 6px; }
body.customer-theme .shop-promo-banner > strong { font-size: clamp(32px, 4.4vw, 66px); line-height: 1; letter-spacing: -.045em; color: #f4cf55; white-space: nowrap; }
.shop-promo-banner > div { border-left: 1px solid #536d8a; padding-left: 28px; }
.shop-promo-banner p { font-size: 18px; font-weight: 600; line-height: 1.35; color: #fff; }
body.customer-theme .shop-promo-banner a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #f4cf55; font-size: 12px; text-underline-offset: 4px; }
html[data-theme="dark"] body.customer-theme .shop-promo { background: #1a293d; border-color: #425d7b; }
html[data-theme="dark"] body.customer-theme .shop-promo-delivery .shop-promo-visual,
html[data-theme="dark"] body.customer-theme .shop-promo-online .shop-promo-visual { background: #29415e; }
@media (max-width: 1100px) {
    .shop-promos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-promo-banner { grid-template-columns: auto 1fr; }
    .shop-promo-banner > div { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid #536d8a; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
}
@media (max-width: 650px) {
    .shop-promos { margin-top: 36px; }
    .shop-promos-grid { gap: 12px; }
    .shop-promo-visual { height: 140px; }
    .shop-promo-art { height: 135px; }
    .shop-promo-copy { padding: 18px; }
    .shop-promo-banner { gap: 18px; padding: 24px; }
    .shop-promo-banner-brand { font-size: 28px; }
    .shop-promo-banner-brand > span { max-width: 110px; font-size: 7px; line-height: 1.6; }
    body.customer-theme .shop-promo-banner > strong { font-size: 30px; }
    .shop-promo-banner p { font-size: 16px; }
}
@media (max-width: 420px) {
    .shop-promos-grid { grid-template-columns: minmax(0, 1fr); }
    .shop-promo-visual { height: 165px; }
    .shop-promo-art { height: 160px; }
    .shop-promo-banner { grid-template-columns: minmax(0, 1fr); }
    .shop-promo-banner > div { flex-direction: column; align-items: flex-start; gap: 6px; }
}
