/*
Theme Name: StampWorks
Template: storefront
Description: StampWorks — Sigmira demo store child theme of Storefront. "The Proof Sheet" redesign.
Version: 2.0.6
*/

/* ------------------------------------------------------------------
   1. Tokens (palette LOCKED)
------------------------------------------------------------------ */
:root {
  --sw-ink: #232a33;
  --sw-paper: #faf9f7;
  --sw-card: #f4f1ec;
  --sw-accent: #e8590c;
  --sw-accent-dark: #c94a08;
  --sw-muted: #6b7280;
  --sw-line: #e5e0d8;

  --sw-font: "Lato", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sw-display: "Montserrat", "Lato", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sw-mono: "Montserrat", "Lato", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sw-radius: 2px;
  --sw-shadow: 0 1px 2px rgba(35, 42, 51, 0.06);
  --sw-ease: 150ms ease;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
html body {
  background: var(--sw-paper);
  color: var(--sw-ink);
  font-family: var(--sw-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .wc-block-grid__product-title {
  font-family: var(--sw-font);
  color: var(--sw-ink);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

body h1 { font-size: 2.2rem; }
body h2 { font-size: 1.8rem; }
body h3 { font-size: 1.4rem; }
body h4 { font-size: 1.15rem; }
body h5, body h6 { font-size: 1rem; }

html body a {
  color: var(--sw-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html body .site-content a:not(.button):not(.sw-btn):not(.sw-btn-ghost):hover {
  color: var(--sw-accent-dark);
}

::selection { background: var(--sw-accent); color: #fff; }

.col-full { max-width: 1200px; }

/* Hairline everything: kill Storefront's heavier rules gently */
body hr { background-color: var(--sw-line); height: 1px; }

/* Forms */
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body input[type="password"],
body input[type="search"],
body input[type="number"],
body textarea,
body select,
body .input-text {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  color: var(--sw-ink);
  padding: 0.6em 0.8em;
  font-family: var(--sw-font);
  box-shadow: none;
}
body input:focus, body textarea:focus, body select:focus {
  border-color: var(--sw-accent);
}
body label { color: var(--sw-ink); font-weight: 500; }

/* Focus states — beat Storefront's inline outline-color */
body a:focus, body button:focus, body input:focus,
body textarea:focus, body select:focus,
body .button:focus, body .sw-btn:focus, body .sw-btn-ghost:focus,
body [tabindex]:focus, body summary:focus {
  outline: 2px solid var(--sw-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   3. Signature devices
------------------------------------------------------------------ */
.sw-spec {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-muted);
  display: inline-block;
}

.sw-printarea {
  position: relative;
  border: 2px dashed var(--sw-accent);
  border-radius: var(--sw-radius);
}

/* Crop marks: four corner L-marks, 12px legs, 1.5px thick, ink.
   ::before/::after supply the top corners; two <span class="sw-cm">
   children supply the bottom corners. No images. */
.sw-cropmarks { position: relative; }
.sw-cropmarks::before,
.sw-cropmarks::after,
.sw-cropmarks > .sw-cm::before,
.sw-cropmarks > .sw-cm::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.sw-cropmarks::before {
  top: -7px; left: -7px;
  border-top: 1.5px solid var(--sw-ink);
  border-left: 1.5px solid var(--sw-ink);
}
.sw-cropmarks::after {
  top: -7px; right: -7px;
  border-top: 1.5px solid var(--sw-ink);
  border-right: 1.5px solid var(--sw-ink);
}
.sw-cropmarks > .sw-cm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}
.sw-cropmarks > .sw-cm:first-of-type::before {
  bottom: -7px; left: -7px;
  border-bottom: 1.5px solid var(--sw-ink);
  border-left: 1.5px solid var(--sw-ink);
}
.sw-cropmarks > .sw-cm:first-of-type::after { content: none; }
.sw-cropmarks > .sw-cm:last-of-type::before { content: none; }
.sw-cropmarks > .sw-cm:last-of-type::after {
  bottom: -7px; right: -7px;
  border-bottom: 1.5px solid var(--sw-ink);
  border-right: 1.5px solid var(--sw-ink);
}

.sw-stamp {
  display: inline-block;
  border: 2px solid var(--sw-accent);
  border-radius: var(--sw-radius);
  color: var(--sw-accent);
  font-family: var(--sw-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35em 0.8em;
  transform: rotate(-1deg);
}

/* ------------------------------------------------------------------
   4. Demo bar
------------------------------------------------------------------ */
.sw-demo-bar {
  background: var(--sw-ink);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
  padding: 0.6em 1em;
}
.sw-demo-bar a {
  color: #ffb38a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sw-demo-bar a:hover { color: #fff; }

/* ------------------------------------------------------------------
   5. Header & navigation
------------------------------------------------------------------ */
body .site-header {
  background: #fff;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-line);
}
@media screen and (min-width: 768px) {
  body .site-header { border-bottom-color: var(--sw-line); }
}

/* Stamp wordmark. Storefront inlines customizer color, hence !important */
body .site-branding .site-title {
  font-family: var(--sw-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
}
body .site-branding .site-title a,
body .site-branding h1 a {
  color: var(--sw-ink) !important;
  text-decoration: none;
}
body .site-branding .site-title a:hover { color: var(--sw-accent) !important; }
body .site-branding .site-description,
body p.site-description { display: none; }

/* Primary nav */
body .storefront-primary-navigation { background: #fff; }
body .main-navigation ul li a,
body .site-header ul.menu li a {
  color: var(--sw-ink);
  font-family: var(--sw-font);
  font-weight: 500;
  text-decoration: none;
}
body .main-navigation ul li a:hover,
body .main-navigation ul li:hover > a {
  color: var(--sw-ink);
  text-decoration: underline;
  text-decoration-color: var(--sw-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
body .site-header .main-navigation ul li.current-menu-item > a,
body .site-header .main-navigation ul li.current_page_item > a {
  color: var(--sw-ink);
  text-decoration: underline;
  text-decoration-color: var(--sw-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
body .main-navigation ul.menu ul.sub-menu {
  background: #fff;
  border: 1px solid var(--sw-line);
  box-shadow: var(--sw-shadow);
}

/* Cart in header */
body .site-header-cart .cart-contents { color: var(--sw-ink); }
body .site-header-cart .cart-contents .amount { font-family: var(--sw-mono); font-size: 0.8rem; }
body .site-header-cart .widget_shopping_cart {
  border: 1px solid var(--sw-line);
  box-shadow: var(--sw-shadow);
}

/* Mobile menu toggle */
body button.menu-toggle,
body button.menu-toggle:hover {
  background: #fff;
  border-color: var(--sw-ink);
  border-radius: var(--sw-radius);
  color: var(--sw-ink);
}

/* Breadcrumbs */
body .woocommerce-breadcrumb {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-muted);
  background: transparent;
  padding: 1em 0;
}
body .woocommerce-breadcrumb a { color: var(--sw-muted); }

/* ------------------------------------------------------------------
   6. Buttons
------------------------------------------------------------------ */
.sw-btn,
body a.sw-btn {
  display: inline-block;
  background: var(--sw-accent);
  color: #fff;
  font-family: var(--sw-font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85em 1.6em;
  border: 1px solid var(--sw-accent);
  border-radius: var(--sw-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--sw-ease), border-color var(--sw-ease),
              color var(--sw-ease), transform var(--sw-ease);
}
.sw-btn:hover,
body a.sw-btn:hover {
  background: var(--sw-accent-dark);
  border-color: var(--sw-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.sw-btn-ghost,
body a.sw-btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--sw-ink);
  font-family: var(--sw-font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85em 1.6em;
  border: 1px solid var(--sw-ink);
  border-radius: var(--sw-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--sw-ease), color var(--sw-ease), transform var(--sw-ease);
}
.sw-btn-ghost:hover,
body a.sw-btn-ghost:hover {
  background: var(--sw-ink);
  color: #fff;
  transform: translateY(-1px);
}

/* Ghost variant on dark grounds (hero, CTA on ink) */
.sw-hero .sw-btn-ghost,
body .sw-hero a.sw-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.sw-hero .sw-btn-ghost:hover,
body .sw-hero a.sw-btn-ghost:hover {
  background: #fff;
  color: var(--sw-ink);
  border-color: #fff;
}

/* Storefront/Woo default buttons — quiet ghost.
   Body-prefixed to beat Storefront's inline customizer CSS. */
body button, body input[type="button"], body input[type="reset"],
body input[type="submit"], body .button, body .widget a.button,
body .wp-block-button__link {
  background: #fff;
  border: 1px solid var(--sw-ink);
  border-radius: var(--sw-radius);
  color: var(--sw-ink);
  font-family: var(--sw-font);
  font-weight: 700;
  box-shadow: none;
  transition: background var(--sw-ease), border-color var(--sw-ease),
              color var(--sw-ease), transform var(--sw-ease);
}
body button:hover, body input[type="button"]:hover, body input[type="reset"]:hover,
body input[type="submit"]:hover, body .button:hover, body .widget a.button:hover,
body .wp-block-button__link:hover {
  background: var(--sw-ink);
  border-color: var(--sw-ink);
  color: #fff;
  transform: translateY(-1px);
}

/* .alt buttons (place order, etc.) — the accent action */
body button.alt, body input[type="button"].alt, body input[type="reset"].alt,
body input[type="submit"].alt, body .button.alt, body .widget-area .widget a.button.alt,
body #place_order {
  background: var(--sw-accent);
  border-color: var(--sw-accent);
  color: #fff;
}
body button.alt:hover, body input[type="button"].alt:hover, body input[type="reset"].alt:hover,
body input[type="submit"].alt:hover, body .button.alt:hover,
body .widget-area .widget a.button.alt:hover, body #place_order:hover {
  background: var(--sw-accent-dark);
  border-color: var(--sw-accent-dark);
  color: #fff;
}

body button:disabled, body .button:disabled,
body button.disabled, body .button.disabled {
  background: var(--sw-card);
  border-color: var(--sw-line);
  color: var(--sw-muted);
}

/* ------------------------------------------------------------------
   7. Hero (class contract)
------------------------------------------------------------------ */
.sw-hero {
  background: var(--sw-ink);
  color: #fff;
  border-radius: var(--sw-radius);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  margin: 0 0 5rem;
}
.sw-hero.alignfull { border-radius: 0; }

/* Inner two-column grid (copy + visual) */
.sw-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.sw-hero-copy { min-width: 0; }

.sw-hero-eyebrow {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb38a;
  display: block;
  margin: 0 0 1.2rem;
}
body .sw-hero .sw-hero-title,
.sw-hero-title {
  color: #fff;
  font-family: var(--sw-font);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 1.2rem;
}
.sw-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 34em;
  margin: 0 0 2rem;
}
.sw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.sw-hero-visual {
  background: var(--sw-paper);
  border-radius: var(--sw-radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.sw-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sw-radius);
}

/* Hero figure: dashed print area + crop marks around the product shot */
.sw-hero-visual figure.sw-printarea {
  margin: 0;
  padding: 1rem;
  background: var(--sw-card);
}
.sw-hero-visual figure.sw-printarea img {
  background: var(--sw-card);
}
.sw-hero-visual figcaption.sw-spec,
figure.sw-printarea figcaption.sw-spec {
  display: block;
  text-align: center;
  color: var(--sw-muted);
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------------
   8. Steps (class contract)
------------------------------------------------------------------ */
.sw-steps {
  margin: 0 0 5rem;
  padding: 0;
  list-style: none;
}
.sw-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.sw-step {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: 1.8rem 1.5rem;
}
.sw-step h3, .sw-step h4 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.sw-step p {
  color: var(--sw-muted);
  font-size: 0.9rem;
  margin: 0;
}
.sw-step-label {
  display: block;
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-accent);
  margin: 0 0 1rem;
}

/* ------------------------------------------------------------------
   9. Section heads & Sigmira CTA (class contract)
------------------------------------------------------------------ */
.sw-section-head {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 2.5rem;
}
.sw-section-head .sw-spec { margin-bottom: 0.8rem; }
body .sw-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.sw-sigmira-cta {
  margin: 5rem 0;
}
.sw-sigmira-cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 2px dashed var(--sw-accent);
  border-radius: var(--sw-radius);
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}
body .sw-sigmira-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.8rem;
}
.sw-sigmira-cta-inner p {
  color: var(--sw-muted);
  max-width: 32em;
  margin: 0 auto 1.6rem;
}

/* ------------------------------------------------------------------
   10. Product cards — classic loop AND block grid
------------------------------------------------------------------ */
body ul.products li.product,
body .wc-block-grid__product {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: 1rem;
  text-align: left;
  transition: border-color var(--sw-ease);
}
body ul.products li.product:hover,
body .wc-block-grid__product:hover {
  border-color: var(--sw-accent);
}

/* Image on card ground; hover gains the dashed print-area motif */
body ul.products li.product img,
body .wc-block-grid__product img,
body .wc-block-grid__product .wc-block-grid__product-image img {
  background: var(--sw-card);
  border-radius: var(--sw-radius);
  outline: 2px dashed transparent;
  outline-offset: -6px;
  transition: outline-color var(--sw-ease);
  margin-bottom: 0.8rem;
}
body ul.products li.product:hover img,
body .wc-block-grid__product:hover img {
  outline-color: var(--sw-accent);
}

body ul.products li.product .woocommerce-loop-product__title,
body .wc-block-grid__product .wc-block-grid__product-title {
  font-family: var(--sw-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sw-ink);
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  padding: 0;
}
body .wc-block-grid__product a { text-decoration: none; }
body ul.products li.product a { text-decoration: none; }

body ul.products li.product .price,
body .wc-block-grid__product .wc-block-grid__product-price,
body .wc-block-grid__product .wc-block-grid__product-price .amount {
  font-family: var(--sw-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sw-ink);
}
body ul.products li.product .price del,
body .wc-block-grid__product .wc-block-grid__product-price del {
  color: var(--sw-muted);
}

/* Category tag line on cards (if templates output it) */
body ul.products li.product .posted_in,
body ul.products li.product .product__categories,
body .wc-block-grid__product .wc-block-grid__product-category {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-muted);
}

/* Loop add-to-cart stays quiet */
body ul.products li.product .button,
body .wc-block-grid__product .wp-block-button__link {
  font-size: 0.8rem;
  font-family: var(--sw-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  padding: 0.7em 1.2em;
  margin-top: 0.6rem;
}

/* Sale badge as a stamp */
body span.onsale,
body .wc-block-grid__product .wc-block-grid__product-onsale {
  background: #fff;
  border: 2px solid var(--sw-accent);
  border-radius: var(--sw-radius);
  color: var(--sw-accent);
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3em 0.7em;
  min-height: 0;
  min-width: 0;
  transform: rotate(-1deg);
}

/* Shop page furniture */
body .woocommerce-result-count {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-muted);
}
body .woocommerce-ordering select { font-size: 0.9rem; }
body .woocommerce-pagination .page-numbers li .page-numbers {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: #fff;
  color: var(--sw-ink);
  font-family: var(--sw-mono);
  font-size: 0.8rem;
}
body .woocommerce-pagination .page-numbers li .page-numbers.current {
  background: var(--sw-ink);
  border-color: var(--sw-ink);
  color: #fff;
}
body .page-header h1,
body h1.woocommerce-products-header__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* ------------------------------------------------------------------
   11. Single product
------------------------------------------------------------------ */
body.single-product div.product .woocommerce-product-gallery {
  position: relative;
  border: 2px dashed var(--sw-accent);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 1rem;
}
body.single-product div.product .woocommerce-product-gallery img {
  border-radius: var(--sw-radius);
}
body.single-product div.product .product_title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
body.single-product div.product p.price,
body.single-product div.product p.price .amount {
  font-family: var(--sw-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sw-ink);
}
body.single-product div.product .woocommerce-product-details__short-description {
  color: var(--sw-muted);
}

/* THE hero action: the Sigmira customize button (styled blind per spec) */
body .pc-customize-wrapper { margin: 0 0 1rem; }
body .button.pc-customize-button,
body button.pc-customize-button,
body #pc-open-editor {
  display: block;
  width: 100%;
  background: var(--sw-accent);
  border: 1px solid var(--sw-accent);
  border-radius: var(--sw-radius);
  color: #fff;
  font-family: var(--sw-font);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  padding: 0.9em 1.6em;
  box-shadow: none;
  transition: background var(--sw-ease), transform var(--sw-ease);
}
body .button.pc-customize-button:hover,
body button.pc-customize-button:hover,
body #pc-open-editor:hover {
  background: var(--sw-accent-dark);
  border-color: var(--sw-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Add-to-cart demoted to quiet ghost secondary */
body button.single_add_to_cart_button,
body .single_add_to_cart_button.button.alt {
  background: transparent;
  border: 1px solid var(--sw-ink);
  border-radius: var(--sw-radius);
  color: var(--sw-ink);
}
body button.single_add_to_cart_button:hover,
body .single_add_to_cart_button.button.alt:hover {
  background: var(--sw-ink);
  border-color: var(--sw-ink);
  color: #fff;
}

body div.product form.cart .quantity .qty {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: #fff;
}

/* Tabs & meta */
body .woocommerce-tabs ul.tabs li.active a { color: var(--sw-ink); }
body .woocommerce-tabs ul.tabs li a {
  font-family: var(--sw-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body .product_meta {
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-muted);
  border-top: 1px solid var(--sw-line);
  padding-top: 1rem;
}
body .product_meta a { color: var(--sw-muted); }

body .star-rating span::before,
body p.stars a:hover::after,
body p.stars a::after { color: var(--sw-accent); }

body ul.products li.product .star-rating { color: var(--sw-accent); }

/* Related products heading */
body .related.products > h2,
body .up-sells > h2 {
  font-size: 1.4rem;
}

/* ------------------------------------------------------------------
   12. Cart & checkout basics
------------------------------------------------------------------ */
body table:not(.has-background) th {
  background: var(--sw-card);
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-ink);
}
body table:not(.has-background) tbody td { background: #fff; }
body table:not(.has-background) tbody tr:nth-child(2n) td { background: #fff; }
body table {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
}
body td, body th { border-color: var(--sw-line); }

body .woocommerce-cart-form .product-price,
body .woocommerce-cart-form .product-subtotal,
body .cart-subtotal .amount,
body .order-total .amount,
body .woocommerce-Price-amount {
  font-family: var(--sw-mono);
  letter-spacing: 0.04em;
}

body .cart_totals h2, body #order_review_heading,
body .woocommerce-billing-fields > h3,
body .woocommerce-additional-fields > h3 {
  font-size: 1.15rem;
}

body .woocommerce-checkout #payment {
  background: var(--sw-card);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
}
body .woocommerce-checkout #payment .payment_methods li,
body .woocommerce-checkout #payment .place-order { border-color: var(--sw-line); }

body .woocommerce-info, body .woocommerce-message, body .woocommerce-error {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-top: 2px solid var(--sw-accent);
  border-radius: var(--sw-radius);
  color: var(--sw-ink);
}
body .woocommerce-store-notice {
  background: var(--sw-ink);
  color: #fff;
  font-family: var(--sw-mono);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------------
   13. Footer
------------------------------------------------------------------ */
body .site-footer {
  background: var(--sw-ink);
  color: rgba(255, 255, 255, 0.65);
}
body .site-footer a:not(.button):not(.components-button) {
  color: rgba(255, 255, 255, 0.85);
}
body .site-footer a:not(.button):not(.components-button):hover { color: #fff; }
body .site-footer h1, body .site-footer h2, body .site-footer h3,
body .site-footer h4, body .site-footer h5, body .site-footer h6,
body .site-footer .widget .widget-title, body .site-footer .widget .widgettitle {
  color: #fff;
  font-family: var(--sw-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body .site-footer .widget { margin-bottom: 2rem; }
body .site-info {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.sw-footer-credit {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0 0.5rem;
  margin-top: 1.5rem;
}
.sw-footer-legend {
  display: block;
  font-family: var(--sw-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.5rem;
}
.sw-footer-powered { margin: 0; }
body .site-footer .sw-footer-credit a,
body .site-footer .sw-footer-powered a {
  color: #ffb38a;
  font-family: var(--sw-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .site-footer .sw-footer-credit a:hover { color: #fff; }

/* ------------------------------------------------------------------
   14. Layout: force full width where a sidebar could appear
------------------------------------------------------------------ */
body.woocommerce-page #secondary,
body.single-product #secondary {
  display: none;
}
body.woocommerce-page #primary,
body.single-product #primary {
  width: 100%;
  float: none;
  margin: 0;
}

/* ------------------------------------------------------------------
   15. Motion & responsive
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .sw-btn:hover, .sw-btn-ghost:hover,
  body .button:hover, body button:hover,
  body #pc-open-editor:hover, body .button.pc-customize-button:hover {
    transform: none !important;
  }
}

@media screen and (max-width: 900px) {
  .sw-hero {
    padding: 3rem 1.25rem;
    margin-bottom: 3rem;
  }
  .sw-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .sw-steps { margin-bottom: 3rem; }
  .sw-steps-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-sigmira-cta { margin: 3rem 0; }
}

@media screen and (max-width: 480px) {
  .sw-hero-actions { flex-direction: column; align-items: stretch; }
  .sw-hero-actions .sw-btn,
  .sw-hero-actions .sw-btn-ghost { text-align: center; }
  .sw-demo-bar {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.6em 0.75em;
  }
  body ul.products li.product,
  body .wc-block-grid__product { padding: 0.8rem; }
}

/* 360px floor: nothing overflows */
@media screen and (max-width: 360px) {
  body h1, .sw-hero-title { overflow-wrap: break-word; }
  .col-full { padding-left: 1rem; padding-right: 1rem; }
}

/* ------------------------------------------------------------------
   14. Review fixes (v2.0.1)
------------------------------------------------------------------ */

/* Block cart/checkout components (WC 11 renders /cart/ and /checkout/
   as blocks; Storefront's inline CSS paints them #333/#eee) */
body .wc-block-components-button:not(.is-link) {
  background-color: var(--sw-ink);
  color: #fff;
  border-radius: var(--sw-radius);
  font-family: var(--sw-font);
  font-weight: 700;
  box-shadow: none;
  transition: background-color var(--sw-ease);
}
body .wc-block-components-button:not(.is-link):hover,
body .wc-block-components-button:not(.is-link):focus {
  background-color: #000;
  color: #fff;
  box-shadow: none;
}
body .wc-block-cart__submit-button,
body .wc-block-components-checkout-place-order-button {
  background-color: var(--sw-accent) !important;
}
body .wc-block-cart__submit-button:hover,
body .wc-block-components-checkout-place-order-button:hover {
  background-color: var(--sw-accent-dark) !important;
}
body .wc-block-components-product-price,
body .wc-block-components-totals-item__value,
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body .wc-block-formatted-money-amount {
  font-family: var(--sw-mono);
  letter-spacing: 0.04em;
}
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--sw-font);
  font-weight: 900;
}
body .wc-block-cart-items,
body .wc-block-components-totals-wrapper,
body .wc-block-components-totals-item,
body .wc-block-components-sidebar .wc-block-components-panel {
  border-color: var(--sw-line);
}
body .wc-block-cart-items__row { border-bottom: 1px solid var(--sw-line); }
body .wc-block-components-quantity-selector {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
}
body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  font-family: var(--sw-mono);
}
body .wc-block-components-product-name {
  font-family: var(--sw-font);
  font-weight: 700;
  color: var(--sw-ink);
}
body .wc-block-cart__empty-cart__title { font-weight: 900; }
body .wc-block-components-radio-control__option .wc-block-components-radio-control__input:checked {
  border-color: var(--sw-accent);
  background-color: var(--sw-accent);
}
body .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
  border-color: var(--sw-accent);
  background-color: var(--sw-accent);
}
body a.wc-block-components-button.is-link,
body .wc-block-components-totals-coupon-link { color: var(--sw-ink); }

/* Homepage/product-grid add-to-cart: quiet ghost, beats Storefront's
   inline #eee pill */
body .wc-block-grid__products .wc-block-grid__product .wp-block-button__link {
  background-color: transparent;
  color: var(--sw-ink);
  border: 1px solid var(--sw-ink);
  border-radius: var(--sw-radius);
  font-family: var(--sw-font);
  font-weight: 700;
  box-shadow: none;
}
body .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover {
  background-color: var(--sw-ink);
  color: #fff;
}

/* Storefront purple leftovers (dormant states) */
body p.stars a::before { color: var(--sw-accent); }
body .quantity .plus, body .quantity .minus { color: var(--sw-ink); }
body .button.added_to_cart:focus { outline-color: var(--sw-accent); }
body #payment ul.payment_methods li input[type="radio"]:checked + label::before,
body .woocommerce form .form-row input[type="checkbox"]:checked + label::before {
  color: var(--sw-accent);
}

/* Demo bar: keep to one line — middle segment hides on narrow screens */
@media screen and (max-width: 640px) {
  .sw-demo-bar-opt { display: none; }
}

/* Footer columns (ink ground) */
.sw-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}
.sw-footer-cols p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.sw-footer-cols .sw-spec { color: rgba(255, 255, 255, 0.5); margin-bottom: 0.8rem; }
.sw-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.sw-footer-cols ul li { margin-bottom: 0.5rem; }
body .site-footer .sw-footer-cols a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
body .site-footer .sw-footer-cols a:hover {
  color: #ffb38a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media screen and (max-width: 700px) {
  .sw-footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Loop card category line */
.sw-loop-cat { display: block; margin-bottom: 0.35rem; }

/* Only true page items get the active underline (anchor menu items
   inherit current-menu-item on the homepage) */
body .site-header .main-navigation ul li.menu-item-type-custom.current-menu-item > a {
  text-decoration: none;
}

/* ------------------------------------------------------------------
   15. Type pass (v2.0.2): Montserrat display over Lato body,
   uppercase Montserrat spec labels
------------------------------------------------------------------ */
body h1, body h2, body h3, body h4, body h5, body h6,
body .sw-hero-title,
body .site-branding .site-title,
body .woocommerce-loop-product__title,
body .wc-block-grid__product-title,
body .wc-block-components-product-name {
  font-family: var(--sw-display);
  letter-spacing: -0.01em;
}
body .main-navigation ul li a,
body .site-header ul.menu li a {
  font-family: var(--sw-display);
  font-weight: 600;
  font-size: 0.9rem;
}
body .sw-btn, body .sw-btn-ghost,
body .button, body button.button, body input[type="submit"],
body .wc-block-components-button:not(.is-link),
body .wc-block-grid__products .wc-block-grid__product .wp-block-button__link,
body .single_add_to_cart_button {
  font-family: var(--sw-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
/* Spec labels: Montserrat 600 uppercase with tracking (no mono face) */
.sw-spec, .sw-stamp, .sw-demo-bar, .sw-step-label {
  font-weight: 600;
}

/* ------------------------------------------------------------------
   16. Mobile header alignment (v2.0.4): center the wordmark — the cart
   sits in the nav bar, so Storefront's reserved 120px float gap just
   pushes the logo off-balance on small screens
------------------------------------------------------------------ */
@media screen and (max-width: 767px) {
  body .site-header { position: relative; }
  body .site-header .site-branding {
    float: none;
    width: 100%;
    text-align: center;
    margin: 0;
  }
  /* Pull the menu toggle up into the wordmark row (it lives in the nav
     bar container below; the header is the positioning context) */
  body .site-header button.menu-toggle {
    position: absolute;
    top: 1.35em;
    right: 1.2em;
    margin: 0;
    padding: 0.5em 0.9em;
    background: #fff;
    border: 1px solid var(--sw-ink);
    border-radius: var(--sw-radius);
    font-family: var(--sw-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-ink);
    z-index: 10;
  }
  body .site-header button.menu-toggle:hover,
  body .site-header button.menu-toggle:focus {
    background: var(--sw-card);
    color: var(--sw-ink);
  }
  /* Storefront overlays a hamburger glyph via pseudo-elements; with the
     compact padding it collides with the label — text-only reads cleaner */
  body .site-header button.menu-toggle::before,
  body .site-header button.menu-toggle::after,
  body .site-header button.menu-toggle span::before,
  body .site-header button.menu-toggle span::after {
    content: none;
    display: none;
  }
  /* Collapse the now-empty nav bar row when the menu is closed */
  body .storefront-primary-navigation { min-height: 0; }
}
