/* atlas — engine + page overrides ON TOP of the ported design kit
   (public/design/{tokens,kit,theme,pages}.css). Base/body/typography come
   from the kit; only atlas-specific bits live here. */

/* templates carry structure and classes; no style attributes exist */
.site-header { border-bottom: 1px solid var(--line-cool, #E8EDF3); background: var(--header-bg, #fff); }
.site-header .links a { font: var(--w-medium) 16px/1 var(--font); color: var(--ink); padding: 4px 0; }
.site-header .links a:hover { color: var(--teal); }

/* svc tiles used as category links */
.svc { display: block; text-decoration: none; }

/* product grid: kit .prod-rail is a 4-col rail — grid variant wraps rows */
/* Category listing density. Original design: 3 per row beside the facet
   sidebar; wide screens gain one column. auto-fill stays the fallback. */
.prod-rail--grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.prod-rail--cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-rail--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1680px) {
  .prod-rail--cols-3 { grid-template-columns: repeat(4, 1fr); }
  .prod-rail--cols-4 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
  .prod-rail--cols-3, .prod-rail--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .prod-rail--cols-3, .prod-rail--cols-4 { grid-template-columns: 1fr 1fr; }
}
.prod .old { color: var(--fg-3, #939598); font: var(--w-regular) 14px/1 var(--font); }
.product-grid-empty { color: var(--fg-2, #69727F); padding: 24px 0; }

/* product page */
.product-info { padding: 40px 0; }
.product-info-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 768px) { .product-info-inner { grid-template-columns: 1fr; } }
.product-gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line, #E7EAEE); border-radius: var(--r-lg, 12px); background: #fff; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.product-gallery-thumbs button { width: 64px; height: 64px; padding: 2px; border: 1px solid var(--line, #E7EAEE); border-radius: var(--r-sm, 6px); background: none; cursor: pointer; }
.product-gallery-thumbs button.active { border-color: var(--teal, #00A79D); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info-details h1 { font: var(--w-medium) 32px/1.2 var(--font); color: var(--ink); margin: 0 0 4px; }
.product-brand { color: var(--fg-2, #69727F); margin: 0 0 16px; }
.product-pricing { font: var(--w-bold) 24px/1 var(--font); color: var(--ink); margin: 0 0 20px; display: flex; gap: 12px; align-items: baseline; }
.product-pricing s { color: var(--fg-3, #939598); font-size: 18px; font-weight: var(--w-regular); }
.product-description { margin-top: 24px; color: var(--fg-1, #46505F); line-height: 1.6; }

/* category page */
.category-description { color: var(--fg-2, #69727F); margin: -16px 0 24px; max-width: 720px; }

/* engine bits */
.tpl-errors { border: 1px solid var(--error, #E5484D); border-radius: var(--r-sm, 6px); padding: 12px 16px; margin: 8px 0; color: var(--error, #E5484D); font-size: 14px; }
.tpl-errors ul { margin: 6px 0 0; padding-left: 20px; }
.tpl-notfound { text-align: center; padding: 96px 16px; }

/* hero tiles: template loops can't index, so positions come from source
   order instead of tN classes (matches theme.css t1/t2/t3) */
.hstage .htile:nth-of-type(1) { left: 18px; top: 24px; z-index: 2; }
.hstage .htile:nth-of-type(2) { right: 6px; top: 90px; left: auto; z-index: 3; width: 224px; }
.hstage .htile:nth-of-type(3) { left: 64px; bottom: 8px; top: auto; z-index: 4; width: 204px; }
.htile { color: inherit; }
.htile .htile-link { position: absolute; inset: 0; z-index: 2; }

/* cart drawer (registry component) */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(5,23,35,.45); z-index: 60; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff; z-index: 61; box-shadow: var(--shadow-float); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line, #E7EAEE); font: var(--w-semibold) 18px/1 var(--font); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-drawer-empty { color: var(--fg-2, #69727F); }
.cart-drawer-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-3, #EDEFF2); }
.cart-drawer-img { width: 52px; height: 52px; flex: none; }
.cart-drawer-name { flex: 1; font: var(--w-medium) 14px/1.35 var(--font); color: var(--ink); }
.cart-drawer-name small { display: block; color: var(--fg-3, #939598); margin-top: 2px; }
.cart-drawer-price { font: var(--w-bold) 14px/1 var(--font); color: var(--ink); }
.cart-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line, #E7EAEE); }
.cart-drawer-foot .btn { width: 100%; }
.cart-drawer-total { display: flex; justify-content: space-between; margin-bottom: 14px; font: var(--w-medium) 15px/1 var(--font); }
.cart-drawer-note { padding: 0 20px 16px; color: var(--fg-3, #939598); font-size: 13px; }

/* search page */
.search-box { display: flex; gap: 8px; max-width: 560px; }
.search-box input { flex: 1; height: 48px; border: 1px solid var(--line-2, #D2D3D4); border-radius: var(--r-sm, 6px); padding: 0 14px; font: var(--w-regular) 16px/1 var(--font); color: var(--ink); }
.search-box .btn { padding: 0 16px; }
.search-head { margin-bottom: 24px; }
.search-meta { color: var(--fg-2, #69727F); margin: 12px 0 0; }

/* cart page */
.cart-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-page-grid { grid-template-columns: 1fr; } }
.cart-line { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-3, #EDEFF2); }
.cart-line-img { width: 72px; height: 72px; flex: none; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { display: block; font: var(--w-medium) 15px/1.35 var(--font); color: var(--ink); }
.cart-line-unit { color: var(--fg-3, #939598); font-size: 13px; }
.cart-line-qty { display: flex; align-items: center; gap: 10px; }
.cart-line-qty button { width: 30px; height: 30px; border: 1px solid var(--line-2, #D2D3D4); border-radius: var(--r-sm, 6px); background: #fff; cursor: pointer; font-size: 16px; }
.cart-line-qty button:disabled { opacity: .5; }
.cart-line-total { font: var(--w-bold) 15px/1 var(--font); min-width: 76px; text-align: right; }
.cart-line-remove { color: var(--fg-3, #939598); background: none; border: 0; cursor: pointer; }
.cart-line-remove:hover { color: var(--error, #E5484D); }
.cart-summary { border: 1px solid var(--line, #E7EAEE); border-radius: var(--r-lg, 12px); padding: 22px 24px; }
.cart-summary h3 { margin: 0 0 16px; font: var(--w-semibold) 19px/1 var(--font); }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 16px; font: var(--w-medium) 15px/1 var(--font); }
.cart-summary .btn { width: 100%; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--fg-2, #69727F); }
.cart-empty .btn { margin-top: 12px; }

/* PDP additions on top of the design kit */
.pdp-brand { font: var(--w-semibold) 14px/1 var(--font); color: var(--teal, #00A79D); margin-bottom: 8px; }
.stock-ok { color: var(--success, #1F8A5B); font-weight: 600; }
.crumb .material-symbols-rounded { font-size: 16px; }
.pdp .prose { margin-top: 24px; }

/* listing controls + pager */
.listing-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.listing-count { color: var(--fg-2, #69727F); font: var(--w-regular) 14px/1 var(--font); margin-right: auto; }
.listing-sort { height: 40px; border: 1px solid var(--line-2, #D2D3D4); border-radius: var(--r-sm, 6px); padding: 0 10px; font: var(--w-regular) 14px/1 var(--font); color: var(--ink); background: #fff; }

/* facet sidebar (design .filters/.fgroup/.check base lives in design/pages.css) */
.shop-main { min-width: 0; }
/* native checkboxes inside .check labels (GET-form facets): visually hidden,
   the styled .box carries the state; keyboard focus shows on the row */
.check input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.check:has(input:focus-visible) { outline: 2px solid var(--teal, #00A79D); outline-offset: 2px; border-radius: 4px; }
/* the BOX visual is driven by the native :checked state — INSTANT on click,
   independent of the server round-trip (the template's active-branch icon is
   hidden so the two sources can't double-render) */
.check .box .material-symbols-rounded { display: none; }
.check:has(input:checked) .box { background: var(--teal, #00A79D); border-color: var(--teal, #00A79D); }
.check:has(input:checked) .box::after {
  content: "check";
  font-family: "Material Symbols Rounded";
  font-size: 15px;
  line-height: 1;
  color: #fff;
}
.listing-controls form { display: contents; }

/* listing refetch state: html.px-navigating flips SYNCHRONOUSLY on form
   submit (instant feedback, engine/forms.tsx), .tpl-pending covers the
   streamed-data tail; the theme decides what dims. */
.prod-rail--grid,
.listing-controls,
.listing-pager,
.selected-filters,
.filters .fgroup { transition: opacity 0.15s ease; }
.px-navigating .prod-rail--grid,
.tpl-pending .prod-rail--grid,
.px-navigating .listing-controls,
.tpl-pending .listing-controls,
.px-navigating .listing-pager,
.tpl-pending .listing-pager,
.px-navigating .selected-filters,
.tpl-pending .selected-filters,
.px-navigating .filters .fgroup,
.tpl-pending .filters .fgroup { opacity: 0.55; }

/* Impulse-style staggered card entrance (fade-up): plays when card DOM
   MOUNTS — full page loads and path navigations (the page remounts per
   pathname), and cards newly ADDED by a filter. Cards updated in place by
   a param-only change don't replay (calm swap under the dim). */
@keyframes card-appear {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.prod-rail--grid .prod {
  animation: card-appear 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
.prod-rail--grid .prod:nth-child(2) { animation-delay: 0.06s; }
.prod-rail--grid .prod:nth-child(3) { animation-delay: 0.12s; }
.prod-rail--grid .prod:nth-child(4) { animation-delay: 0.18s; }
.prod-rail--grid .prod:nth-child(5) { animation-delay: 0.24s; }
.prod-rail--grid .prod:nth-child(6) { animation-delay: 0.3s; }
.prod-rail--grid .prod:nth-child(7) { animation-delay: 0.36s; }
.prod-rail--grid .prod:nth-child(8) { animation-delay: 0.42s; }
.prod-rail--grid .prod:nth-child(n + 9) { animation-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .prod-rail--grid .prod { animation: none; }
}

/* quick filter chips + selected-filter chips (design .chip-opt / .selected-filters-label) */
.chip-opt input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.chip-opt:has(input:focus-visible) { outline: 2px solid var(--teal, #00A79D); outline-offset: 2px; }
/* instant chip state from :checked, same rationale as .check .box */
.chip-opt:has(input:checked) {
  border-color: var(--teal, #00A79D);
  color: var(--teal, #00A79D);
  background: var(--teal-tint, #E5F6F5);
}
.instant-filters { margin: 0 0 14px; }
.selected-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.selected-filters-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm, 6px); text-decoration: none; }
.selected-filters-label .x { font-size: 11px; line-height: 1; }
.selected-filters-clear { font: var(--w-medium) 13px/1.2 var(--font); color: var(--fg-2, #69727F); text-decoration: underline; margin-left: 4px; }
.check .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.check { color: inherit; text-decoration: none; }
a.check:hover .lbl { color: var(--teal, #00A79D); }
.check.cur { color: var(--teal, #00A79D); font-weight: var(--w-semibold, 600); }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
}
.listing-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.listing-pager-info { color: var(--fg-2, #69727F); font: var(--w-medium) 14px/1 var(--font); }

/* promo countdown (theme-JS island — promo-countdown.js owns the content) */
.promo-countdown { margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: .9; }

/* header live search (search-suggest shell; template owns the results markup).
   Original-design pattern: icon trigger -> floating white panel containing
   the field + results. */
.nav-suggest { position: relative; }
.nav-suggest-panel { position: absolute; top: calc(100% + 14px); right: -60px; z-index: 60; width: 420px; max-width: calc(100vw - 24px); background: #fff; color: #0f172a; border-radius: 16px; box-shadow: 0 20px 50px rgba(2, 6, 23, .22); padding: 12px; }
.nav-suggest-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 0 10px; }
.nav-suggest-field > .material-symbols-rounded { font-size: 20px; color: #64748b; }
.nav-suggest-field input { flex: 1; height: 42px; border: 0; background: transparent; font: inherit; color: inherit; }
.nav-suggest-field input:focus { outline: none; }
.nav-suggest-clear { border: 0; background: none; cursor: pointer; color: #64748b; display: grid; place-items: center; padding: 2px; }
.nav-suggest-results { margin-top: 8px; }
.sug-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 8px; }
.sug-cat { font-size: 12px; padding: 3px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 999px; color: #334155; }
.sug-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.sug-item:hover { background: #f8fafc; }
.sug-item img { width: 46px; height: 46px; object-fit: contain; background: #eef2ff; border-radius: 10px; padding: 4px; }
.sug-name { font-size: 13.5px; font-weight: 600; color: #0f172a; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sug-price { font-weight: 800; font-size: 13.5px; white-space: nowrap; color: var(--brand, #0d9488); }
.sug-all { display: block; text-align: center; padding: 10px; margin-top: 6px; border-top: 1px solid var(--line, #e2e8f0); font-weight: 700; font-size: 13px; color: var(--brand, #0d9488); }
.sug-empty { padding: 16px; text-align: center; color: #64748b; font-size: 13px; }
@media (max-width: 720px) { .nav-suggest-panel { right: -80px; width: min(360px, calc(100vw - 16px)); } }

/* PDP tabs — CSS-only (radio + label[for]; Shopify-style, zero JS).
   The checked radio drives both the active label and the visible panel. */
.ptabs { margin-top: 34px; }
.ptabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ptab-nav { display: flex; gap: 22px; border-bottom: 1px solid var(--line, #e2e8f0); }
.ptab-nav label { padding: 10px 2px 12px; font-weight: 600; font-size: 15px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptab-panel { display: none; padding-top: 18px; max-width: 760px; }
#ptab-desc:checked ~ .ptab-nav label[for="ptab-desc"],
#ptab-specs:checked ~ .ptab-nav label[for="ptab-specs"] { color: var(--ink, #0f172a); border-bottom-color: var(--brand, #0d9488); }
#ptab-desc:checked ~ .ptab-panels .ptab-panel--desc,
#ptab-specs:checked ~ .ptab-panels .ptab-panel--specs { display: block; }

/* Full-bleed chrome, take 2: the 100vw breakout fought .page's
   overflow:hidden (100vw includes the scrollbar, so the header clipped).
   Instead: the PAGE is full-width — backgrounds (.appheader/.footer/.phero)
   reach the edges naturally — and the CONTENT is capped by .wrap. The
   hero's .inner keeps its own 1440px cap. */
.page { max-width: none; }
.wrap { max-width: 1920px; margin-left: auto; margin-right: auto; }

/* Mobile header: CSS-only hamburger (checkbox + label — same zero-JS
   pattern as the PDP tabs). Desktop unchanged. */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
/* must out-rank kit's `.nav .tools .ic { display:flex }` */
.nav .tools .nav-toggle { display: none; }
@media (max-width: 960px) {
  /* kit's .nav is FIXED height (80px), so the menu can't wrap into it —
     the open menu is an absolute panel under the header instead. */
  .appheader .nav { height: 64px; gap: 16px; }
  .nav .tools .nav-toggle { display: grid; place-items: center; }
  .appheader .nav .links { display: none; }
  .topstrip .grp:last-child { display: none; }
}
@media (max-width: 720px) {
  /* kit's .wrap clamp bottoms out at 40px per side — too much on phones */
  .wrap { padding-left: 16px; padding-right: 16px; }
  /* PDP gallery: shorter main tile, horizontally scrollable thumbs */
  .gallery .main { height: 320px; }
  .thumbs { overflow-x: auto; padding-bottom: 4px; }
  .thumbs .thumb { flex: 0 0 auto; }
  .pdp-info h1 { font-size: 24px; }
}

/* Gallery lightbox (engine ProductGallery — Dawn-style self-built modal) */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(2, 6, 23, .88); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 18px; }
.lightbox-prev { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-btn { border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox-btn:hover { background: rgba(255,255,255,.28); }
.lightbox-btn .material-symbols-rounded { font-size: 26px; }
.gallery .main { cursor: zoom-in; }

/* PDP layout via grid areas: desktop keeps gallery left / head+info right;
   mobile reorders to title -> photo -> price/buy (Dawn's mobile order)
   without duplicating any markup. Overrides pages.css .pdp columns. */
.pdp {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "gallery head" "gallery info";
}
.pdp .gallery { grid-area: gallery; }
.pdp .pdp-head { grid-area: head; }
.pdp .pdp-info { grid-area: info; }
@media (max-width: 1080px) {
  .pdp {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "head" "gallery" "info";
  }
  .pdp .pdp-head h1 { margin-bottom: 4px; }
}

/* Mobile menu DRAWER (jameco-class): checkbox-driven slide-in panel with
   <details> accordion subcategories and contact footer. Close-on-navigate
   comes from mobile-menu.js (theme-JS contract). Desktop never sees it. */
.mnav-overlay { display: none; }
.mnav { display: none; }
@media (max-width: 960px) {
  .mnav-overlay {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(2, 6, 23, .5);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .mnav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 95;
    width: min(340px, 86vw);
    background: #fff; color: var(--ink, #0f172a);
    transform: translateX(-102%); transition: transform .22s ease;
    box-shadow: 18px 0 40px rgba(2, 6, 23, .25);
  }
  .nav-toggle-input:checked ~ .mnav-overlay { opacity: 1; pointer-events: auto; }
  .nav-toggle-input:checked ~ .mnav { transform: translateX(0); }
  .mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line, #e2e8f0); }
  .mnav-head .wm { font-weight: 800; font-size: 20px; }
  .mnav-head .ic { color: var(--ink, #0f172a); }
  .mnav-list { flex: 1; overflow-y: auto; padding: 8px 0; }
  .mnav-link, .mnav-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; font-weight: 600; font-size: 16px; color: var(--ink, #0f172a);
  }
  .mnav-item summary { cursor: pointer; list-style: none; }
  .mnav-item summary::-webkit-details-marker { display: none; }
  .mnav-chev { transition: transform .18s ease; color: #64748b; }
  .mnav-item[open] .mnav-chev { transform: rotate(180deg); }
  .mnav-item[open] summary { color: var(--brand, #0d9488); }
  .mnav-sub { display: flex; flex-direction: column; padding: 2px 0 8px; background: #f8fafc; }
  .mnav-sub a { padding: 11px 16px 11px 28px; font-size: 15px; color: #334155; }
  .mnav-sub .mnav-all { font-weight: 700; color: var(--brand, #0d9488); }
  .mnav-foot { border-top: 1px solid var(--line, #e2e8f0); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
  .mnav-foot .cell { display: inline-flex; align-items: center; gap: 8px; color: #334155; font-size: 14px; }
  .mnav-foot .material-symbols-rounded { font-size: 18px; color: #64748b; }
}

/* auth + account pages */
.auth-page { max-width: 420px; margin: 24px auto 60px; }
.auth-page h1 { margin-bottom: 6px; }
.auth-intro { color: #64748b; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.auth-field input { height: 44px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 0 12px; font: inherit; }
.auth-field input:focus { outline: none; border-color: var(--brand, #0d9488); }
.auth-error { color: #dc2626; font-size: 14px; }
.auth-submit { margin-top: 6px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: #64748b; }
.auth-alt a { color: var(--brand, #0d9488); font-weight: 700; }
.account-page { max-width: 860px; margin: 12px auto 60px; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.account-who { color: #64748b; margin-top: 6px; }
.order-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; margin-bottom: 10px; font-size: 14px; }
.order-num { font-weight: 700; }
.order-status { color: #64748b; }
.order-total { font-weight: 800; }
@media (max-width: 620px) { .order-row { grid-template-columns: 1fr auto; } .order-date, .order-status { display: none; } .account-head { flex-direction: column; } }

/* header account dropdown */
.acct { position: relative; }
.acct-btn { background: none; border: 0; cursor: pointer; padding: 0; }
.acct-menu { position: absolute; top: calc(100% + 12px); right: -8px; z-index: 70; min-width: 210px; background: #fff; color: #0f172a; border-radius: 14px; box-shadow: 0 18px 44px rgba(2, 6, 23, .2); padding: 8px; }
.acct-who { padding: 8px 10px 10px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line, #e2e8f0); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #0f172a; background: none; border: 0; cursor: pointer; }
.acct-item:hover { background: #f8fafc; }
.acct-out { color: #dc2626; }

/* account subpages */
.account-page--narrow { max-width: 460px; }
.account-back { margin-bottom: 8px; font-size: 14px; }
.account-back a { color: var(--brand, #0d9488); font-weight: 700; }
.account-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 30px; }
.account-tile { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; font-weight: 700; color: var(--ink, #0f172a); }
.account-tile:hover { border-color: var(--brand, #0d9488); color: var(--brand, #0d9488); }
.account-tile .material-symbols-rounded { color: var(--brand, #0d9488); }
.profile-note { color: var(--brand, #0d9488); font-size: 14px; font-weight: 600; }
.addr-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.addr-main { display: flex; flex-direction: column; gap: 3px; }
.addr-alias { font-weight: 800; }
.addr-badge { font-size: 11px; font-weight: 700; color: var(--brand, #0d9488); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.addr-text { color: #475569; font-size: 14px; }
.addr-remove { background: none; border: 0; cursor: pointer; color: #dc2626; font-weight: 700; font-size: 13.5px; padding: 4px; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.address-grid .auth-field:nth-child(4) { grid-column: 1 / -1; }
@media (max-width: 620px) { .account-nav { grid-template-columns: 1fr; } .address-grid { grid-template-columns: 1fr; } }
