/* =========================================================================
   Gold Standard - WooCommerce layer
   Styles WooCommerce's own markup and hooks. Uses only tokens from theme.css,
   so it follows the light and dark schemes without a second set of rules.
   ========================================================================= */

/* =========================================================================
   0. WooCommerce core overrides
   WooCommerce ships a float-based layout with selectors like
   `.woocommerce div.product div.summary` (0,4,1). Anything below that has to
   match or beat that specificity or core silently wins - which is why these
   rules are prefixed rather than written flat. Keep new rules in the rest of
   this file simple, and add the override here when core fights back.
   ========================================================================= */

/* Cards: core floats them at 30.75% inside our grid cell, and does it through
   `ul.products[class*="columns-"] li.product` - an attribute selector, so a
   plain class-only override loses. Match the attribute selector to win. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product{
  float:none; width:auto; margin:0; clear:none; padding:24px;
}
.woocommerce ul.products::before,.woocommerce ul.products::after,
.woocommerce ul.products li.product::before,.woocommerce ul.products li.product::after{content:none;}
.woocommerce ul.products,.woocommerce-page ul.products{margin:0; padding:0;}

/* Single product: core floats the gallery left and the summary right at 48%,
   which collapses both columns inside our two-column grid. */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-product-gallery{
  float:none; width:auto; margin:0;
}
.woocommerce div.product .woocommerce-product-gallery{overflow:hidden;}
.woocommerce div.product div.woocommerce-tabs{clear:none;}

/* The variation select stays in the DOM for WooCommerce's own logic but must
   not paint or take up space; core sets it to width:100%. */
.woocommerce div.product form.cart .variations td.value select,
.woocommerce div.product form.cart .variations .gs-swatched select{
  position:absolute; width:1px; height:1px; min-width:0; padding:0; margin:0;
  opacity:0; pointer-events:none; border:0;
}
/* Left visible when the merchant has opted out of swatches. */
.woocommerce div.product form.cart .variations td.value:not(.gs-swatched) select{
  position:static; width:100%; max-width:340px; height:auto; min-width:0;
  padding:12px 14px; opacity:1; pointer-events:auto; border:1px solid var(--gs-rule-2);
}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th{padding:0;}

/* Buttons: core paints .alt purple (#7f54b3). */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce div.product form.cart .button{
  background-color:var(--gs-ink); color:var(--gs-ground);
  border-radius:var(--gs-radius); border:0;
  font-family:var(--gs-font-body); font-weight:600; font-size:12.5px;
  letter-spacing:.12em; text-transform:uppercase; line-height:1; padding:14px 26px;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce div.product form.cart .button:hover{
  background-color:var(--gs-gold); color:var(--gs-on-accent);
}
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled],
.woocommerce div.product form.cart .button.disabled{
  background-color:var(--gs-ink); color:var(--gs-ground); opacity:.35; cursor:not-allowed;
}
/* Dark scheme: gold action, matching .gs-btn. */
html.gs-dark .woocommerce #respond input#submit,
html.gs-dark .woocommerce a.button,
html.gs-dark .woocommerce button.button,
html.gs-dark .woocommerce input.button,
html.gs-dark .woocommerce a.button.alt,
html.gs-dark .woocommerce button.button.alt,
html.gs-dark .woocommerce input.button.alt,
html.gs-dark .woocommerce div.product form.cart .button{
  background-color:var(--gs-gold); color:var(--gs-on-accent);
}
html.gs-dark .woocommerce a.button:hover,
html.gs-dark .woocommerce button.button:hover,
html.gs-dark .woocommerce input.button:hover,
html.gs-dark .woocommerce button.button.alt:hover,
html.gs-dark .woocommerce div.product form.cart .button:hover{
  background-color:var(--gs-gold-lit); color:var(--gs-on-accent);
}
html.gs-dark .woocommerce button.button.alt.disabled,
html.gs-dark .woocommerce button.button.alt:disabled,
html.gs-dark .woocommerce div.product form.cart .button.disabled{
  background-color:var(--gs-gold); color:var(--gs-on-accent); opacity:.3;
}

/* The checkout and cart CTAs keep the gold treatment. */
.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt,
.woocommerce #payment #place_order{
  background-color:var(--gs-gold); color:var(--gs-on-accent);
}
.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt:hover,
.woocommerce #payment #place_order:hover{background-color:var(--gs-gold-lit);}

/* Loop cards use a text link, not a filled button. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_variable{
  background-color:transparent; color:var(--gs-ink);
  padding:0 0 3px; border-radius:0; border-bottom:1px solid var(--gs-gold);
  font-size:11px; letter-spacing:.13em;
}
.woocommerce ul.products li.product .button:hover{background-color:transparent; color:var(--gs-gold);}
html.gs-dark .woocommerce ul.products li.product .button{color:var(--gs-gold-lit);}

/* Core's "This product has multiple variants" helper text. */
.woocommerce ul.products li.product .wc-block-components-product-button__button-description,
.woocommerce ul.products li.product .woocommerce-variation-description,
ul.products li.product small.wc-variation-selection-needed,
ul.products li.product .wc-variation-selection-needed{
  display:block; width:100%; order:9;
  font-size:11.5px; line-height:1.4; color:var(--gs-ink-3);
}

/* Core stars use its own font; keep the shape, take our colour. */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before{color:var(--gs-gold);}

/* Core paints the single-product price its own green and the tab labels a
   fixed #515151 - the latter falls to 2.4:1 on a dark ground, so both are
   pinned to tokens at core's own specificity. */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .summary .price,
.woocommerce div.product .woocommerce-variation-price .price{color:var(--gs-ink);}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del{color:var(--gs-ink-3);}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins{color:var(--gs-ink); text-decoration:none;}

.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--gs-ink-3);}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--gs-ink-2);}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--gs-ink);}
.woocommerce div.product .woocommerce-tabs ul.tabs{border-bottom-color:var(--gs-rule);}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-bottom-color:var(--gs-rule);}
/* Core gives the active tab a white pill background, which on a dark ground
   leaves near-white text on near-white. The tab is marked by the gold rule
   under it instead, so every tab keeps the page's own ground. */
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{
  background:none; background-color:transparent;
  border:0; border-radius:0; box-shadow:none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
  color:var(--gs-ink); border-bottom-color:var(--gs-gold);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none;}

/* ------------------------------------------------------------- notices -- */
.woocommerce-notices-wrapper{max-width:var(--gs-width); margin:0 auto; padding:0 var(--gs-gutter);}
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  list-style:none; margin:var(--gs-space-3) 0 0; padding:14px 18px;
  background:var(--gs-surface); border:1px solid var(--gs-rule-2);
  border-left:3px solid var(--gs-gold); font-size:14px;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.woocommerce-error{border-left-color:var(--gs-bad); color:var(--gs-bad);}
.woocommerce-message .button,.woocommerce-info .button{margin-left:auto;}
/* Core sets the notice glyph position:absolute at left:1.5em and compensates
   with padding-left:3.5em. The theme's padding is 18px, so the glyph landed on
   top of the first word - the icon sat over the "E" of "Error:". Making it a
   flex item puts it in the row where the gap already accounts for it. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{
  position:static; top:auto; left:auto; flex:none; line-height:1;
}
.woocommerce-error::before{color:var(--gs-bad);}
.woocommerce-message::before,
.woocommerce-info::before{color:var(--gs-gold);}
/* The notice list is a flex row; its <li> should not each start a new one. */
.woocommerce-message li,.woocommerce-info li,.woocommerce-error li{margin:0;}

