/*
Theme Name: Willow & Pane
Theme URI: https://willowandpane.com
Author: StarQuest Marketing LTDA
Description: Editorial storefront for Willow & Pane faux stained glass phone cases. Print-on-demand physical goods, variable products with phone model as the variation attribute.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: willow-and-pane
*/

/* ===================================================================
   DESIGN NOTES — read before changing colours

   This is deliberately a NEUTRAL shell: white page, black type, black
   footer. The colour in this store comes from the product artwork, which
   is saturated jewel-tone stained glass. An earlier version painted the
   whole UI purple and the products disappeared into it.

   Structure follows the category leader (wildflowercases.com, audited
   2026-08-18): white sticky header, light-serif editorial headings in
   sentence case, small uppercase sans for UI, outlined black buttons,
   borderless product cards on a soft tint, black footer with serif
   column headings, pale tinted section bands to separate content.
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,300;6..72,400;6..72,500&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Neutrals — the entire UI lives here */
  --ink: #000000;
  --ink-70: #4a4a4a;
  --ink-45: #767676;
  --paper: #ffffff;
  --line: #e3e3e3;
  --line-soft: #efefef;

  /* Soft tints for section bands + product card beds.
     Desaturated on purpose so artwork stays the loudest thing. */
  --tint-lilac: #f4f0f7;
  --tint-blush: #fbf0f3;
  --tint-mist: #f2f5f5;
  --tint-sand: #f7f4ef;

  /* Accent — used ONLY for sale/new badges and sale prices */
  --accent: #b8446b;
  --accent-soft: #fae4ec;

  --radius: 3px;
  --max: 1400px;
  --gutter: 2rem;

  --font: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;

  /* Small uppercase UI label — nav, buttons, badges, meta */
  --label-size: 0.8125rem;
  --label-spacing: 0.02em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 640px) {
  :root {
    --gutter: 1.15rem;
  }
}

/* ===================================================================
   Typography
   =================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.section-head {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin: 0 0 1.6rem;
}

.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-45);
  margin: 0 0 0.6rem;
}

/* ===================================================================
   Announcement bar
   =================================================================== */

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.announce strong {
  font-weight: 600;
}

/* ===================================================================
   Header
   =================================================================== */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.brand__tag {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 0.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-right: auto;
}

.nav > a,
.nav__group > button {
  font-size: 0.875rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav > a::after,
.nav__group > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav > a:hover::after,
.nav__group:hover > button::after {
  transform: scaleX(1);
}

.nav a.is-sale {
  color: var(--accent);
}

/* Dropdown — device-model menu. Competitor leads navigation with phone
   model rather than design theme, so we do the same. */
.nav__group {
  position: relative;
}

.nav__group > button::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.15em);
  margin-left: 0.45em;
  vertical-align: middle;
}

.nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 220px;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  z-index: 70;
}

.nav__group:hover .nav__panel,
.nav__group:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__panel a {
  font-size: 0.8125rem;
  color: var(--ink-70);
  padding: 0.3rem 0;
}

.nav__panel a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.icon-btn:hover {
  color: var(--ink-70);
}

.icon-btn--cart {
  width: auto;
  min-width: 2.25rem;
  gap: 0.25rem;
  padding: 0 0.35rem;
}

.cart-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  font-weight: 600;
}

