/* Sera Ceramics storefront. Tokens from the redesign guide (sections B and C). */
/* Figtree (SIL OFL), self-hosted: Google Fonts cost two extra connections before text could
   paint on mobile. One variable file covers weights 400-600; latin-ext loads only when needed.
   The file names carry the font version so they can be cached for a year (public/.htaccess). */
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/figtree-v9-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/figtree-v9-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --primary: #065B95; --primary-hover: #044B7C; --secondary: #153343; --accent: #80664E;
  --bg: #FFFFFF; --bg-warm: #F5F3EF; --bg-support: #EEF3F6;
  --heading: #172B36; --body: #4D5C63; --muted: #596970;
  --divider: #DCE3E6; --control: #7B8991;
  --success-bg: #E7F4EC; --success: #1D6B3A; --error-bg: #FBEAEA; --error: #A4262C; --info-bg: #EEF3F6; --warn-bg: #FFF6E0; --warn: #7A5300;
  --radius: 4px; --gap: 24px; --gutter: 72px;
  --font: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* classes that set display must not un-hide elements */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.75rem; color: var(--body); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
/* <picture> (WebP with JPG/PNG fallback) is layout-neutral: its <img> sizes and styles as before. */
picture { display: contents; }
h1, h2, h3 { color: var(--heading); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: 2.5rem; line-height: 3rem; }
h2 { font-size: 1.75rem; line-height: 2.25rem; }
h3, .h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: 0; }
p { margin: 0 0 16px; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--primary); color: #fff; padding: 12px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }
.container { max-width: calc(1296px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.25rem; }
.lead { max-width: 65ch; }
.eyebrow { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.eyebrow a { color: inherit; }

/* Buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: var(--radius);
  font: 600 1rem/1.5rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; gap: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--bg-support); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 6px 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; }
.icon-btn { background: none; border: 0; width: 48px; height: 48px; display: grid; place-items: center; color: var(--heading); cursor: pointer; }
input, select, textarea { font: 400 1rem/1.5rem var(--font); color: var(--heading); background: #fff; border: 1px solid var(--control); border-radius: var(--radius);
  padding: 11px 12px; min-height: 48px; width: 100%; }
textarea { min-height: auto; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
input[readonly] { background: var(--bg-support); }

/* Forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; color: var(--heading); font-size: 1rem; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .875rem; line-height: 1.25rem; color: var(--muted); margin: -2px 0 6px; }
.field-error { color: var(--error); font-size: .9375rem; line-height: 1.375rem; margin: 6px 0 0; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--error); }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { flex-basis: 100%; }
.field-check { flex-wrap: wrap; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { font-size: 1.375rem; color: var(--heading); font-weight: 500; margin-bottom: 12px; padding: 0; }
.stack-form { max-width: 640px; }
.wide-form { max-width: 960px; }

/* Alerts */
.alert { padding: 14px 16px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: var(--heading); }
.alert-success h1 { font-size: 1.75rem; line-height: 2.25rem; }
.alert-error { background: var(--error-bg); border-color: var(--error); color: var(--heading); }
.alert-info { background: var(--info-bg); border-color: var(--primary); color: var(--heading); }
.notice { background: var(--warn-bg); color: var(--heading); padding: 12px 16px; border-radius: var(--radius); border-left: 4px solid var(--warn); }
.flash-area { padding-top: 8px; }
.empty { padding: 32px 0; }

/* Header */
.announce { background: var(--primary); color: #fff; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.announce-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.announce p { margin: 0; }
.announce a { color: #fff; margin-left: 24px; }
.announce-inner > p:first-child { margin-right: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--divider); position: relative; z-index: 20; }
.header-main { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 174px; }
.brand { display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex: none; }
.logo { display: block; line-height: 0; }
.brand-tag { display: block; text-align: right; font-size: .75rem; line-height: 1rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.footer-brand .brand-tag { width: 140px; margin: 6px 0 12px; }
.header-search { position: relative; flex: 1; display: flex; gap: 8px; max-width: 560px; }
.header-search .btn { border-radius: 8px; }
.header-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.header-actions a, .menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 8px; color: var(--heading); text-decoration: none; font-size: 1rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: var(--font); }
.header-actions .count { background: var(--primary); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: .8125rem; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; }
/* margin-block only: keep .container's auto side margins so the row centres exactly like the logo row above. */
.main-nav > ul { list-style: none; margin-block: 0; display: flex; gap: 32px; min-height: 48px; align-items: center; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a { color: var(--heading); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 12px 0; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--primary); text-decoration: underline; }
.disclosure { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--heading); }
.disclosure[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 100%; left: 0; width: min(1100px, 90vw); background: #fff; border: 1px solid var(--divider); padding: 24px; box-shadow: 0 8px 24px rgba(21, 51, 67, .08); }
.panel-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 24px; }
.panel-grid ul { list-style: none; padding: 0; margin: 4px 0 0; }
.panel-grid ul a { font-weight: 400; color: var(--body); padding: 4px 0; display: block; }
.main-nav .panel-head { font-weight: 600; }

/* Drawer (native dialog) */
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: min(360px, calc(100vw - 32px)); max-width: none; height: 100dvh; max-height: none; display: none; flex-direction: column; }
.drawer[open] { display: flex; }
.drawer::backdrop { background: rgba(21, 51, 67, .55); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--divider); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.drawer-search { position: relative; display: flex; gap: 8px; margin-bottom: 16px; }
.drawer-nav, .drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav ul { padding-left: 16px; }
.drawer-row { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--divider); }
.drawer-row a, .drawer-nav ul li > a { color: var(--heading); text-decoration: none; font-size: 1.125rem; padding: 10px 0; display: block; flex: 1; }
.drawer-nav ul ul a { font-size: 1rem; min-height: 44px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--divider); }
.drawer-actions .btn { flex: 1 1 140px; }
@media (prefers-reduced-motion: no-preference) { .drawer[open] { animation: slide-in .2s ease-out; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
body.drawer-open { overflow: hidden; }

/* Pages */
main { display: block; }
main:focus { outline: none; }
.page { padding-top: 24px; padding-bottom: 64px; }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: 72px; }
.section-sm { padding-block: 40px 0; }
.section-warm { background: var(--bg-warm); }
.section-support { background: var(--bg-support); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 2.25rem; line-height: 2.75rem; margin: 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 45.6fr 54.4fr; background: var(--bg-warm); min-height: 466px; }
.hero-copy { padding: 64px var(--gutter); align-self: center; max-width: 640px; }
.hero h1 { font-size: 3.5rem; line-height: 3.75rem; }
.hero-copy > p:not(.eyebrow) { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* Grids and cards */
.category-grid, .collection-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card a, .collection-card a { text-decoration: none; color: var(--heading); display: block; }
.category-card img { aspect-ratio: 306 / 220; object-fit: cover; width: 100%; }
/* Category without its own photo: a product shot on white, shown whole rather than cropped. */
.category-card img.is-product-photo { object-fit: contain; background: #fff; border: 1px solid var(--divider); }
.category-card-placeholder { display: block; aspect-ratio: 306 / 220; background: var(--bg-warm); }
.category-card p { margin: 0; }
.collection-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.category-card h3, .collection-card h3, .collection-card .h3 { margin: 12px 0 4px; }
.category-card a:hover h3, .collection-card a:hover h3, .collection-card a:hover .h3 { text-decoration: underline; }
.chip-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1px solid var(--divider); border-radius: var(--radius); text-decoration: none; color: var(--heading); font-size: 1rem; background: #fff; }
.chip-list a:hover { border-color: var(--primary); color: var(--primary); }
/* Selected filter (collection category buttons): the theme's active style, as in pagination. */
.chip-list a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.chip-list a[aria-current]:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
/* Listing button rows (types, category/collection filters): on phones every button stays fully
   visible, wrapping onto more lines. Compact sizing keeps the rows short; 44px tap height. */
@media (max-width: 767px) {
  .chip-filter { gap: 8px; margin: 16px 0; }
  .chip-filter a { min-height: 44px; padding: 6px 12px; font-size: .9375rem; }
  .chip-filter + .chip-filter { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--divider); } /* separates the two rows */
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--divider); border-radius: var(--radius); background: #fff; }
.product-media { display: block; background: #FAFAFA; aspect-ratio: 4 / 3; overflow: hidden; } /* overflow: the box stays 4:3 (a padded image made some 6px taller, misaligning cards in a row) */
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-body .product-name { letter-spacing: 0; font-size: 1.25rem; line-height: 1.625rem; margin-bottom: 4px; min-height: 3.25rem; }
.product-body .product-name a { display: block; min-height: inherit; color: var(--heading); text-decoration: none; } /* the whole name area (2 lines) is the tap target */
.product-body .product-name a:hover { text-decoration: underline; color: var(--primary); }
.sku { font-size: .875rem; line-height: 1.25rem; color: var(--muted); margin-bottom: 8px; }
/* Product page: SKU, GTIN and MPN side by side, wrapping whole items on narrow screens. */
.product-ids { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.product-ids span { overflow-wrap: anywhere; }
.product-ids abbr { text-decoration: none; }
.price { font-weight: 600; color: var(--heading); margin: auto 0 0; font-size: 1.0625rem; }
.stock-out { color: var(--error); font-size: .875rem; margin: 4px 0 0; }
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.listing-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 8px 0 24px; }
.listing-tools .field { margin: 0; min-width: 200px; }
.result-count { margin: 0 0 12px auto; }

/* Pagination */
.pagination { margin-top: 32px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--divider); border-radius: var(--radius); text-decoration: none; font-size: 1rem; }
.pagination [aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
/* Product gallery: featured media on the stage, all media as thumbnails below */
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery-stage { aspect-ratio: 4 / 3; background: #FAFAFA; border: 1px solid var(--divider); display: grid; place-items: center; overflow: hidden; }
.gallery-stage img, .gallery-stage video { width: 100%; height: 100%; object-fit: contain; }
.gallery-stage video { background: #000; }
.gallery-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.gallery-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--divider); border-radius: var(--radius); background: #FAFAFA; overflow: hidden; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.gallery-thumb.is-video video { object-fit: cover; }
.gallery-thumb[aria-current="true"] { border: 2px solid var(--primary); }
.gallery-thumb:hover { border-color: var(--primary); }
.play-icon { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(21, 51, 67, .8); color: #fff; display: grid; place-items: center; font-size: .875rem; padding-left: 3px; }

/* Sale pricing */
.on-sale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-now { color: var(--error); font-weight: 700; }
.price-was { color: var(--muted); font-weight: 400; font-size: .875em; }
.price-save { font-size: .8125rem; line-height: 1.25rem; font-weight: 600; color: var(--error); background: var(--error-bg); border-radius: 999px; padding: 1px 8px; }
.product-media { position: relative; }
/* Collection promotion: compact brand-blue strip with a small savings pill (no alert red). */
.offer-banner { display: flex; align-items: center; gap: 14px; max-width: 880px; margin: 0 0 28px; padding: 14px 20px 14px 16px;
  border: 1px solid #D5E3EC; border-left: 3px solid var(--primary); border-radius: 10px;
  background: linear-gradient(105deg, var(--bg-support) 0%, #FFFFFF 85%); box-shadow: 0 2px 10px rgba(6, 91, 149, .05); }
.offer-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary);
  border: 1px solid #D5E3EC; }
.offer-copy { min-width: 0; }
.offer-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; }
.offer-label { color: var(--secondary); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.offer-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: .75rem; line-height: 1.125rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.offer-text { margin: 0; color: var(--body); font-size: .9375rem; line-height: 1.375rem; }
@media (max-width: 600px) {
  .offer-banner { align-items: flex-start; gap: 12px; padding: 12px 14px 12px 12px; margin-bottom: 20px; }
  .offer-icon { width: 34px; height: 34px; }
  .offer-icon svg { width: 17px; height: 17px; }
  .offer-text { font-size: .875rem; line-height: 1.3125rem; }
}
.sale-badge { position: absolute; top: 10px; left: 10px; background: var(--error); color: #fff; font-size: .8125rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.cart-price { margin: 0; }
.cart-price.on-sale { justify-content: flex-end; }
.no-image { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg-support); }
.product-info h1 { font-size: 2.25rem; line-height: 2.75rem; margin-bottom: 4px; }
.price-lg { font-size: 1.75rem; line-height: 2.25rem; color: var(--heading); font-weight: 600; margin: 16px 0; }
.buy-box { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.buy-box .field { margin: 0; }
.qty-field input { width: 110px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--heading); text-align: right; }
.faq { border-bottom: 1px solid var(--divider); }
.faq summary { cursor: pointer; padding: 16px 0; color: var(--heading); font-weight: 500; min-height: 48px; }
.prose { max-width: 70ch; }
.collection-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; margin: 8px 0 32px; }
.collection-intro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.collection-intro .rich-text:only-child { grid-column: 1 / -1; }
.rich-text img { margin: 16px 0; border-radius: var(--radius); }
.rich-text h2 { font-size: 1.5rem; line-height: 2rem; margin-top: 24px; }
.rich-text h3 { margin-top: 20px; }
.rich-text blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--accent); }
@media (max-width: 767px) { .collection-intro { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 16px; position: relative; } /* relative: absolutely positioned content (e.g. screen-reader labels) stays inside the scroll box instead of widening the page */
.table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5rem; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table thead th { font-weight: 600; color: var(--heading); background: var(--bg-support); }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot th { font-weight: 400; text-align: right; }
.table tfoot .grand th, .table tfoot .grand td { font-weight: 600; color: var(--heading); font-size: 1.125rem; }
.has-issue td { background: var(--error-bg); }
.qty-input { width: 90px; }

/* Cart / checkout */
.cart-form { margin-bottom: 32px; }
.summary-box { background: var(--bg-support); padding: 24px; border-radius: var(--radius); align-self: start; }
.summary-box h2 { font-size: 1.375rem; line-height: 1.875rem; }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.totals dd { margin: 0; color: var(--heading); text-align: right; }
.totals .grand { border-top: 1px solid var(--control); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--heading); font-size: 1.25rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 12px; font-size: 1rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--divider); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.checkout-layout .summary-box { position: sticky; top: 16px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--control); border-radius: var(--radius); margin-bottom: 12px; }
.pay-option label { font-size: 1rem; line-height: 1.5rem; color: var(--heading); cursor: pointer; }
.pay-option label .muted { display: block; margin-top: 4px; }
.pay-option:has(input:checked) { border: 2px solid var(--primary); background: var(--bg-support); }

/* Orders */
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 24px; padding: 16px; background: var(--bg-support); border-radius: var(--radius); }
.order-meta dt { font-size: .875rem; color: var(--muted); }
.order-meta dd { margin: 0; color: var(--heading); font-weight: 500; }
.next-step { font-size: 1.125rem; color: var(--heading); }
.bank-box { border: 2px solid var(--primary); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; }
.bank-details { display: grid; gap: 4px; margin: 0 0 12px; }
.bank-details div { display: flex; gap: 12px; }
.bank-details dt { min-width: 140px; color: var(--muted); }
.bank-details dd { margin: 0; color: var(--heading); font-weight: 600; word-break: break-all; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
address { font-style: normal; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--divider); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; line-height: 1.25rem; font-weight: 600; background: var(--bg-support); color: var(--secondary); border: 1px solid var(--divider); }
.badge-pending, .badge-partially_paid { background: var(--warn-bg); color: var(--warn); border-color: #E8D29B; }
.badge-confirmed, .badge-processing, .badge-shipped { background: #E5EFF7; color: var(--primary); border-color: #BCD3E6; }
.badge-delivered, .badge-paid { background: var(--success-bg); color: var(--success); border-color: #B5DCC2; }
.badge-cancelled, .badge-returned, .badge-failed, .badge-refunded, .badge-voided { background: var(--error-bg); color: var(--error); border-color: #EBC1C3; }

/* Account */
.account-nav ul { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--divider); }
.account-nav a, .account-nav .link-btn { display: inline-block; padding: 12px 0; text-decoration: none; font-size: 1rem; }
.account-nav a[aria-current="page"] { border-bottom: 3px solid var(--primary); font-weight: 600; }
.address-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-list li { border: 1px solid var(--divider); padding: 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Footer */
.site-footer { background: var(--bg-support); padding-top: 56px; margin-top: 0; font-size: 1rem; line-height: 1.625rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .footer-title { margin: 0 0 12px; color: var(--heading); font-size: 1.125rem; line-height: 1.625rem; font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 4px 0; color: var(--body); }
.footer-disclaimer { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--divider); border-left: 4px solid var(--primary); border-radius: var(--radius); background: #fff; font-size: .875rem; line-height: 1.375rem; color: var(--muted); }
.site-footer .footer-disclaimer .footer-title { font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; color: var(--heading); }
.footer-disclaimer p { margin: 0 0 8px; max-width: 110ch; }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: var(--heading); }
@media (max-width: 767px) { .footer-disclaimer { margin-top: 32px; padding: 16px; } }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; padding-block: 24px; margin-top: 24px; border-top: 1px solid var(--divider); font-size: .875rem; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 1023px) {
  :root { --gutter: 24px; --gap: 12px; }
  .main-nav, .header-search, .announce-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions span:not(.count) { display: none; }
  .header-actions .menu-toggle span { display: inline; }
  .logo img { width: 140px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px var(--gutter); }
  .hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .hero-media img { height: 250px; object-position: 95% center; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .checkout-layout, .callouts, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .checkout-layout .summary-box { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding-block: 48px; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; line-height: 1.5rem; }
  h1 { font-size: 2rem; line-height: 2.5rem; }
  .section-head h2, h2 { font-size: 1.75rem; line-height: 2.125rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .product-body .product-name { font-size: 1.125rem; line-height: 1.375rem; min-height: 2.75rem; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--divider); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
}
/* Small phones: logo + account, cart and menu must fit in one row (they pushed the page 30-70px
   wider than the screen below 390px). Icon-only buttons with 44px tap areas; "Menu" stays as
   the button's accessible name. */
@media (max-width: 480px) {
  .header-main { gap: 12px; }
  .header-actions { gap: 0; }
  .header-actions a, .menu-toggle { min-width: 44px; justify-content: center; padding: 0 6px; }
  .header-actions .menu-toggle span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .logo img { width: 120px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  /* Homepage selection keeps two products per row on phones, with compact cards. */
  .product-grid.product-grid-2up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-grid-2up .product-media img { padding: 6px; }
  .product-grid-2up .product-body { padding: 10px; }
  .product-grid-2up .product-body .product-name { font-size: 1rem; line-height: 1.25rem; min-height: 2.5rem; overflow-wrap: anywhere; }
  .product-grid-2up .eyebrow { font-size: .75rem; line-height: 1rem; }
  .product-grid-2up .price { font-size: .9375rem; }
  .product-grid-2up .price-save { font-size: .6875rem; padding: 0 6px; }
  .product-grid-2up .sale-badge { top: 6px; left: 6px; font-size: .6875rem; padding: 1px 8px; }
}
@media print {
  .site-header, .site-footer, .announce, .skip-link { display: none; }
}

/* Technology page */
.tech-hero { max-width: 860px; margin-bottom: 24px; }
.tech-hero h1 { font-size: 3rem; line-height: 3.5rem; }
.tech-toc ol { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--divider); border-radius: 999px; text-decoration: none; color: var(--heading); font-size: .9375rem; font-weight: 500; background: #fff; }
.tech-toc a:hover { border-color: var(--primary); color: var(--primary); }
.tech-toc-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-support); color: var(--primary); font-size: .8125rem; font-weight: 600; }
.tech-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 56px; border-top: 1px solid var(--divider); scroll-margin-top: 16px; }
.tech-feature.is-reversed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tech-feature.is-reversed .tech-copy { order: 2; }
.tech-copy h2 { font-size: 2rem; line-height: 2.5rem; }
.tech-copy p { max-width: 52ch; }
.tech-label { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tech-icon { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.tech-count { font-size: .875rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.tech-link { font-weight: 600; text-decoration: none; }
.tech-link:hover { text-decoration: underline; }
.tech-media { margin: 0; }
.tech-media video, .tech-test video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f1d24; border-radius: 6px; }
.tech-media figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.tech-testing { padding-block: 64px; border-top: 1px solid var(--divider); scroll-margin-top: 16px; }
.tech-testing-head { max-width: 760px; margin-bottom: 32px; }
.tech-test-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tech-test h3 { margin: 12px 0 0; font-size: 1.125rem; line-height: 1.5rem; }
.tech-test h3 .muted:first-child { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tech-note { padding: 16px 20px; border-radius: var(--radius); background: var(--bg-support); font-size: 1rem; margin-bottom: 48px; }
.tech-note p { margin: 0; }
.tech-cta { text-align: center; padding: 48px 24px; border-radius: 6px; background: var(--bg-warm); }
.tech-cta p { max-width: 60ch; margin-inline: auto; }
.tech-cta .actions { justify-content: center; }
@media (max-width: 1023px) {
  .tech-feature, .tech-feature.is-reversed { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .tech-feature.is-reversed .tech-copy { order: 0; }
  .tech-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tech-hero h1 { font-size: 2.25rem; line-height: 2.625rem; }
  .tech-copy h2 { font-size: 1.625rem; line-height: 2.125rem; }
  .tech-test-grid { grid-template-columns: 1fr; }
}

/* Homepage: why Sera + FAQ */
.home-why-intro { max-width: 760px; margin-bottom: 32px; }
.home-why-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-why-grid li { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); padding: 24px; }
.home-why-grid h3 { margin-bottom: 8px; }
.home-why-grid h3 a { text-decoration: none; color: var(--heading); }
.home-why-grid h3 a:hover { color: var(--primary); text-decoration: underline; }
.home-why-grid p { margin: 0; }
.home-why-note { margin: 0; font-size: 1rem; color: var(--muted); }
.home-faq { padding-bottom: 64px; }
.home-faq .section-sm { padding-top: 64px; max-width: 900px; }
.home-faq .faq .prose p:last-child { margin-bottom: 16px; }
@media (max-width: 1023px) { .home-why-grid { grid-template-columns: 1fr; gap: 12px; } .home-faq .section-sm { padding-top: 48px; } }

/* Search field: no hard border; the 2px brand-blue ring on focus is the visible focus indicator. */
.search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; background: var(--bg-support); border: 2px solid transparent; border-radius: 8px; transition: background-color .15s, border-color .15s; }
.search-field:hover { border-color: var(--divider); }
.search-field:focus-within { background: #fff; border-color: var(--primary); }
.search-field > .icon { position: absolute; left: 12px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; padding: 10px 12px 10px 42px; border-radius: 8px; }
.search-field input:focus, .search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }

/* Live suggestions dropdown */
.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--divider); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21, 51, 67, .14), 0 2px 6px rgba(21, 51, 67, .06); max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.search-suggest ul { list-style: none; margin: 0; padding: 0; }
.search-suggest-note { display: flex; align-items: center; gap: 10px; padding: 14px 12px; font-size: .9375rem; line-height: 1.375rem; color: var(--body); }
.search-suggest-note.is-empty { color: var(--heading); }
.suggest-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--heading); text-decoration: none; }
.suggest-item.is-active, .suggest-item:hover { background: var(--bg-support); color: var(--heading); }
.suggest-item.is-active { box-shadow: inset 3px 0 0 var(--primary); }
.suggest-thumb { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--divider); background: #FAFAFA; overflow: hidden; display: block; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-name { font-size: .9375rem; line-height: 1.25rem; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest-name mark { background: none; color: var(--primary); font-weight: 700; }
.suggest-meta { margin-top: 2px; font-size: .8125rem; line-height: 1.125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-price { display: flex; flex-direction: column; align-items: flex-end; font-size: .875rem; font-weight: 600; color: var(--heading); white-space: nowrap; }
.suggest-price del { font-size: .75rem; font-weight: 400; color: var(--muted); }
.suggest-all { display: block; margin-top: 4px; padding: 12px 10px; border-top: 1px solid var(--divider); border-radius: 0 0 8px 8px; font-size: .9375rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.suggest-all.is-active, .suggest-all:hover { background: var(--bg-support); text-decoration: underline; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--divider); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .search-field { transition: none; } }
.drawer-search .search-suggest { top: calc(100% + 6px); max-height: 60vh; }
@media (max-width: 480px) {
  .suggest-item { grid-template-columns: 48px minmax(0, 1fr); }
  .suggest-thumb { width: 48px; height: 48px; }
  .suggest-price { grid-column: 2; flex-direction: row; gap: 8px; align-items: baseline; justify-content: flex-start; }
  .suggest-meta { white-space: normal; }
}

/* ---------------------------------------------------------------- WhatsApp
   Official green #25D366 for icons and fills; WhatsApp's dark green #075E54 (or a near-black
   green) for text so it stays readable (white on #25D366 is only ~2:1 contrast). */
:root { --wa-green: #25D366; --wa-dark: #075E54; --wa-ink: #08321F; }
.wa-icon { flex: none; }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius);
  background: var(--wa-green); color: var(--wa-ink); font: 600 1rem/1.5rem var(--font); text-decoration: none; border: 1px solid #1EBE5A; }
.btn-whatsapp:hover { background: #1EBE5A; color: var(--wa-ink); }
.btn-whatsapp:focus-visible { outline: 3px solid var(--wa-dark); outline-offset: 3px; }
.btn-whatsapp-sm { width: 100%; min-height: 40px; margin-top: 12px; padding: 6px 12px; font-size: .875rem; line-height: 1.25rem; text-align: center;
  background: #fff; color: var(--wa-dark); border: 1.5px solid var(--wa-green); }
.btn-whatsapp-sm .wa-icon { color: var(--wa-green); }
.btn-whatsapp-sm:hover { background: #E9FBF0; color: var(--wa-dark); }
.product-whatsapp { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); }
.product-whatsapp .btn-whatsapp { min-width: 260px; }
.product-whatsapp p { margin: 8px 0 0; }
.product-grid-2up .btn-whatsapp-sm { font-size: .8125rem; gap: 6px; padding: 6px 8px; }
@media (pointer: coarse) { .btn-whatsapp-sm { min-height: 44px; } } /* touch: full-size tap target; desktop keeps 40px */

/* Header announcement bar */
.announce-whatsapp { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.announce-whatsapp .wa-icon { color: var(--wa-green); }
.announce-whatsapp:hover span { text-decoration: underline; }
.drawer-row .drawer-whatsapp { display: inline-flex; align-items: center; gap: 10px; color: var(--wa-dark); font-weight: 600; }
.drawer-whatsapp .wa-icon { color: var(--wa-green); }

/* Footer (styled after the Sailo Fittings footer WhatsApp link: icon with a ping, bold green label) */
.footer-whatsapp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: var(--wa-dark); font-weight: 700; text-decoration: none; }
.footer-whatsapp:hover { color: #054A42; text-decoration: underline; }
.footer-whatsapp__icon { position: relative; display: inline-flex; width: 16px; height: 16px; color: var(--wa-green); }
.footer-whatsapp__icon .wa-icon { position: relative; z-index: 1; }
.footer-whatsapp__ping { position: absolute; inset: -4px; border-radius: 50%; background: var(--wa-green); opacity: .45; animation: wa-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.footer-whatsapp-number { color: var(--body); }
@keyframes wa-ping { 0% { transform: scale(.7); opacity: .45; } 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* Floating WhatsApp HelpDesk button */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wa-float__label { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--heading); font-size: .9375rem; font-weight: 600; line-height: 1.25rem;
  box-shadow: 0 4px 16px rgba(21, 51, 67, .16); white-space: nowrap; }
.wa-float__btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa-green); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .45); }
.wa-float__btn .wa-icon { position: relative; z-index: 1; }
.wa-float__wave { position: absolute; inset: 0; border-radius: 50%; background: var(--wa-green); opacity: .5; animation: wa-wave 2.4s cubic-bezier(0, 0, .2, 1) infinite; will-change: transform, opacity; }
.wa-float__wave--2 { animation-delay: 1.2s; }
@keyframes wa-wave { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.wa-float:hover .wa-float__btn { background: #1EBE5A; }
.wa-float:hover .wa-float__label { color: var(--wa-dark); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float__btn { outline: 3px solid var(--wa-dark); outline-offset: 4px; }
.site-footer { padding-bottom: 96px; } /* keep the last footer row clear of the floating button */
@media (prefers-reduced-motion: reduce) { .wa-float__wave, .footer-whatsapp__ping { animation: none; opacity: 0; } }
@media (max-width: 767px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
  .wa-float__btn { width: 56px; height: 56px; }
  .product-whatsapp .btn-whatsapp { width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .announce-inner > p:first-child { display: none; }
  .announce-inner { justify-content: center; }
  .announce-whatsapp { margin-left: 0 !important; }
}
@media print { .wa-float { display: none; } }
