/* ==========================================================================
   TRDC – main.css
   Minimalistisk, svart/hvit, store typer. Én aksent: TRDC-gult.
   ========================================================================== */

:root {
	--paper: #f3f2ee;
	--paper-2: #e9e7e1;
	--ink: #0b0b0b;
	--ink-2: #4a4a47;
	--ink-3: #8a8a85;
	--line: rgba(11, 11, 11, 0.14);
	--accent: #e8c547;
	--accent-ink: #0b0b0b;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1440px;
	--radius: 2px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; font-variation-settings: "wdth" 115; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* Layout helpers ---------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: clamp(48px, 8vw, 112px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.section__title { font-size: clamp(32px, 5vw, 64px); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; font-variation-settings: "wdth" 100; }
.eyebrow a { color: inherit; }
.sep { color: var(--ink-3); margin-inline: 0.3em; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(18px, 2vw, 22px); max-width: 52ch; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; }

/* Buttons ----------------------------------------------------------------- */
.btn, .button, button.button, .single_add_to_cart_button, .checkout-button, #place_order, .woocommerce-form-login button, .woocommerce-form-register button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px;
	border: 1px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: var(--paper);
	font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
	cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
	text-decoration: none !important;
}
.btn:hover, .button:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost, .button.alt-ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.button:disabled, .button.disabled, .single_add_to_cart_button.disabled { opacity: 0.35; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	height: 72px; padding-inline: var(--gutter);
}
.site-header__brand { justify-self: center; display: block; transform: translateY(4px); }
.site-header__brand img { width: 88px; height: auto; transition: transform 0.25s var(--ease); }
.site-header__brand:hover img { transform: rotate(-3deg) scale(1.04); }

.site-nav .menu { display: flex; gap: 28px; }
.site-nav .menu a { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; position: relative; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--ink); transition: right 0.25s var(--ease); }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after { right: 0; }
.site-nav .menu a:hover { text-decoration: none; }
.site-nav__meta { display: none; }

.site-header__tools { justify-self: end; display: flex; align-items: center; gap: 16px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-link svg { width: 22px; height: 22px; }
.cart-link:hover { text-decoration: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; }
.cart-count[data-count="0"] { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.nav-toggle { display: none; justify-self: start; width: 44px; height: 44px; margin-left: -10px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero__inner { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); min-height: clamp(560px, calc(100svh - 72px), 880px); display: flex; flex-direction: column; justify-content: space-between; }
.hero__eyebrow { color: var(--ink); }
.hero__title { font-size: clamp(56px, 11vw, 176px); line-height: 0.86; letter-spacing: -0.035em; font-variation-settings: "wdth" 118; display: flex; flex-direction: column; margin-block: 16px 32px; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); margin: 0; }
.hero__art { position: absolute; z-index: 1; right: -4%; top: 10%; width: clamp(260px, 42vw, 720px); opacity: 0.1; filter: grayscale(1); pointer-events: none; transform: rotate(-6deg); }

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding-block: 12px; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee__item { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-right: 0.6em; }
.marquee__dot { font-size: 7px; vertical-align: middle; margin-inline: 1.2em; color: var(--accent); }
.marquee--footer { border-top: 1px solid var(--paper); border-bottom: 0; }
@keyframes marquee { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Product grid & cards ---------------------------------------------------- */
ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 40px) clamp(12px, 2vw, 24px); margin: 0; padding: 0; }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }

.card { list-style: none; }
.card__link { display: block; }
.card__link:hover { text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.card__img--hover { opacity: 0; }
.card__link:hover .card__img:not(.card__img--hover) { transform: scale(1.03); }
.card__link:hover .card__img--hover { opacity: 1; }
.card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; }
.card__title { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; font-variation-settings: "wdth" 100; }
.card__price { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card__price ins { text-decoration: none; color: var(--ink); }
.card__price del { color: var(--ink-3); margin-right: 6px; }
.outofstock .card__media { opacity: 0.6; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; border-radius: var(--radius); }
.badge--sale { background: var(--accent); color: var(--accent-ink); }
.badge--out { background: var(--ink); color: var(--paper); }

/* Shop head --------------------------------------------------------------- */
.shop-head, .page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-title { font-size: clamp(40px, 8vw, 112px); line-height: 0.9; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filter__item { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; transition: background 0.15s, color 0.15s; }
.filter__item:hover, .filter__item.is-active { background: var(--ink); color: var(--paper); text-decoration: none; }
.shop-main > .container { padding-bottom: clamp(48px, 8vw, 112px); }
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--ink); font-weight: 700; }
.woocommerce-pagination .current { background: var(--ink); color: var(--paper); }