/* The add-to-cart confirmation, as a small toast tucked under the cart icon.
   It confirms something that already succeeded, so it floats clear of the page
   and clears itself rather than pushing the product down. Anchoring it to the
   cart button - rather than centring it - points the eye at where the items
   now are, which is why it carries no "view cart" button of its own. Errors
   and info notices stay inline: those need to hold their place until dealt
   with. */
.woocommerce-message.gs-cart-toast{
  position:fixed; z-index:120;
  top:var(--gs-toast-top, calc(var(--gs-header-h, 78px) + 10px));
  right:var(--gs-toast-right, 16px);
  left:auto; transform:none;
  display:block; width:max-content;
  max-width:min(230px, calc(100vw - 24px));
  margin:0; padding:9px 13px;
  font-size:12.5px; line-height:1.35; letter-spacing:.01em;
  background:var(--gs-surface); border:1px solid var(--gs-rule-2);
  border-left:3px solid var(--gs-gold);
  box-shadow:0 10px 30px -12px rgba(0,0,0,.45);
  animation:gs-toast-in .22s ease-out both;
}
.woocommerce-message.gs-cart-toast.is-leaving{
  animation:gs-toast-out .35s ease-in both;
}
/* Core's tick glyph; the toast carries its own accent instead. */
.woocommerce-message.gs-cart-toast::before{content:none;}
/* A caret pointing back up at the cart icon, so the toast reads as belonging
   to it rather than floating loose in the corner. */
.woocommerce-message.gs-cart-toast::after{
  content:""; position:absolute; top:-6px;
  right:var(--gs-toast-caret, 18px);
  width:10px; height:10px; transform:rotate(45deg);
  background:var(--gs-surface);
  border-left:1px solid var(--gs-rule-2);
  border-top:1px solid var(--gs-rule-2);
}
/* Core sets the notice text to a fixed #515151, which drops to 2.3:1 on the
   dark surface. Pin it to the token, children included. */
.woocommerce .woocommerce-message.gs-cart-toast,
.woocommerce-page .woocommerce-message.gs-cart-toast,
.woocommerce-message.gs-cart-toast,
.woocommerce-message.gs-cart-toast *{color:var(--gs-ink);}
/* Belt and braces: a plugin re-adding a "view cart" button must not reopen the
   dialog this toast replaced. */
.woocommerce-message.gs-cart-toast .button,
.woocommerce-message.gs-cart-toast .wc-forward{display:none;}
@keyframes gs-toast-in{
  from{opacity:0; transform:translateY(-8px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes gs-toast-out{
  from{opacity:1; transform:translateY(0);}
  to{opacity:0; transform:translateY(-8px);}
}
@media (max-width:640px){
  .woocommerce-message.gs-cart-toast{
    font-size:12px; padding:8px 12px;
    max-width:calc(100vw - 20px);
  }
}
@media (prefers-reduced-motion:reduce){
  .woocommerce-message.gs-cart-toast,
  .woocommerce-message.gs-cart-toast.is-leaving{animation:none;}
}

/* --------------------------------------------------- shop archive shell -- */
.gs-shop{display:grid; grid-template-columns:250px 1fr; gap:var(--gs-space-5); padding-block:var(--gs-space-5) var(--gs-space-6);}
.gs-shop--nosidebar{grid-template-columns:1fr;}
/* Breadcrumb-only band: the visible title was a duplicate of the breadcrumb's
   last crumb, so the band is sized for the crumb and any category copy. */
.gs-shop-head{padding-block:var(--gs-space-3); background:none;}
.gs-shop-head-inner{display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap;}
.gs-shop-head h1{margin:0;}
.gs-shop-head .woocommerce-breadcrumb{margin-bottom:0;}
.gs-shop-head .gs-lede{margin-top:var(--gs-space-2);}
.gs-breadcrumb,.woocommerce-breadcrumb{
  font-family:var(--gs-font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gs-ink-3); margin-bottom:10px;
}
/* Core sets its own breadcrumb link colour, which lands at 3.8:1 on the ground. */
.gs-breadcrumb a,
.woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a,
.woocommerce-page .woocommerce-breadcrumb a{text-decoration:none; color:var(--gs-ink-3);}
.gs-breadcrumb a:hover,
.woocommerce .woocommerce-breadcrumb a:hover,
.woocommerce-page .woocommerce-breadcrumb a:hover{color:var(--gs-gold);}

.gs-sidebar{display:flex; flex-direction:column; gap:var(--gs-space-4);}
.gs-filter-widget h3,.gs-sidebar .widget-title{
  font-family:var(--gs-font-body); font-size:11px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gs-ink-2);
  padding-bottom:10px; border-bottom:1px solid var(--gs-rule); margin:0 0 14px;
}
.gs-sidebar ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; font-size:14px;}
.gs-sidebar ul a{text-decoration:none; color:var(--gs-ink-2);}
.gs-sidebar ul a:hover{color:var(--gs-gold);}
.gs-sidebar .count{color:var(--gs-ink-3); font-family:var(--gs-font-mono); font-size:11.5px;}

.gs-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  padding-bottom:var(--gs-space-3); margin-bottom:var(--gs-space-4); border-bottom:1px solid var(--gs-rule);
}
.woocommerce .woocommerce-result-count{
  margin:0; float:none; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gs-ink-3); font-family:var(--gs-font-mono);
}
.woocommerce .woocommerce-ordering{margin:0; float:none;}

/* Category filter. A peer of the sort control, not a mode hidden inside it. */
.gs-toolbar-controls{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-left:auto;}
.gs-cat-filter{display:flex; align-items:center; gap:8px; margin:0;}
.gs-cat-filter select{
  width:auto; min-width:200px; padding:10px 14px; font-size:12.5px;
  font-family:var(--gs-font-mono); letter-spacing:.04em;
  background:var(--gs-surface); border:1px solid var(--gs-rule-2); border-radius:var(--gs-radius);
}
/* The Go button only exists for browsers without JavaScript; theme.js submits
   on change and hides it. */
.gs-cat-filter-go{
  border:1px solid var(--gs-rule-2); background:transparent; color:var(--gs-ink);
  border-radius:var(--gs-radius); padding:10px 14px; cursor:pointer;
  font-size:11.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
}
.gs-cat-filter-go:hover{background:var(--gs-surface-2);}

}
.woocommerce .woocommerce-ordering select{
  width:auto; min-width:220px; padding:10px 14px; font-size:12.5px;
  font-family:var(--gs-font-mono); letter-spacing:.04em;
  background:var(--gs-surface); border:1px solid var(--gs-rule-2); border-radius:var(--gs-radius);
}

/* -------------------------------------------------------- product cards -- */
ul.products{
  list-style:none; margin:0; padding:0;
  display:grid;
  /* minmax(0,1fr), not 1fr: a long product name has a min-content width that
     would otherwise push one track wider than the rest. */
  grid-template-columns:repeat(var(--gs-cols,3),minmax(0,1fr));
  gap:1px; background:var(--gs-rule); border:1px solid var(--gs-rule);
}
ul.products li.product{
  background:var(--gs-surface); padding:24px; margin:0; position:relative;
  display:flex; flex-direction:column; gap:14px; transition:background .2s ease;
}
ul.products li.product:hover{background:var(--gs-surface-2);}
ul.products li.product a{text-decoration:none;}
/* Square media well. The catalogue mixes square pack shots (Gold Bar) with
   portrait lifestyle posters (Titan Pro), so the well is a fixed square and
   the image is contained inside it - every card lines up regardless. */
