/*
Theme Name: Say It So
Theme URI: https://sayitsotee.com
Author: Say It So
Description: One tee, the names beside it. Pick a line, open the tee. Built for WooCommerce.
Version: 1.5.3
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: sayitso
*/

/* Layout: home is one fixed shirt with the names beside it (below it on phones); product pages are calm and wide.
   Capitals in Helvetica, running text in Space Grotesk, the handwritten logo is the only hand-drawn element.
   Single light look by choice; every colour set explicitly. */
:root {
  --paper: #ffffff;      /* white page */
  --stage: #f4f2ee;      /* faint warm grey behind the shirt, so the vintage white tee reads */
  --ink: #141414;
  --muted: #b5afa4;      /* names not in focus */
  --soft: #6e6a62;
  --rule: #ddd6c9;
  --red: #d7261e;        /* embroidery red, used sparingly */
  --font: "League Spartan", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* titles and capitals, as on Mur Mur */
  --text: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;    /* running text, light */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-weight: 300; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* everything set in capitals uses Helvetica */
.bag, .phrase, .now, .demo-note, .site-footer nav, .woocommerce-breadcrumb, .page-wrap h1, .page-wrap h2,
.wc-wrap .page-title, .wc-wrap > h1, .single-product .summary .product_title, .variations th label, .details summary,
.size-table th, .sis-sizes button, .single_add_to_cart_button, .wc-wrap .button, .wc-block-components-button,
ul.products .woocommerce-loop-product__title { font-family: var(--font) !important; }

/* ---------- header: logo centred, bag on the right ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.logo img { height: 30px; width: auto; }
.bag { position: absolute; right: 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.bag:hover { color: var(--red); }
.bag-count { color: var(--red); }

/* home: the header floats over the shirt, no bar */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border: 0; }

/* ---------- home: one shirt, the names ---------- */
.stage { display: grid; }
.shirt-wrap {
  position: sticky; top: 0; z-index: 5; height: 62svh; min-height: 340px;
  background: var(--stage); display: flex; flex-direction: column; overflow: hidden;
}
.admin-bar .shirt-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .shirt-wrap { top: 46px; } }
.shirt { flex: 1; min-height: 0; display: block; padding-top: 64px; transition: opacity .15s ease; }
.shirt img, .shirt svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.shirt img.photo { object-fit: cover; object-position: 60% 40%; }
.shirt:has(img.photo) { padding-top: 0; }
.shirt.swap { opacity: 0; }
.now { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 16px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--soft); }
.now b { color: var(--ink); font-weight: 700; }

.index { padding: 28px 16px 40svh; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.lines a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; color: var(--muted); transition: color .2s ease; }
.lines .phrase { font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 8.5vw, 64px); line-height: 1.05; letter-spacing: -.02em; min-width: 0; overflow-wrap: anywhere; }
.lines .price { font-size: 13px; white-space: nowrap; }
.lines a[aria-current="true"] { color: var(--ink); }
.lines a[aria-current="true"] .price { color: var(--red); }
.demo-note { margin-top: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); }

/* ---------- footer (About, Contact, legal live here) ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { max-width: 1240px; margin: 0 auto; padding: 28px 16px 40px; display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.site-footer nav a:hover { color: var(--red); }
.site-footer .small { color: var(--soft); font-size: 12px; margin: 0; }

/* ---------- pages ---------- */
.page-wrap { max-width: 640px; margin: 0 auto; padding: 48px 16px 64px; }
.page-wrap h1, .wc-wrap .page-title, .wc-wrap > h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.05; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 28px; }
.page-wrap h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: 32px 0 8px; }
.wc-wrap { max-width: 1240px; margin: 0 auto; padding: 32px 16px 64px; }
.woocommerce-breadcrumb { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); margin-bottom: 18px; }
.woocommerce-breadcrumb a:hover { color: var(--red); }
.woocommerce-result-count, .woocommerce-ordering { display: none; }

/* shop page grid */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
ul.products li.product img { background: var(--stage); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
ul.products .woocommerce-loop-product__title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 10px 0 2px; }
ul.products .price { color: var(--red); font-size: 13px; }
ul.products li.product .button, ul.products li.product .added_to_cart { display: none; }

/* ---------- product page ---------- */
.single-product div.product { display: grid; gap: 28px; }
.single-product .woocommerce-product-gallery { background: var(--stage); position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__trigger { display: none; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; display: flex; gap: 6px; padding: 6px; margin: 0; background: var(--paper); }
.woocommerce-product-gallery .flex-control-thumbs li { width: 64px; cursor: pointer; opacity: .55; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
.single-product .summary .product_title { font-size: clamp(32px, 7vw, 56px); line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 12px; }
.single-product .summary .price { color: var(--red); font-size: 16px; margin: 0 0 22px; }
.single-product .summary .price ins { text-decoration: none; }
.variations { border: 0; width: 100%; margin: 0; border-collapse: collapse; }
.variations th, .variations td { display: block; text-align: left; padding: 0; }
.variations th label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 400; color: var(--soft); }
.variations td { padding: 8px 0 14px; }
.variations select.sis-hidden { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.sis-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.sis-sizes button { font-size: 12px; height: 46px; cursor: pointer; background: transparent; color: var(--ink); border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sis-sizes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sis-sizes button:disabled { color: var(--rule); text-decoration: line-through; cursor: default; }
.reset_variations { font-size: 11px; color: var(--soft); }
.quantity { display: none !important; }
.single_add_to_cart_button, .wc-wrap .button {
  display: block; width: 100%; padding: 17px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-align: center;
}
.single_add_to_cart_button:hover:not(.disabled), .wc-wrap .button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.single_add_to_cart_button.disabled { opacity: .35; cursor: not-allowed; }
.product_meta, .woocommerce-tabs, .related.products { display: none; }

.details { margin-top: 28px; border-top: 1px solid var(--rule); }
.details details { border-bottom: 1px solid var(--rule); }
.details summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; }
.details details[open] summary::after { content: "\2212"; }
.details .body { padding: 0 0 16px; }
.details ul { margin: 0; padding-left: 16px; }
.size-table { overflow-x: auto; }
.size-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.size-table th { font-weight: 400; color: var(--soft); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.size-note { color: var(--soft); font-size: 12px; margin: 10px 0 0; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--rule); }
.woocommerce-error { border-color: var(--red); }
.woocommerce-message .button { display: inline-block; width: auto; padding: 10px 14px; margin-right: 10px; }

.wc-block-cart, .wc-block-checkout, .wc-block-components-text-input input { font-family: var(--text) !important; }
.wc-block-components-button:not(.is-link) { border-radius: 0 !important; background: var(--ink) !important; color: var(--paper) !important; text-transform: uppercase; letter-spacing: .14em; font-size: 12px !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--red) !important; }

@media (min-width: 900px) {
  .stage { grid-template-columns: 1fr 1fr; }
  .shirt-wrap { height: 100vh; }
  .admin-bar .shirt-wrap { height: calc(100vh - 32px); }
  .index { padding: 38vh 48px 42vh; }
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .single-product div.product { grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
  .single-product div.product .summary { position: sticky; top: 100px; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; padding-inline: 48px; }
  .bag { right: 28px; }
}
@media (prefers-reduced-motion: reduce) { .shirt, .lines a { transition: none; } }
