:root {
  --paper:#fffaf0;
  --ink:#122558;
  --pine:#173684;
  --deep:#101f49;
  --leaf:#dce8ff;
  --lime:#ffe083;
  --clay:#244eb7;
  --muted:#4d5772;
  --line:#d8dce8;
}
html {scroll-padding-top:142px}
.preview-bar {background:var(--deep)}
.header {background:var(--paper);box-shadow:0 1px var(--line)}
.nav {height:74px;gap:20px}
.brand em {color:#244ca7}
.brand-logo {width:49px;height:49px}
.nav-actions {display:flex;gap:12px;align-items:center}
.nav-currency {min-height:44px;width:68px;padding:0 4px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:inherit;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
@media(max-width:760px) {.nav-currency {width:61px}}
.nav-saved,.nav-secondary button,.footer-grid button,.footer-bottom button {
  border:0;background:none;padding:0;color:inherit;font:inherit;
}
.nav-saved {display:flex;gap:7px;align-items:center;font-weight:700;font-size:.86rem;min-height:44px}
.nav-saved svg {width:19px;height:19px}
.bag-btn {border-color:#c7d3ed}
.nav-secondary {background:#edf2ff;border-top:1px solid #dfe6f7}
.nav-secondary .wrap {display:flex;align-items:center;justify-content:space-between;min-height:42px;gap:20px}
.nav-secondary nav {display:flex;align-items:center;gap:24px;font-size:.81rem;font-weight:700}
.nav-secondary a:hover,.nav-secondary button:hover,.nav-saved:hover {color:#305bcc}
.coastline {
  width:min(calc(100% - 96px),1312px);margin:31px auto 0;min-height:clamp(450px,44vw,620px);
  grid-template-columns:1.18fr 1fr;gap:0;color:var(--ink);background:#f9e7ac;
  border-radius:0;isolation:isolate;
}
.coastline .hero-text {padding:clamp(25px,5vw,76px);padding-right:16px}
.coastline h1 {font-size:clamp(3.4rem,7.2vw,8rem);line-height:.87;letter-spacing:-.017em;margin:0 0 24px}
.coastline h1 em {color:#234baa}
.coastline .hero-desc {color:#283a62;max-width:330px;margin-bottom:25px;font-weight:600}
.hero-actions {display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;animation-delay:.18s}
.coastline .hero-photo {min-height:100%;color:white;background:#d4e7ed}
.coastline .hero-photo img {object-position:center 52%;transition:filter .3s}
.coastline .hero-photo:hover img {filter:saturate(1.12)}
.hero-caption {display:flex;align-items:center;gap:9px;position:absolute;right:0;bottom:0;background:var(--deep);padding:12px 14px;font-size:.94rem;font-weight:700}
.hero-caption span {color:#d9e5ff;font-size:.72rem;font-weight:500}
.hero-caption svg {width:17px;height:17px}
.dark {background:var(--pine)}
.dark:hover {background:#244ca7}
.outline {border-color:#8e9bc0}
.outline:hover {background:#edf2ff}
.inline-link:is(button) {background:none;border-width:0 0 1px;border-style:solid;padding:0 0 2px;cursor:pointer}
.shop {padding-block:55px 58px}
.section-head h2,.return-panel h2,.help h2,.finder h2 {font-size:clamp(2.6rem,5.7vw,5.25rem);letter-spacing:-.015em}
.section-head h2 em,.help h2 em,.finder h2 em {color:#2856bb}
.compare-link {flex:none;font-size:.85rem}
.shop-tools {display:flex;align-items:center;gap:16px;justify-content:space-between;border-block:1px solid var(--line);padding:11px 0;margin:23px 0 13px}
.shop-search {display:flex;gap:8px;align-items:center;width:min(100%,360px)}
.shop-search svg {width:19px;height:19px}
.shop-search input {width:100%;min-width:0;border:0;border-radius:0;background:transparent;color:var(--ink);padding:7px 3px}
.shop-sort {white-space:nowrap;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.79rem}
.shop-sort select {max-width:100%;background:var(--paper);color:var(--ink);border:1px solid #bbc8e6;padding:6px 7px;border-radius:5px}
.filters {margin:0 0 9px}
.filter {border-color:#c7d3eb}
.filter:hover {background:#e6eeff}
.results-count {font-size:.77rem;color:var(--muted);margin-bottom:12px}
.products {gap:13px}
.card.reveal.pending {transform:none}
.card-image {position:relative}
.card-photo {border-radius:0;background:#e3ebfb}
.card h3 a:hover {color:#244ca7}
.card-info {border-bottom:1px solid var(--line);padding-bottom:9px}
.card-foot {align-items:center}
.add {background:#edf2ff;border-color:#cad6ed}
.add:hover {background:#dce8ff}
.save-product {
  position:absolute;top:7px;right:7px;display:grid;place-items:center;width:39px;height:39px;
  border-radius:50%;background:var(--paper);border:1px solid #d9ddeb;color:var(--pine);
}
.save-product svg {width:18px;height:18px}
.save-product[aria-pressed=true],.product-tools [aria-pressed=true] {color:#193f9a}
.save-product[aria-pressed=true] svg,.product-tools [aria-pressed=true] svg {fill:#244ca7}
.card-compare {align-self:start;border:0;background:none;padding:7px 0 1px;font-size:.77rem;color:#384c78;text-decoration:underline;text-underline-offset:3px}
.card-compare[aria-pressed=true] {font-weight:700;color:var(--pine)}
.no-products {grid-column:1/-1;padding:20px 0}
.finder {display:grid;grid-template-columns:.8fr 1fr;gap:24px;background:#edf2ff;padding:clamp(21px,4.1vw,57px);margin-bottom:44px}
.finder h2 {margin:0 0 9px}
.finder p {color:var(--muted)}
.finder-choices {align-self:center;display:flex;gap:6px;flex-wrap:wrap}
#finder-results {width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 13px;margin-top:8px}
.mini-product {display:flex;align-items:center;gap:10px;min-width:0;font-size:.87rem;padding:5px 0}
.mini-product:hover strong {text-decoration:underline}
.mini-product img {width:48px;height:52px;object-fit:cover;border-radius:4px;flex:none}
.mini-product small {display:block;font-size:.72rem;color:var(--muted)}
.recent {margin-bottom:42px}
.recent-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.recent-head h2 {font-size:clamp(1.8rem,3vw,2.7rem)}
.recent-head button {font-size:.8rem}
#recent-products {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;border-block:1px solid var(--line);padding:7px 0}
.return-panel {border-radius:0;background:var(--deep)}
.return-intro>i,.return-rates>div {background:#263d77}
.return-intro>p:last-child,.return-rates span,.return-steps ol {color:#e3eaff}
.return-steps {border-color:#788bb5}
.help {display:grid;grid-template-columns:.72fr 1fr;align-items:start;gap:22px;padding-bottom:60px}
.help h2 {margin:0 0 15px}
.help-questions details {border-top:1px solid var(--line);padding:11px 0}
.help-questions details:last-child {border-bottom:1px solid var(--line)}
.help-questions summary {cursor:pointer;font-weight:700;padding:3px 0}
.help-questions p {color:var(--muted);margin:6px 0}
.help-questions .inline-link {font-size:.86rem}
.site-footer {background:var(--deep);color:#edf2ff;padding:42px 0 0;border:0}
.footer-grid {display:grid;grid-template-columns:1.4fr .8fr .9fr 1.1fr;gap:24px}
.footer-grid h2 {font-size:1.2rem;color:white;margin:0 0 12px}
.footer-grid nav,.footer-contact {display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:.87rem}
.footer-grid a:hover,.footer-grid button:hover,.footer-bottom a:hover,.footer-bottom button:hover {text-decoration:underline}
.footer-brand .brand {color:white}.footer-brand .brand em {color:#b9d0ff}
.footer-brand p {max-width:220px;font-size:.86rem;color:#d5def5;margin-top:12px}
.footer-bottom {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 14px;border-top:1px solid #6d7da5;margin-top:31px;padding-block:14px;font-size:.77rem;color:#d5def5}
.product-layout {gap:clamp(25px,5.6vw,80px)}
.product-summary h1 {letter-spacing:-.015em}
.product-media {border-radius:0}
.product-size {background:#edf2ff}
.product-tools {display:flex;align-items:center;gap:13px 18px;flex-wrap:wrap;margin-bottom:16px}
.product-tools button {font-size:.84rem}
#panel.compare-mode {width:min(820px,100vw)}
.compare-scroll {overflow:auto}
.compare-scroll table {width:100%;border-collapse:collapse;text-align:left;font-size:.86rem}
.compare-scroll th,.compare-scroll td {padding:8px 10px;border-bottom:1px solid var(--line);min-width:108px;vertical-align:middle}
.compare-scroll th:first-child {position:sticky;left:0;background:var(--paper)}
.saved-row {display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#photo-viewer {width:min(950px,calc(100% - 28px));height:min(900px,calc(100% - 28px));max-width:none;max-height:none;padding:0;border:0;color:white;background:#111b35}
#photo-viewer::backdrop {background:#0c1425ca}
.photo-controls {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 13px}
.photo-controls h2 {font-size:clamp(1rem,3vw,1.45rem)}
.photo-controls>div {display:flex;gap:7px}
.photo-controls button {display:grid;place-items:center;min-height:41px;min-width:41px;padding:0 8px;background:#283a65;color:white;border:0;border-radius:4px;white-space:nowrap}
.photo-stage {height:calc(100% - 57px);overflow:auto}
.photo-stage img {height:100%;width:100%;object-fit:contain}
.photo-stage.zoomed img {width:200%;height:200%;max-width:none}
@media(max-width:950px) {
  .coastline {width:calc(100% - 52px)}
  .nav {gap:12px}
  #recent-products {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
  html {scroll-padding-top:77px}
  .nav {height:64px;gap:8px;position:relative}
  .nav .main-nav,.nav-secondary {display:none}
  .nav-actions {margin-left:auto;gap:7px}
  .nav-saved {padding:0 4px}
  .nav-saved span:last-child {display:none}
  .coastline {margin-top:18px}
  .coastline h1 {font-size:clamp(3.1rem,9.8vw,5rem)}
}
@media(max-width:650px) {
  .nav {height:59px}
  .brand-logo {width:34px;height:34px}
  .bag-btn {min-height:37px}
  .coastline {display:flex;width:calc(100% - 34px);min-height:0;margin-top:13px}
  .coastline .hero-text {padding:25px 17px 22px}
  .coastline h1 {margin-bottom:14px;font-size:clamp(2.65rem,10vw,4.35rem)}
  .coastline .hero-desc {margin-bottom:15px;font-size:.9rem}
  .coastline .hero-photo {min-height:0;height:clamp(254px,83vw,400px)}
  .hero-caption {padding:8px 11px}
  .hero-actions {gap:10px;font-size:.8rem}
  .hero-actions .btn {font-size:.8rem;padding-inline:11px}
  .shop {padding-block:34px}
  .shop-tools {margin-top:15px;gap:8px}
  .shop-sort {font-size:.72rem;gap:4px}
  .shop-sort select {max-width:126px}
  .shop-search input {font-size:.88rem}
  .save-product {width:35px;height:35px}
  .finder {grid-template-columns:1fr;gap:14px;margin-bottom:28px}
  #finder-results,#recent-products {grid-template-columns:repeat(2,minmax(0,1fr))}
  .mini-product {gap:6px;font-size:.78rem}
  .mini-product img {width:36px;height:43px}
  .help {grid-template-columns:1fr;padding-bottom:34px}
  .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 11px}
  .footer-brand {grid-column:1/-1}
  .site-footer {padding-top:23px}
}
@media(max-width:360px) {
  .nav .brand-logo {width:29px;height:29px}
  .nav .brand {font-size:.96rem}
  .nav-actions {gap:3px}
  .shop-sort {white-space:normal}
  .shop-sort select {max-width:103px}
}
.panel-content fieldset {margin:0;padding:10px;border:1px solid var(--line);border-radius:7px;min-width:0;display:grid;gap:8px}
.panel-content legend {font-size:.84rem;font-weight:700;padding:0 4px}
.panel-content textarea {border:1px solid var(--line);border-radius:7px;padding:8px;background:white;color:var(--ink)}
.product-stock-actions {grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.product-stock-actions:empty {display:none}
.workspace-card .methods {display:grid;gap:6px}
.methods summary,.workspace-card summary {cursor:pointer;font-size:.88rem;font-weight:700}
.methods form {margin:7px 0}
#scan-camera,#label-viewer {width:min(420px,calc(100% - 28px));padding:0;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
#scan-camera::backdrop,#label-viewer::backdrop {background:#101f49aa}
.scan-pane,.label-content {padding:18px;display:grid;gap:11px}
.scan-pane video {width:100%;max-height:44vh;background:#102047}
.label-content img {width:min(230px,100%);margin-inline:auto;image-rendering:pixelated}
.label-content {text-align:center}
.label-code {font-family:monospace;overflow-wrap:anywhere}
.label-actions {display:flex;justify-content:center;gap:8px}
@media print {
  body:has(#label-viewer[open]) > :not(#label-viewer) {display:none!important}
  #label-viewer[open] {position:static;margin:0;width:300px;border:0}
  #label-viewer::backdrop,.label-actions {display:none!important}
}