.gs-card-media{
  position:relative; display:block; aspect-ratio:1/1; overflow:hidden;
  background:var(--gs-plinth); border-radius:var(--gs-radius-lg);
}
/* In the dark scheme the plinth stays lit and gains an edge, so a white
   studio shot and a near-black poster both read as objects under a light. */
html.gs-dark .gs-card-media{
  box-shadow:inset 0 0 0 1px var(--gs-plinth-edge), 0 10px 26px -18px rgba(0,0,0,.9);
}
.woocommerce ul.products li.product a.gs-card-media img,
.gs-card-media img{
  width:100%; height:100%; margin:0; object-fit:contain; padding:10px;
  transition:transform .35s ease;
}
ul.products li.product:hover .gs-card-media img{transform:scale(1.04);}
.woocommerce ul.products li.product a img{margin:0; box-shadow:none;}
.gs-card-badges{position:absolute; top:12px; right:12px; display:flex; flex-direction:column; gap:6px; align-items:flex-end;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--gs-font-display); font-size:20px; font-weight:400; line-height:1.25;
  margin:0; padding:0;
  /* Two lines keeps every card's foot on the same baseline. */
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:var(--gs-ink);}
.gs-card-meta{font-size:12.5px; color:var(--gs-ink-3); margin:-6px 0 0;}
.gs-card-foot{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin-top:auto; padding-top:12px; border-top:1px solid var(--gs-rule);
}
.price{font-family:var(--gs-font-display); font-size:19px; font-variant-numeric:tabular-nums; color:var(--gs-ink);}
.price del{color:var(--gs-ink-3); font-size:14px; margin-right:6px; text-decoration:line-through;}
.price ins{text-decoration:none;}
ul.products li.product .button{
  background:none; border:0; padding:0 0 3px; cursor:pointer; color:var(--gs-ink);
  font-family:var(--gs-font-body); font-weight:600; font-size:11px; letter-spacing:.13em;
  text-transform:uppercase; border-bottom:1px solid var(--gs-gold); white-space:nowrap;
}
html.gs-dark ul.products li.product .button{color:var(--gs-gold-lit);}
ul.products li.product .added_to_cart{
  font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--gs-ok);
}
.onsale{
  display:inline-block; font-family:var(--gs-font-mono); font-size:9.5px; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase; color:var(--gs-on-accent);
  background:var(--gs-gold); padding:5px 7px; line-height:1;
}

/* Archive pagination, in WooCommerce's own markup. */
.woocommerce nav.woocommerce-pagination{margin-top:var(--gs-space-5); text-align:left;}
.woocommerce nav.woocommerce-pagination ul{
  display:flex; gap:8px; border:0; margin:0; padding:0; list-style:none; flex-wrap:wrap;
}
.woocommerce nav.woocommerce-pagination ul li{border:0; margin:0; overflow:visible;}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; height:42px; padding:0 12px;
  border:1px solid var(--gs-rule-2); background:var(--gs-surface); color:var(--gs-ink-2);
  font-family:var(--gs-font-mono); font-size:13px; line-height:1;
}
.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--gs-surface-2); color:var(--gs-ink);}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--gs-ink); border-color:var(--gs-ink); color:var(--gs-ground);
}

/* Empty shop / no results. */
.woocommerce-info.woocommerce-no-products-found,
.woocommerce ul.products li.product-category{background:var(--gs-surface);}

/* ------------------------------------------------- swatches on the card -- */
.gs-card-swatches{display:flex; gap:7px; flex-wrap:wrap; align-items:center;}
.gs-card-swatches .gs-sw{width:19px; height:19px;}
.gs-card-swatches .gs-sw-more{font-family:var(--gs-font-mono); font-size:11px; color:var(--gs-ink-3); line-height:19px;}

/* ------------------------------------------------------- single product -- */
.gs-single{padding-block:var(--gs-space-5) var(--gs-space-6);}
.gs-single .product{display:grid; grid-template-columns:1fr 1fr; gap:var(--gs-space-5); align-items:start;}
/* Gallery and summary take a column each; everything after them - tabs,
   related, upsells - is a full-width row of its own. Without this they get
   dealt into the two columns and end up half width. */
.gs-single .product > .woocommerce-tabs,
.gs-single .product > .related,
.gs-single .product > .upsells,
.gs-single .product > .woocommerce-product-gallery + .summary ~ *{grid-column:1 / -1;}
/* No frame around the product photography - the shot carries itself, and the
   supplied images already sit on their own backgrounds. */
.gs-single .woocommerce-product-gallery{background:none; border:0; padding:0; position:relative;}

/* Every product page gets the same gallery box regardless of what shape the
   photograph is. The catalogue mixes square pack shots with portrait posters,
   which otherwise makes each product page a different height and pushes the
   summary and tabs around. The image is contained, never cropped or stretched. */
.gs-single .flex-viewport,
.gs-single .woocommerce-product-gallery__wrapper{
  aspect-ratio:1/1; overflow:hidden; border-radius:var(--gs-radius-lg);
}
.gs-single .flex-viewport .woocommerce-product-gallery__wrapper{aspect-ratio:auto; height:100%;}
.gs-single .woocommerce-product-gallery__image{height:100%;}
.gs-single .woocommerce-product-gallery__image a{display:block; height:100%;}
.gs-single .woocommerce-product-gallery__image img{
  width:100%; height:100%; margin:0 auto;
  object-fit:contain; border-radius:var(--gs-radius-lg);
}

