/* =========================================================================
   Baze — Legacy Lifestyle (Light)
   Tokens, type scale and components are matched 1:1 to the Stitch design
   ("Branded WordPress + WooCommerce Store" project).
   ========================================================================= */

:root {
	/* ---- Color tokens (exact Stitch values) ---- */
	--surface: #ffffff;            /* surface-container-lowest — page background */
	--surface-page: #f9f9f9;       /* surface / background */
	--surface-low: #f3f3f4;        /* surface-container-low — image wells, footer */
	--surface-container: #eeeeee;  /* surface-container */
	--surface-high: #e8e8e8;       /* surface-container-high */
	--surface-highest: #e2e2e2;    /* surface-container-highest */
	--surface-dim: #dadada;

	--ink: #1a1c1c;                /* on-surface / on-background */
	--ink-strong: #111111;         /* button fill, strong text */
	--primary: #000000;            /* primary */
	--ink-variant: #444748;        /* on-surface-variant */
	--secondary: #5e5e5e;          /* secondary */
	--outline: #747878;            /* outline */
	--outline-variant: #c4c7c7;
	--hairline: #d1d1d1;           /* 1px hairlines everywhere */
	--on-primary: #ffffff;
	--error: #ba1a1a;

	/* ---- Fonts ---- */
	--font-head: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

	/* ---- Spacing (exact Stitch scale) ---- */
	--unit: 8px;
	--stack-sm: 8px;
	--stack-md: 16px;
	--stack-lg: 48px;
	--gutter: 24px;
	--section-gap: 120px;
	--container: 1440px;
	--margin: 64px;       /* margin-desktop */
	--margin-mobile: 20px;
	--radius: 0px;        /* 0px everywhere */
}

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

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

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;          /* body-md */
	line-height: 1.5;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body ::selection { background: var(--primary); color: var(--on-primary); }

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius);
}

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

/* ---------- Type scale (exact Stitch) ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--primary);
	margin: 0 0 var(--stack-md);
	font-weight: 500;
}

/* display-lg: 64 / 1.1 / -0.02em / 600 */
h1, .display-lg {
	font-size: clamp(36px, 5.4vw, 64px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
}

/* headline-lg: 32 / 1.2 / -0.01em / 500 */
h2, .headline-lg {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-weight: 500;
}

h3, .headline-md {
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-weight: 500;
}

p { margin: 0 0 var(--stack-md); }

/* body-lg: 18 / 1.6 */
.body-lg { font-size: 18px; line-height: 1.6; }

/* ---------- Label utilities ---------- */
/* ui-label: Hanken Grotesk 12 / 700 / 0.05em / uppercase */
.label,
.ui-label {
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink-variant);
}

/* data-label: JetBrains Mono 13 / 500 / 0.02em */
.data-label,
.label-sm {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var(--ink-variant);
}

/* price-display: JetBrains Mono 20 / 600 / -0.02em / uppercase */
.price-display {
	font-family: var(--font-mono);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--primary);
}

.uppercase { text-transform: uppercase; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--margin);
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--stack-lg); }

.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	font-size: 22px;
	line-height: 1;
}

/* ---------- Buttons (Stitch .btn-primary: fill → outline on hover) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--stack-sm);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: var(--radius);
	border: 1px solid var(--ink-strong);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
	background-color: var(--ink-strong);
	color: var(--on-primary);
}

.btn--primary:hover {
	background-color: transparent;
	color: var(--ink-strong);
}

.btn--secondary {
	background-color: transparent;
	color: var(--ink-strong);
}

.btn--secondary:hover {
	background-color: var(--ink-strong);
	color: var(--on-primary);
}

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

/* ---------- Header (80px, 3 columns) ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--surface);
	border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.site-header__left,
.site-header__right { display: flex; align-items: center; width: 33.33%; }
.site-header__right { justify-content: flex-end; gap: var(--stack-md); }
.site-header__center { display: flex; justify-content: center; width: 33.33%; }

.site-brand {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.03em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--primary);
}

.site-brand img { max-height: 34px; width: auto; }

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: var(--stack-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-variant);
	transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: var(--stack-md); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--ink);
	padding: 6px;
	transition: opacity 0.2s ease;
}
.icon-btn:hover { opacity: 0.7; }

.cart-count { font-family: var(--font-mono); font-size: 12px; }

.nav-toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	color: var(--ink);
}

.header-search { border-top: 1px solid var(--hairline); background: var(--surface); padding-block: var(--stack-md); }
.header-search[hidden] { display: none; }
.header-search .search-field { font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	width: 100%;
	min-height: clamp(600px, 86vh, 920px); /* matches Stitch ~921px, won't balloon */
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--surface-low);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0));
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: var(--section-gap);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__eyebrow { margin-bottom: var(--stack-md); }

