/*
Theme Name: PrintForge Shop
Theme URI: https://example.com/
Author: OpenAI
Description: A WooCommerce theme for shops selling physical 3D printed products. Categories show as filament spools and the homepage headline prints itself layer by layer.
Version: 2.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: printforge
*/

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --plate: #eceef1;
  --plate-deep: #e2e5ea;
  --white: #ffffff;
  --ink: #16181d;
  --graphite: #5b6270;
  --line: #d5d9e0;
  --cobalt: #2342d8;
  --cobalt-deep: #1a33ad;
  --spool: #2a2e36;

  --marigold: #ffc23d;
  --coral: #ff7a59;
  --teal: #17a99b;
  --lilac: #b7a4ff;

  --r-tile: 22px;
  --r-card: 14px;
  --r-field: 10px;
  --max: 1280px;
  --gutter: clamp(16px, 3vw, 32px);

  --paper: var(--white);
  --on-ink: #ffffff;
  --on-filament: #16181d;
  color-scheme: light;
}

/* System dark, unless the visitor has picked Light or Dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --plate: #12141a;
    --plate-deep: #1c212b;
    --paper: #1b2029;
    --ink: #f3f5f8;
    --graphite: #a9b0be;
    --line: #343b4a;
    --spool: #0c0e12;
    --on-ink: #12141a;
    color-scheme: dark;
  }
}
html[data-theme="light"] {
  --plate: #eceef1;
  --plate-deep: #e2e5ea;
  --paper: #ffffff;
  --ink: #16181d;
  --graphite: #5b6270;
  --line: #d5d9e0;
  --spool: #2a2e36;
  --on-ink: #ffffff;
  color-scheme: light;
}
html[data-theme="dark"] {
  --plate: #12141a;
  --plate-deep: #1c212b;
  --paper: #1b2029;
  --ink: #f3f5f8;
  --graphite: #a9b0be;
  --line: #343b4a;
  --spool: #0c0e12;
  --on-ink: #12141a;
  color-scheme: dark;
}

.filament-marigold { --c: var(--marigold); }
.filament-coral { --c: var(--coral); }
.filament-teal { --c: var(--teal); }
.filament-lilac { --c: var(--lilac); }

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--plate);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-stretch: 125%; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 820; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 720; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-field); }
.skip-link:focus { top: 12px; }

/* Buttons & links */
.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
input[type="submit"], .search-form button, .comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--white);
  padding: 13px 24px;
  font: inherit;
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
input[type="submit"]:hover, .search-form button:hover, .comment-form .submit:hover {
  background: var(--cobalt-deep);
  color: var(--white);
}
.woocommerce button.button.alt.disabled, .woocommerce button.button:disabled[disabled] { background: var(--cobalt); opacity: .45; }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--cobalt); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"],
input[type="password"], input[type="number"], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  padding: 11px 14px;
  font: inherit;
  line-height: 1.3;
}
input:focus, textarea:focus, select:focus { border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: -1px; }
.comment-form p { display: grid; gap: 6px; }
.comment-form p.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form .form-submit, .woocommerce #review_form #respond .form-submit { display: block; }