/* Core's lightbox trigger is a white disc, which all but disappears against
   the ivory plinth in either scheme. Given the ink treatment instead. */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{
  background:var(--gs-ink); color:var(--gs-ground);
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  top:14px; right:14px; text-indent:0; font-size:0; z-index:9;
  box-shadow:0 4px 12px -4px rgba(0,0,0,.4);
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before{
  content:""; width:11px; height:11px; border:2px solid currentColor;
  border-radius:50%; background:none; position:static; margin:0 2px 2px 0;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after{
  content:""; position:absolute; width:2px; height:7px; background:currentColor;
  border-radius:2px; transform:rotate(-45deg); bottom:9px; right:11px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover{
  background:var(--gs-gold); color:var(--gs-on-accent);
}

/* Dark scheme: the same lit plinth as the shop cards. Without it a white
   pack shot burns a hole in the page and a dark poster loses its edges. */
html.gs-dark .gs-single .woocommerce-product-gallery__image,
html.gs-dark .gs-single .flex-viewport{
  background:var(--gs-plinth); border-radius:var(--gs-radius-lg);
}
html.gs-dark .gs-single .woocommerce-product-gallery{
  box-shadow:0 24px 60px -30px rgba(0,0,0,.9);
  border-radius:var(--gs-radius-lg);
}
html.gs-dark .gs-single .flex-control-thumbs img{
  background:var(--gs-plinth); border-color:var(--gs-rule-2);
}
/* WooCommerce's zoom overlay and lightbox both paint their own white. */
html.gs-dark .pswp__bg{background:#0B0907;}
html.gs-dark .pswp__caption__center{color:var(--gs-ink-2);}
.gs-single .flex-control-thumbs{
  list-style:none; display:grid; grid-template-columns:repeat(5,1fr); gap:8px; padding:12px 0 0; margin:0;
}
.gs-single .flex-control-thumbs li{cursor:pointer;}
.gs-single .flex-control-thumbs img{border:1px solid var(--gs-rule); opacity:.65;}
.gs-single .flex-control-thumbs img.flex-active,.gs-single .flex-control-thumbs img:hover{opacity:1; border-color:var(--gs-gold);}
.gs-single .product_title{margin:6px 0 var(--gs-space-2);}
.gs-single .summary .price{font-size:28px; display:block; margin-bottom:var(--gs-space-2);}
.woocommerce-product-details__short-description{color:var(--gs-ink-2); max-width:52ch;}
.gs-brandline{
  font-family:var(--gs-font-mono); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--gs-ink-3);
}

/* ------------------------------------------------ variation form + swatches */
.variations{width:100%; border:0; margin:var(--gs-space-3) 0 0;}
.variations tbody,.variations tr,.variations td,.variations th{display:block; width:100%; text-align:left; padding:0; border:0;}
.variations tr{margin-bottom:var(--gs-space-3);}
.variations .label{margin-bottom:11px;}
.variations .label label{
  font-family:var(--gs-font-mono); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--gs-ink-2);
}
.gs-attr-selected{float:right; font-family:var(--gs-font-body); font-size:13px; font-weight:600; color:var(--gs-ink); letter-spacing:0; text-transform:none;}
.variations select{max-width:340px;}
/* When JS builds swatches the raw select is hidden but kept in the DOM, so
   WooCommerce's own variation logic keeps working untouched. */
.gs-swatched select{position:absolute; width:1px; height:1px; opacity:0; pointer-events:none;}

.gs-swatches{display:flex; gap:10px; flex-wrap:wrap;}
.gs-sw{
  border:0; padding:0; cursor:pointer; border-radius:50%;
  width:34px; height:34px; background:var(--gs-surface-2);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);
  background-size:cover; background-position:center;
}
html.gs-dark .gs-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);}
.gs-sw.is-active{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 0 0 2px var(--gs-surface),0 0 0 3px var(--gs-gold);}
html.gs-dark .gs-sw.is-active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 0 0 2px var(--gs-surface),0 0 0 3px var(--gs-gold-lit);}
.gs-sw.is-unavailable{opacity:.38; position:relative;}
.gs-sw.is-unavailable::after{
  content:""; position:absolute; left:-2px; right:-2px; top:50%; height:1px;
  background:var(--gs-ink); transform:rotate(-45deg); transform-origin:center;
}
.gs-sw.is-disabled{cursor:not-allowed;}

.gs-pills{display:flex; gap:8px; flex-wrap:wrap;}
.gs-pill{
  border:1px solid var(--gs-rule-2); background:transparent; color:var(--gs-ink-2); cursor:pointer;
  padding:10px 16px; border-radius:var(--gs-radius);
  font-family:var(--gs-font-mono); font-weight:500; font-size:12.5px; line-height:1;
}
.gs-pill:hover{border-color:var(--gs-ink-3); color:var(--gs-ink);}
.gs-pill.is-active{background:var(--gs-ink); border-color:var(--gs-ink); color:var(--gs-ground);}
html.gs-dark .gs-pill.is-active{background:var(--gs-gold); border-color:var(--gs-gold); color:var(--gs-on-accent);}
.gs-pill.is-unavailable{opacity:.45; text-decoration:line-through;}
.gs-pill.is-disabled{cursor:not-allowed;}

.woocommerce-variation-price{margin:var(--gs-space-3) 0 0;}
.woocommerce-variation-price .price{font-size:24px;}
.woocommerce-variation-availability p{margin:8px 0 0; font-size:13px;}
/* Lifted above the attribute rows by the script - see moveResetLink(). In its
   printed position it sits in the same cell as the swatches and collides with
   the colour row. */
.gs-variation-reset{
  display:flex; justify-content:flex-end; align-items:center;
  min-height:16px; margin:var(--gs-space-3) 0 -6px;
}
.reset_variations{
  display:inline-block; font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gs-ink-3); text-decoration:none; border-bottom:1px solid currentColor;
}
.gs-variation-reset .reset_variations{margin:0;}
.reset_variations:hover{color:var(--gs-ink);}

/* --------------------------------------------------------- add to cart -- */
.gs-single form.cart{display:flex; gap:12px; flex-wrap:wrap; align-items:stretch; margin:var(--gs-space-4) 0 0;}
.gs-single form.variations_form{display:block;}
.gs-single .woocommerce-variation-add-to-cart{display:flex; gap:12px; flex-wrap:wrap; align-items:stretch; margin-top:var(--gs-space-3);}
.quantity{display:flex; align-items:center; border:1px solid var(--gs-rule-2); border-radius:var(--gs-radius); background:var(--gs-surface);}
.quantity input.qty{
  width:52px; border:0; background:none; text-align:center; padding:12px 0;
  font-family:var(--gs-font-mono); font-size:13px; font-variant-numeric:tabular-nums;
  -moz-appearance:textfield;
}
.quantity input.qty::-webkit-outer-spin-button,.quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.gs-qty-btn{background:none; border:0; cursor:pointer; padding:0 14px; font-size:17px; color:var(--gs-ink-2); line-height:1;}
.gs-qty-btn:hover{color:var(--gs-ink);}
.single_add_to_cart_button{
  flex:1; min-width:210px;
  display:inline-flex; align-items:center; justify-content:center;
  border:0; cursor:pointer; padding:14px 26px; border-radius:var(--gs-radius);
  background:var(--gs-ink); color:var(--gs-ground);
  font-family:var(--gs-font-body); font-weight:600; font-size:12.5px;
  letter-spacing:.12em; text-transform:uppercase; line-height:1;
  transition:transform .18s ease, background .18s ease, color .18s ease;
}
.single_add_to_cart_button:hover{transform:translateY(-1px); background:var(--gs-gold); color:var(--gs-on-accent);}
.single_add_to_cart_button.disabled,.single_add_to_cart_button:disabled{opacity:.4; cursor:not-allowed; transform:none;}

.gs-stockline{display:flex; align-items:center; gap:8px; margin-top:16px; font-size:12.5px; color:var(--gs-ok);}
.gs-stockline .gs-dot{width:7px; height:7px; border-radius:50%; background:currentColor; flex:none;}
.gs-stockline.is-out{color:var(--gs-bad);}
.gs-trust{display:flex; gap:22px; flex-wrap:wrap; margin-top:var(--gs-space-3); padding-top:var(--gs-space-3); border-top:1px solid var(--gs-rule); font-size:12.5px; color:var(--gs-ink-2);}
.product_meta{margin-top:var(--gs-space-3); font-family:var(--gs-font-mono); font-size:11.5px; color:var(--gs-ink-3); display:flex; flex-direction:column; gap:6px;}
.product_meta a{color:var(--gs-ink-2); text-decoration:none;}