.hero h1 { text-transform: uppercase; margin-bottom: var(--stack-md); }

.hero__text {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-variant);
	max-width: 32rem;
	margin-bottom: var(--stack-lg);
}

/* ---------- Section header (title + link, bottom hairline) ---------- */
.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gutter);
	margin-bottom: var(--stack-lg);
	padding-bottom: var(--stack-md);
	border-bottom: 1px solid var(--hairline);
}

.section-header h2 { text-transform: uppercase; margin: 0; }

.section-header__link {
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink);
	text-underline-offset: 4px;
}
.section-header__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Product grid + cards ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--gutter);
	row-gap: var(--section-gap);
}

.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: var(--gutter);
	row-gap: var(--stack-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* WooCommerce adds ::before/::after clearfix that become stray grid cells. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

.product-card,
ul.products li.product {
	position: relative;
	display: block;
	background: var(--surface);
}

.product-card__media,
ul.products li.product > a img,
ul.products li.product .product-card__media {
	position: relative;
	overflow: hidden;
	background: var(--surface-low);
	aspect-ratio: 4 / 5; /* home "New Arrivals" cards (Stitch aspect-[4/5]) */
	margin-bottom: var(--stack-md);
}

/* Shop / archive cards are square (Stitch aspect-square). */
.woocommerce ul.products li.product .product-card__media { aspect-ratio: 1 / 1; }

/* Force the shop grid + full-width images (WooCommerce's own CSS loads after
   this file and otherwise collapses the layout to small floated thumbnails). */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	column-gap: var(--gutter) !important;
	row-gap: var(--stack-lg) !important;
	margin: 0 !important;
}
.woocommerce ul.products li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}
.woocommerce ul.products li.product .product-card { display: block; width: 100%; }
.woocommerce ul.products li.product .product-card__media {
	display: block;
	width: 100%;
}
.woocommerce ul.products li.product .product-card__media img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.7s ease-in-out;
}

.product-card:hover .product-card__media img,
ul.products li.product:hover .product-card__media img { transform: scale(1.05); }

.product-card__quick-add {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 16px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border-top: 1px solid var(--hairline);
	text-align: center;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--primary);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.product-card:hover .product-card__quick-add,
ul.products li.product:hover .product-card__quick-add { transform: translateY(0); }

/* name (left) + price (right) on one row */
.product-card__meta,
ul.products li.product .product-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--stack-md);
}

.product-card__name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	color: var(--primary);
	margin: 0;
	padding: 0;
}

.product-card__name--upper { text-transform: uppercase; letter-spacing: 0.01em; }

.product-card__sub {
	display: block;
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted, #707070);
	color: var(--secondary);
}

.product-card__price,
.product-card__price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
	font-family: var(--font-mono) !important;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--primary) !important;
	text-align: right;
	white-space: nowrap;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
	color: var(--secondary) !important;
	font-size: 13px;
	font-weight: 500;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* loop add-to-cart button */
ul.products li.product .button {
	margin-top: var(--stack-md);
	display: inline-block;
	background: var(--ink-strong);
	color: var(--on-primary);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 12px 20px;
	border: 1px solid var(--ink-strong);
	border-radius: var(--radius);
	transition: background-color 0.3s ease, color 0.3s ease;
}
ul.products li.product .button:hover { background: transparent; color: var(--ink-strong); }

/* ---------- Editorial category blocks ---------- */
.cat-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }

.cat-block { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-low); }
.cat-block img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-block:hover img { transform: scale(1.04); }

.cat-block__label {
	position: absolute;
	left: var(--gutter);
	bottom: var(--gutter);
	background: var(--surface);
	color: var(--primary);
	padding: 12px 20px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid var(--hairline);
}

/* ---------- Brand story strip ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--stack-lg); align-items: center; }
.story__media { aspect-ratio: 4 / 3; background: var(--surface-low); overflow: hidden; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter band ---------- */
.newsletter { background: var(--surface-low); border-top: 1px solid var(--hairline); }
.newsletter__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--stack-lg); padding-block: var(--section-gap); flex-wrap: wrap;
}
.newsletter h2 { margin: 0; }
.newsletter form { display: flex; align-items: flex-end; gap: var(--gutter); flex: 1; min-width: 320px; max-width: 520px; }