/* Single product ---------------------------------------------------------- */
.single-product .product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: clamp(24px, 4vw, 56px) clamp(48px, 8vw, 112px); align-items: start; }
.single-product .woocommerce-product-gallery { position: relative; width: 100%; }
.single-product .woocommerce-product-gallery .flex-viewport { background: var(--paper-2); border-radius: var(--radius); }
.single-product .woocommerce-product-gallery__wrapper { display: grid; gap: 8px; margin: 0; }
.single-product .woocommerce-product-gallery__image { background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.single-product .woocommerce-product-gallery__image img { width: 100%; }
.single-product .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--paper); border: 1px solid var(--ink); font-size: 0; }
.single-product .woocommerce-product-gallery__trigger::before { content: "+"; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.single-product .woocommerce-product-gallery__trigger img { display: none; }
.single-product .flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.single-product .flex-control-thumbs li { width: 72px; cursor: pointer; opacity: 0.5; border: 1px solid transparent; }
.single-product .flex-control-thumbs li:hover, .single-product .flex-control-thumbs img.flex-active { opacity: 1; }
.single-product .flex-control-thumbs img { border: 1px solid var(--line); }
.single-product .flex-control-thumbs img.flex-active { border-color: var(--ink); }

.single-product .summary { position: sticky; top: 96px; }
.single-product .product_title { font-size: clamp(36px, 4.5vw, 64px); margin-bottom: 16px; }
.single-product .summary .price { font-size: 20px; font-weight: 500; margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.single-product .summary .price del { color: var(--ink-3); margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }
.single-product .woocommerce-product-details__short-description { color: var(--ink-2); max-width: 48ch; margin-bottom: 24px; }
.single-product .stock { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 8px 0 0; }
.single-product .stock.out-of-stock { color: #b4261b; }

/* Variations */
table.variations, table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; width: 100%; }
table.variations { margin-bottom: 20px; border-collapse: collapse; }
table.variations tr { margin-bottom: 18px; }
table.variations th, table.variations td { padding: 0; text-align: left; }
table.variations td.value { position: relative; }
table.variations th.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
table.variations .reset_variations { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.woocommerce-variation-price { margin-bottom: 16px; }
.woocommerce-variation-availability .stock { margin-bottom: 12px; }
.single_variation_wrap .woocommerce-variation { margin-bottom: 8px; }

/* Size swatches (bygges av main.js fra <select>) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { min-width: 52px; height: 44px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s; }
.swatch:hover { background: var(--paper-2); }
.swatch.is-active { background: var(--ink); color: var(--paper); }
.swatch.is-disabled { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }
.has-swatches select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

form.cart { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
form.cart.variations_form { display: block; }
form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 8px; }
form.cart .single_add_to_cart_button { flex: 1; min-height: 56px; }

.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); border-radius: var(--radius); height: 56px; }
.quantity .qty { width: 56px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity .screen-reader-text { position: absolute; left: -9999px; }
.qty-btn { width: 40px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty-btn:hover { background: var(--paper-2); }

/* Accordions */
.product-details { border-top: 1px solid var(--ink); }
.product-details__item { border-bottom: 1px solid var(--ink); }
.product-details__item summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.product-details__item summary::-webkit-details-marker { display: none; }
.product-details__item summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.product-details__item[open] summary::after { content: "–"; }
.product-details__body { padding-bottom: 20px; color: var(--ink-2); max-width: 56ch; }
.product-details__body p:last-child { margin-bottom: 0; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-product-attributes th { font-weight: 600; width: 40%; color: var(--ink); }
.woocommerce-product-attributes p { margin: 0; }

/* Related */
.single-product .related, .single-product .up-sells { grid-column: 1 / -1; padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.single-product .related > h2, .single-product .up-sells > h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 32px; }

/* Notices ----------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { width: min(100% - 2 * var(--gutter), var(--max)); margin: 24px auto 0; padding: 16px 20px; border: 1px solid var(--ink); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; list-style: none; font-size: 14px; }
.woocommerce-message { background: var(--accent); }
.woocommerce-error { border-color: #b4261b; color: #b4261b; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding-inline: 16px; font-size: 12px; order: 2; }
.single-product .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.single-product .woocommerce-notices-wrapper .woocommerce-message { width: auto; margin: 0 0 24px; }

/* Cart -------------------------------------------------------------------- */
.woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-account .site-main { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-bottom: clamp(48px, 8vw, 112px); }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content, .woocommerce-account .entry-content { max-width: none; }

.woocommerce-cart-form { }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.shop_table th, table.shop_table td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
table.shop_table .product-thumbnail { width: 96px; }
table.shop_table .product-thumbnail img { width: 80px; background: var(--paper-2); }
table.shop_table .product-name a { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
table.shop_table .product-name a:hover { text-decoration: underline; }
table.shop_table .variation { display: flex; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
table.shop_table .variation p, table.shop_table .variation dt, table.shop_table .variation dd { margin: 0; display: inline; }
table.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--ink-2); }
table.shop_table .product-remove a:hover { background: var(--ink); color: var(--paper); text-decoration: none; border-color: var(--ink); }
table.shop_table .product-subtotal, table.shop_table .product-price { font-variant-numeric: tabular-nums; }
table.shop_table .quantity { height: 44px; }
table.shop_table .quantity .qty { width: 44px; }
table.shop_table .actions { padding-top: 24px; }
table.shop_table .actions .coupon { display: inline-flex; gap: 8px; margin-right: 12px; }
table.shop_table .actions .button { white-space: nowrap; }
table.shop_table .actions .coupon input { height: 52px; }
table.shop_table .actions .coupon .button, table.shop_table .actions > .button { background: transparent; color: var(--ink); }
table.shop_table .actions .coupon .button:hover, table.shop_table .actions > .button:hover { background: var(--ink); color: var(--paper); }
.cart-collaterals { display: grid; grid-template-columns: 1fr minmax(320px, 40%); margin-top: 40px; }
.cart-collaterals .cart_totals { grid-column: 2; }
.cart_totals h2 { font-size: 20px; margin-bottom: 12px; }
.cart_totals table th { width: 40%; }
.cart_totals .order-total td { font-size: 20px; font-weight: 700; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .button { width: 100%; }
.cart-empty.woocommerce-info { background: transparent; }
.return-to-shop { margin-top: 16px; }
.woocommerce-shipping-destination { font-size: 13px; color: var(--ink-2); }
#shipping_method { list-style: none; padding: 0; margin: 0; }
#shipping_method li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
#shipping_method label { font-size: 14px; }
.shipping-calculator-button { font-size: 13px; text-decoration: underline; }

/* Checkout ---------------------------------------------------------------- */
form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 0 clamp(24px, 5vw, 80px); align-items: start; }
form.checkout.woocommerce-checkout #order_review_heading, form.checkout.woocommerce-checkout #order_review { grid-column: 2; }
form.checkout.woocommerce-checkout #order_review_heading { font-size: 20px; margin-bottom: 12px; grid-row: 1; }
form.checkout.woocommerce-checkout #order_review { grid-row: 2; align-self: start; }
form.checkout.woocommerce-checkout #order_review { background: var(--paper-2); padding: 24px; border-radius: var(--radius); position: sticky; top: 96px; }
form.checkout.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
form.checkout.woocommerce-checkout #customer_details h3, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 20px; margin: 0 0 16px; }
.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: 32px; }
.woocommerce-shipping-fields h3 label { display: inline-flex; gap: 8px; align-items: center; text-transform: none; font-weight: 500; font-size: 14px; letter-spacing: 0; }
#order_review table.shop_table th, #order_review table.shop_table td { padding-inline: 0; }
#order_review .order-total td, #order_review .order-total th { font-size: 18px; font-weight: 700; border-bottom: 0; }
#payment { margin-top: 24px; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--ink); }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li > label { font-weight: 700; display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
#payment .payment_box { font-size: 13px; color: var(--ink-2); margin: 8px 0 0 26px; }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; margin-top: 8px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { width: auto; margin: 0 0 16px; }
.checkout_coupon.woocommerce-form-coupon { display: flex; gap: 8px; margin-bottom: 24px; align-items: flex-end; }
.checkout_coupon p { margin: 0; }
.woocommerce-order { display: grid; gap: 32px; }
.woocommerce-thankyou-order-received { font-size: clamp(24px, 3vw, 36px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 16px 0; border-block: 1px solid var(--ink); }
.woocommerce-order-overview li { font-size: 13px; color: var(--ink-2); }
.woocommerce-order-overview strong { display: block; color: var(--ink); font-size: 16px; }
.woocommerce-order h2, .woocommerce-customer-details h2, .woocommerce-order-details h2 { font-size: 20px; margin-bottom: 12px; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; }

/* Forms ------------------------------------------------------------------- */
.form-row { margin: 0 0 16px; }
.form-row label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.form-row label .required { color: #b4261b; text-decoration: none; }
.form-row label .optional { color: var(--ink-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select, .select2-container--default .select2-selection--single {
	width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); outline: none; appearance: none; -webkit-appearance: none;
}
textarea { height: auto; min-height: 120px; padding: 14px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.input-text:focus, input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 2px var(--accent); }
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 8px; }
.select2-dropdown { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink); color: var(--paper); }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--line); }
.form-row.form-row-first, .form-row.form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.form-row.form-row-last { margin-left: 16px; }
.form-row.woocommerce-invalid .input-text { border-color: #b4261b; }
.form-row input[type="checkbox"], .form-row input[type="radio"], input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; margin: 0 6px 0 0; }
.woocommerce-input-wrapper { display: block; }
.woocommerce-password-strength, .woocommerce-password-hint { font-size: 12px; margin-top: 6px; color: var(--ink-2); }
.show-password-input { display: none; }

/* My account -------------------------------------------------------------- */
.woocommerce-MyAccount-navigation { margin-bottom: 32px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.woocommerce-MyAccount-navigation a:hover, .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); text-decoration: none; }
.woocommerce-MyAccount-content { max-width: 72ch; }
.woocommerce-MyAccount-content .woocommerce-info, .woocommerce-MyAccount-content .woocommerce-message { width: auto; margin: 0 0 16px; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.woocommerce-form-login, .woocommerce-form-register { border: 1px solid var(--ink); padding: 24px; border-radius: var(--radius); }
.u-column1 h2, .u-column2 h2 { font-size: 24px; margin-bottom: 16px; }
.woocommerce-form-login .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.woocommerce-LostPassword { font-size: 13px; }
.woocommerce-Address { margin-top: 16px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.woocommerce-Address-title h2 { font-size: 20px; }
.woocommerce-Address address { font-style: normal; line-height: 1.6; }
.woocommerce-orders-table .button { min-height: 36px; padding-inline: 12px; font-size: 11px; }

/* Pages / prose ----------------------------------------------------------- */
.page-article { padding-bottom: clamp(48px, 8vw, 112px); }
.prose { max-width: 64ch; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px, 3vw, 36px); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 0.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 0.15em; }
.prose blockquote { margin: 2em 0; padding-left: 20px; border-left: 3px solid var(--ink); font-size: 1.25em; font-weight: 500; }
.prose img { border-radius: var(--radius); }
.prose .wp-block-image { margin: 2em 0; }
.prose figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--ink); margin: 2.5em 0; }
.post-list { display: grid; gap: 32px; max-width: 72ch; }
.post-card__title { font-size: 28px; margin-bottom: 8px; }
.error-page { padding-block: clamp(48px, 10vw, 128px); }
.error-page .btn { margin-top: 24px; }