/* Utility bar */
.utility-bar { background: var(--cobalt); color: var(--white); font-size: .875rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility-inner p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-end { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.utility-inner ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.utility-inner a { text-decoration: none; opacity: .88; }
.utility-inner a:hover { opacity: 1; text-decoration: underline; }
.theme-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 22%, transparent);
}
.theme-switch button {
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.theme-switch button[aria-checked="true"] { background: var(--white); color: var(--cobalt); }
.theme-switch button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; fill: var(--cobalt); }
.brand-text { font-size: 1.25rem; font-weight: 820; font-stretch: 125%; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-logo { max-height: 56px; width: auto; }

.header-search { flex: 1; max-width: 620px; display: flex; align-items: center; background: var(--plate); border-radius: 999px; padding: 4px 4px 4px 20px; }
.header-search:focus-within { outline: 3px solid var(--cobalt); }
.header-search input[type="search"] { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 0; outline: none; }
.header-search button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); cursor: pointer; }
.header-search button:hover { background: var(--cobalt); }
.header-search svg, .header-icon svg, .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--plate); }
.header-link:hover .header-icon { background: var(--plate-deep); }
.header-link-text { display: grid; line-height: 1.15; }
.header-link-text small { color: var(--graphite); font-size: .8rem; }
.header-link-text strong { font-weight: 700; font-size: .95rem; }
.header-link-text strong .amount { font-weight: inherit; }
.cart-count {
  position: absolute; top: -3px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--paper);
  background: var(--cobalt); color: var(--white);
  font-size: .7rem; font-weight: 750;
}
.menu-toggle { display: none; }

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; }
.site-nav a { display: block; padding: 13px 0 11px; font-weight: 600; color: var(--graphite); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current-cat > a, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.site-nav .sub-menu { display: none; }

/* Home: hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 16px;
  padding-top: 20px;
}
.hero:not(:has(.hero-tile)) { grid-template-columns: 1fr; grid-template-rows: auto; }
.hero-main {
  grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--paper);
  border-radius: var(--r-tile);
  padding: clamp(28px, 5vw, 64px);
  min-height: 520px;
}
.hero-lede { max-width: 46ch; color: var(--graphite); font-size: 1.15rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* The headline is filled with fine layer lines and "prints" from the bottom up on load. */
.print-title {
  position: relative;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  font-weight: 860;
  line-height: .96;
  letter-spacing: -.02em;
  max-width: 12ch;
  margin-bottom: 24px;
  animation: print-layers 1.8s steps(22, end) .2s both;
}
.print-title span {
  background: repeating-linear-gradient(180deg, var(--ink) 0 .072em, #4a505c .072em .088em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.print-title::before {
  content: "";
  position: absolute; left: -2%; right: -2%; height: 3px;
  background: var(--cobalt);
  border-radius: 3px;
  animation: print-nozzle 1.8s steps(22, end) .2s both, fade-out .3s 2.05s forwards;
}
@keyframes print-layers { from { clip-path: inset(100% -3% 0 -3%); } to { clip-path: inset(0 -3% 0 -3%); } }
@keyframes print-nozzle { from { top: 100%; } to { top: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.hero-tile {
  color: var(--on-filament);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  align-items: end;
  gap: 16px;
  padding: 22px;
  background: var(--c, var(--marigold));
  border-radius: var(--r-tile);
  text-decoration: none;
  overflow: hidden;
}
.hero-tile-text strong { display: block; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; font-stretch: 120%; line-height: 1.05; margin-bottom: 8px; }
.hero-tile-price { font-weight: 650; }
.hero-tile-price del { opacity: .6; }
.hero-tile-price ins { text-decoration: none; }
.hero-tile-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); transition: transform .25s ease; }
.hero-tile:hover .hero-tile-image img { transform: rotate(-3deg) scale(1.03); }
.hero-tile:hover .hero-tile-text strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Home: sections */
.section { padding-top: clamp(56px, 7vw, 88px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

/* Categories as filament spools */
.spool-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.spool-link { display: grid; justify-items: center; text-align: center; text-decoration: none; }
.spool {
  width: min(100%, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid var(--spool);
  background:
    radial-gradient(circle, var(--plate) 0 16%, var(--spool) 16.5% 22%, transparent 22.5%),
    repeating-radial-gradient(circle, var(--c, var(--marigold)) 0 3px, color-mix(in srgb, var(--c, var(--marigold)) 80%, #000) 3px 4px);
  margin-bottom: 14px;
  transition: transform .4s ease;
}
.spool-photo { overflow: hidden; background: var(--paper); }
.spool-photo img { width: 100%; height: 100%; object-fit: cover; }
.spool-link:hover .spool { transform: translateY(-4px); }
.spool-name { font-weight: 720; font-stretch: 112%; }
.spool-link:hover .spool-name { text-decoration: underline; text-underline-offset: 4px; }
.spool-count { color: var(--graphite); font-size: .9rem; }

/* How ordering works (a real sequence, so it is numbered) */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--r-card); padding: 26px 26px 20px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  font-weight: 800; font-stretch: 125%;
}
.steps p { color: var(--graphite); margin: 0; }

/* Footer */
.site-footer { margin-top: clamp(64px, 8vw, 110px); background: var(--cobalt); color: var(--white); padding: 56px 0 28px; }
.site-footer .brand-mark { fill: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid:has(.footer-widgets) { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-about p { max-width: 34ch; margin-top: 16px; opacity: .85; }
.site-footer h2 { font-size: 1rem; font-stretch: 110%; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.footer-links a { opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-widgets ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.footer-widgets a { opacity: .85; }
.footer-widgets a:hover { opacity: 1; text-decoration: underline; }
.footer-widgets h2, .footer-widgets h3 { font-size: 1rem; font-stretch: 110%; margin: 0 0 14px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .875rem; opacity: .8; }

/* Pages, posts, archives */
.site-main { padding: 32px 0 0; }
.content-wrap { background: var(--paper); border-radius: var(--r-tile); padding: clamp(24px, 5vw, 56px); }
.content-wrap article > :not(h1, .alignwide, .alignfull, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .woocommerce) { max-width: 70ch; }
.content-wrap article :is(p, li) > a:not(.button) { color: var(--cobalt); text-underline-offset: 3px; }
.archive-header { margin-bottom: 8px; }
.post-summary { padding: 22px 0; border-top: 1px solid var(--line); }
.post-summary h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-summary h2 a { text-decoration: none; }
.post-summary h2 a:hover { color: var(--cobalt); text-decoration: underline; }
.post-summary p { color: var(--graphite); margin: 0; }
.nav-links { display: flex; gap: 8px; margin-top: 24px; }
.nav-links .page-numbers { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.search-form { display: flex; gap: 8px; }

/* WooCommerce: shop and loops */
.woocommerce .woocommerce-breadcrumb { color: var(--graphite); font-size: .9rem; margin-bottom: 18px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--graphite); }
.woocommerce-products-header__title { margin-bottom: 6px; }
.woocommerce .woocommerce-result-count { color: var(--graphite); margin-top: 10px; }
.woocommerce .woocommerce-ordering select { border-radius: 999px; padding-right: 36px; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 1em; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  position: relative;
  display: flex; flex-direction: column;
  width: auto !important; margin: 0 !important; float: none !important;
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 10px 10px 16px;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; flex: 1; }
.woocommerce ul.products li.product a img { margin: 0 0 14px; border-radius: 9px; aspect-ratio: 1; object-fit: cover; background: var(--plate); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.02rem; font-weight: 650; font-stretch: 100%; letter-spacing: 0; line-height: 1.25; padding: 0 6px; margin-bottom: 4px; }
.woocommerce ul.products li.product .price { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; padding: 0 6px; margin-bottom: 14px; }
.woocommerce ul.products li.product .button {
  display: flex;
  width: calc(100% - 12px); margin: 0 6px;
  font-size: .95rem; font-stretch: 100%;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  padding: 11px 16px;
}
.woocommerce ul.products li.product .button:hover { background: var(--ink); color: var(--on-ink); }
.woocommerce ul.products li.product .button.loading { opacity: .6; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 8px; font-weight: 650; color: var(--cobalt); }
.woocommerce .price del, .woocommerce div.product p.price del { color: var(--graphite); opacity: 1; font-weight: 450; }
.woocommerce .price ins, .woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
  top: 18px; left: 18px; right: auto; margin: 0;
  min-width: 0; min-height: 0; line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--marigold); color: var(--on-filament);
  font-weight: 750; font-size: .8rem;
  z-index: 2;
}

/* WooCommerce: single product */
.woocommerce div.product { background: var(--paper); border-radius: var(--r-tile); padding: clamp(20px, 4vw, 44px); }
.woocommerce div.product div.images img { border-radius: var(--r-card); background: var(--plate); }
.woocommerce div.product span.onsale { top: 32px; left: 32px; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 820; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.5rem; font-weight: 720; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--graphite); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 26px 0; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart .variations { margin-bottom: 8px; }
.woocommerce div.product form.cart .variations th { padding-right: 16px; font-weight: 650; }
.woocommerce div.product form.cart .variations select { min-width: 220px; }
.woocommerce div.product form.cart .single_variation_wrap { flex-basis: 100%; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.woocommerce .quantity .qty { width: 5em; height: 100%; min-height: 48px; border-radius: 999px; text-align: center; }
.woocommerce div.product form.cart .button { padding-inline: 32px; }
.woocommerce div.product .product_meta { color: var(--graphite); font-size: .92rem; display: grid; gap: 4px; }
.woocommerce div.product .product_meta a { color: var(--ink); }

.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 28px; padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; color: var(--graphite); font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--cobalt); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 1.4rem; }
.woocommerce table.shop_attributes { border-color: var(--line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--line); padding: 10px 12px; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--plate); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 1.6rem; margin-top: 16px; }
.woocommerce div.product .related ul.products li.product { background: var(--plate); }

/* WooCommerce: notices, tables, account */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-notices-wrapper .wc-block-components-notice-banner {
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--cobalt); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cobalt); }
.woocommerce-message, .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.woocommerce-message::after, .woocommerce-info::after { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; float: none; padding: 9px 18px; font-size: .95rem; }
[tabindex="-1"]:focus { outline: none; }
.woocommerce table.shop_table { border-color: var(--line); border-radius: var(--r-card); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce a.remove { color: #c62828 !important; }
.woocommerce a.remove:hover { background: #c62828; color: var(--white) !important; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border-color: var(--line); border-radius: var(--r-card); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 9px 14px; border-radius: var(--r-field); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--plate); font-weight: 700; }

/* WooCommerce blocks (Cart / Checkout) */
.wc-block-components-button:not(.is-link) { background: var(--cobalt); color: var(--white); border: 0; border-radius: 999px; font-weight: 650; }
.wc-block-components-button:not(.is-link):hover { background: var(--cobalt-deep); color: var(--white); }
.wc-block-components-button:not(.is-link):disabled { opacity: .5; }
.wc-block-cart-item__product a, .wc-block-components-product-name { color: var(--ink); font-weight: 650; }
.wc-block-components-text-input input[type]:focus, .wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }

/* Tablet */
@media (max-width: 960px) {
  .utility-inner ul { display: none; }
  .header-inner { flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding: 14px 0; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .header-actions { gap: 10px; }
  .header-link-text { display: none; }
  .menu-toggle {
    order: -1;
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: var(--ink); color: var(--on-ink);
    cursor: pointer;
  }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .site-nav a { padding: 11px 0; border-bottom: 0; }

  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-main { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .hero-tile { grid-template-columns: 1fr; }
  .hero-tile-image { order: -1; }
  .woocommerce ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid:has(.footer-widgets) { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .utility-bar { font-size: .8rem; }
  .utility-inner { min-height: 34px; }
  .brand-text { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { grid-template-columns: 1fr; }
  .hero-tile { grid-template-columns: minmax(0, 1fr) 42%; }
  .hero-tile-image { order: 0; }
  .header-inner { gap: 12px 10px; }
  .header-actions { gap: 6px; }
  .header-icon, .menu-toggle { width: 40px; height: 40px; }
  .spool-row { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
  .spool { border-width: 6px; margin-bottom: 10px; }
  .spool-name { font-size: .92rem; line-height: 1.2; }
  .woocommerce ul.products, .woocommerce ul.products.columns-3 { gap: 10px; }
  .woocommerce ul.products li.product .button { font-size: .9rem; padding: 10px; }
  .section-head { flex-wrap: wrap; }
  .woocommerce div.product form.cart .variations select { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print-title, .print-title::before { animation: none; }
  .print-title::before { display: none; }
  .spool, .hero-tile-image img { transition: none; }
}
