/* v1.1 — storefront refinement and accessible interaction surfaces.
   Keep this file after pages.css. No external fonts, images or runtime dependencies. */
:root {
  --header-height: 82px;
  --drawer-width: 470px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
/* A quieter, more legible version of the original blue / peach identity. */
.nav-row { height: 82px; }
.mega-panel { top: 82px; }
.home-hero { background: var(--color-sky-soft); }
.hero-grid { grid-template-columns: 1fr 1.05fr; min-height: 575px; padding-block: 36px 44px; gap: 56px; }
.hero-copy { padding-block: 10px; }
.hero-copy h1 { font-size: clamp(46px, 4.5vw, 65px); line-height: 1.055; letter-spacing: -.05em; }
.hero-copy .lead { max-width: 425px; line-height: 1.75; font-size: 17px; }
.hero-art { margin: 6px 0 14px; }
.hero-art > img { aspect-ratio: 1.14; border: 0; border-radius: 120px 24px 24px 24px; box-shadow: none; }
.hero-art::before, .hero-art::after { display: none; }
.hero-art-caption { left: -24px; bottom: -16px; max-width: 345px; padding: 17px 20px; box-shadow: 0 10px 35px rgb(16 53 91 / 8%); border: 1px solid var(--color-line); }
.hero-art-caption > span:first-child { flex-shrink: 0; }
.hero-art-caption strong { font-size: 12px; }
.hero-art-caption small { font-size: 11px; }
.hero-art-label { bottom: 18px; right: 18px; font-size: 8px; }
.hero-notes { gap: 0; flex-wrap: wrap; margin-top: 29px; font-size: 12px; }
.hero-notes a { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--color-line-strong); line-height: 1.35; }
.hero-notes a:last-child { border: 0; margin: 0; padding: 0; }
.hero-notes a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
.support-strip { padding-block: 25px; }
.category-card { border: 1px solid var(--color-line); }
.category-card img { height: 180px; }
.category-card .round-arrow { position: absolute; right: 22px; bottom: 22px; margin: 0; }
.category-card p { max-width: 180px; padding-right: 16px; }
.category-card h3 { font-size: 20px; }
.product-visual { border-color: var(--color-line); }
.product-card h3 { font-size: 21px; }
.card-features { min-height: 0; margin-top: 9px; }
.card-fit { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--color-ink); margin-top: 10px; }
.card-fit .icon { width: 15px; height: 15px; }
.product-card-bottom { padding-top: 15px; }
.wish-button { width: 40px; height: 40px; }
.compare-check { min-height: 38px; margin-top: 6px; }
.compare-check input { width: 16px; height: 16px; }
.card-action { min-height: 44px; }
.filter-option { min-height: 29px; }
.filter-clear, .dock-clear { min-height: 36px; }
.page-intro { padding-bottom: 36px; }
.page-intro .eyebrow { margin-bottom: 12px; }
body[data-page="checkout.html"] .cta-strip,
body[data-page="cart.html"] .cta-strip,
body[data-page="order-confirmation.html"] .cta-strip { display: none; }
body[data-page="checkout.html"] .floating-help { display: none; }
/* Search overlay: stays below the header without pushing the page down. */
.header-search { position: absolute; inset: 82px 0 auto; max-height: calc(100dvh - 120px); overflow-y: auto; background: #fff; box-shadow: var(--shadow-panel); padding-block: 22px; }
.header-search form, .instant-search { max-width: 880px; margin-inline: auto; }
.instant-search { margin-top: 16px; }
#instant-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.instant-option { display: flex; align-items: center; gap: 12px; padding: 11px; min-width: 0; border-radius: 6px; border: 1px solid transparent; }
.instant-option:hover, .instant-option[aria-selected="true"] { background: var(--color-sky-soft); border-color: var(--color-line-strong); }
.instant-option > img, .instant-icon { width: 57px; height: 53px; object-fit: contain; border-radius: 6px; background: var(--color-sky-soft); flex-shrink: 0; }
.instant-icon { display: grid; place-items: center; color: var(--color-blue); }
.instant-option > span:not(.instant-icon) { flex: 1; min-width: 0; }
.instant-option strong { display: block; font-size: 14px; line-height: 1.45; color: var(--color-ink); }
.instant-option small { display: block; color: var(--color-muted); font-size: 11px; margin-top: 3px; }
.instant-option > .icon { width: 16px; }
.instant-empty { padding: 20px 10px; grid-column: 1 / -1; font-size: 14px; }
.instant-empty p { margin-top: 8px; color: var(--color-muted); font-size: 13px; }
/* Shared dialog foundation; closed dialogs must never affect page layout. */
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgb(11 35 64 / 38%); backdrop-filter: blur(2px); }
.cart-drawer, .filter-dialog, .fit-dialog { border: 0; color: var(--color-text); background: #fff; padding: 0; box-shadow: var(--shadow-panel); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 27px 22px; border-bottom: 1px solid var(--color-line); background: #fff; }
.drawer-header h2 { font-size: 25px; line-height: 1.18; }
.drawer-header .eyebrow { font-size: 10px; margin-bottom: 9px; }
.drawer-header .icon-button { flex-shrink: 0; width: 42px; height: 42px; border: 1px solid var(--color-line-strong); }
.drawer-header h2 [data-drawer-count] { vertical-align: middle; display: inline-grid; place-items: center; width: 25px; height: 25px; font: 12px var(--font-body); background: var(--color-sky); border-radius: 50%; margin-left: 5px; }
.cart-drawer[open] { display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto; margin: 0; width: min(var(--drawer-width), 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 16px 0 0 16px; }
.drawer-content { flex: 1; overflow: auto; min-height: 90px; padding: 0 27px; overscroll-behavior: contain; }
.drawer-line { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--color-line); }
.drawer-product-image { align-self: start; background: var(--color-sky-soft); border-radius: 6px; border: 1px solid var(--color-line); overflow: hidden; }
.drawer-product-image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.drawer-product-name { font: 700 20px var(--font-heading); color: var(--color-ink); }
.drawer-line-info p { font-size: 11px; color: var(--color-muted); margin: 6px 0 8px; line-height: 1.5; }
.drawer-line-info > strong { color: var(--color-ink); font-size: 16px; }
.drawer-line-actions { display: flex; align-items: center; gap: 15px; margin-top: 14px; }
.drawer-line-actions .quantity-control { height: 39px; }
.drawer-line-actions .quantity-control button { width: 29px; height: 36px; }
.drawer-line-actions .quantity-control input { width: 27px; }
.drawer-line-actions .remove-item { font-size: 11px; min-height: 36px; }
.drawer-footer { flex-shrink: 0; padding: 21px 27px calc(20px + var(--safe-bottom)); border-top: 1px solid var(--color-line); background: #fff; box-shadow: 0 -10px 24px rgb(16 53 91 / 3%); }
.drawer-subtotal { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; color: var(--color-ink); }
.drawer-subtotal strong { font-size: 22px; }
.drawer-footer > p { font-size: 11px; margin: 9px 0 17px; line-height: 1.6; }
.drawer-footer .btn + .btn { margin-top: 9px; }
.drawer-continue { display: flex; margin: 12px auto 0; font-size: 12px; min-height: 30px; }
.drawer-empty { padding: 72px 10px 40px; text-align: center; }
.drawer-empty > .icon { width: 50px; height: 50px; color: var(--color-blue); margin-bottom: 24px; }
.drawer-empty h3 { font-size: 28px; }
.drawer-empty p { color: var(--color-muted); font-size: 14px; margin: 18px 0 25px; }
/* Mobile filter drawer receives the desktop sidebar in the DOM when opened. */
.filter-dialog[open] { display: flex; flex-direction: column; position: fixed; inset: 0; margin: 0 0 0 auto; width: min(420px,100%); height: 100dvh; max-height: 100dvh; max-width: 100%; border-radius: 16px 0 0 16px; }
.filter-dialog-body { flex: 1; overflow: auto; padding: 0 25px; overscroll-behavior: contain; }
.filter-dialog .catalog-sidebar { display: block; padding: 0; border: 0; }
.filter-dialog .catalog-sidebar > h2, .filter-dialog .sidebar-help { display: none; }
.filter-dialog .filter-group:first-of-type { border-top: 0; }
.filter-dialog .filter-group { padding-block: 23px; }
.filter-dialog .filter-group h3 { font-size: 16px; margin-bottom: 17px; }
.filter-dialog .filter-option { font-size: 14px; min-height: 32px; }
.filter-dialog .filter-option input { width: 19px; height: 19px; }
.filter-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--color-line); padding: 17px 25px calc(17px + var(--safe-bottom)); }
.filter-dialog-footer .btn { min-width: 180px; }
[data-filter-count] { min-width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 50%; color: white; background: var(--color-navy); font-size: 10px; }
/* Product essentials, explicit planning helper and browsing continuity. */
.product-layout { gap: 52px; }
.product-gallery { top: 108px; }
.product-summary .product-subtitle { margin-bottom: 12px; }
.product-summary .product-intro { margin-bottom: 18px; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 21px 0 0; border: 1px solid var(--color-line); border-radius: 6px; overflow: hidden; }
.quick-specs > div { padding: 12px 16px; background: var(--color-sky-soft); min-width: 0; }
.quick-specs > div:nth-child(odd) { border-right: 1px solid var(--color-line); }
.quick-specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
.quick-specs dt { font-size: 10px; color: var(--color-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.quick-specs dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--color-ink); line-height: 1.4; }
.fit-check-trigger { display: flex; width: 100%; gap: 9px; align-items: center; padding: 14px 0 0; color: var(--color-ink); font-weight: 700; font-size: 12px; text-align: left; }
.fit-check-trigger > .icon { width: 17px; height: 17px; }
.fit-check-trigger > .icon:last-child { margin-left: auto; }
.product-highlights { grid-template-columns: 1fr 1fr; padding-block: 19px; margin-bottom: 18px; gap: 11px; }
.product-highlights > span { font-size: 12px; }
.swatches { margin-bottom: 8px; }
.finish-note { font-size: 10px; line-height: 1.55; color: var(--color-muted); margin: 0 0 18px; max-width: 460px; }
.finish-warm .main-product-image { filter: none; }
.product-tabs { position: sticky; top: 82px; z-index: 20; background: white; gap: 30px; margin-top: 0; }
.product-tabs a { border-bottom: 2px solid transparent; padding-bottom: 7px; }
.product-tabs a[aria-current="location"] { border-color: var(--color-coral); color: var(--color-ink); }
.spec-section { scroll-margin-top: 150px; }
.fit-dialog { width: min(620px,calc(100% - 32px)); max-height: calc(100dvh - 40px); border-radius: 12px; }
.fit-dialog .drawer-header { padding: 27px 30px 24px; }
.fit-dialog .drawer-header h2 { font-size: 30px; }
.fit-dialog-body { padding: 25px 30px 30px; }
.fit-checklist { margin-top: 18px; }
.fit-checklist label { display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--color-line); cursor: pointer; }
.fit-checklist input { margin: 4px 0 0; }
.fit-checklist strong { display: block; font-size: 14px; color: var(--color-ink); }
.fit-checklist small { display: block; margin-top: 5px; font-size: 12px; color: var(--color-muted); }
.fit-status { font-size: 12px; margin: 18px 0; color: var(--color-ink); }
.recent-section { border-top: 1px solid var(--color-line); }
.recent-section h2 { font-size: 30px; }
.compare-controls { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 16px 0 24px; }
.compare-controls .form-check { margin: 0; font-weight: 700; }
.compare-controls > span { font-size: 12px; }
.compare-table tr.is-different > th[scope="row"] { border-left: 3px solid var(--color-coral); }
.compare-table tr.is-different > td { background: var(--color-coral-soft); }
/* Fixed elements share explicit states: no cart bar / comparison / help collisions. */
.has-compare-dock .floating-help, .has-sticky-buy .floating-help { display: none; }
.has-compare-dock .toast { bottom: 104px; }
body.has-sticky-buy { padding-bottom: calc(78px + var(--safe-bottom)); }
@media (min-width: 901px) {
  .catalog-sidebar { position: sticky; top: 105px; max-height: calc(100dvh - 125px); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 1100px) {
  .hero-grid { gap: 35px; }
  .hero-copy h1 { font-size: 53px; }
  .hero-art-caption { max-width: 300px; }
  .product-layout { gap: 35px; }
}
@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .nav-row { height: 76px; }
  .header-search { top: 76px; }
  .hero-grid { min-height: 0; gap: 28px; padding-block: 34px 40px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy .lead { font-size: 15px; }
  .hero-notes { gap: 9px 0; font-size: 11px; }
  .hero-art-caption { max-width: 280px; padding: 13px; left: -15px; }
  .hero-art-caption small { font-size: 10px; }
  .product-tabs { top: 76px; }
  .catalog-sidebar { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--color-line-strong); border-radius: 6px; }
}
@media (max-width: 620px) {
  :root { --header-height: 70px; }
  .nav-row { height: 70px; }
  .header-search { top: 70px; max-height: calc(100dvh - 98px); padding-block: 15px; }
  #instant-list { grid-template-columns: 1fr; gap: 2px; }
  .instant-search { margin-top: 10px; }
  .instant-option { padding: 9px 4px; }
  .instant-option strong { font-size: 13px; }
  .instant-option small { font-size: 10px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding-block: 32px 36px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1.04; margin-bottom: 20px; }
  .hero-copy h1 br:nth-of-type(2) { display: none; }
  .hero-copy h1 span { margin-left: .12em; }
  .hero-copy .lead { font-size: 15px; max-width: 370px; }
  .hero-copy .actions { margin-top: 22px; }
  .hero-copy .actions > .btn { flex: 1; padding-inline: 14px; }
  .hero-notes { margin-top: 23px; font-size: 11px; gap: 10px 0; }
  .hero-notes a { padding-right: 10px; margin-right: 10px; }
  .hero-art { margin: 0; }
  .hero-art > img { border-radius: 75px 15px 15px 15px; aspect-ratio: 1.42; width: 100%; object-position: center 65%; }
  .hero-art-caption { left: 12px; bottom: -13px; max-width: calc(100% - 24px); padding: 11px 13px; gap: 9px; border-radius: 6px; }
  .hero-art-caption > span:first-child { width: 30px; height: 30px; }
  .hero-art-caption strong { font-size: 10px; }
  .hero-art-caption small { font-size: 9px; }
  .hero-art-label { bottom: 34px; right: 11px; font-size: 7px; }
  .support-strip { padding-block: 24px; }
  .category-card { padding: 0 14px 19px; }
  .category-card img { height: 145px; }
  .category-card h3 { font-size: 17px; }
  .category-card p { padding: 0; max-width: none; font-size: 11px; min-height: 36px; }
  .category-card .round-arrow { display: none; }
  .product-card h3 { font-size: 19px; }
  .product-card .card-features { font-size: 11px; min-height: 36px; line-height: 1.6; }
  .card-fit { font-size: 10px; min-height: 28px; margin-top: 4px; gap: 5px; }
  .card-fit .icon { width: 13px; height: 13px; }
  .card-action { font-size: 11px; }
  .wish-button { width: 36px; height: 36px; }
  .compare-check { font-size: 11px; min-height: 40px; }
  .compare-check input { width: 16px; height: 16px; }
  .price-line { display: block; }
  .price-line .demo-price { display: block; font-size: 9px; margin-top: 2px; }
  .page-intro { padding-bottom: 28px; }
  .catalog-toolbar { display: grid; grid-template-columns: auto 1fr; gap: 13px 10px; }
  .result-count { grid-column: 1 / -1; grid-row: 2; font-size: 11px; }
  .sort-field { justify-self: end; gap: 4px; min-width: 0; }
  .sort-field > span { display: none; }
  .sort-field select { max-width: 180px; font-size: 11px; }
  .active-chip { min-height: 36px; font-size: 11px; padding-inline: 10px; }
  .cart-drawer[open], .filter-dialog[open] { border-radius: 0; }
  .drawer-header { padding: 21px 20px 18px; gap: 12px; }
  .drawer-header h2 { font-size: 23px; }
  .drawer-content { padding-inline: 20px; }
  .drawer-footer { padding: 18px 20px calc(16px + var(--safe-bottom)); }
  .drawer-line { grid-template-columns: 90px minmax(0,1fr); gap: 15px; padding-block: 20px; }
  .drawer-product-name { font-size: 19px; }
  .drawer-line-actions { gap: 10px; }
  .drawer-footer .btn { min-height: 45px; font-size: 13px; }
  .drawer-footer > p { font-size: 10px; margin-bottom: 13px; }
  .drawer-continue { margin-top: 7px; }
  .product-layout { gap: 27px; }
  .quick-specs { margin-top: 20px; }
  .quick-specs > div { padding: 11px 13px; }
  .quick-specs dd { font-size: 12px; }
  .product-highlights { grid-template-columns: 1fr 1fr; padding-block: 18px; }
  .product-highlights > span { font-size: 11px; }
  .product-tabs { top: 70px; gap: 23px; padding-block: 14px 9px; }
  .product-tabs a { font-size: 11px; }
  .spec-section { scroll-margin-top: 130px; }
  .fit-dialog { width: calc(100% - 24px); max-width: none; }
  .fit-dialog .drawer-header { padding: 23px 20px 20px; }
  .fit-dialog .drawer-header h2 { font-size: 24px; }
  .fit-dialog-body { padding: 20px; }
  .fit-checklist strong { font-size: 13px; }
  .fit-checklist small { font-size: 11px; }
  .fit-dialog .actions { gap: 18px; }
  .compare-controls { align-items: start; flex-direction: column; gap: 10px; }
  .compare-controls .form-check { font-size: 12px; }
  .compare-controls > span { font-size: 11px; }
  .compare-dock, .product-page .compare-dock { left: 12px; bottom: calc(12px + var(--safe-bottom)); width: calc(100% - 24px); }
  .sticky-buy.is-visible { padding-bottom: calc(10px + var(--safe-bottom)); }
  .has-sticky-buy .compare-dock { bottom: calc(84px + var(--safe-bottom)); }
  .product-page .toast, .toast { bottom: calc(20px + var(--safe-bottom)); }
  .has-compare-dock .toast { bottom: calc(94px + var(--safe-bottom)); }
  .has-sticky-buy .toast { bottom: calc(87px + var(--safe-bottom)); }
  .has-sticky-buy.has-compare-dock .toast { bottom: calc(165px + var(--safe-bottom)); }
}
@media (max-width: 360px) {
  .hero-notes { font-size: 10px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy .actions .btn { padding-inline: 10px; font-size: 12px; }
  .drawer-line { grid-template-columns: 75px minmax(0,1fr); gap: 12px; }
  .drawer-line-actions { flex-wrap: wrap; gap: 6px 14px; }
  .drawer-header h2 { font-size: 21px; }
  .sort-field select { max-width: 166px; }
  .filter-dialog-footer .btn { min-width: 160px; }
}
/* Final overlap corrections found in the visual review. */
.hero-art-label { top: 13px; bottom: auto; padding: 4px 7px; background: rgb(255 255 255 / 80%); border-radius: 4px; }
.product-page .floating-help { display: none; }
@media(max-width:900px){.catalog-sidebar.is-open{display:block}}
@media(max-width:620px){.floating-help{display:none}.hero-art>img{aspect-ratio:1.26}.hero-art-label{top:12px;bottom:auto;font-size:7px}}