.header-search {
  display: none;
  gap: 0.6rem;
  align-items: center;
  padding: 0 0 1rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-search.is-open {
  display: flex;
}

.header-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.875rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0 2rem;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
    /* No `order` override — natural DOM order (brand, toggle, nav,
       header-actions) keeps it right after the logo. An earlier `order: 3`
       pushed it PAST header-actions (search/account/cart), and the header
       isn't wide enough to fit all of that plus the toggle — it rendered
       almost entirely off the right edge of the viewport, invisible and
       unusable. Verified: at 375px, brand(218px) + header-actions(124px)
       + toggle(33px) + gaps already exceeds the viewport on its own, so
       the brand block also has to shrink on mobile (below) — reordering
       alone wasn't enough. */
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    max-height: 75vh;
    overflow-y: auto;
  }
  .nav.is-open {
    display: flex;
  }
  .nav > a,
  .nav__group > button {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
    width: 100%;
    text-align: left;
  }
  .nav__panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    padding: 0.35rem 0 0.75rem 0.9rem;
    min-width: 0;
    display: none;
  }
  .nav__group.is-open .nav__panel {
    display: grid;
  }
  .site-header__inner {
    gap: 0.6rem;
  }
  .brand {
    margin-right: auto;
    gap: 0.5rem;
  }
  .brand__mark {
    width: 32px;
    height: 32px;
  }
  .brand__name {
    font-size: 1.15rem;
  }
  .brand__tag {
    display: none;
  }
  .header-actions {
    gap: 0.1rem;
  }
  .icon-btn {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 340px) {
  /* Smallest common phones (iPhone SE class, 320-375px) — one more notch
     down so the header keeps clear margin instead of hugging the edge. */
  .brand__name {
    font-size: 1rem;
  }
  .icon-btn--cart {
    padding: 0 0.15rem;
  }
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--label-size);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  text-align: center;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--ink-70);
  border-color: var(--ink-70);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

/* ===================================================================
   Hero

   IMAGE SLOT — see assets/img/README-PROMPTS.md for the Grok prompt.
   Drop the generated file at: assets/img/hero.jpg
   Until it exists, the gradient below shows and the hero still looks
   intentional rather than broken.
   =================================================================== */

/* The hero is the ONE place saturated colour is deliberate — Wildflower's
   real hero banner is the most vivid element on their entire page (hot
   pink, full-bleed photography), not the pale wash an earlier pass used
   here. Everywhere else stays neutral so product art carries the colour;
   the hero is the exception, matching their pattern.

   This gradient is a stand-in for real photography — swap in
   assets/img/hero.jpg (see README-PROMPTS.md) and it takes over via
   .hero--has-image, at which point this gradient becomes the loading
   colour behind a slow-loading image rather than the whole show. */
.hero {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  display: grid;
  align-items: center;
  background-color: #3a1f52;
  background-image:
    radial-gradient(ellipse 60% 55% at 88% 15%, rgba(184, 68, 107, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 70% 65% at 15% 85%, rgba(30, 122, 110, 0.75) 0%, transparent 62%),
    linear-gradient(125deg, #3a1f52 0%, #5a2c78 45%, #2d1a3d 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--has-image {
  background-color: #3a1f52;
}

.hero--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 75%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  /* .hero__inner doubles as .wrap for consistent page gutters, but .wrap's
     margin-inline: auto centers a max-width box on the page — here that
     floated the whole headline toward the middle instead of hugging the
     left edge. Overriding to 0 keeps the gutter (padding-inline still
     applies) while dropping the auto-centering. */
  margin-inline: 0;
  padding-block: 3.5rem;
  color: #fff;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin: 0 0 1.1rem;
  color: #fff;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 2rem;
  max-width: 30rem;
}

.hero .btn {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.hero .btn:hover {
  background: #fff;
  color: var(--ink);
}

.hero .btn--solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero .btn--solid:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
  }
  .hero__inner {
    padding-block: 2.75rem;
    max-width: none;
  }
  .hero--has-image::after {
    background: rgba(0, 0, 0, 0.38);
  }
}

/* ===================================================================
   Sections + tinted bands
   =================================================================== */

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.75rem 0;
}

.band {
  background: var(--tint-blush);
}

.band--mist {
  background: var(--tint-mist);
}

.band--sand {
  background: var(--tint-sand);
}

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.section-head-row .section-head {
  margin: 0;
}

