/*
Theme Name: Drip Swenk
Theme URI: https://dripswenk.co.za
Description: Store theme for Drip Swenk. Lean classic theme for WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dripswenk
WC requires at least: 8.0
*/

/* ---------- Base ---------- */
:root {
	--ink: #000;
	--paper: #fff;
	--muted: #6b6b6b;
	--line: #e6e6e6;
	--soft: #f2f0ec;
	--display: "Chango", "Space Grotesk", system-ui, sans-serif;
	--body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 85rem;
	--pad: clamp(1rem, 3vw, 1.5rem);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--bar: 2rem;     /* marquee height */
	--nav: 4rem;     /* header height */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #000; color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn, .woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .8rem 1.6rem; border: 2px solid #000; border-radius: 0;
	background: #000; color: #fff; font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.btn:hover, .woocommerce .button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: #222; color: #fff; border-color: #222; }
.btn:active, .woocommerce .button:active { transform: scale(.98); }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt.disabled:hover { background: #000; color: #fff; opacity: .45; }
.btn--light { background: #fff; color: #000; border-color: #fff; }
.btn--light:hover { background: #000; color: #fff; border-color: #000; }
.btn--outline { background: transparent; color: #000; }
.btn--outline:hover { background: #000; color: #fff; }
.btn--lg { min-height: 56px; padding: 1rem 2.2rem; font-size: .85rem; }
.btn svg { flex: none; }
.link-arrow { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; border-radius: 4px; text-decoration: none; }
.icon-btn:hover { background: rgba(0,0,0,.05); }

/* ---------- Marquee + header ---------- */
.marquee { position: sticky; top: 0; z-index: 51; height: var(--bar); overflow: hidden; background: #000; color: #fff; display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; animation: dswt-marquee 32s linear infinite; }
.marquee__row { display: flex; align-items: center; flex: none; }
.marquee__row span { padding: 0 1.4rem; font-size: 11px; font-weight: 600; letter-spacing: .2em; white-space: nowrap; }
.marquee__row .marquee__star { padding: 0; }
@keyframes dswt-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.site-header { position: sticky; top: var(--bar); z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.site-nav { max-width: var(--wrap); margin: 0 auto; height: var(--nav); padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo img { height: 32px; width: auto; mix-blend-mode: multiply; }
.site-nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.site-nav__links a { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-decoration: none; }
.site-nav__links a:hover { opacity: .5; }
.site-nav__actions { display: flex; align-items: center; gap: .25rem; }
.dswt-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #000; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.dswt-count.is-empty { display: none; }
@media (min-width: 800px) {
	.site-nav__links { display: flex; }
	.site-nav__menu { display: none; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) var(--pad) 2rem; animation: dswt-drop .45s var(--ease); }
@keyframes dswt-drop { from { transform: translateY(-100%); } }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--nav); }
.mobile-menu__top img { height: 30px; width: auto; }
.mobile-menu .icon-btn:hover { background: rgba(255,255,255,.1); }
.mobile-menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .25rem; }
.mobile-menu__links a { font: 400 2.6rem/1.2 var(--display); text-decoration: none; padding: .35rem 0; }
.mobile-menu__foot { font-size: .7rem; letter-spacing: .2em; color: rgba(255,255,255,.5); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--bar) - var(--nav)), 56rem); display: flex; align-items: flex-end; overflow: hidden; background: #111; color: #fff; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero picture { display: contents; }
.hero__still { object-position: 70% 50%; }
@media (min-aspect-ratio: 1/1) { .hero__still { object-position: 50% 56%; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
.hero__content { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 2rem var(--pad) clamp(2.5rem, 7vh, 5rem); }
.eyebrow { margin: 0 0 .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .24em; }
.hero__title { margin: 0; font: 400 clamp(3rem, 11vw, 8.5rem)/.9 var(--display); letter-spacing: -.01em; }
.hero__sub { margin: 1rem 0 1.6rem; max-width: 30rem; font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .9; }
/* Wide screens: a smaller headline keeps the prints on the banner visible. */
@media (min-aspect-ratio: 1/1) and (min-width: 700px) { .hero__title { font-size: clamp(3rem, min(6.5vw, 11vh), 7.5rem); } }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--pad); }
.section--tight { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title, .woocommerce-products-header__title, .page__title, .up-sells > h2, .related > h2 {
	margin: 0; font: 400 clamp(1.8rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase;
}
.empty { color: var(--muted); }

/* ---------- Product grid + cards ---------- */
.grid, .woocommerce ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .75rem; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.grid__item { width: auto; margin: 0; float: none; padding: 0; }
@media (min-width: 900px) { .grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5rem; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card__img--alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
	.card--alt .card__media:hover .card__img--alt { opacity: 1; }
	.card__media:hover .card__img { transform: scale(1.03); }
}
.card__tag { position: absolute; left: .75rem; top: .75rem; background: #000; color: #fff; padding: .3rem .6rem; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding-top: .9rem; }
.card__cat { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: rgba(0,0,0,.45); }
.card__name { margin: .2rem 0 0; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.card__name a { text-decoration: none; }
.card__price { margin: 0; font-size: .92rem; font-weight: 700; white-space: nowrap; }
.card__price del { opacity: .45; font-weight: 400; }
.card__price ins { text-decoration: none; }
.card__sizes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.card__hint { margin: .45rem 0 0; font-size: .7rem; color: var(--muted); }
@media (max-width: 520px) { .card__body { flex-direction: column; gap: .15rem; } .card__hint { display: none; } }

.size-btn { min-width: 44px; min-height: 40px; padding: 0 .6rem; border: 1.5px solid #000; background: #fff; color: #000; font-size: .75rem; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: background .15s, color .15s; }
.size-btn:hover:not(:disabled), .size-btn.is-on { background: #000; color: #fff; }
.size-btn:disabled { border-color: #d5d5d5; color: #b5b5b5; cursor: not-allowed; text-decoration: line-through; }
.size-btn.is-loading { opacity: .5; cursor: progress; }
@media (max-width: 520px) { .card__sizes .size-btn { min-width: 36px; min-height: 36px; padding: 0 .35rem; font-size: .7rem; } }

/* ---------- Category tiles, trust band, socials ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); text-decoration: none; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__img { transform: scale(1.04); }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); color: #fff; font: 400 clamp(1.4rem, 4vw, 2.4rem)/1 var(--display); display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.tile__label small { font: 700 .7rem/1 var(--body); letter-spacing: .16em; }
@media (min-width: 900px) { .tiles { aspect-ratio: auto; } .tile { aspect-ratio: 16 / 13; } }

.band { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
@media (min-width: 800px) { .band { grid-template-columns: repeat(3, 1fr); } .band__item { justify-content: center; } }

.socials { padding: clamp(3rem, 8vw, 6rem) var(--pad); text-align: center; }
.socials__title { margin: 0 0 .5rem; font: 400 clamp(2rem, 7vw, 4.5rem)/1 var(--display); }
.socials p { margin: 0 0 1.5rem; color: var(--muted); }
.socials__links { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 3rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom)); }
.site-footer__grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer__grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer__grid > div:first-child { grid-column: auto; } }
.site-footer__logo { height: 32px; width: auto; }
.site-footer__tag { color: rgba(255,255,255,.6); margin: .75rem 0 1rem; }
.site-footer__social { display: flex; gap: .5rem; }
.site-footer__social a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); }
.site-footer__social a:hover { background: #fff; color: #000; }
.site-footer__h { margin: 0 0 .75rem; font-size: .72rem; letter-spacing: .2em; color: rgba(255,255,255,.5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .35rem 0; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer__base { max-width: var(--wrap); margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .78rem; color: rgba(255,255,255,.6); }
.site-footer__pay { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 26rem); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--pad); border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 400 1.3rem/1 var(--display); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem var(--pad) calc(1rem + env(safe-area-inset-bottom)); }
.widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: .9rem; padding: .9rem 2rem .9rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.woocommerce-mini-cart-item a:not(.remove) { grid-row: span 3; display: contents; font-weight: 600; text-decoration: none; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 3; width: 72px; height: 90px; object-fit: cover; background: var(--soft); }
.woocommerce-mini-cart-item .variation { display: flex; gap: .3rem; margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd, .woocommerce-mini-cart-item .variation p { margin: 0; }
.woocommerce-mini-cart-item .quantity { font-size: .85rem; color: var(--muted); }
.woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: .8rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #000 !important; text-decoration: none; border-radius: 50%; }
.woocommerce-mini-cart-item a.remove:hover { background: #000; color: #fff !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 1.25rem 0 .5rem; font-size: 1rem; }
.woocommerce-mini-cart__buttons { display: grid; gap: .5rem; margin: .5rem 0 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: #000; }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: #000; color: #fff; }
.woocommerce-mini-cart__buttons .checkout { order: -1; }
.woocommerce-mini-cart__empty-message { margin: 2rem 0; text-align: center; color: var(--muted); }
.ship-bar { margin-bottom: 1rem; padding: .8rem 1rem; background: var(--soft); font-size: .85rem; }
.ship-bar p { margin: 0 0 .5rem; }
.ship-bar__track { height: 6px; background: #fff; }
.ship-bar__track span { display: block; height: 100%; background: #000; transition: width .4s var(--ease); }
.voucher-note { margin: .25rem 0 .75rem; padding: .6rem .8rem; border: 1.5px dashed #000; font-size: .82rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: #000; color: #fff; padding: .8rem 1.2rem; font-size: .85rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* ---------- Shop archive ---------- */
.wc-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.woocommerce-products-header { margin-bottom: 1.5rem; }
.term-description { color: var(--muted); max-width: 40rem; }
.woocommerce-pagination { margin-top: 2rem; }

/* ---------- Product page ---------- */
.wc-wrap--product { padding-top: 0; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; }
.woocommerce div.product > * { min-width: 0; }
.woocommerce div.product div.images { overflow: hidden; }
@media (min-width: 900px) {
	.wc-wrap--product { padding-top: 2rem; }
	.woocommerce div.product { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
	.woocommerce div.product .summary { position: sticky; top: calc(var(--bar) + var(--nav) + 1.5rem); }
	.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .up-sells { grid-column: 1 / -1; }
}
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images { margin: 0 calc(var(--pad) * -1); background: var(--soft); }
@media (min-width: 900px) { .woocommerce div.product div.images { margin: 0; } }
.woocommerce div.product div.images img { width: 100%; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: .5rem 0 0; padding: 0 var(--pad) .5rem; background: #fff; list-style: none; }
@media (min-width: 900px) { .woocommerce div.product div.images .flex-control-thumbs { padding: 0; } }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs img { opacity: .55; cursor: pointer; transition: opacity .2s; aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 1rem; right: 1rem; background: #fff; border-radius: 50%; }
.woocommerce div.product div.summary { padding-top: 1.5rem; }
.woocommerce div.product .product_title { margin: 0 0 .5rem; font: 400 clamp(1.7rem, 4.5vw, 2.6rem)/1.05 var(--display); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #000; font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #333; margin-bottom: 1.25rem; }
.woocommerce div.product form.cart { margin: 0 0 1.25rem; }
.woocommerce div.product form.cart .variations { margin: 0 0 1rem; border: 0; width: 100%; }
.woocommerce div.product form.cart .variations tr { display: block; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations label { display: block; margin-bottom: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.woocommerce div.product form.cart .variations select.is-replaced { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.size-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-picker .size-btn { min-width: 56px; min-height: 48px; font-size: .85rem; }
form.cart.needs-size .size-picker { animation: dswt-nudge .4s; }
form.cart.needs-size .variations label { color: #c00; }
@keyframes dswt-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce div.product .stock { font-size: .85rem; font-weight: 600; color: #000; }
.woocommerce div.product .stock.out-of-stock { color: #c00; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: .5rem; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 4rem; min-height: 56px; border: 2px solid #000; font: 700 1rem var(--body); text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; float: none; min-height: 56px; font-size: .85rem; }
.trust { list-style: none; margin: 0 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .65rem; font-size: .88rem; }
.trust li { display: flex; gap: .6rem; align-items: flex-start; }
.trust svg { flex: none; margin-top: .15rem; }
.woocommerce div.product .woocommerce-tabs { margin-top: 2.5rem; padding-top: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 1.5rem 0; border-top: 2px solid #000; max-width: 46rem; }
.woocommerce div.product .woocommerce-tabs .panel ul { padding-left: 1.2rem; }
.up-sells { margin-top: 3rem; }
.up-sells > h2 { margin-bottom: 1.5rem; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .75rem; padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.is-shown { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .8rem; }
.sticky-buy__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sticky-buy__price { font-weight: 700; }
.sticky-buy .btn { min-height: 48px; padding: .7rem 1.2rem; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper .wc-block-components-notice-banner {
	border: 2px solid #000; border-radius: 0; background: #fff; color: #000; font-size: .9rem; margin-bottom: 1.5rem;
}
.woocommerce-message::before, .woocommerce-info::before { color: #000; }
.woocommerce-error { border-color: #c00; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding: .5rem 1rem; }

/* ---------- Pages, cart and checkout ---------- */
div.page { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad); }
div.page--wide { max-width: var(--wrap); }
.page__title { margin-bottom: 1.5rem; }
.page__content a { text-decoration: underline; }
.page__content h2 { margin-top: 2rem; font-size: 1.2rem; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--body); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border-radius: 0 !important; background: #000 !important; color: #fff !important; min-height: 56px; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase;
}
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { border-radius: 0 !important; }
.wc-block-components-product-name { font-weight: 600; text-decoration: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: .6rem .8rem; border: 1.5px solid #bbb; border-radius: 0; font: inherit; }
.woocommerce table.shop_table { border-radius: 0; }

/* ---------- Help chat ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 65; transition: bottom .3s var(--ease); }
.chat.is-open { z-index: 2147483000; }
.chat.is-raised { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
.chat__launcher { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: #000; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.chat__launcher:hover { background: #222; }
.chat.is-open .chat__launcher { display: none; }
.chat__panel { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: min(24rem, calc(100vw - 2rem)); height: min(36rem, calc(100svh - 7rem)); display: flex; flex-direction: column; background: #fff; border: 2px solid #000; box-shadow: 0 16px 48px rgba(0,0,0,.25); animation: dswt-pop .25s var(--ease); }
@keyframes dswt-pop { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .chat__panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(85svh, 40rem); border-width: 2px 0 0; } }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .6rem .6rem 1rem; background: #000; color: #fff; }
.chat__head b { display: block; font: 400 1rem/1.1 var(--display); letter-spacing: .02em; }
.chat__head span { font-size: .72rem; opacity: .7; }
.chat__head .icon-btn:hover { background: rgba(255,255,255,.12); }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--soft); overscroll-behavior: contain; }
.chat__msg { max-width: 88%; padding: .65rem .85rem; font-size: .88rem; line-height: 1.45; }
.chat__msg p { margin: 0 0 .5rem; }
.chat__msg p:last-child, .chat__msg ul:last-child { margin-bottom: 0; }
.chat__msg ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.chat__msg a { font-weight: 600; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat__msg--me { align-self: flex-end; background: #000; color: #fff; }
.chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat__chip { min-height: 36px; padding: .35rem .8rem; border: 1.5px solid #000; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.chat__chip:hover { background: #000; color: #fff; }
.chat__chip--ghost { border-style: dashed; }
.chat__wa { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: .25rem; padding: .5rem 1rem; background: #25d366; color: #000 !important; font-weight: 700; text-decoration: none; }
.chat__wa:hover { background: #1fbd5a; }
.chat__order { display: grid; gap: .35rem; }
.chat__order p { margin: 0; }
.chat__status { display: inline-block; justify-self: start; padding: .2rem .55rem; background: #000; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chat__form { display: flex; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1rem; border: 0; font: 16px var(--body); }
.chat__form input:focus { outline: none; box-shadow: inset 0 -2px 0 #000; }
.chat__send { min-width: 52px; border: 0; background: #000; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* Cards with two choices (colour and size) link to the product page. Six menu links need tighter spacing on small desktops. */
.card__sizes a.size-btn { display: inline-flex; align-items: center; text-decoration: none; text-transform: uppercase; }
@media (max-width: 1100px) { .site-nav__links { gap: .9rem; } .site-nav__links a { letter-spacing: .08em; } }
.variations tr + tr > * { padding-top: 1rem; }

/* ---------- Checkout + cart in the store's look (WooCommerce blocks) ---------- */
body:is(.woocommerce-checkout, .woocommerce-cart) div.page { padding-top: clamp(1.5rem, 4vw, 3rem); }
body:is(.woocommerce-checkout, .woocommerce-cart) .page__title { padding-bottom: 1rem; border-bottom: 2px solid #000; }

/* Section headings */
body .wc-block-components-checkout-step__title.wc-block-components-title,
body .wc-block-components-checkout-order-summary__title-text,
body .wc-block-cart .wc-block-cart__totals-title { margin: 0; font: 400 1.15rem/1.2 var(--display); letter-spacing: 0; text-transform: uppercase; }
body .wc-block-cart-items__header { letter-spacing: .12em; }

/* Fields */
body .wc-block-components-form .wc-block-components-text-input input,
body .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select,
body .wc-block-components-text-input input,
body .wc-block-components-form textarea { border: 1.5px solid #000 !important; border-radius: 0; background-color: #fff; color: #000; }
body .wc-blocks-components-select__container { border-radius: 0; background-color: #fff; }
body .wc-block-components-text-input input:focus,
body .wc-blocks-components-select__select:focus,
body .wc-block-components-form textarea:focus { outline: 0; box-shadow: 0 0 0 1.5px #000; }
body .wc-block-components-form .wc-block-components-text-input.has-error input, body .wc-block-components-text-input.has-error input { border-color: #c00 !important; }
body .wc-block-components-checkbox__input[type="checkbox"] { border: 1.5px solid #000; border-radius: 0; }

/* Delivery and payment choices */
body .wc-block-components-radio-control,
body .wc-block-components-radio-control *,
body .wc-block-components-radio-control--highlight-checked::after,
body .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after,
body .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option::after { border-radius: 0 !important; }
body .wc-block-components-radio-control .wc-block-components-radio-control__input { border-radius: 50% !important; }
body .wc-block-components-radio-control .wc-block-components-radio-control__input::before { border-radius: 50% !important; }

/* Order summary: a soft card with a black edge */
body .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
body .wc-block-cart__sidebar { background: var(--soft); border: 0; border-top: 4px solid #000; border-radius: 0; }
body .wc-block-cart__sidebar { padding: 1rem 1rem 1.25rem; align-self: flex-start; }
body .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img,
body .wc-block-cart-item__image img { background: #fff; aspect-ratio: 4 / 5; object-fit: cover; }
body .wc-block-components-product-name { font-weight: 700; color: #000; text-decoration: none; }
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.25rem; font-weight: 700; }
body .wc-block-components-quantity-selector { border-radius: 0; background: #fff; }
body .wc-block-components-quantity-selector::after { border: 1.5px solid #000; border-radius: 0; opacity: 1; }
body .wc-block-components-totals-coupon__button.wc-block-components-button { min-height: 48px; }

/* Main buttons */
body .wc-block-components-checkout-place-order-button, body a.wc-block-cart__submit-button { width: 100%; min-height: 60px; text-decoration: none; transition: background .2s; }
body .wc-block-components-checkout-place-order-button:hover, body a.wc-block-cart__submit-button:hover { background: #222 !important; }
body a.wc-block-cart__submit-button .wc-block-components-button__text { text-decoration: none; }
body .wc-block-components-checkout-place-order-button:focus-visible, body a.wc-block-cart__submit-button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* On phones the help button becomes a small round icon, so it does not cover the fields. */
@media (max-width: 520px) {
	body.woocommerce-checkout .chat__launcher { width: 48px; justify-content: center; padding: 0; gap: 0; font-size: 0; }
}
/* The folded order summary at the top of the phone checkout */
@media (max-width: 699px) {
	body .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block, body .wc-block-checkout__main + .wc-block-checkout__sidebar { border-top-width: 0; }
	body .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title { margin: 0; padding: 1rem .75rem !important; background: var(--soft); border-top: 4px solid #000; }
	body .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text { font-size: .95rem; }
}