/* --------------------------------------------------- sticky buy bar (m) -- */
.gs-buybar{
  position:fixed; left:0; right:0; bottom:0; z-index:80; display:none;
  align-items:center; gap:12px; padding:12px var(--gs-gutter);
  background:var(--gs-surface); border-top:1px solid var(--gs-rule-2);
  box-shadow:0 -10px 30px -24px rgba(0,0,0,.8);
}
.gs-buybar.is-visible{display:flex;}
.gs-buybar .gs-buybar-title{font-size:13px; font-weight:600; margin:0; line-height:1.3;}
.gs-buybar .gs-buybar-price{font-family:var(--gs-font-display); font-size:17px;}
.gs-buybar .gs-btn{margin-left:auto; flex:none;}

/* ------------------------------------------------------------ tabs etc -- */
.woocommerce-tabs{margin-top:var(--gs-space-6); border-top:1px solid var(--gs-rule); padding-top:var(--gs-space-4);}
.woocommerce-tabs ul.tabs{list-style:none; display:flex; gap:26px; padding:0; margin:0 0 var(--gs-space-3); flex-wrap:wrap; border-bottom:1px solid var(--gs-rule);}
.woocommerce-tabs ul.tabs li a{
  display:inline-block; padding:0 0 12px; text-decoration:none; color:var(--gs-ink-3);
  font-size:12px; font-weight:600; letter-spacing:.13em; text-transform:uppercase;
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.woocommerce-tabs ul.tabs li.active a{color:var(--gs-ink); border-bottom-color:var(--gs-gold);}
.woocommerce-tabs .panel{max-width:70ch;}
.woocommerce-tabs .panel h2{font-size:24px;}
/* The reviews panel repeats its own tab label. WooCommerce prints this one
   straight from the template with no filter, so it is hidden here rather than
   removed - screen readers keep the landmark. */
#reviews .woocommerce-Reviews-title{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}
.shop_attributes{width:100%; border-collapse:collapse; font-size:14px;}
.shop_attributes th,.shop_attributes td{text-align:left; padding:10px 0; border-bottom:1px solid var(--gs-rule); vertical-align:top;}
.shop_attributes th{width:32%; font-weight:600; color:var(--gs-ink-2);}
.shop_attributes td p{margin:0;}
/* Related / upsells: the row is however many products exist, so the tracks are
   sized to fit rather than to a fixed column count - otherwise two products in
   a three-column grid leave a hairline-coloured hole where the third would be. */
.related.products,.upsells.products,.cross-sells{margin-top:var(--gs-space-6); clear:both;}
.related.products>h2,.upsells.products>h2,.cross-sells>h2{margin-bottom:var(--gs-space-4);}
/* Separate cards rather than the hairline-grid used on the shop: a related row
   is rarely full, and auto-fill leaves empty tracks that would otherwise show
   as blocks of rule colour. Cards keep their own border and a real gap. */
.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products,
.woocommerce .cross-sells ul.products{
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:var(--gs-space-3); background:none; border:0;
}
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce .cross-sells ul.products li.product{
  border:1px solid var(--gs-rule);
}
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product{padding:20px; gap:12px;}
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__title{font-size:17px;}
.woocommerce .related.products .gs-card-media,
.woocommerce .upsells.products .gs-card-media{aspect-ratio:4/3;}
.woocommerce .related.products .gs-card-meta,
.woocommerce .upsells.products .gs-card-meta{display:none;}
.woocommerce .related.products .gs-card-foot,
.woocommerce .upsells.products .gs-card-foot{flex-wrap:wrap; gap:8px;}

/* --------------------------------------------------------------- stars -- */
.star-rating{font-size:12px; color:var(--gs-gold); letter-spacing:.1em;}
.woocommerce-review-link{color:var(--gs-ink-3); font-size:12.5px; text-decoration:none;}
#reviews .commentlist{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:var(--gs-space-3);}
#reviews .comment_container{background:var(--gs-surface); border:1px solid var(--gs-rule); padding:var(--gs-space-3); display:flex; gap:16px;}
#reviews .avatar{border-radius:50%; flex:none;}

/* --------------------------------------------------------- cart layout -- */
.gs-woopage{padding-block:var(--gs-space-5) var(--gs-space-6);}
.woocommerce-cart-form table.shop_table{width:100%; border-collapse:collapse; background:var(--gs-surface); border:1px solid var(--gs-rule);}
table.shop_table th{
  text-align:left; padding:16px; border-bottom:1px solid var(--gs-rule);
  font-family:var(--gs-font-body); font-size:11px; font-weight:600; letter-spacing:.13em;
  text-transform:uppercase; color:var(--gs-ink-2);
}
table.shop_table td{padding:16px; border-bottom:1px solid var(--gs-rule); vertical-align:middle; font-size:14.5px;}
table.shop_table tr:last-child td{border-bottom:0;}
table.shop_table img{width:64px; border:1px solid var(--gs-rule);}
.product-remove a.remove{
  display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px;
  border:1px solid var(--gs-rule-2); color:var(--gs-ink-3); text-decoration:none; font-size:14px; line-height:1;
}
.product-remove a.remove:hover{background:var(--gs-bad); border-color:var(--gs-bad); color:#fff;}
/* Classic (shortcode) cart: form + totals side by side. The block cart keeps
   its own layout and simply inherits the colours and type. */
.woocommerce-cart .woocommerce{display:grid; grid-template-columns:1.4fr .6fr; gap:var(--gs-space-5); align-items:start;}
.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1; padding:0;}
.cart-collaterals{width:auto;}
.cart-collaterals .cross-sells{display:none;}

.cart_totals,.woocommerce-checkout-review-order{
  background:var(--gs-surface); border:1px solid var(--gs-rule); padding:var(--gs-space-3);
  position:sticky; top:110px;
}
.cart_totals h2,.woocommerce-checkout-review-order h3{font-size:20px;}
.cart_totals table.shop_table{border:0;}
.cart_totals table.shop_table th,.cart_totals table.shop_table td{padding:12px 0;}
.order-total .amount{font-family:var(--gs-font-display); font-size:22px;}
.wc-proceed-to-checkout{margin-top:var(--gs-space-3);}
.wc-proceed-to-checkout .checkout-button{
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  padding:16px 26px; border-radius:var(--gs-radius);
  background:var(--gs-gold); color:var(--gs-on-accent);
  font-weight:600; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
}
.wc-proceed-to-checkout .checkout-button:hover{background:var(--gs-gold-lit);}
.coupon{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.coupon input{max-width:220px;}
.actions .button{
  background:transparent; border:1px solid var(--gs-rule-2); color:var(--gs-ink);
  padding:12px 20px; border-radius:var(--gs-radius); cursor:pointer;
  font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
}

/* ----------------------------------------------------- checkout layout -- */
.woocommerce-checkout .col2-set{display:grid; grid-template-columns:1fr 1fr; gap:var(--gs-space-4);}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{width:auto; float:none;}
form.checkout{display:grid; grid-template-columns:1.35fr .65fr; gap:var(--gs-space-5); align-items:start;}
form.checkout h3{font-size:22px; padding-bottom:12px; border-bottom:1px solid var(--gs-rule);}
.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper{display:flex; flex-direction:column; gap:14px;}
.form-row{margin:0; display:flex; flex-direction:column; gap:6px;}
.form-row label{font-size:12px; letter-spacing:.06em; color:var(--gs-ink-2);}
.required{color:var(--gs-bad); text-decoration:none;}
#payment{background:var(--gs-surface-2); border:1px solid var(--gs-rule); padding:var(--gs-space-3); margin-top:var(--gs-space-3);}
#payment ul.payment_methods{list-style:none; padding:0; margin:0 0 var(--gs-space-3); display:flex; flex-direction:column; gap:12px;}
#payment .payment_box{background:var(--gs-surface); border:1px solid var(--gs-rule); padding:14px; font-size:13.5px; color:var(--gs-ink-2);}
#place_order{
  width:100%; border:0; cursor:pointer; padding:16px 26px; border-radius:var(--gs-radius);
  background:var(--gs-gold); color:var(--gs-on-accent);
  font-weight:600; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
}
#place_order:hover{background:var(--gs-gold-lit);}

/* =========================================================================
   Block cart & checkout (WooCommerce Blocks)
   Recent WooCommerce ships block-based Cart and Checkout pages by default, so
   these are the pages most stores actually get. The blocks bring their own
   layout - which is good - and their own colours, which have to be re-pointed
   at the theme tokens.
   ========================================================================= */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout{margin-top:var(--gs-space-4); margin-bottom:var(--gs-space-6);}

.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-checkout__main h2,
.wp-block-woocommerce-cart h2{
  font-family:var(--gs-font-display); font-weight:400; letter-spacing:-.01em; color:var(--gs-ink);
}
.wc-block-components-checkout-step__title{
  font-family:var(--gs-font-display); font-weight:400; font-size:21px; color:var(--gs-ink);
}
.wc-block-components-checkout-step__description{color:var(--gs-ink-2);}

/* Column headers and row rules. */
.wc-block-cart-items__header{
  font-family:var(--gs-font-body); font-size:11px; font-weight:600;
  letter-spacing:.13em; text-transform:uppercase; color:var(--gs-ink-2);
  border-bottom:1px solid var(--gs-rule);
}
.wc-block-cart-items__row{border-bottom:1px solid var(--gs-rule);}
.wc-block-components-product-name{
  font-family:var(--gs-font-display); font-size:18px; font-weight:400; color:var(--gs-ink); text-decoration:none;
}
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description{color:var(--gs-ink-3); font-size:12.5px;}
.wc-block-components-product-price__value,
.wc-block-components-formatted-money-amount{
  font-family:var(--gs-font-mono); font-variant-numeric:tabular-nums; color:var(--gs-ink);
}

/* Totals panel reads as the card it is. */
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar,
.wc-block-cart__sidebar > *,
.wc-block-components-order-summary{background:transparent;}
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar{
  background:var(--gs-surface); border:1px solid var(--gs-rule); padding:var(--gs-space-3);
}
.wc-block-components-totals-item{font-size:14px; color:var(--gs-ink-2);}
.wc-block-components-totals-item__label{color:var(--gs-ink-2);}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:var(--gs-font-display); font-size:22px; color:var(--gs-ink);
}
.wc-block-components-totals-wrapper{border-top-color:var(--gs-rule);}