.link-more {
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ===================================================================
   Product grid + card
   =================================================================== */

.woocommerce ul.products,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* WooCommerce puts a clearfix `::before`/`::after` on ul.products. On a
   grid container those pseudo-elements become GRID ITEMS and silently
   consume the first cell, pushing the first product into column 2 and
   leaving a hole. Removing them fixes the offset. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.9rem;
  }
}

/* Specificity note: WooCommerce ships
   `.woocommerce ul.products li.product { width: 22.05%; float: left; }`
   which outranks a bare `.product-card` rule and shrinks each card to ~22%
   of its grid cell. Matching their selector *plus* our own class wins
   cleanly without needing !important. */
.product-card,
.woocommerce ul.products li.product.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
  clear: none;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--tint-lilac);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

/* Same specificity trap as the card width: WooCommerce ships
   `.woocommerce ul.products li.product a img { width:100%; height:auto; }`
   which beats a plain `.product-card__media img` and leaves the image
   square inside the 3:4 media box. */
.product-card__media img,
.woocommerce ul.products li.product a.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  box-shadow: none;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  z-index: 2;
}

.badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--stock {
  background: #fff;
  color: var(--ink);
}

.product-card__name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.product-card__type {
  font-size: 0.75rem;
  color: var(--ink-45);
  margin-bottom: 0.35rem;
}

.product-card__price {
  font-size: 0.875rem;
  margin-bottom: 0.7rem;
}

.product-card__price del {
  color: var(--ink-45);
  margin-right: 0.35rem;
  text-decoration: line-through;
}

.product-card__price ins {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.product-card .btn {
  margin-top: auto;
}

/* WooCommerce injects its own price markup — keep it neutral */
.woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
}

/* ===================================================================
   Collection tiles

   IMAGE SLOTS — one per collection, see assets/img/README-PROMPTS.md.
   Drop files at: assets/img/collection-<slug>.jpg
   Falls back to a tint + large serif initial if the file is absent.
   =================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-items: end;
  justify-items: start;
  background: var(--tint-lilac);
  background-size: cover;
  background-position: center;
  text-align: left;
  padding: 1.15rem;
}

.tile:nth-child(4n + 2) { background-color: var(--tint-blush); }
.tile:nth-child(4n + 3) { background-color: var(--tint-mist); }
.tile:nth-child(4n + 4) { background-color: var(--tint-sand); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover::after {
  opacity: 1;
}

.tile__label {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0;
}

.tile--has-image .tile__label {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* ===================================================================
   Editorial band (brand story)

   IMAGE SLOT — assets/img/craft.jpg (see README-PROMPTS.md)
   =================================================================== */

.editorial {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .editorial {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.editorial__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--tint-mist);
  background-size: cover;
  background-position: center;
}

.editorial h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.9rem;
}

.editorial p {
  color: var(--ink-70);
  margin: 0 0 1rem;
  max-width: 34rem;
}

/* ===================================================================
   Value props strip
   =================================================================== */

.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.props__item h3 {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.props__item p {
  font-size: 0.875rem;
  color: var(--ink-45);
  margin: 0;
}

/* ===================================================================
   Shop archive
   =================================================================== */

.page-hero {
  padding: 2.75rem 0 1.5rem;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 300;
}

.page-hero p {
  color: var(--ink-70);
  margin: 0.6rem 0 0;
  max-width: 32rem;
}

.archive-hero {
  position: relative;
  text-align: left;
  background: var(--tint-lilac);
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.archive-hero--has-image {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.archive-hero--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 20, 0.62) 0%, rgba(12, 6, 20, 0.28) 55%, rgba(12, 6, 20, 0.08) 100%);
}

.archive-hero__inner {
  position: relative;
  z-index: 2;
  padding: 2.4rem 0 2rem;
  max-width: 28rem;
}

.archive-hero h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0;
}

.archive-hero p {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-70);
  max-width: 26rem;
}

.archive-hero--has-image .archive-hero__inner,
.archive-hero--has-image h1,
.archive-hero--has-image .eyebrow {
  color: #fff;
}