/* ---------- Inputs (underline style) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field > label,
.field .label {
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-variant);
}

input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="url"], select, textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--hairline);
	border-radius: var(--radius);
	padding: 12px 0;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--ink-strong); }

/* ---------- Footer (bg surface-low, hairline-t) ---------- */
.site-footer {
	background: var(--surface-low);
	border-top: 1px solid var(--hairline);
	padding-block: var(--stack-lg);
}

.site-footer__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--gutter);
	margin-bottom: var(--section-gap);
}

.site-footer__brand .site-brand { font-size: 32px; margin-bottom: var(--stack-md); display: inline-block; }
.site-footer__brand p { color: var(--ink-variant); font-size: 15px; max-width: 24rem; }

.footer-col { display: flex; flex-direction: column; gap: var(--stack-sm); }
.footer-col h4 {
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--primary);
	margin: 0 0 var(--unit);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--stack-sm); }
.footer-col a { font-size: 15px; color: var(--ink-variant); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }

.site-footer__bottom {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--gutter); padding-top: var(--stack-md);
	border-top: 1px solid var(--hairline); flex-wrap: wrap;
}
.site-footer__bottom p {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink-variant);
}
.payment-row { display: flex; gap: var(--stack-md); align-items: center; }
.payment-row span {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	border: 1px solid var(--hairline);
	padding: 6px 10px;
	color: var(--ink-variant);
}

/* ---------- WooCommerce page scaffolding ---------- */
.wc-page { padding-block: var(--stack-lg); }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--stack-lg); align-items: start; }

.shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: var(--gutter);
	margin-bottom: var(--stack-lg); padding-bottom: var(--stack-md);
	border-bottom: 1px solid var(--hairline);
}
.woocommerce-result-count {
	font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
	color: var(--ink-variant); margin: 0; text-transform: uppercase;
}

.shop-sidebar .widget { margin-bottom: var(--stack-lg); }
.shop-sidebar .widget__title { font-size: 12px; margin-bottom: var(--stack-md); color: var(--primary); }
.shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shop-sidebar li { padding: 4px 0; font-size: 14px; }
.shop-sidebar a { color: var(--ink); }
.shop-sidebar a:hover { color: var(--muted, #707070); }
.shop-sidebar .count { color: var(--secondary); font-family: var(--font-mono); font-size: 12px; }

/* WooCommerce price slider — black to match brand (overrides purple default) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--surface-highest) !important; border-radius: 0; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background-color: var(--ink-strong) !important; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--ink-strong) !important; border: 0; border-radius: 0; }
.shop-sidebar .price_slider_amount .button { background: var(--ink-strong) !important; color: #fff !important; border: 1px solid var(--ink-strong) !important; }
.shop-sidebar .price_slider_amount .price_label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-variant); }

.page-title { font-size: clamp(28px, 4vw, 56px); margin-bottom: var(--stack-sm); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.page-title--upper { text-transform: uppercase; } /* Shop only (Stitch); About/Contact stay sentence-case */

/* Single product */
.single-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--stack-lg); align-items: start; }
.single-product .product__summary { padding-top: var(--stack-sm); }

/* Gallery: large main image filling the left column (Stitch aspect-[4/5]). */
.single-product .woocommerce-product-gallery {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}
.single-product .woocommerce-product-gallery__wrapper { margin: 0; width: 100%; }
.single-product .woocommerce-product-gallery__image { width: 100%; }
.single-product .woocommerce-product-gallery__image a { display: block; }
.single-product .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
	background: var(--surface-highest);
	border-radius: 0;
}
/* If the product has gallery thumbnails, lay them out as a square strip. */
.single-product .flex-control-thumbs { display: flex; gap: var(--stack-sm); padding: 0; margin: var(--stack-sm) 0 0; list-style: none; }
.single-product .flex-control-thumbs li { width: 80px; }
.single-product .flex-control-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; cursor: pointer; }
.single-product .woocommerce-product-gallery__trigger { z-index: 5; }
.single-product .product_title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }

.woocommerce div.product .price,
.woocommerce div.product .price .woocommerce-Price-amount,
.single-product .price,
.single-product .woocommerce-Price-amount {
	font-family: var(--font-mono) !important;
	font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--primary) !important;
}
.woocommerce div.product .price del .woocommerce-Price-amount { color: var(--secondary) !important; font-weight: 500; }