/* Buttons: blocks paint their own near-black / slate. */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button{
  background-color:var(--gs-gold) !important;
  color:var(--gs-on-accent) !important;
  border:0; border-radius:var(--gs-radius);
  font-family:var(--gs-font-body); font-weight:600; font-size:12.5px;
  letter-spacing:.12em; text-transform:uppercase; line-height:1; min-height:52px;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover{
  background-color:var(--gs-gold-lit) !important;
}
.wc-block-components-button.is-link{color:var(--gs-gold); text-underline-offset:3px;}

/* Fields. */
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=number],
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-cart .wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-select__container{
  background:var(--gs-surface); color:var(--gs-ink);
  border:1px solid var(--gs-rule-2); border-radius:var(--gs-radius);
}
.wc-block-components-text-input label,
.wc-block-components-select__label{color:var(--gs-ink-3);}
.wc-block-components-text-input.is-active label{color:var(--gs-ink-2);}

/* Quantity stepper. */
.wc-block-components-quantity-selector{
  border:1px solid var(--gs-rule-2); border-radius:var(--gs-radius); background:var(--gs-surface);
}
.wc-block-components-quantity-selector__input{
  font-family:var(--gs-font-mono); font-variant-numeric:tabular-nums; color:var(--gs-ink); background:transparent;
}
.wc-block-components-quantity-selector__button{color:var(--gs-ink-2); background:transparent;}

/* Panels, notices and the order summary accordion. */
.wc-block-components-panel__button{color:var(--gs-ink); font-weight:600;}
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info{
  border-radius:0; border-width:1px; border-left-width:3px;
  background-color:var(--gs-surface); border-color:var(--gs-rule);
  color:var(--gs-ink); font-size:14px;
}
.wc-block-components-notice-banner.is-error{border-left-color:var(--gs-bad);}
.wc-block-components-notice-banner.is-warning{border-left-color:var(--gs-warn);}
.wc-block-components-notice-banner.is-success{border-left-color:var(--gs-ok);}
/* The banner's own children carry the colour, so they have to be told too. */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content,
.wc-block-components-notice-banner p,
.wc-block-components-notice-banner a{color:var(--gs-ink);}
.wc-block-components-notice-banner.is-error svg{fill:var(--gs-bad);}
.wc-block-components-notice-banner.is-warning svg{fill:var(--gs-warn);}
.wc-block-components-notice-banner.is-success svg{fill:var(--gs-ok);}
.wc-block-components-notice-banner.is-info svg{fill:var(--gs-ink-2);}
.wc-block-components-radio-control__option{color:var(--gs-ink-2);}
.wc-block-checkout__terms{color:var(--gs-ink-3); font-size:12.5px;}

/* Mini cart drawer. */
.wc-block-mini-cart__drawer .wc-block-components-drawer{background:var(--gs-surface);}

@media (max-width:900px){
  .wc-block-cart__sidebar,.wc-block-checkout__sidebar{margin-top:var(--gs-space-3);}
}

/* ------------------------------------------------- age confirmation ----- */
/* Given weight rather than tucked away: it is the one thing on the checkout a
   customer is legally asserting, so it reads as a statement, not fine print. */
.gs-age-confirm,
.wc-block-components-checkout-step .wc-block-components-checkbox:has(#contact-gold-standard-age-confirmed),
.wp-block-woocommerce-checkout-order-note-block + * .wc-block-components-checkbox{
  margin-block:var(--gs-space-3);
}
.gs-age-confirm{
  background:var(--gs-surface); border:1px solid var(--gs-rule-2);
  border-left:3px solid var(--gs-gold); padding:16px 18px;
}
.gs-age-confirm label{
  display:flex; gap:12px; align-items:flex-start; cursor:pointer;
  font-size:14px; line-height:1.5; color:var(--gs-ink);
}
.gs-age-confirm input[type=checkbox]{
  width:18px; height:18px; margin:2px 0 0; flex:none; accent-color:var(--gs-gold);
}
/* The block checkout renders it through its own checkbox component. */
.wc-block-components-checkbox label{align-items:flex-start;}
.wc-block-components-checkbox .wc-block-components-checkbox__input{accent-color:var(--gs-gold);}
.wc-block-components-checkbox .wc-block-components-checkbox__label{color:var(--gs-ink); line-height:1.5;}

/* =========================================================================
   My account

   WooCommerce lays this screen out with floats and percentage widths
   (.woocommerce-MyAccount-navigation is float:left/width:30%, the content
   float:right/width:68%). Dropped into a grid those percentages resolve
   against the wrong tracks: the rail ended up in column two at 30% of it and
   the content in column one at 68% of 230px - a 156px column that squeezed
   every table, card and form field behind it. Core's float shell is undone
   first, then the layout is rebuilt.
   ========================================================================= */

/* 0. Undo core's float shell, and its clearfixes with it. A ::before/::after
   generated for clearing becomes a grid item in its own right: on the address
   screen the ::before took cell one and pushed Billing into column two, with
   Shipping wrapping onto the next row. Every container turned into a grid
   below has to have them removed. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{float:none; width:auto;}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce .col2-set::before,
.woocommerce-account .woocommerce .col2-set::after,
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after,
.woocommerce-account .woocommerce form::before,
.woocommerce-account .woocommerce form::after,
.woocommerce-account .woocommerce .form-row::before,
.woocommerce-account .woocommerce .form-row::after{content:none;}

/* 1. The shell. The rail only earns a column when it is actually on the page:
   logged out there is no navigation, just the login and register cards.
   Browsers without :has() stack the two, which is the right fallback. */
.woocommerce-account .woocommerce{display:block;}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){
  display:grid; grid-template-columns:232px minmax(0, 1fr);
  gap:var(--gs-space-5); align-items:start;
}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0;}

