/*
Theme Name: Winner Sportswear
Theme URI: https://winnersportswear.ca
Author: Winner Sportswear Canada
Description: Storefront theme for Winner Sportswear Canada — matching sets, sculpting leggings and warm layers. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 7.1
WC requires at least: 8.0
WC tested up to: 11.1
License: GPLv2 or later
Text Domain: winner
*/
:root {
  --ink: #111111;
  --ink-soft: #6b665f;
  --paper: #f7f5f1;
  --stone: #ebe7e0;
  --line: #e2ddd5;
  --accent: #b8572f;      /* adjust to match the original brand accent */
  --accent-ink: #ffffff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 80rem;
}
*, *::before, *::after { box-sizing: border-box; border-color: var(--line); }
html { height: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100%; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { list-style: none; padding: 0; }
.font-display, .display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.eyebrow { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.accent { color: var(--accent); }
.soft { color: var(--ink-soft); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.6rem; font-size: .85rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border: 1px solid currentColor; }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-block { width: 100%; padding: 1rem 1.5rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); }

/* Announcement marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: .5rem 0; }
.marquee__track { display: flex; width: max-content; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee__track span { margin: 0 2rem; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.marquee__track span::after { content: "✦"; color: var(--accent); margin-left: 2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.header__side { flex: 1; display: flex; align-items: center; gap: 1.5rem; }
.header__side--right { justify-content: flex-end; gap: 1rem; }
.nav { display: none; gap: 1.5rem; }
.nav a { font-size: .82rem; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.logo img { height: 2rem; width: auto; }
.icon { transition: color .2s; display: inline-flex; position: relative; }
.icon:hover { color: var(--accent); }
.icon--search { display: none; }
.bag-count { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .6rem; font-weight: 700; display: grid; place-items: center; }
.bag-count[data-n="0"] { display: none; }
@media (min-width: 640px) { .icon--search { display: inline-flex; } }
@media (min-width: 768px) { .nav { display: flex; } .menu-btn { display: none; } .logo img { height: 2.25rem; } }

/* Drawers (menu + bag) */
.layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.layer.open { pointer-events: auto; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.4); opacity: 0; transition: opacity .3s; }
.layer.open .layer__backdrop { opacity: 1; }
.drawer { position: absolute; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--paper); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; transition: transform .3s; }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); max-width: 22rem; }
.layer.open .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.125rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.25rem; }
.drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 0 1.5rem; text-align: center; }
.menu-links a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.menu-links a:hover { color: var(--accent); }
.ship-note { font-size: .75rem; color: var(--ink-soft); margin-bottom: .75rem; }
.ship-bar { height: 3px; background: var(--line); margin-bottom: 1rem; }
.ship-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.line { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 4/5; background: var(--stone); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__title { font-size: .875rem; font-weight: 500; }
.line__opts { font-size: .75rem; color: var(--ink-soft); margin-top: .15rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: .75rem; font-size: .8rem; }
.qty button { width: 1.9rem; height: 1.9rem; }
.qty span { min-width: 1.5rem; text-align: center; }
.line__right { text-align: right; font-size: .875rem; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.remove { font-size: .7rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.subtotal { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: .25rem; }
.fine { font-size: .75rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* Product grid + cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 2.5rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid > * { min-width: 0; }
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card { display: block; }
.card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.card:hover .card__media img { transform: scale(1.04); }
.badges { position: absolute; top: 0; left: 0; padding: .75rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.badge { background: var(--ink); color: var(--paper); padding: .25rem .5rem; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.badge--sale { background: var(--accent); color: var(--accent-ink); }
.card__info { margin-top: .75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.card__title { font-size: .875rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__info > div:first-child { min-width: 0; }
.dots { margin-top: .375rem; display: flex; align-items: center; gap: .25rem; }
.dot { width: .625rem; height: .625rem; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.dots small { font-size: .65rem; color: var(--ink-soft); }
.price { flex-shrink: 0; text-align: right; font-size: .875rem; }
.price .was { margin-left: .375rem; color: var(--ink-soft); text-decoration: line-through; }
.price .now-sale { color: var(--accent); }

/* Collection page */
.page { padding-top: 3rem; padding-bottom: 3rem; }
.coll-head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.coll-head h1 { margin-top: .5rem; font-size: 2.25rem; }
.coll-head p { margin-top: .75rem; font-size: .875rem; color: var(--ink-soft); max-width: 36rem; }
@media (min-width: 768px) { .coll-head h1 { font-size: 3.75rem; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -1rem 0 2rem; flex-wrap: wrap; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); padding: .45rem .9rem; font-size: .78rem; font-weight: 500; transition: border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select { border: 1px solid var(--line); background: transparent; padding: .5rem .75rem; font: inherit; font-size: .8rem; }
.empty-msg { padding: 4rem 0; text-align: center; color: var(--ink-soft); }

/* Product page */
.crumbs { margin-bottom: 1.5rem; font-size: .75rem; color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink); }
.pdp { display: grid; gap: 2.5rem; }
.gallery { display: grid; gap: .75rem; align-self: start; }
.gallery .shot { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.gallery .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .shot:first-child { grid-column: span 2; } }
@media (min-width: 1024px) { .pdp { grid-template-columns: 1fr 1fr; gap: 4rem; } .gallery { position: sticky; top: 5rem; } .pdp__info { padding: 1rem 0; } }
.pdp h1 { font-size: 1.875rem; line-height: 1.15; }
@media (min-width: 768px) { .pdp h1 { font-size: 3rem; } }
.pdp__price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: .75rem; font-size: 1.5rem; font-weight: 500; }
.pdp__price .was { font-size: 1rem; color: var(--ink-soft); text-decoration: line-through; font-weight: 400; }
.opt { margin-top: 1.5rem; }
.opt__head { display: flex; justify-content: space-between; align-items: center; }
.opt__head .eyebrow { color: var(--ink-soft); }
.opt__head .val { font-size: .875rem; }
.opt__vals { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.sw { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); transition: transform .15s; }
.sw.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.sw:hover { transform: scale(1.06); }
.sz { min-width: 2.75rem; border: 1px solid var(--line); padding: .5rem .75rem; font-size: .875rem; transition: border-color .2s; }
.sz:hover { border-color: var(--ink); }
.sz.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sz.na { color: var(--ink-soft); text-decoration: line-through; }
.link-btn { font-size: .75rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.pdp__buy { margin-top: 2rem; }
.pdp__msg { font-size: .8rem; color: var(--accent); min-height: 1.2em; margin-top: .6rem; }
.pdp__desc { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.7; color: var(--ink-soft); }
.specs { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs > div { padding: 1rem 0; display: flex; flex-direction: column; gap: .25rem; }
.specs > div + div { border-top: 1px solid var(--line); }
.specs dt { font-size: .875rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.specs dd { font-size: .875rem; color: var(--ink-soft); }
.related { margin-top: 6rem; }
.related h2 { margin-bottom: 2rem; font-size: 1.5rem; }
@media (min-width: 768px) { .related h2 { font-size: 2.25rem; } }

/* Modal (size guide) */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 1rem; }
.modal.open { display: grid; }
.modal__bg { position: absolute; inset: 0; background: rgba(17,17,17,.5); }
.modal__box { position: relative; background: var(--paper); width: 100%; max-width: 34rem; padding: 2rem; max-height: 90vh; overflow: auto; }
.modal__x { position: absolute; top: 1rem; right: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 1rem; }
.table th, .table td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: center; }
.table th { font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Home */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__img { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img img + img { display: none; }
@media (min-width: 768px) { .hero__img { grid-template-columns: 1fr 1fr 1fr; } .hero__img img + img { display: block; } }
.hero--custom::after { background: linear-gradient(to top, rgba(17,17,17,.8), rgba(17,17,17,.35) 70%, rgba(17,17,17,.2)); }
.hero__img--custom { grid-template-columns: 1fr !important; }
.hero__img--custom img { display: block !important; object-position: var(--focus, center); }
.hero__img--custom .hero__mob { display: none !important; }
@media (max-width: 767px) {
  .hero__img--custom.has-mob .hero__desk { display: none !important; }
  .hero__img--custom.has-mob .hero__mob { display: block !important; }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.75), rgba(17,17,17,.05) 60%); }
.hero__copy { position: relative; z-index: 1; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 9rem); margin-top: .75rem; }
.hero p.lead { margin-top: 1rem; max-width: 28rem; font-size: .95rem; color: rgba(247,245,241,.8); }
.hero__ctas { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.section { padding-top: 5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.75rem; margin-top: .5rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }
.section-head a { font-size: .8rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.section-head a:hover { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--stone); color: var(--paper); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease-out; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.6), transparent 55%); }
.tile span { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.tile span small { display: block; font-family: var(--body); font-weight: 500; font-size: .65rem; letter-spacing: .2em; margin-top: .4rem; opacity: .85; }
.perks { margin-top: 5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perks__row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .perks__row { grid-template-columns: repeat(3, 1fr); } .perks__row > div + div { border-left: 1px solid var(--line); } }
.perks__row > div { padding: 2rem 1.5rem; text-align: center; }
.perks__row > div + div { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .perks__row > div + div { border-top: 0; } }
.perks strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.perks span { font-size: .8rem; color: var(--ink-soft); }
.banner { margin-top: 5rem; display: grid; background: var(--ink); color: var(--paper); }
@media (min-width: 768px) { .banner { grid-template-columns: 1fr 1fr; } }
.banner__img { aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.banner__img img { width: 100%; height: 100%; object-fit: cover; }
.banner__copy { padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .banner__copy { padding: 4rem; } }
.banner__copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-top: .75rem; }
.banner__copy p { margin-top: 1rem; color: rgba(247,245,241,.7); max-width: 26rem; font-size: .9rem; }
.banner__copy .btn { margin-top: 2rem; align-self: flex-start; }

/* Search */
.search-box { display: flex; border-bottom: 2px solid var(--ink); margin: 1rem 0 2.5rem; }
.search-box input { flex: 1; border: 0; background: transparent; padding: 1rem 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.5rem); outline: none; color: var(--ink); min-width: 0; }

/* Footer */
.footer { margin-top: 6rem; background: var(--ink); color: var(--paper); }
.footer__top { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__top .container { padding-top: 4rem; padding-bottom: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer__top .container { grid-template-columns: 1fr 1fr; align-items: end; } }
.footer h2 { font-size: 2.25rem; margin-top: .75rem; }
@media (min-width: 768px) { .footer h2 { font-size: 3.75rem; } }
.footer__top p.sub { margin-top: 1rem; max-width: 28rem; font-size: .875rem; color: rgba(247,245,241,.6); }
.join { display: flex; width: 100%; max-width: 28rem; border: 1px solid rgba(255,255,255,.2); }
.join input { flex: 1; min-width: 0; background: transparent; border: 0; padding: .875rem 1rem; font: inherit; font-size: .875rem; color: var(--paper); outline: none; }
.join input::placeholder { color: rgba(247,245,241,.4); }
.join button { background: var(--accent); color: var(--accent-ink); padding: .875rem 1.5rem; font-size: .875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.join-ok { font-size: .875rem; color: rgba(247,245,241,.8); }
.footer__links { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer h3 { color: rgba(247,245,241,.5); }
.footer ul { margin-top: 1rem; display: grid; gap: .625rem; font-size: .875rem; color: rgba(247,245,241,.8); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; } }
.footer__bottom .display { font-size: 1.5rem; }
.footer__bottom p { font-size: .75rem; color: rgba(247,245,241,.4); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; font-size: .8rem; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============ WordPress / WooCommerce ============ */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.custom-logo { height: 2rem; width: auto; }
@media (min-width: 768px) { .custom-logo { height: 2.25rem; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 55; background: var(--paper); display: none; padding: 5rem 1rem 2rem; }
.search-overlay.open { display: block; }
.search-overlay .modal__x { top: 1.25rem; right: 1.25rem; }

/* Prices printed by WooCommerce */
.price, .price .amount, .pdp__price .amount { color: inherit; }
.price del, .pdp__price del { color: var(--ink-soft); font-weight: 400; margin-left: .375rem; order: 2; }
.price ins, .pdp__price ins { text-decoration: none; color: var(--accent); }
.woocommerce div.product .pdp__price .price, .pdp__price .price { color: var(--ink); font-size: 1.5rem; font-weight: 500; margin: 0; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.pdp__price del { font-size: 1rem; }
.woocommerce-Price-currencySymbol { margin-right: 0; }
.badge--out { background: var(--stone); color: var(--ink-soft); }

/* Single product: variations form + swatches */
.pdp form.cart { margin-top: 1.5rem; }
.pdp table.variations { width: 100%; border: 0; margin: 0 !important; border-collapse: collapse; }
.pdp table.variations tr { display: block; margin-bottom: 1.5rem; }
.pdp table.variations th, .pdp table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; line-height: 1.4; }
.pdp table.variations th.label { margin-bottom: .75rem; }
.pdp table.variations th.label label { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pdp table.variations th.label .val { font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); }
.pdp table.variations select.has-swatches { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdp table.variations select { border: 1px solid var(--line); background: transparent; padding: .6rem .75rem; font: inherit; min-width: 12rem; }
.pdp .reset_variations { display: inline-block; margin-top: .6rem; font-size: .75rem; color: var(--ink-soft); text-decoration: underline; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.sw[disabled], .sz[disabled] { opacity: .35; cursor: not-allowed; }
.sz[disabled] { text-decoration: line-through; }
.single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-availability { font-size: .8rem; color: var(--ink-soft); margin-bottom: .75rem; }
.woocommerce-variation-availability .stock.out-of-stock { color: var(--accent); }
.woocommerce div.product .pdp .stock, .pdp .stock { font-size: .8rem; color: var(--ink-soft); }
.woocommerce div.product .pdp .stock.out-of-stock { color: var(--accent); }
.pdp .woocommerce-variation-add-to-cart, .pdp form.cart:not(.variations_form) { display: flex; gap: .5rem; align-items: stretch; }
.pdp .quantity .qty { width: 4rem; height: 100%; min-height: 3.2rem; border: 1px solid var(--line); background: transparent; text-align: center; font: inherit; }
.pdp .single_add_to_cart_button { flex: 1; background: var(--ink) !important; color: var(--paper) !important; border: 0; border-radius: 0 !important; padding: 1rem 1.5rem !important; font-size: .85rem !important; font-weight: 500 !important; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
.pdp .single_add_to_cart_button:hover { background: var(--accent) !important; }
.pdp .single_add_to_cart_button.disabled, .pdp .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.pdp .single_add_to_cart_button.loading { opacity: .6; }
.pdp__desc > *:not(:last-child) { margin-bottom: .75rem; }
.pdp__desc ul { list-style: disc; padding-left: 1.2rem; }

/* Mini cart (inside the bag drawer) */
.widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.woocommerce-mini-cart { flex: 1; overflow-y: auto; padding: 0 1.25rem !important; margin: 0 !important; list-style: none; }
.woocommerce-mini-cart-item { position: relative; display: block; min-height: 7.5rem; padding: 1.25rem 2rem 1.25rem 6rem !important; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 500; }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 1.25rem; width: 5rem !important; height: 6.25rem !important; object-fit: cover; background: var(--stone); margin: 0 !important; float: none !important; }
.woocommerce-mini-cart-item dl.variation { margin: .25rem 0 0; font-size: .75rem; font-weight: 400; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0 .35rem; }
.woocommerce-mini-cart-item dl.variation dt, .woocommerce-mini-cart-item dl.variation dd { margin: 0; float: none; }
.woocommerce-mini-cart-item dl.variation dd p { margin: 0; }
.woocommerce-mini-cart-item .quantity { display: block; margin-top: .6rem; font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 1.1rem; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; font-size: 1.1rem; color: var(--ink-soft) !important; background: none !important; }
.woocommerce-mini-cart-item a.remove:hover { color: var(--accent) !important; }
.woocommerce-mini-cart__total, .woocommerce-mini-cart__buttons, .bag-ship { margin: 0; padding: 0 1.25rem; }
.bag-ship { padding-top: 1rem; border-top: 1px solid var(--line); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-weight: 500; padding-top: .25rem; padding-bottom: .25rem; }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-top: .75rem; padding-bottom: 1.25rem; }
.drawer .woocommerce-mini-cart__buttons a.button { display: flex; align-items: center; justify-content: center; padding: .9rem 1rem !important; border-radius: 0 !important; font-size: .8rem !important; font-weight: 500 !important; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--ink) !important; background: transparent !important; color: var(--ink) !important; }
.drawer .woocommerce-mini-cart__buttons a.button.checkout { background: var(--ink) !important; color: var(--paper) !important; }
.drawer .woocommerce-mini-cart__buttons a.button:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
.woocommerce-mini-cart__empty-message { display: none; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent) !important; background: var(--stone) !important; color: var(--ink) !important; font-size: .9rem; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }
.woocommerce-message .button, .woocommerce-info .button { background: var(--ink) !important; color: var(--paper) !important; border-radius: 0 !important; }

/* Generic pages (cart, checkout, account) */
.page-title { font-size: 2.25rem; margin: .5rem 0 2rem; }
@media (min-width: 768px) { .page-title { font-size: 3.75rem; } }
.entry-content { line-height: 1.7; }
.entry-content > * + * { margin-top: 1rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) {
  background: var(--ink) !important; color: var(--paper) !important; border-radius: 0 !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--accent) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line); background: #fff; padding: .7rem .8rem; border-radius: 0; }
.woocommerce table.shop_table { border-radius: 0; }

/* Pagination */
.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex !important; gap: .35rem; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); font-size: .85rem; }
.woocommerce-pagination .page-numbers .current { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink); }
.search-inline { display: flex; border-bottom: 2px solid var(--ink); margin-top: 1.5rem; max-width: 36rem; }
.search-inline input[type=search] { flex: 1; border: 0; background: transparent; padding: .75rem 0; font: inherit; font-size: 1.1rem; outline: none; min-width: 0; }
.search-inline button { font-size: .8rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

/* ============ Phones ============ */
.sticky-buy, .gallery-count { display: none; }
@media (max-width: 767px) {
  .page { padding-top: 1.5rem; padding-bottom: 2rem; }
  .section { padding-top: 3.5rem; }
  .section-head { margin-bottom: 1.25rem; }
  .coll-head { margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
  .grid { column-gap: .75rem; row-gap: 1.75rem; }
  .card__info { flex-direction: column; gap: .25rem; }
  .price { text-align: left; }
  .hero { min-height: 70vh; }
  .hero__copy { padding-bottom: 2.5rem; }
  .perks { margin-top: 3.5rem; }
  .perks__row > div { padding: 1.25rem 1rem; }
  .banner { margin-top: 3.5rem; margin-left: -1rem; margin-right: -1rem; }
  .banner__copy { padding: 2.5rem 1.5rem; }
  .footer { margin-top: 4rem; }
  .footer__top .container { padding-top: 3rem; padding-bottom: 3rem; }
  .related { margin-top: 3.5rem; }

  /* Product photos: swipe sideways instead of scrolling past every photo */
  .pdp { gap: 1.5rem; }
  .gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: 0 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .shot { flex: 0 0 86%; scroll-snap-align: center; }
  .gallery .shot:only-child { flex-basis: 100%; }
  .gallery-count { display: block; text-align: center; font-size: .72rem; color: var(--ink-soft); margin-top: -.9rem; letter-spacing: .1em; }
  .pdp h1 { font-size: 1.75rem; }

  /* Bigger tap targets */
  .sw { width: 2.5rem; height: 2.5rem; }
  .sz { min-width: 3rem; min-height: 2.75rem; }
  .nav a, .footer ul a, .footer ul button { padding: .2rem 0; display: inline-block; }
  .woocommerce-mini-cart-item a.remove { width: 2.25rem; height: 2.25rem; line-height: 2.25rem; right: -.4rem; top: .9rem; }

  /* 16px form text stops iPhones zooming in when a field is tapped */
  input[type=email], input[type=text], input[type=search], input[type=number], input[type=tel], input[type=password], select, textarea, .qty, .join input { font-size: 16px !important; }
  .search-box input { font-size: 1.6rem !important; }

  /* Add to cart bar that stays at the bottom of product pages */
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
  .sticky-buy.show { transform: none; }
  .sticky-buy__info { min-width: 0; flex: 1; }
  .sticky-buy__name { font-size: .8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy__price { font-size: .85rem; }
  .sticky-buy__price del { display: none; }
  .sticky-buy .btn { padding: .85rem 1.2rem; flex-shrink: 0; }
  body.has-sticky-buy .footer { padding-bottom: 4.5rem; }
}
