/*
Theme Name: Men's Scarf Store
Theme URI: https://mens-scarf.com/
Description: Custom WooCommerce theme for mens-scarf.com — men's scarves, custom SVG illustrations and animated scarf tutorials.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: msx
License: GPL-2.0-or-later
*/

:root {
	--bg: #EFEFEC;
	--paper: #FFFFFF;
	--soft: #F7F7F4;
	--rail: #E2E1DC;
	--ink: #17191C;
	--muted: #4E535A;
	--muted-2: #5C6168;
	--line: #D5D6D2;
	--line-2: #CFD0CB;
	--accent: #7B1E2E;
	--accent-dark: #5F1622;
	--navy: #1C2230;
	--navy-line: #3A4357;
	--navy-text: #C3C9D4;
	--green: #2F4A3A;
	--display: "Archivo Narrow", "Arial Narrow", sans-serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* Type */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; margin: 0; }
.h1 { font-size: clamp(44px, 6.4vw, 96px); }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: .95; }
.h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.05; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 36em; margin: 0; }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.kicker { display: inline-block; align-self: flex-start; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.dark .kicker { border-color: #EDEDEA; background: transparent; color: #EDEDEA; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 2px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.text-link { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-block; padding: 10px 0; }

/* Header */
.topbar { background: var(--ink); color: #EDEDEA; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-align: center; padding: 10px 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 700 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; justify-content: center; }
.main-nav a { display: inline-block; padding: 12px 0; text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav .current-menu-item > a, .main-nav .current-menu-parent > a, .main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--rail); color: var(--ink); }
.cart-pill { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--ink); border-radius: 22px; font: 500 13px/1 var(--mono); }
.search-pop { position: relative; }
.search-pop form { position: absolute; right: 0; top: 52px; display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--ink); padding: 10px; width: min(360px, 86vw); }
.search-pop input[type=search] { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line-2); padding: 0 12px; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.dark { background: var(--navy); color: #EDEDEA; }
.dark a { color: #EDEDEA; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-2); padding-top: 20px; max-width: 520px; }
.hero-facts dt { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.hero-facts dd { margin: 6px 0 0; font: 600 18px/1.2 var(--display); }
.hero-art { background: var(--rail); border-radius: 4px; overflow: hidden; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.sway { transform-box: fill-box; transform-origin: 50% 0; animation: msx-sway 7s ease-in-out infinite alternate; }
.sway.d2 { animation-duration: 8s; animation-delay: -2s; }
.sway.d3 { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes msx-sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }

/* Material cards */
.mat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 25, 28, .08); color: var(--ink); }
.mat-card svg { display: block; width: 100%; height: auto; }
.mat-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mat-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mat-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mat-card .go { font-weight: 600; font-size: 14px; color: var(--accent); }

/* Product cards (WooCommerce loop) */
.woocommerce ul.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.pcard { width: auto !important; margin: 0 !important; float: none !important; padding: 0; }
.pcard a.pcard-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.pcard .pcard-media { background: var(--rail); border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; }
.pcard .pcard-media img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .4s; }
.pcard .pcard-media svg { width: 100%; height: 100%; }
.pcard a:hover .pcard-media img { transform: scale(1.03); }
.pcard .pcard-meta { display: flex; flex-direction: column; gap: 6px; }
.pcard .pcard-title { font: 600 16px/1.3 var(--sans); margin: 0; padding: 0 !important; }
.pcard .price { font: 500 15px/1 var(--mono) !important; color: var(--ink) !important; }
.pcard .price del { opacity: .55; margin-right: 6px; }
.pcard .price ins { text-decoration: none; color: var(--accent); }
.pcard .badge { position: absolute; top: 12px; left: 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--ink); padding: 6px 8px; }
.pcard .button, .pcard .added_to_cart { display: none !important; }