.archive-hero--has-image p {
  color: rgba(255, 255, 255, 0.82);
}

.archive-hero .hero__actions {
  margin-top: 1.4rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .phone-grid {
    grid-template-columns: 1fr;
  }
}

.tile--phone {
  aspect-ratio: 4 / 3;
  align-items: flex-end;
  justify-items: start;
  padding: 1.25rem;
}

.tile__copy {
  position: relative;
  z-index: 2;
  text-align: left;
}

.tile--phone .tile__label {
  display: block;
  padding: 0;
  font-size: 1.35rem;
}

.tile__blurb {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-45);
}

.tile--has-image .tile__blurb {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.model-chips a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
}

.model-chips a:hover {
  border-color: var(--ink);
}

.archive-empty {
  color: var(--ink-70);
  max-width: 36rem;
  padding-bottom: 3rem;
}

.archive-empty a {
  margin-left: 0.4rem;
  text-decoration: underline;
}

.size-help {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
}

.size-help a {
  text-decoration: underline;
  color: var(--ink-70);
}

.size-help a:hover {
  color: var(--ink);
}

.error-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  background: #1b1230;
  background-size: cover;
  background-position: center;
}

.error-hero--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 20, 0.66) 0%, rgba(12, 6, 20, 0.3) 60%, transparent 100%);
}

.error-hero .archive-hero__inner {
  padding-bottom: 3.5rem;
}

.error-hero .btn {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.error-hero .btn--solid {
  background: #fff;
  color: #000;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink-45);
}

.shop-toolbar select,
.woocommerce-ordering select {
  font-family: var(--font);
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
}

.woocommerce-result-count {
  margin: 0;
}

.woocommerce-pagination {
  margin-top: 3rem;
  text-align: center;
}

.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.woocommerce-pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ===================================================================
   Single product
   =================================================================== */

.product-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: start;
  }
}

.product-layout .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
}

/* Constrain every gallery image to the column. Without this the
   full-size zoom image renders at its natural width (1448px here) and
   blows out the grid. */
.product-layout .woocommerce-product-gallery img,
.woocommerce .product-layout .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  background: var(--tint-lilac);
  display: block;
}

.product-layout .woocommerce-product-gallery .flex-viewport {
  border-radius: var(--radius);
}

/* Thumbnail strip under the main image */
.product-layout .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.product-layout .flex-control-thumbs li {
  margin: 0;
  width: auto;
  float: none;
}

.product-layout .flex-control-thumbs img {
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.product-layout .flex-control-thumbs img.flex-active,
.product-layout .flex-control-thumbs img:hover {
  opacity: 1;
}

.product-summary .product_title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.product-summary .price {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  display: block;
}

.product-summary .price del {
  color: var(--ink-45);
  margin-right: 0.5rem;
}

.product-summary .price ins {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.product-summary .woocommerce-product-details__short-description {
  color: var(--ink-70);
  margin-bottom: 1.5rem;
}

/* Variation form — phone model picker */
.product-summary table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.product-summary table.variations th,
.product-summary table.variations td {
  display: block;
  text-align: left;
  padding: 0;
}

.product-summary table.variations th label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}

.product-summary table.variations select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.product-summary .reset_variations {
  font-size: 0.75rem;
  color: var(--ink-45);
  text-decoration: underline;
}

.product-summary .quantity input {
  width: 4.5rem;
  padding: 0.85rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font);
  text-align: center;
}