/* Front: split & stripe --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; border-top: 1px solid var(--ink); }
.split__art { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10%; border-radius: var(--radius); overflow: hidden; }
.split__art--dark { background: var(--ink); }
.split__art img { width: 100%; object-fit: contain; }
.split__title { font-size: clamp(32px, 4.5vw, 64px); margin-bottom: 20px; }
.split__text p:not(.eyebrow) { color: var(--ink-2); max-width: 46ch; font-size: 17px; margin-bottom: 24px; }

.stripe { padding-block: 0 clamp(48px, 8vw, 112px); }
.stripe__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stripe__list li { padding: 24px 24px 24px 0; border-right: 1px solid var(--line); display: grid; gap: 12px; }
.stripe__list li:not(:first-child) { padding-left: 24px; }
.stripe__list li:last-child { border-right: 0; }
.stripe__list strong { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); }
.stripe__list span { font-size: 15px; font-weight: 600; line-height: 1.35; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--paper); margin-top: auto; }
.site-footer a:hover { color: var(--accent); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: clamp(48px, 6vw, 80px); }
.site-footer__brand img { width: 140px; margin-bottom: 20px; }
.site-footer__tag { max-width: 28ch; color: rgba(243, 242, 238, 0.6); font-size: 14px; }
.site-footer .eyebrow { color: rgba(243, 242, 238, 0.5); margin-bottom: 16px; }
.site-footer__col li { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: 20px; border-top: 1px solid rgba(243, 242, 238, 0.15); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 242, 238, 0.6); }
.to-top { margin-left: auto; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
	ul.products, ul.products.columns-4 { grid-template-columns: repeat(3, 1fr); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.stripe__list { grid-template-columns: repeat(2, 1fr); }
	.stripe__list li { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
	.stripe__list li:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 860px) {
	.site-header__inner { grid-template-columns: 44px 1fr 44px; height: 64px; }
	.site-header__brand img { width: 72px; }
	.nav-toggle { display: grid; place-items: center; }
	.site-nav { position: fixed; inset: 64px 0 0; background: var(--paper); padding: 32px var(--gutter); display: none; flex-direction: column; justify-content: space-between; z-index: 40; }
	.nav-open .site-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav .menu a { font-size: clamp(36px, 10vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "wdth" 115; }
	.site-nav .menu a::after { display: none; }
	.site-nav__meta { display: flex; gap: 20px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
	.cart-link__label { display: none; }
	.hero__inner { min-height: clamp(520px, calc(100svh - 64px), 760px); }
	.hero__art { right: -20%; top: 30%; width: 70vw; }
	.single-product .product { grid-template-columns: 1fr; }
	.single-product .summary { position: static; }
	form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	form.checkout.woocommerce-checkout #order_review_heading, form.checkout.woocommerce-checkout #order_review { grid-column: 1; position: static; }
	form.checkout.woocommerce-checkout #customer_details { grid-row: auto; }
	.cart-collaterals { grid-template-columns: 1fr; }
	.cart-collaterals .cart_totals { grid-column: 1; }
	.split { grid-template-columns: 1fr; }
	.u-columns.col2-set { grid-template-columns: 1fr; }
	.woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	ul.products, ul.products.columns-3, ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
	.card__body { flex-direction: column; gap: 2px; }
	.card__title { font-size: 12px; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.hero__title { font-size: clamp(40px, 12.5vw, 120px); }
	.hero__foot .btn { width: 100%; }
	.stripe__list { grid-template-columns: 1fr; }
	.stripe__list li { border-bottom: 1px solid var(--line); }
	.stripe__list li:last-child { border-bottom: 0; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
	table.shop_table thead { display: none; }
	table.shop_table tr { display: grid; grid-template-columns: 32px 80px 1fr; grid-template-areas: "remove thumb name" "remove thumb price" "remove thumb qty" "remove thumb subtotal"; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	table.shop_table td { border: 0; padding: 0; }
	table.shop_table td.product-remove { grid-area: remove; }
	table.shop_table td.product-thumbnail { grid-area: thumb; }
	table.shop_table td.product-name { grid-area: name; }
	table.shop_table td.product-price { grid-area: price; }
	table.shop_table td.product-quantity { grid-area: qty; }
	table.shop_table td.product-subtotal { grid-area: subtotal; font-weight: 700; }
	table.shop_table tr.cart_item .product-thumbnail img { width: 80px; }
	table.shop_table td.actions { display: block; }
	table.shop_table td.actions .coupon { display: flex; margin: 0 0 12px; }
	.cart_totals table tr { display: table-row; }
	.cart_totals table td, .cart_totals table th { display: table-cell; padding: 12px 0; border-bottom: 1px solid var(--line); }
	#order_review table.shop_table tr { display: table-row; }
	#order_review table.shop_table td, #order_review table.shop_table th { display: table-cell; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.form-row.form-row-first, .form-row.form-row-last { width: 100%; display: block; margin-left: 0; }
}