/* 2. The rail. */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius); padding:6px;
  position:sticky; top:calc(var(--gs-header-h, 78px) + 16px);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:2px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0; padding:0;}
.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:block; padding:11px 14px; font-size:14px; text-decoration:none;
  color:var(--gs-ink-2); border:0; border-left:2px solid transparent;
  border-radius:var(--gs-radius);
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{
  background:var(--gs-surface-2); color:var(--gs-ink);
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{
  background:var(--gs-surface-2); color:var(--gs-ink);
  border-left-color:var(--gs-gold); font-weight:600;
}
/* Logging out is not a peer of the other destinations. */
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{
  margin-top:6px; padding-top:6px; border-top:1px solid var(--gs-rule);
}

/* 3. Content column: headings, prose, the dashboard greeting. */
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3,
.woocommerce-account .woocommerce-MyAccount-content legend{
  font-family:var(--gs-font-display); font-size:21px; font-weight:500;
  margin:0 0 var(--gs-space-3); padding:0 0 12px;
  border-bottom:1px solid var(--gs-rule); width:100%;
}
.woocommerce-account .woocommerce-MyAccount-content > p{
  font-size:15px; line-height:1.7; color:var(--gs-ink-2); margin:0 0 var(--gs-space-3);
}
.woocommerce-account .woocommerce-MyAccount-content > p:last-child{margin-bottom:0;}
.woocommerce-account .woocommerce-MyAccount-content mark{
  background:none; color:var(--gs-ink); font-weight:600;
}
/* Gold reads as 3.4:1 on the light surface - fine for an accent, not for body
   links like the "Log out" in the dashboard greeting. Ink carries the text and
   gold moves to the underline, where contrast is not the deciding factor. */
.woocommerce-account .woocommerce-MyAccount-content a:not(.button){
  color:var(--gs-ink); text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:var(--gs-rule-2);
}
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover{
  text-decoration-color:var(--gs-gold);
}

/* 4. Logged out: login and register as a pair of cards, centred rather than
   stretched across a width meant for tables. */
.woocommerce-account:not(.logged-in) .woocommerce{max-width:900px; margin-inline:auto;}
.woocommerce-account .woocommerce .col2-set.u-columns{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(270px, 1fr));
  gap:var(--gs-space-4); width:auto; margin:0;
}
.woocommerce-account .woocommerce .col2-set .col-1,
.woocommerce-account .woocommerce .col2-set .col-2{width:auto; float:none; padding:0;}
.woocommerce-account .u-column1 > h2,
.woocommerce-account .u-column2 > h2{
  font-family:var(--gs-font-display); font-size:20px; font-weight:500; margin:0 0 14px;
}
.woocommerce-account .woocommerce form.woocommerce-form-login,
.woocommerce-account .woocommerce form.woocommerce-form-register{
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius); padding:var(--gs-space-4);
  margin:0; display:flex; flex-direction:column; gap:14px;
}
.woocommerce-account form.woocommerce-form-login .form-row,
.woocommerce-account form.woocommerce-form-register .form-row{padding:0; margin:0;}
.woocommerce-account .woocommerce-form-login__rememberme{
  display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--gs-ink-2);
}
.woocommerce-account .woocommerce-form-login__rememberme input{accent-color:var(--gs-gold); margin:0;}
.woocommerce-account .woocommerce-LostPassword{margin:0; font-size:13px;}
/* Lost password is a single field on an otherwise empty page; given the full
   content width it reads as a stray input rather than a form. Same card as
   login, narrow enough to look deliberate. */
.woocommerce-account form.lost_reset_password{
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius); padding:var(--gs-space-4);
  max-width:460px; margin:0 auto;
}
.woocommerce-account .woocommerce > p:first-of-type{
  max-width:460px; margin:0 auto var(--gs-space-3);
  font-size:14.5px; line-height:1.7; color:var(--gs-ink-2);
}
.woocommerce-account .woocommerce-privacy-policy-text p{
  font-size:12.5px; line-height:1.6; color:var(--gs-ink-3); margin:0;
}

/* 5. Forms inside the account. Core floats first/last at 47% and pads each
   row by 3px; these lay out on a grid instead. */
.woocommerce-account .woocommerce form .form-row{
  padding:0; margin:0; width:auto; float:none;
}
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields__field-wrapper,
.woocommerce-account form.lost_reset_password{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px var(--gs-space-3); align-items:end;
}
.woocommerce-account .woocommerce form .form-row-wide,
.woocommerce-account .woocommerce-EditAccountForm > fieldset,
.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type,
.woocommerce-account form.lost_reset_password > .form-row-first,
.woocommerce-account form.lost_reset_password > p{grid-column:1 / -1;}
.woocommerce-account .woocommerce-EditAccountForm > fieldset{
  border:1px solid var(--gs-rule); border-radius:var(--gs-radius);
  padding:var(--gs-space-3); margin:var(--gs-space-2) 0 0;
  display:grid; gap:16px;
}
/* Core's clearfix divs have no job in a grid and would each take a cell. */
.woocommerce-account .woocommerce form .clear{display:none;}
.woocommerce-account .woocommerce form .form-row label{
  font-size:12px; letter-spacing:.06em; color:var(--gs-ink-2);
}
.woocommerce-account .woocommerce form .form-row .button,
.woocommerce-account .woocommerce form p.form-row > button.button{justify-self:start;}

/* 6. Addresses: two cards rather than two floated halves. */
.woocommerce-account .woocommerce-Addresses{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:var(--gs-space-3); margin:0;
}
.woocommerce-account .woocommerce-Address{
  width:auto; float:none;
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius); padding:var(--gs-space-3);
}
.woocommerce-account .woocommerce-Address-title{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin:0 0 12px; padding:0 0 10px; border-bottom:1px solid var(--gs-rule);
}
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3{
  font-family:var(--gs-font-display); font-size:17px; font-weight:500;
  margin:0; padding:0; border:0;
}
.woocommerce-account .woocommerce-Address-title .edit{
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gs-ink-3); text-decoration:none; border-bottom:1px solid currentColor;
}
.woocommerce-account .woocommerce-Address-title .edit:hover{color:var(--gs-ink);}
.woocommerce-account .woocommerce-Address address{
  font-style:normal; font-size:14.5px; line-height:1.75; color:var(--gs-ink-2);
}