.single-product form.cart { display: flex; gap: var(--stack-md); align-items: stretch; margin-block: var(--stack-lg); flex-wrap: wrap; }
.single-product form.cart .quantity { display: inline-flex; align-items: stretch; }
.single-product form.cart .quantity input.qty {
	width: 72px; text-align: center; border: 1px solid var(--hairline); padding: 14px 8px;
}
.qty-btn { width: 44px; border: 1px solid var(--hairline); background: var(--surface); cursor: pointer; font-size: 16px; }

.woocommerce div.product form.cart .button,
.single-product .single_add_to_cart_button {
	background: var(--ink-strong) !important; color: var(--on-primary) !important;
	border: 1px solid var(--ink-strong) !important; border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 700; font-size: 12px;
	letter-spacing: 0.05em; text-transform: uppercase; padding: 16px 40px;
	cursor: pointer; flex: 1; min-width: 220px;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.woocommerce div.product form.cart .button:hover,
.single-product .single_add_to_cart_button:hover { background: transparent !important; color: var(--ink-strong) !important; }

.woocommerce-tabs { margin-top: var(--section-gap); border-top: 1px solid var(--hairline); padding-top: var(--stack-lg); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: var(--stack-lg); padding: 0; margin: 0 0 var(--stack-lg); }
.woocommerce-tabs ul.tabs li a {
	font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
	letter-spacing: 0.02em; color: var(--ink-variant); padding-bottom: 6px;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--primary); border-bottom: 1px solid var(--primary); }

.related.products, .up-sells { margin-top: var(--section-gap); border-top: 1px solid var(--hairline); padding-top: var(--stack-lg); }
.related.products > h2, .up-sells > h2 { margin-bottom: var(--stack-lg); }

/* Cart + Checkout */
.woocommerce table.shop_table {
	width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); border-radius: var(--radius);
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
	border-bottom: 1px solid var(--hairline); padding: var(--stack-md); text-align: left; font-size: 14px;
}
.woocommerce table.shop_table th {
	font-family: var(--font-head); font-size: 12px; text-transform: uppercase;
	letter-spacing: 0.05em; color: var(--ink-variant); font-weight: 700;
}

.woocommerce .cart-collaterals, .woocommerce-checkout #order_review { background: var(--surface-low); padding: var(--stack-lg); }

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce .button.alt {
	background: var(--ink-strong); color: var(--on-primary);
	border: 1px solid var(--ink-strong); border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 700; font-size: 12px;
	letter-spacing: 0.05em; text-transform: uppercase; padding: 14px 28px; cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .button.alt:hover { background: transparent; color: var(--ink-strong); }

.woocommerce-checkout .col2-set, .woocommerce-checkout form.checkout {
	display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--stack-lg); align-items: start;
}

/* Generic content pages */
.page-hero { padding-block: var(--stack-lg) var(--stack-md); border-bottom: 1px solid var(--hairline); }
.page-hero--center { text-align: center; padding-block: var(--section-gap) var(--stack-lg); }
.page-hero--center .page-title { letter-spacing: -0.02em; }

.story--media-first .story__media { order: -1; }
.story__media--tall { aspect-ratio: 3 / 4; }
.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.6; color: var(--ink-variant); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: var(--stack-lg); }
.value-card { border: 1px solid var(--hairline); padding: var(--stack-lg); }
.value-card h3 { font-size: 20px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--stack-lg); align-items: start; }
.contact-form .field { margin-bottom: var(--stack-md); }

/* Right column: bordered card (matches Stitch) */
.contact-card { border: 1px solid var(--hairline); padding: var(--stack-lg); }
.contact-card__row { padding: var(--stack-md) 0; border-bottom: 1px solid var(--hairline); }
.contact-card__row:first-child { padding-top: 0; }
.contact-card dt {
	font-family: var(--font-head); font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.05em; color: var(--ink-variant); margin: 0 0 6px;
}
.contact-card dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.contact-card__social { display: flex; gap: var(--stack-md); padding-top: var(--stack-lg); }
.contact-card__social .btn { padding: 12px 20px; }