/* Knot figures + animated tutorials */
.knot-card { border: 1px solid var(--navy-line); border-radius: 3px; padding: 20px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.knot-card p { margin: 0; color: var(--navy-text); font-size: 15px; line-height: 1.5; }
.knot-card .row { display: flex; justify-content: space-between; align-items: baseline; }

.tut { margin: 32px 0; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; }
.tut-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tut-pause { min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: transparent; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 18px; }
.tut-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tut-stage { position: relative; background: #F1F0EC; aspect-ratio: 4 / 3; border-right: 1px solid var(--line); }
.tut-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tut-frame { opacity: 0; animation: msx-frame 9s infinite both; }
.tut-frame.f2 { animation-delay: 3s; }
.tut-frame.f3 { animation-delay: 6s; }
.tut-draw { stroke-dasharray: 240; stroke-dashoffset: 240; animation: msx-draw 9s infinite both; }
.f2 .tut-draw { animation-delay: 3s; }
.f3 .tut-draw { animation-delay: 6s; }
.tut-slide { animation: msx-slide 9s infinite both; }
.f2 .tut-slide { animation-delay: 3s; }
.f3 .tut-slide { animation-delay: 6s; }
@keyframes msx-frame { 0% { opacity: 0; } 3% { opacity: 1; } 31% { opacity: 1; } 34% { opacity: 0; } 100% { opacity: 0; } }
@keyframes msx-draw { 0% { stroke-dashoffset: 240; } 22% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes msx-slide { 0% { transform: translateY(-14px); } 20% { transform: translateY(0); } 100% { transform: translateY(0); } }
.tut-steps { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; counter-reset: st; }
.tut-steps li { position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; line-height: 1.5; animation: msx-step 9s infinite both; }
.tut-steps li:nth-child(2) { animation-delay: 3s; }
.tut-steps li:nth-child(3) { animation-delay: 6s; }
.tut-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font: 500 12px/1 var(--mono); background: var(--rail); }
@keyframes msx-step { 0% { border-color: var(--line); background: transparent; } 3%, 31% { border-color: var(--accent); background: #FBF4F5; } 34%, 100% { border-color: var(--line); background: transparent; } }
.tut-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.tut.paused *, .tut.paused { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
	.sway, .tut *, .reveal { animation: none !important; transition: none !important; }
	.tut-stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
	.tut-stage svg { position: static; background: #F1F0EC; height: auto; }
	.tut-frame { opacity: 1; }
	.tut-draw { stroke-dashoffset: 0; }
	.tut-pause { display: none; }
	.tut-steps li { border-color: var(--line); background: transparent; }
}

/* Generic figures (shortcodes) */
.fig { margin: 32px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font: 500 12px/1.5 var(--mono); color: var(--muted); letter-spacing: .03em; }
.pairing { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 16px; }
.pairing figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pairing svg { border-radius: 3px; display: block; width: 100%; height: auto; }
.pairing figcaption { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.types-grid figure { margin: 0; background: #F1F0EC; border-radius: 3px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.types-grid figcaption { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.care-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.care-grid figcaption { font-size: 14px; line-height: 1.4; }
.cta-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); text-decoration: none; color: #fff !important; background: var(--accent); border-radius: 3px; overflow: hidden; margin: 32px 0; }
.cta-band svg { display: block; width: 100%; height: 100%; min-height: 150px; }
.cta-band .body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.cta-band .t { font: 700 30px/.95 var(--display); text-transform: uppercase; }
.cta-band:hover { background: var(--accent-dark); }

/* Scarf Studio simulator */
.sim { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sim-stage { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sim-canvas { display: block; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 600 / 640; height: auto; background: var(--rail); border-radius: 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.sim-canvas.grabbing { cursor: grabbing !important; }
.sim-hint { margin: 0; text-align: center; font: 500 13px/1.5 var(--mono); color: var(--muted); min-height: 2.6em; }
.sim-panel { flex: 1 1 280px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; padding: 22px; }
.sim-group { display: flex; flex-direction: column; gap: 10px; }
.sim-group .eyebrow { margin: 0; }
.sim-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-buttons button, .sim-toggle button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 22px; font: 500 14px/1 var(--sans); cursor: pointer; }
.sim-buttons button:hover, .sim-toggle button:hover { border-color: var(--ink); }
.sim-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sim-row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.sim-tip { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sim-row .btn { flex: 1 1 140px; }

/* Promises */
.promises { list-style: none; margin: 0 auto; padding-block: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.promises li { display: flex; gap: 16px; align-items: flex-start; }
.promises p { margin: 0; }
.promises .t { font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.promises .d { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Guides cards */
.guide-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 22px; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 25, 28, .08); color: var(--ink); }
.guide-card svg { display: block; width: 100%; height: auto; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.guide-list li { border-top: 1px solid var(--line-2); }
.guide-list a { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; text-decoration: none; font: 700 20px/1.15 var(--display); text-transform: uppercase; }

/* Covers */
.cover { display: block; width: 100%; height: auto; border-radius: 3px; }
.post-cover { border-radius: 4px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .28); }
.post-cover .cover { border-radius: 0; }

/* Article */
.post-hero { padding-block: clamp(40px, 6vw, 80px); }
.post-hero .grid-2 { align-items: center; gap: 40px; }
.post-hero .meta { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #B8C0CF; }
.crumbs { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: inherit; opacity: .85; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 56px 80px; }
.article-aside { flex: 1 1 220px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.article-main { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.toc { border-top: 2px solid var(--ink); padding-top: 16px; }
.toc h2 { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.4; }
.toc a { display: inline-block; padding: 6px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.aside-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 16px; }
.aside-card svg { background: var(--rail); border-radius: 2px; display: block; width: 100%; height: auto; }

.prose { font-size: 18px; line-height: 1.75; color: #2A2E33; }
.prose > * { margin-block: 0 22px; }
.prose h2 { font: 700 clamp(30px, 3.4vw, 40px)/1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: 48px; scroll-margin-top: 20px; }
.prose h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: 32px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; background: var(--paper); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-top: 1px solid #E1E2DE; vertical-align: top; }
.prose thead th { background: var(--ink); color: #fff; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 0; }
.prose caption { caption-side: bottom; padding: 10px; font: 500 12px var(--mono); color: var(--muted); }
.prose blockquote { margin-inline: 0; padding: 18px 22px; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; }
.prose img { border-radius: 3px; }

/* Page */
.page-hero { padding-block: 48px 24px; }
.page-body { padding-block: 24px 80px; }
.woocommerce-cart .page-body, .woocommerce-checkout .page-body, .woocommerce-account .page-body { max-width: 1240px; }

/* Shop archive */
.shop-hero { position: relative; overflow: hidden; color: #fff; }
.shop-hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop-hero .wrap { position: relative; padding-block: 40px 56px; display: flex; flex-direction: column; gap: 16px; }
.shop-hero p { margin: 0; max-width: 40em; font-size: 18px; line-height: 1.55; }
.shop-hero .crumbs, .shop-hero .crumbs a { color: inherit !important; }
.shop-desc p { margin: 0; max-width: 40em; font-size: 18px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 22px; border: 1px solid #BFC1BC; text-decoration: none; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 32px 72px; }
.shop-aside { flex: 1 1 220px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }
.shop-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.filter-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.filter-group h3 { margin: 0 0 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 22px; padding: 4px; border: 2px solid transparent; display: inline-block; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch.on { border-color: var(--ink); }
.filter-links { list-style: none; margin: 0; padding: 0; }
.filter-links a { display: flex; justify-content: space-between; padding: 9px 0; text-decoration: none; font-size: 15px; }
.filter-links a.on { font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); padding-left: 10px; }
.help-card { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.woocommerce .woocommerce-result-count, .woocommerce-result-count { margin: 0 !important; float: none !important; font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.woocommerce .woocommerce-ordering, .woocommerce-ordering { margin: 0 !important; float: none !important; }
.woocommerce-ordering select { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); border-radius: 2px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: grid !important; place-items: center; border: 1px solid var(--line-2); font-family: var(--mono); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; }
.empty-shop { border: 1px dashed var(--line-2); border-radius: 3px; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; align-items: center; background: var(--soft); }
.seo-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; }
.faq details { border-top: 1px solid var(--line-2); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

/* Single product */
.product-top { padding-block: 24px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-main { background: var(--rail); border-radius: 4px; overflow: hidden; aspect-ratio: 6 / 7; display: grid; }
.gallery-main > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.gallery-main img { object-fit: cover; }
.gallery-main [hidden] { display: none !important; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line-2); border-radius: 3px; background: var(--rail); cursor: pointer; overflow: hidden; aspect-ratio: 1; min-height: 52px; }
.gallery-thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.view-tabs button { min-height: 52px; padding: 10px 6px; border: 1px solid var(--line-2); background: var(--paper); font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 3px; }
.view-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.summary-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.summary-col .product_title { font: 700 clamp(40px, 5.2vw, 72px)/.92 var(--display); text-transform: uppercase; margin: 0; }
.summary-col p.price, .summary-col span.price { font: 500 24px/1 var(--mono) !important; color: var(--ink) !important; margin: 0; }
.summary-col .woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; line-height: 1.6; }
.summary-col .woocommerce-product-details__short-description > *:last-child { margin-bottom: 0; }
.summary-col form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 !important; }
.summary-col form.cart .quantity { display: flex; margin: 0 !important; }
.summary-col form.cart .quantity .qty { width: 80px; min-height: 56px; border: 1px solid var(--ink); text-align: center; font-family: var(--mono); background: var(--paper); border-radius: 2px; }
.summary-col form.cart .single_add_to_cart_button, .woocommerce .summary-col button.button.alt { flex: 1 1 220px; min-height: 56px; background: var(--accent) !important; color: #fff !important; font: 600 17px/1 var(--sans) !important; border-radius: 2px !important; border: 0; padding: 0 24px !important; }
.summary-col form.cart .single_add_to_cart_button:hover { background: var(--accent-dark) !important; }
.summary-col table.variations { width: 100%; border: 0; margin-bottom: 8px !important; }
.summary-col table.variations th, .summary-col table.variations td { display: block; padding: 0 0 8px !important; text-align: left; border: 0; }
.summary-col table.variations select { min-height: 48px; min-width: 200px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); border-radius: 2px; }
.summary-col .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.summary-col .single_variation_wrap { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.swatch-row button { width: 52px; height: 52px; border-radius: 26px; padding: 4px; border: 2px solid transparent; background: transparent; cursor: pointer; }
.swatch-row button span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch-row button[aria-pressed="true"] { border-color: var(--ink); }
.swatch-row button.text { width: auto; min-width: 52px; padding: 0 14px; border: 1px solid var(--line-2); font-size: 14px; }
.swatch-row button.text[aria-pressed="true"] { background: var(--ink); color: #fff; }
.promise-list { list-style: none; margin: 0; padding: 18px 0; border-block: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.promise-list li { display: flex; gap: 12px; align-items: center; }
.care-label { background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; }
.care-label .cl-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.care-label dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font: 400 14px/1.4 var(--mono); }
.care-label dl > div { padding: 14px 18px; border-bottom: 1px solid #E1E2DE; }
.care-label dl > div:nth-child(odd) { border-right: 1px solid #E1E2DE; }
.care-label dt { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.care-label dd { margin: 4px 0 0; }
.acc details { border-top: 1px solid var(--line-2); padding: 4px 0; }
.acc details:last-child { border-bottom: 1px solid var(--line-2); }
.acc summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font: 700 18px/1 var(--display); text-transform: uppercase; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 22px/1 var(--mono); }
.acc details[open] summary::after { content: "−"; }
.acc .acc-body { color: var(--muted); line-height: 1.65; padding-bottom: 16px; }
.acc .acc-body > *:last-child { margin-bottom: 0; }
.related.products > h2, .upsells.products > h2 { font: 700 clamp(32px, 4vw, 52px)/.95 var(--display); text-transform: uppercase; margin: 0 0 28px; }
.woocommerce .onsale { display: none; }

/* Woo notices / forms (classic pages) */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent) !important; background: var(--paper) !important; font-size: 15px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--ink); color: #fff; border-radius: 2px; font-weight: 600; padding: 14px 20px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid var(--line-2); padding: 8px 12px; background: var(--paper); }

/* Footer */
.site-footer { background: var(--ink); color: #D9DAD6; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; padding-block: 64px 48px; }
.footer-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: #B5B8BD; }
.footer-grid h2 { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9EA3AA; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-grid a { color: #E6E7E3; text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #33363B; padding-block: 24px 32px; font: 400 12px/1.5 var(--mono); color: #9EA3AA; }
.footer-bottom a { color: #B5B8BD; }

/* 404 */
.notfound { padding-block: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
	.hero-facts { grid-template-columns: 1fr 1fr; }
	.prose { font-size: 17px; }
	.tut-stage { border-right: 0; border-bottom: 1px solid var(--line); }
}