.product-summary form.cart {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* WooCommerce's `.woocommerce button.button` is the same specificity as a
   plain `.product-summary button…` rule, so source order decided it and
   the default purple won. Prefixing with `.woocommerce` settles it. */
.woocommerce .product-summary form.cart .button,
.woocommerce .product-summary button.single_add_to_cart_button,
.product-summary form.cart .button,
.product-summary button.single_add_to_cart_button {
  flex: 1;
  min-width: 12rem;
  font-family: var(--font);
  font-size: var(--label-size);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.16s ease;
}

.woocommerce .product-summary button.single_add_to_cart_button:hover,
.product-summary button.single_add_to_cart_button:hover {
  background: var(--ink-70);
  border-color: var(--ink-70);
  color: var(--paper);
}

.product-summary button.single_add_to_cart_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-summary .product_meta {
  font-size: 0.75rem;
  color: var(--ink-45);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.product-summary .product_meta a {
  text-decoration: underline;
}

/* Trust list under add-to-cart */
.product-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--ink-70);
}

.product-trust li {
  padding-left: 1.4rem;
  position: relative;
}

.product-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* Tabs + related */
.woocommerce-tabs {
  padding: 3rem 0;
  border-top: 1px solid var(--line-soft);
}

.woocommerce-tabs ul.tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}

.woocommerce-tabs ul.tabs li {
  margin-bottom: -1px;
}

.woocommerce-tabs ul.tabs a {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  padding: 0 0 0.9rem;
  color: var(--ink-45);
  border-bottom: 1px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.woocommerce-tabs .panel h2 {
  display: none;
}

.woocommerce-tabs .panel {
  color: var(--ink-70);
  max-width: 46rem;
}

.related.products,
.up-sells {
  padding: 3rem 0;
  border-top: 1px solid var(--line-soft);
}

.related.products > h2,
.up-sells > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1.75rem;
}

/* ===================================================================
   Cart / checkout / account — keep WooCommerce blocks on-brand
   =================================================================== */

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  padding-bottom: 3.5rem;
}

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  border-radius: var(--radius) !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--font) !important;
  font-size: var(--label-size) !important;
  letter-spacing: var(--label-spacing) !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

.wc-block-components-title,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-title {
  font-family: var(--display) !important;
  font-weight: 300 !important;
}

.entry-content,
.legal-page .content-prose {
  max-width: 44rem;
}

.legal-page .content-prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-page .content-prose p,
.legal-page .content-prose li {
  color: var(--ink-70);
}

.content-prose a {
  text-decoration: underline;
}

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.1rem;
  max-width: 22rem;
}

.newsletter {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  max-width: 22rem;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer .newsletter .btn {
  border-color: #fff;
  color: #fff;
  background: transparent;
  padding: 0.65rem 0.9rem;
}

.site-footer .newsletter .btn:hover {
  background: #fff;
  color: #000;
}

.newsletter__ok {
  font-size: 0.8125rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.site-footer__social {
  margin: 0;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0 2rem;
}

.size-table th,
.size-table td {
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.size-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-45);
}

.size-steps {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2.25rem;
}

.size-steps h3 {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================================================================
   Cookie bar
   =================================================================== */

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  z-index: 200;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar a {
  text-decoration: underline;
}

.cookie-bar .btn {
  padding: 0.6rem 1.1rem;
  flex-shrink: 0;
}

/* ===================================================================
   WooCommerce notices + sale flash

   These override plugin defaults (green notice ticks, purple buttons,
   olive round sale bubble). Selectors are prefixed with `.woocommerce`
   to outrank the plugin stylesheet rather than resorting to !important.
   =================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  background: var(--tint-mist);
  border-top: 0;
  border-left: 2px solid var(--ink);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Kill the coloured tick/info glyphs */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: none;
}

.woocommerce-error {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-info .button {
  float: right;
  font-family: var(--font);
  font-size: var(--label-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.95rem;
  background: transparent;
  color: var(--ink);
}

/* Sale flash — plugin default is an olive circle */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  line-height: 1;
  border-radius: 2px;
  padding: 0.35rem 0.6rem;
  margin: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-layout {
  position: relative;
}

/* Gallery trigger (magnifier) */
.woocommerce .product-layout .woocommerce-product-gallery__trigger {
  top: 1rem;
  right: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