/* Map block with View Map button */
.contact-map {
	display: flex; align-items: center; justify-content: center;
	margin-top: var(--stack-md);
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(135deg, rgba(0,0,0,0.04) 25%, transparent 25%) -20px 0/40px 40px,
		var(--surface-highest);
	border: 1px solid var(--hairline);
}
.contact-map__btn {
	background: var(--surface);
	border: 1px solid var(--ink-strong);
	color: var(--ink-strong);
	font-family: var(--font-head); font-size: 12px; font-weight: 700;
	letter-spacing: 0.05em; text-transform: uppercase;
	padding: 12px 24px;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-map:hover .contact-map__btn { background: var(--ink-strong); color: #fff; }

/* ---------- Responsive ---------- */

/* Never allow horizontal overflow; media + long words stay contained. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
.container { overflow-wrap: break-word; }

/* Tablet */
@media (max-width: 1024px) {
	:root { --margin: 32px; --section-gap: 80px; }
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shop-layout { grid-template-columns: 1fr; }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: var(--stack-lg); }
	/* WooCommerce sets gallery/summary to 48% + float; force full width when stacked.
	   min-width:0 lets the grid item shrink below its content min-width instead of
	   overflowing the column. */
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary,
	.single-product div.product .entry-summary {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.single-product .woocommerce-product-gallery { max-width: 560px; }
	.woocommerce-tabs, .related.products, .up-sells { max-width: 100%; }
	.woocommerce-checkout .col2-set, .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Landscape phone / small tablet */
@media (max-width: 768px) {
	:root { --margin: 20px; --section-gap: 56px; }

	/* Header: hamburger (left) · BAZE (center) · search+cart (right) */
	.site-header__inner { height: 64px; }
	.site-brand, .site-footer__brand .site-brand { font-size: 24px; }
	.site-header__left .primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-header__left, .site-header__right { width: auto; flex: 1; }
	.site-header__center { width: auto; flex: 0 0 auto; }
	.header-actions { gap: var(--stack-sm); }
	.primary-nav.is-open {
		display: block; position: absolute; top: 64px; left: 0; right: 0;
		background: var(--surface); border-bottom: 1px solid var(--hairline);
		padding: var(--stack-md) var(--margin); z-index: 60;
	}
	.primary-nav.is-open ul { flex-direction: column; gap: var(--stack-md); align-items: flex-start; }
	.header-search { top: 64px; }

	/* Hero */
	.hero { min-height: clamp(460px, 78vh, 640px); }
	.hero__inner { max-width: 100%; box-sizing: border-box; }
	.hero h1 { font-size: clamp(24px, 7vw, 34px); overflow-wrap: break-word; }
	.hero__text { font-size: 16px; max-width: 100%; }
	.site-footer__brand p { max-width: 100%; }

	/* Grids */
	.product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--stack-lg); }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.cat-blocks, .story, .values-grid, .contact-layout, .site-footer__cols { grid-template-columns: 1fr; }
	.story--media-first .story__media { order: -1; }

	/* Section header (title + link) stacks */
	.section-header { flex-direction: column; align-items: flex-start; gap: var(--stack-sm); }

	/* Shop toolbar (result count + sorting) stacks */
	.shop-toolbar { flex-direction: column; align-items: flex-start; gap: var(--stack-sm); }
	.woocommerce .woocommerce-ordering { width: 100%; }
	.woocommerce .woocommerce-ordering select { width: 100%; }

	/* Product card: name over price so long prices never overflow */
	.product-card__meta { flex-direction: column; gap: 4px; }
	.product-card__price { text-align: left; white-space: normal; }

	/* Single product actions */
	.single-product form.cart { flex-direction: column; align-items: stretch; width: 100%; }
	.single-product .single_add_to_cart_button,
	.woocommerce div.product form.cart .button { width: 100% !important; min-width: 0 !important; }
	.single-product form.cart .quantity { display: flex; width: 100%; }
	.single-product form.cart .quantity input.qty { flex: 1; width: auto; min-width: 0; }
	.baze-wishlist { width: 100%; }

	/* Contact + newsletter */
	.newsletter__inner { flex-direction: column; align-items: stretch; gap: var(--stack-lg); }
	.newsletter form { flex-direction: column; align-items: stretch; }
	.contact-card__social { flex-wrap: wrap; }

	/* Product tabs wrap instead of clipping */
	.woocommerce-tabs ul.tabs { flex-wrap: wrap; gap: var(--stack-sm) var(--stack-md); }

	/* Cart / checkout tables scroll instead of breaking layout */
	.woocommerce table.shop_table { display: block; overflow-x: auto; }
}

/* Small phone */
@media (max-width: 480px) {
	.page-title, .hero h1 { letter-spacing: -0.01em; }
	.section-header__link { font-size: 11px; }
	.product-card__name, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.product-card__price { font-size: 15px; }
	.values-grid { gap: var(--stack-md); }
	.value-card { padding: var(--stack-md); }
}