/* 7. Tables: orders, downloads and the order detail. */
.woocommerce-account table.shop_table{
  width:100%; border-collapse:collapse; margin:0;
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius);
}
.woocommerce-account table.shop_table thead th{
  font-family:var(--gs-font-body); font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gs-ink-3);
  padding:13px 16px; text-align:left; border-bottom:1px solid var(--gs-rule);
}
.woocommerce-account table.shop_table td{
  padding:15px 16px; font-size:14.5px; border-bottom:1px solid var(--gs-rule);
  vertical-align:middle;
}
/* The order number is a <th> inside <tbody>, not a <td>: it is a row heading,
   so it has to be given the body-cell treatment explicitly or it keeps the
   small uppercase heading styling and an unstyled gold link. */
.woocommerce-account table.shop_table tbody th{
  padding:15px 16px; font-size:14.5px; font-weight:400; text-align:left;
  vertical-align:middle; border-bottom:1px solid var(--gs-rule);
}
.woocommerce-account table.shop_table tbody tr:last-child td,
.woocommerce-account table.shop_table tbody tr:last-child th{border-bottom:0;}
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-number a{
  font-family:var(--gs-font-mono); font-size:13px; color:var(--gs-ink);
  text-decoration:none; border-bottom:1px solid var(--gs-rule-2);
}
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions{
  text-align:right; white-space:nowrap;
}
.woocommerce-account table.shop_table .button{
  padding:8px 15px; font-size:10.5px; letter-spacing:.1em;
}
.woocommerce-account .woocommerce-orders-table__cell-order-status{
  font-size:12px; letter-spacing:.06em; color:var(--gs-ink-2);
}

/* 8. Order detail, and the notice shown when there is nothing here yet. */
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details{margin:0 0 var(--gs-space-4);}
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title{
  font-family:var(--gs-font-display); font-size:19px; font-weight:500;
  margin:0 0 var(--gs-space-2);
}
/* The address on an order is a bare <address> rather than a .woocommerce-Address
   card, so it needs the card treatment of its own. */
.woocommerce-account .woocommerce-customer-details address{
  font-style:normal; font-size:14.5px; line-height:1.75; color:var(--gs-ink-2);
  background:var(--gs-surface); border:1px solid var(--gs-rule);
  border-radius:var(--gs-radius); padding:var(--gs-space-3); margin:0;
}
.woocommerce-account .woocommerce-customer-details address p{margin:10px 0 0; font-size:14px;}
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error{margin:0 0 var(--gs-space-3);}
/* Already inside a constrained column - the wrapper's own max-width and gutter
   would inset the notice from the cards it sits above. */
.woocommerce-account .woocommerce-notices-wrapper{max-width:none; padding:0;}
.woocommerce-account .woocommerce-notices-wrapper:empty{display:none;}
.woocommerce-account .woocommerce-Message--info{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}

/* Cart, checkout and account run through the theme's page template, so the
   reading-width wrapper has to stand down for them. */
.woocommerce-cart .gs-prose,
.woocommerce-checkout .gs-prose,
.woocommerce-account .gs-prose,
.woocommerce-order-received .gs-prose{max-width:none;}
.woocommerce-cart .gs-page,
.woocommerce-checkout .gs-page,
.woocommerce-account .gs-page{padding-top:var(--gs-space-5);}

/* ---------------------------------------------------------- breakpoints -- */
@media (max-width:1024px){
  ul.products{--gs-cols:2;}
  .gs-shop{grid-template-columns:1fr;}
  .gs-sidebar{display:none;}
  .gs-sidebar.is-open{display:flex;}
}
@media (max-width:900px){
  .gs-single .product,form.checkout,.woocommerce-checkout .col2-set,
  .woocommerce-cart .woocommerce{grid-template-columns:1fr;}
  .cart_totals,.woocommerce-checkout-review-order{position:static;}
}
@media (max-width:640px){
  ul.products{--gs-cols:2;}
  ul.products li.product{padding:16px;}
  ul.products li.product .woocommerce-loop-product__title{font-size:17px;}
  table.shop_table img{width:48px;}
}


/* My account on small screens. Kept at the end of the file for the same reason
   as the toolbar below: the account section's base rules are defined later
   than this breakpoint block, so a media query placed up there loses to them
   on source order. */
@media (max-width:900px){
  /* One column, and the rail becomes a horizontal strip above the content
     rather than a sticky column with nothing beside it. */
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){
    grid-template-columns:minmax(0, 1fr); gap:var(--gs-space-3);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation{position:static;}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{
    flex-direction:row; flex-wrap:wrap; gap:4px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation a{
    padding:9px 13px; font-size:13.5px;
    border-left:0; border-bottom:2px solid transparent;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation .is-active a{
    border-left-color:transparent; border-bottom-color:var(--gs-gold);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{
    margin-top:0; padding-top:0; border-top:0;
    margin-left:auto;
  }
}
@media (max-width:640px){
  /* Single column forms: two 47% halves on a phone leave neither readable. */
  .woocommerce-account .woocommerce-EditAccountForm,
  .woocommerce-account .woocommerce-address-fields__field-wrapper,
  .woocommerce-account form.lost_reset_password{grid-template-columns:minmax(0, 1fr);}

  /* Core turns the order tables into stacked rows at this width and labels
     each cell from its data-title. Give that shape the theme's borders, and
     drop the now-redundant header row. */
  .woocommerce-account table.shop_table_responsive thead{display:none;}
  .woocommerce-account table.shop_table_responsive tbody tr{
    display:block; padding:14px 16px; border-bottom:1px solid var(--gs-rule);
  }
  .woocommerce-account table.shop_table_responsive tbody tr:last-child{border-bottom:0;}
  /* Core hides the row's <th> at this width, which on the orders table is the
     order number - leaving stacked rows with no way to tell which order is
     which. It becomes the row's heading instead. */
  .woocommerce-account table.shop_table_responsive tbody th{
    display:block; padding:0 0 10px; margin:0 0 6px; border:0;
    border-bottom:1px solid var(--gs-rule); text-align:left;
  }
  .woocommerce-account table.shop_table_responsive tbody td{
    display:flex; justify-content:space-between; align-items:center; gap:16px;
    padding:5px 0; border:0; text-align:right;
  }
  .woocommerce-account table.shop_table_responsive tbody td::before{
    content:attr(data-title); flex:none;
    font-size:11px; letter-spacing:.12em; text-transform:uppercase;
    color:var(--gs-ink-3);
  }
  .woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions{
    justify-content:flex-end; padding-top:10px;
  }
}
/* Shop toolbar on small screens. Kept at the end of the file: the base
   control widths are defined later than the toolbar section, so a media query
   placed up there loses to them on source order. */
@media (max-width:640px){
  /* Stack the two controls and let both fill the width, so they read as a pair
     rather than two differently sized boxes. */
  .gs-toolbar-controls{width:100%; flex-direction:column; align-items:stretch;}
  .gs-cat-filter{width:100%;}
  .woocommerce .woocommerce-ordering,
  .woocommerce-page .woocommerce-ordering{width:100%;}
  .gs-cat-filter select,
  .woocommerce .woocommerce-ordering select,
  .woocommerce-page .woocommerce-ordering select{width:100%; min-width:0;}
