/*
Theme Name: Tyler New
Theme URI: https://permadigital.co.uk
Author: Perma Digital
Author URI: https://permadigital.co.uk
Description: Dark rock/tattoo WooCommerce theme for Tyler's art. Greyscale sketchbook with blood-maroon ink, blackletter headings, marker scrawl and a flipping background of pen doodles.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.1
Text Domain: tyler-new
WC requires at least: 8.0
*/

/* ---------- Tokens ---------- */
html:root {
    --ink: #0a0a0a;
    --stone: #131313;
    --slab: #1b1b1b;
    --line: #2e2e2e;
    --ash: #8e8e8e;
    --bone: #e4e4e4;
    --white: #f6f6f6;
    --blood: #6b0f1a;
    --blood-hi: #8e1624;
    --blood-text: #cf6a72; /* accent tint only where text must stay legible (errors, out of stock) */

    --display: 'Pirata One', 'Old English Text MT', serif; /* blackletter: headings only */
    --scrawl: 'Permanent Marker', 'Marker Felt', cursive; /* short accents only */
    --type: 'Special Elite', 'Courier New', monospace;   /* body + UI */
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* WooCommerce's own variables */
    --wc-primary: var(--blood);
    --wc-primary-text: var(--white);
    --wc-secondary: var(--slab);
    --wc-secondary-text: var(--bone);
    --wc-highlight: var(--bone);
    --wc-highligh-text: var(--ink);
    --wc-content-bg: var(--ink);
    --wc-subtext: var(--ash);
    --wc-red: var(--blood-text);
    --wc-form-border-color: var(--line);
    --wc-form-border-radius: 0;
    --wc-form-color-background: var(--stone);
    --wc-form-color-text: var(--bone);

    color-scheme: dark;
    scrollbar-color: var(--line) var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font: 17px/1.7 var(--type);
    overflow-x: hidden;
}
/* Film grain */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    z-index: 999;
    pointer-events: none;
    opacity: .07;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--blood-hi); text-underline-offset: .22em; transition: color .3s; }
a:hover { color: var(--white); }
::selection { background: var(--blood); color: var(--white); }
:focus-visible { outline: 2px dashed var(--bone); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--white);
    margin: 0 0 .5em;
}
p { margin: 0 0 1.2em; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
    clip-path: none; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
    padding: .6em 1em; background: var(--bone); color: var(--ink);
}

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section__more { text-align: center; margin-top: 56px; }

/* ---------- Sketchbook (background doodles) ---------- */
.sketchbook { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sketchbook__page {
    position: absolute; inset: 0; width: 100%; height: 100%;
    fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0;
    transform: translateX(6%) rotate(2deg);
    transform-origin: 0 100%;
    transition: opacity 1.4s, transform 1.8s var(--ease);
}
.sketchbook__page use { opacity: .13; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sketchbook__page use.is-accent { stroke: var(--blood-hi); opacity: .45; }
.sketchbook__page.is-on { opacity: 1; transform: none; }
.sketchbook__page.is-on use { animation: draw 3.2s var(--ease) forwards; animation-delay: calc(var(--d) * .45s + .3s); }
/* Page flips away to the left, like turning a sheet. */
.sketchbook__page.is-off { opacity: 0; transform: translateX(-8%) rotate(-4deg); }
.sketchbook__page.is-off use { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Scribbles & wire ---------- */
.scribble { fill: none; stroke: var(--blood-hi); stroke-width: 3; stroke-linecap: round; overflow: visible; }
.scribble path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.is-in .scribble path, .hero .scribble path, html:not(.js) .scribble path { animation: draw 1.4s var(--ease) .3s forwards; }

.barbed {
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='20' fill='none' stroke='%23555' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M0 10C12 6 12 14 24 10S36 6 48 10M0 10C12 14 12 6 24 10S36 14 48 10M18 4L30 16M30 4L18 16'/%3E%3C/svg%3E") repeat-x center;
    opacity: .8;
}

/* ---------- Forms ---------- */
input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=reset], [type=range], [type=file]),
select, textarea,
.select2-container--default .select2-selection--single {
    font: inherit;
    color: var(--bone);
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: .65em .9em;
    max-width: 100%;
    transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--bone); outline: 2px solid var(--blood); outline-offset: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--blood-hi); }
label { color: var(--ash); }
.select2-container--default .select2-selection--single { height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--bone); line-height: 1.5; padding: 0; }
.select2-dropdown { background: var(--stone); border-color: var(--line); color: var(--bone); }

/* ---------- Buttons: hard offset shadow, like a stamp ---------- */
.btn,
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.wp-element-button, .wp-block-button__link,
.wc-block-components-button:not(.is-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font: 400 .85rem/1 var(--type);
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bone);
    background: var(--ink);
    border: 2px solid var(--bone);
    border-radius: 0;
    padding: 1.05em 1.8em;
    box-shadow: 4px 4px 0 var(--blood);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover,
.woocommerce :is(a.button, button.button, input.button, #respond input#submit):hover,
.wp-element-button:hover, .wp-block-button__link:hover,
.wc-block-components-button:not(.is-link):hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--blood);
    background: var(--ink);
    color: var(--white);
}
.btn:active,
.woocommerce :is(a.button, button.button, input.button):active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--blood); }
.btn--primary,
.woocommerce :is(a.button, button.button, input.button).alt,
.woocommerce div.product form.cart .button,
.wc-block-components-button.contained:not(.is-link),
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
    background: var(--blood);
    border-color: var(--bone);
    color: var(--white);
    box-shadow: 4px 4px 0 var(--bone);
}
.btn--primary:hover,
.woocommerce :is(a.button, button.button, input.button).alt:hover,
.woocommerce div.product form.cart .button:hover,
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover {
    background: var(--blood-hi);
    box-shadow: 7px 7px 0 var(--bone);
}
.woocommerce :is(a.button, button.button).disabled,
.woocommerce :is(button.button):disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s;
}
.site-header.is-scrolled, body:not(.home) .site-header {
    background: rgba(10, 10, 10, .9);
    backdrop-filter: blur(10px);
    border-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { margin-right: auto; }
.brand img { max-height: 56px; width: auto; }
.brand__text {
    font: 400 2rem/1 var(--display);
    text-decoration: none;
    color: var(--white);
    display: inline-block;
    transition: transform .3s var(--ease);
}
a.brand__text:hover { transform: rotate(-3deg) scale(1.04); }

.site-nav__list, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; gap: 32px; }
.site-nav .menu-item { position: relative; }
.site-nav a {
    display: block;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .8em 0;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a {
    color: var(--white);
    text-decoration: underline wavy var(--blood-hi) 1.5px;
    text-underline-offset: .5em;
}
.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -1.2em;
    min-width: 220px;
    padding: .8em 1.2em;
    background: var(--stone);
    border: 1px solid var(--line);
    box-shadow: 5px 5px 0 var(--blood);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) rotate(-1deg);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.site-nav .menu-item:is(:hover, :focus-within) > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.site-header__actions { display: flex; gap: 18px; }
.icon-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--bone); }
.icon-link svg { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s var(--ease); }
.icon-link:hover { color: var(--white); }
.icon-link:hover svg { transform: rotate(-8deg); }
.cart__count {
    position: absolute; top: 0; right: -4px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center;
    font: 12px/1 var(--scrawl);
    background: var(--blood); color: var(--white);
    border-radius: 50% 45% 55% 40%;
    animation: pop .5s var(--ease);
}
.cart__count.is-empty { display: none; }
@keyframes pop { from { transform: scale(.3) rotate(-30deg); } }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--bone); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--ease), background .3s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; }
.nav-toggle__bars::before { top: -8px; width: 20px; }
.nav-toggle__bars::after { top: 8px; width: 23px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { width: 26px; transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { width: 26px; transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; order: 3; position: relative; z-index: 2; }
    .site-header__actions { order: 2; gap: 4px; }
    .site-header__inner { gap: 8px; min-height: 68px; }
    .site-nav {
        position: fixed; inset: 0; z-index: 1;
        display: grid; place-items: center;
        background: rgba(10, 10, 10, .97);
        opacity: 0; visibility: hidden;
        transition: opacity .4s, visibility 0s .4s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
    .nav-open { overflow: hidden; }
    .site-nav__list { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
    .site-nav__list > li > a { font: 2.4rem/1.1 var(--display); letter-spacing: 0; text-transform: none; }
    .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
    .site-nav .sub-menu a { color: var(--ash); }
    .hero { margin-top: -68px; }
}


/* ---------- Header search dropdown ---------- */
button.icon-link { background: none; border: 0; padding: 0; cursor: pointer; }
.search-toggle[aria-expanded=true] { color: var(--white); }
.search-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 84px - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    background: rgba(10, 10, 10, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.search-panel__form { display: flex; align-items: center; gap: 12px; padding: 22px 0 14px; }
.search-panel .search-panel__input {
    flex: 1; min-width: 0;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    background: transparent; border: 0; border-bottom: 2px solid var(--line);
    padding: .4em 0; outline: none;
}
.search-panel .search-panel__input:focus { border-color: var(--blood-hi); outline: none; }
.search-panel__input::-webkit-search-cancel-button { display: none; }
.search-panel__close { background: none; border: 0; color: var(--ash); font: 2.2rem/1 var(--type); cursor: pointer; padding: 0 4px; transition: color .2s, transform .3s var(--ease); }
.search-panel__close:hover { color: var(--white); transform: rotate(90deg); }

.search-results { padding-bottom: 28px; transition: opacity .2s; }
.search-results.is-loading { opacity: .5; }
.search-results__hint { color: var(--ash); margin: 12px 0 0; }
.search-results__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 40px; padding-top: 10px; }
.search-results__terms { border-right: 1px dashed var(--line); padding-right: 40px; }
.search-results__label { font: 1rem/1 var(--scrawl); color: var(--ash); margin: 10px 0 14px; }
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-results li { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.search-results mark { background: none; color: var(--white); text-decoration: underline wavy var(--blood-hi); text-underline-offset: .25em; }
.search-results__empty { color: var(--ash); font-size: .9rem; }

.search-term { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: .55em .5em; text-decoration: none; border-left: 2px solid transparent; transition: background .2s, border-color .2s; }
.search-term .search-hit__name { font: 1.35rem/1.1 var(--display); color: var(--white); }
.search-term__meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.search-term:is(:hover, :focus-visible) { background: var(--stone); border-color: var(--blood-hi); outline: none; }

.search-results__products ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.search-product { display: flex; gap: 14px; align-items: center; padding: 8px; text-decoration: none; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search-product img { width: 64px; height: 64px; object-fit: contain; background: var(--slab); flex: none; }
.search-product__body { display: grid; gap: 2px; min-width: 0; }
.search-product .search-hit__name { font-size: .95rem; line-height: 1.3; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-product__price { font: .95rem/1.2 var(--scrawl); color: var(--bone); }
.search-product__price del { color: var(--ash); }
.search-product__price ins { text-decoration: none; }
.search-product__soldout { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blood-text); }
.search-product.is-soldout img { opacity: .45; }
.search-product:is(:hover, :focus-visible) { border-color: var(--line); background: var(--stone); outline: none; }
.search-results__all { display: inline-block; margin-top: 18px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.search-results__all:is(:hover, :focus-visible) { color: var(--white); text-decoration: underline wavy var(--blood-hi); outline: none; }

.search-note { text-align: center; color: var(--ash); margin: -12px 0 32px; }

@media (max-width: 860px) {
    .search-panel { max-height: calc(100dvh - 68px - var(--wp-admin--admin-bar--height, 0px)); }
    .search-results__grid { grid-template-columns: 1fr; gap: 18px; }
    .search-results__terms { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
    .search-results__products ul { grid-template-columns: 1fr; }
}


/* ---------- Basket drawer ---------- */
html:has(.basket-drawer[open]) { overflow: hidden; }
.basket-drawer {
    position: fixed; inset: 0 0 0 auto;
    width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line);
    background: var(--ink); color: var(--bone);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
}
.basket-drawer[open] { display: flex; flex-direction: column; }
.basket-drawer.is-open { transform: none; }
.basket-drawer::backdrop { background: rgba(0, 0, 0, 0); transition: background .35s; }
.basket-drawer.is-open::backdrop { background: rgba(0, 0, 0, .7); }

.basket-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.basket-drawer__title { font-size: 2.4rem; margin: 0; }
.basket-drawer__close { background: none; border: 0; color: var(--ash); font: 2.2rem/1 var(--type); cursor: pointer; transition: color .2s, transform .3s var(--ease); }
.basket-drawer__close:hover { color: var(--white); transform: rotate(90deg); }

/* Rewards progress */
.basket-progress { padding: 8px 24px 26px; border-bottom: 1px dashed var(--line); }
.basket-progress__msg { font-size: .9rem; margin: 0 0 16px; }
.basket-progress__msg strong { font: 1.05rem/1 var(--scrawl); color: var(--white); font-weight: 400; }
.basket-progress__track { position: relative; height: 4px; background: var(--line); margin: 0 8px 44px; }
.basket-progress__fill { position: absolute; inset: 0; background: var(--blood-hi); transform-origin: left; transition: transform .9s var(--ease); }
.basket-progress__stop {
    position: absolute; top: 50%; width: 16px; height: 16px;
    background: var(--ink); border: 2px solid var(--line); border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background .4s, border-color .4s;
}
.basket-progress__stop.is-reached { background: var(--blood-hi); border-color: var(--bone); animation: pop .5s var(--ease); }
.basket-progress__label {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    display: grid; text-align: center; white-space: nowrap;
    font: .95rem/1.1 var(--scrawl); color: var(--ash);
}
.basket-progress__label small { font: .68rem/1.3 var(--type); letter-spacing: .1em; text-transform: uppercase; }
.basket-progress__stop:last-child .basket-progress__label { left: auto; right: -8px; transform: none; text-align: right; }
.basket-progress__stop.is-reached .basket-progress__label { color: var(--white); }

/* Woo mini-cart inside the drawer. #id: on Woo pages body.woocommerce enables Woo's widget CSS (.woocommerce ul.cart_list li …), which outranks classes. */
#basket-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#basket-drawer .woocommerce-mini-cart { flex: 1; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 0 24px; }
#basket-drawer .woocommerce-mini-cart-item { position: relative; min-height: 112px; margin: 0; padding: 16px 36px 16px 88px; border-bottom: 1px dashed var(--line); list-style: none; }
#basket-drawer .woocommerce-mini-cart-item > a:not(.remove) { display: block; font-weight: 400; padding-right: 4px; font: 1.35rem/1.05 var(--display); color: var(--white); text-decoration: none; }
#basket-drawer .woocommerce-mini-cart-item > a:not(.remove):hover { text-decoration: underline wavy var(--blood-hi); }
#basket-drawer .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; float: none; width: 72px; height: 72px; margin: 0; object-fit: contain; background: var(--slab); box-shadow: none; }
#basket-drawer .woocommerce-mini-cart-item .quantity { display: block; margin-top: 6px; color: var(--ash); font-size: .88rem; }
#basket-drawer .woocommerce-mini-cart-item .quantity .amount { font-family: var(--scrawl); color: var(--bone); }
#basket-drawer .woocommerce-mini-cart-item dl.variation { margin: 6px 0 0; padding: 0; border: 0; font-size: .78rem; color: var(--ash); }
#basket-drawer .woocommerce-mini-cart-item dl.variation :is(dt, dd) { display: inline; margin: 0; }
#basket-drawer .woocommerce-mini-cart-item dl.variation dd p { display: inline; margin: 0; }
#basket-drawer a.remove {
    position: absolute; right: 0; top: 16px;
    display: grid; place-items: center; width: 28px; height: 28px;
    border: 1px solid var(--line); border-radius: 0;
    font: 1.2rem/1 var(--type); font-weight: 400; text-decoration: none; text-align: center;
    color: var(--ash) !important; background: none;
    transition: background .2s, color .2s, border-color .2s;
}
#basket-drawer a.remove:hover { background: var(--blood) !important; border-color: var(--blood); color: var(--white) !important; }
#basket-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 18px 24px; border-top: 1px solid var(--line); }
#basket-drawer .woocommerce-mini-cart__total strong { font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--ash); }
#basket-drawer .woocommerce-mini-cart__total .amount { font: 1.6rem/1 var(--scrawl); color: var(--white); }
#basket-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 14px; margin: 0; padding: 0 24px 28px; }
#basket-drawer .woocommerce-mini-cart__empty-message { padding: 48px 24px; text-align: center; color: var(--ash); font-family: var(--scrawl); font-size: 1.2rem; }
#basket-drawer .blockUI.blockOverlay { background: var(--ink) !important; }

/* Quantity stepper */
#basket-drawer .qty-stepper { display: inline-flex; align-items: stretch; margin-top: 10px; border: 1px solid var(--line); }
#basket-drawer .qty-stepper button {
    width: 32px; background: none; border: 0; color: var(--bone); font: 1.1rem/1 var(--type); cursor: pointer;
    transition: background .15s, color .15s;
}
#basket-drawer .qty-stepper button:hover:not(:disabled) { background: var(--blood); color: var(--white); }
#basket-drawer .qty-stepper button:disabled { color: var(--line); cursor: not-allowed; }
#basket-drawer .qty-stepper input {
    width: 42px; padding: 6px 0; text-align: center; background: transparent;
    border: 0; border-inline: 1px solid var(--line); -moz-appearance: textfield; appearance: textfield;
}
#basket-drawer .qty-stepper input::-webkit-inner-spin-button, #basket-drawer .qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#basket-drawer .qty-stepper__price { display: inline-block; margin-left: 12px; vertical-align: middle; margin-top: 10px; font-family: var(--scrawl); color: var(--bone); }
#basket-drawer .qty-stepper__price small { font: .72rem var(--type); color: var(--ash); letter-spacing: .08em; }
#basket-drawer .woocommerce-mini-cart.is-busy { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* ---------- Section heading ---------- */
.heading { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.heading__no {
    display: inline-block;
    font: 1.05rem/1 var(--scrawl);
    color: var(--ash);
    transform: rotate(-4deg);
}
.heading__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .15em 0 .1em; }
.heading__scribble { width: min(260px, 60%); height: 18px; margin-inline: auto; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(520px, 88vh, 920px);
    margin-top: -84px; /* sit under the transparent header */
    overflow: hidden;
    isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: drift 22s var(--ease) both; }
@keyframes drift { from { transform: scale(1.1); } }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to top, var(--ink) 3%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.35) 70%, rgba(10,10,10,.85)),
        radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.7));
}
.hero__content { padding-block: 160px clamp(56px, 8vw, 110px); text-align: center; }
.hero__eyebrow {
    display: inline-block;
    font: 1.3rem/1 var(--scrawl);
    color: var(--bone);
    background: var(--blood);
    padding: .3em .7em .2em;
    transform: rotate(-4deg);
    margin: 0;
    animation: slap .6s var(--ease) .2s both;
}
.hero__title {
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: .85;
    text-shadow: 0 6px 50px rgba(0,0,0,.7);
    margin: .12em 0 0;
    animation: stamp .9s cubic-bezier(.3, 1.4, .5, 1) .35s both;
}
.hero__scribble { width: min(520px, 80%); height: 26px; margin: 0 auto 1.4em; }
@keyframes stamp { from { opacity: 0; transform: scale(1.35) rotate(-3deg); filter: blur(4px); } }
@keyframes slap { from { opacity: 0; transform: scale(1.6) rotate(8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero__lede { max-width: 52ch; margin: 0 auto 2.2em; animation: rise 1.2s var(--ease) .9s both; }
.hero .btn { animation: rise 1.2s var(--ease) 1.1s both; }

/* ---------- Prose / entries ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose--front { font-size: 1.08rem; }
.prose--front > p:first-child::first-letter {
    float: left; font: 400 5em/.75 var(--display); color: var(--blood-hi);
    padding: .06em .1em 0 0;
}
.prose a { text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-style: wavy; }
.prose blockquote {
    position: relative; margin: 2.4em 0; padding: .2em 0 0 1.6em;
    font: 1.35em/1.4 var(--scrawl); color: var(--white);
}
.prose blockquote::before {
    content: '\201C'; position: absolute; left: -.05em; top: -.25em;
    font: 3.2em/1 var(--display); color: var(--blood-hi);
}
.prose :is(.alignwide, .alignfull, .wp-block-gallery) { max-width: none; }
.prose hr, .wp-block-separator { border: 0; border-top: 1px dashed var(--line); margin: 3em 0; }
/* Gallery blocks pinned up like sketches */
.wp-block-gallery figure { transition: transform .5s var(--ease); }
.wp-block-gallery figure:nth-child(odd) { rotate: -1.2deg; }
.wp-block-gallery figure:nth-child(even) { rotate: 1deg; }
.wp-block-gallery figure:hover { transform: scale(1.03); rotate: 0deg; z-index: 1; }
figcaption { color: var(--ash); font-size: .85rem; }

.entry--card { padding: 32px 0; border-bottom: 1px dashed var(--line); }
.entry__title { font-size: 2.2rem; }
.entry__title a { text-decoration: none; }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: .4em .8em; border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--blood); border-color: var(--blood); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; color: var(--ash); font-size: .9rem; background: var(--ink); }
.site-footer__inner {
    display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1.2fr;
    padding-block: 56px 40px;
}
.site-footer__brand p { margin: .8em 0 0; font-family: var(--scrawl); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.site-footer__links a, .site-footer__legal a { text-decoration: none; }
.site-footer__links a:hover, .site-footer__legal a:hover { color: var(--white); text-decoration: underline wavy var(--blood-hi); }
.site-footer__legal { text-align: right; }
.site-footer__legal p { margin: 0 0 .4em; }
@media (max-width: 760px) {
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .site-footer__legal { text-align: center; }
}


/* ---------- About: zig-zag timeline ---------- */
.timeline { position: relative; list-style: none; max-width: 1100px; margin: clamp(48px, 7vw, 88px) auto 0; padding: 0; }
/* Spine: tattoo-stitch dashes, with a solid red line drawing down as you scroll (where supported). */
.timeline::before, .timeline::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0;
}
.timeline::before { background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px); }
@supports (animation-timeline: view()) {
    .timeline::after {
        background: var(--blood-hi); transform-origin: top;
        animation: spine linear both; animation-timeline: view(); animation-range: entry 15% cover 60%;
    }
    @keyframes spine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.timeline__entry { position: relative; width: 50%; padding: 0 64px 64px 0; }
.timeline__entry.is-right { margin-left: 50%; padding: 0 0 64px 64px; }
.timeline__entry::before { /* connector from card to spine */
    content: ''; position: absolute; top: 38px; right: 12px; width: 52px; height: 2px; background: var(--line);
}
.timeline__entry.is-right::before { right: auto; left: 12px; }
.timeline__dot {
    position: absolute; top: 30px; right: -9px; z-index: 1; width: 18px; height: 18px;
    background: var(--ink); border: 2px solid var(--bone); rotate: 45deg;
    transition: background .4s .3s;
}
.timeline__entry.is-right .timeline__dot { right: auto; left: -9px; }
.timeline__entry.is-in .timeline__dot, html:not(.js) .timeline__dot { background: var(--blood-hi); }
.timeline__card {
    position: relative; padding: 30px 28px 26px;
    background: var(--stone); border: 1px solid var(--line);
    rotate: -.6deg; transition: rotate .4s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.timeline__entry.is-right .timeline__card { rotate: .6deg; }
.timeline__card::before { /* tape */
    content: ''; position: absolute; top: -11px; left: 50%; width: 84px; height: 24px;
    background: rgba(228, 228, 228, .14); translate: -50% 0; rotate: -4deg;
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 100%, 0 96%, 4% 60%, 0 25%);
}
.timeline__card:hover { rotate: 0deg !important; border-color: var(--bone); box-shadow: 8px 8px 0 var(--blood); }
.timeline__date {
    display: inline-block; margin: 0 0 14px; padding: .3em .7em .2em;
    font: 1.15rem/1 var(--scrawl); color: var(--white); background: var(--blood);
    transform: rotate(-3deg);
}
.timeline__title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .4em; }
.timeline__image { margin: 0 0 16px; }
.timeline__image img { width: 100%; max-height: 340px; object-fit: contain; background: var(--slab); }
.timeline__text > :last-child { margin-bottom: 0; }
.js .timeline__entry.is-left[data-reveal] { transform: translateX(-36px); }
.js .timeline__entry.is-right[data-reveal] { transform: translateX(36px); }
.js .timeline__entry[data-reveal].is-in { transform: none; }
@media (max-width: 760px) {
    .timeline::before, .timeline::after { left: 9px; }
    .timeline__entry, .timeline__entry.is-right { width: auto; margin-left: 0; padding: 0 0 48px 44px; }
    .timeline__entry::before, .timeline__entry.is-right::before { left: 18px; right: auto; width: 26px; }
    .timeline__dot, .timeline__entry.is-right .timeline__dot { left: 0; right: auto; }
    .js .timeline__entry.is-left[data-reveal] { transform: translateX(24px); }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact.is-solo { grid-template-columns: minmax(0, 70ch); justify-content: center; }
.contact__intro { margin: 0; }
.contact__form {
    position: relative; padding: clamp(24px, 4vw, 40px);
    background: var(--stone); border: 1px solid var(--line); box-shadow: 10px 10px 0 var(--blood);
}
.contact__form label { display: block; margin-bottom: .35em; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.contact__form :is(input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=hidden]), select, textarea) { width: 100%; }
.contact__form textarea { min-height: 160px; resize: vertical; }
.contact__form p { margin: 0 0 1.2em; }
.contact__form :is(input[type=submit], button[type=submit]) {
    font: 400 .85rem/1 var(--type); letter-spacing: .16em; text-transform: uppercase;
    color: var(--white); background: var(--blood); border: 2px solid var(--bone); border-radius: 0;
    padding: 1.05em 1.8em; box-shadow: 4px 4px 0 var(--bone); cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.contact__form :is(input[type=submit], button[type=submit]):hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--bone); background: var(--blood-hi); }
.contact__form :is(.wpcf7-not-valid-tip, .wpforms-error, .gfield_validation_message) { color: var(--blood-text); font-size: .85rem; }
.contact__form .wpcf7 form .wpcf7-response-output { margin: 1em 0 0; padding: .8em 1em; border: 1px solid var(--line); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.editor-hint { padding: 18px 20px; border: 1px dashed var(--ash); color: var(--ash); font-size: .9rem; }

/* ---------- Legal documents ---------- */
.legal__updated { text-align: center; color: var(--ash); font-size: .85rem; margin: -36px 0 48px; }
.legal.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); font-size: .85rem; }
.legal__toc-title { font: 1.05rem/1 var(--scrawl); color: var(--ash); margin-bottom: 12px; }
.legal__toc ol { margin: 0; padding: 0 0 0 1.4em; border-left: 1px dashed var(--line); }
.legal__toc li { padding: .3em 0 .3em .3em; color: var(--ash); }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { color: var(--white); text-decoration: underline wavy var(--blood-hi); }
.legal__body { margin: 0; max-width: 75ch; }
.legal__body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.5rem; margin: 1.4em 0 .4em; }
.legal__body :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal__body li { margin-bottom: .4em; }
@media (max-width: 860px) {
    .legal.has-toc { grid-template-columns: 1fr; }
    .legal__toc { position: static; }
}

.site-footer__legal-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) { .site-footer__legal-links { justify-content: center; } }

/* ============================================================
   WooCommerce
   ============================================================ */
.woocommerce .woocommerce-breadcrumb {
    font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ash); margin-bottom: 40px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--bone); text-decoration: none; }

.shop .page-title, .woocommerce-products-header__title { text-align: center; font-size: clamp(3rem, 8vw, 5.5rem); }
.term-description, .woocommerce-products-header .page-description { text-align: center; color: var(--ash); max-width: 60ch; margin: 0 auto 40px; }
.woocommerce .woocommerce-result-count { color: var(--ash); font-size: .85rem; }
.woocommerce .woocommerce-ordering select { font-size: .85rem; }

/* Product grid as a tattoo flash sheet: CSS grid over Woo's float columns. */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin: 0 0 2em;
    padding-top: 12px;
    clear: both;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
/* !important: Woo's layout CSS sizes cards via .columns-N / [class*=columns-] with higher specificity. */
.woocommerce ul.products li.product {
    float: none !important; width: auto !important; margin: 0 !important; clear: none !important;
    position: relative;
    display: flex; flex-direction: column;
    padding: 14px 14px 20px;
    background: var(--stone);
    border: 1px solid var(--line);
    rotate: -1.2deg;
    transition: rotate .4s var(--ease), box-shadow .3s var(--ease), border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.woocommerce ul.products li.product:nth-child(3n+2) { rotate: 1deg; }
.woocommerce ul.products li.product:nth-child(3n) { rotate: -.4deg; }
/* Strip of tape */
.woocommerce ul.products li.product::before {
    content: '';
    position: absolute; top: -11px; left: 50%; z-index: 2;
    width: 84px; height: 24px;
    background: rgba(228, 228, 228, .14);
    backdrop-filter: blur(1px);
    translate: -50% 0; rotate: -4deg;
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 100%, 0 96%, 4% 60%, 0 25%);
}
.woocommerce ul.products li.product:nth-child(even)::before { rotate: 5deg; left: 40%; }
.woocommerce ul.products li.product:hover { rotate: 0deg; border-color: var(--bone); box-shadow: 8px 8px 0 var(--blood); }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--slab); margin: 0 0 18px;
    transition: filter .5s;
}
.woocommerce ul.products li.product:hover a img { filter: contrast(1.08) brightness(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font: 400 1.7rem/1 var(--display);
    color: var(--white); padding: 0; margin: 0 0 .35em;
}
.woocommerce ul.products li.product .price { color: var(--bone); font: 1.05rem/1.2 var(--scrawl); margin-bottom: 1.2em; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; padding: .85em 1.3em; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: .8em; font-size: .8rem; color: var(--ash); }

.woocommerce :is(.price, p.price, span.price) { color: var(--bone); }
.woocommerce .price del { color: var(--ash); opacity: .8; }
.woocommerce .price ins { text-decoration: none; color: var(--white); }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    top: 22px; left: 22px; right: auto; margin: 0; z-index: 3;
    min-width: 0; min-height: 0; padding: .45em .7em .35em;
    border-radius: 0; line-height: 1;
    font: 400 .95rem/1 var(--scrawl);
    background: var(--blood); color: var(--white);
    transform: rotate(-8deg);
    box-shadow: 3px 3px 0 var(--ink);
}

.woocommerce .star-rating, .woocommerce .star-rating::before { color: var(--line); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--bone); }


/* Sold out */
.stock-badge {
    position: absolute; top: 24px; right: 20px; z-index: 3;
    padding: .45em .7em .35em;
    font: 400 .95rem/1 var(--scrawl);
    color: var(--ink); background: var(--bone);
    transform: rotate(6deg);
    box-shadow: 3px 3px 0 var(--ink);
}
.woocommerce ul.products li.product.outofstock a img { opacity: .45; filter: grayscale(.6); }
.woocommerce ul.products li.product.outofstock:hover a img { opacity: .7; }

/* Category cards (Woo's native category loop, same flash-card shell) */
.woocommerce ul.products li.product-category a { display: flex; flex-direction: column; height: 100%; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    font: 400 2rem/1 var(--display); color: var(--white); padding: 0; margin: 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.woocommerce ul.products li.product-category .count {
    background: none; font: 1rem/1 var(--scrawl); color: var(--ash); white-space: nowrap;
}

/* Shop landing blocks */
.shop__block + .shop__block { margin-top: clamp(72px, 10vw, 128px); }

/* Filters sidebar + results */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.shop-filters { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px); }
.filter { border-top: 1px dashed var(--line); padding: 4px 0 18px; }
.filter:last-child { border-bottom: 1px dashed var(--line); }
.filter__title {
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; cursor: pointer;
    font: 400 1.6rem/1 var(--display); color: var(--white);
    padding: 14px 0 6px;
}
.filter__title::-webkit-details-marker { display: none; }
.filter__title::after { content: '+'; font: 1.4rem/1 var(--scrawl); color: var(--blood-hi); transition: transform .3s var(--ease); }
.filter[open] > .filter__title::after { transform: rotate(45deg); }
.filter ul { list-style: none; margin: 0; padding: 0; }
.filter li { padding: .25em 0; font-size: .92rem; }
.filter li a { text-decoration: none; }
.filter li a:hover { color: var(--white); text-decoration: underline wavy var(--blood-hi); }
.filter .children { padding-left: 1em; }
.filter .count { color: var(--ash); font-size: .8rem; }
.filter :is(.chosen, .current-cat) > a { color: var(--white); }
.woocommerce .widget_layered_nav ul li.chosen a::before,
.woocommerce .widget_layered_nav_filters ul li a::before { color: var(--blood-text); }
.woocommerce .widget_layered_nav_filters ul li { float: none; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background: var(--blood-hi); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--bone); border-radius: 0; width: .8em; height: 1.2em; top: -.35em; }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--line); }
.woocommerce .widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.woocommerce .widget_price_filter .price_slider_amount .button { float: none; padding: .7em 1.1em; font-size: .75rem; }
.woocommerce .widget_price_filter .price_label { color: var(--ash); font-size: .85rem; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px !important; }
.filter .tag-filter li { padding: 0; }
.filter .tag-filter a {
    display: inline-block; padding: .35em .7em; border: 1px solid var(--line);
    font-size: .82rem; transition: border-color .2s, background .2s, color .2s;
}
.filter .tag-filter a:hover { border-color: var(--bone); text-decoration: none; }
.filter .tag-filter .chosen a { background: var(--blood); border-color: var(--bone); color: var(--white); }
.filter .tag-filter .chosen a::after { content: ' \00d7'; }
.filter .tag-filter .count { font-size: .72rem; }
.filter .tag-filter .chosen .count { color: inherit; }
.shop-results .woocommerce-result-count, .shop-results .woocommerce-ordering { margin-bottom: 28px; }

@media (max-width: 860px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-filters { position: static; }
    .filter { padding-bottom: 8px; }
    .filter[open] { padding-bottom: 18px; }
}

/* Single product */
.woocommerce div.product { margin-top: 12px; }
.woocommerce div.product .product_title { font-size: clamp(3rem, 6vw, 5rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font: 1.8rem/1.2 var(--scrawl); color: var(--white); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--bone); }
.woocommerce div.product .stock { color: var(--ash); }
.woocommerce div.product .out-of-stock { color: var(--blood-text); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 2em 0; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart.variations_form, .woocommerce div.product form.cart .single_variation_wrap { display: block; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 14px; }
.woocommerce .quantity .qty { width: 4.5em; height: 100%; text-align: center; }
.woocommerce div.product form.cart .variations { margin-bottom: 1.2em; }
.woocommerce div.product form.cart .variations :is(th, td) { padding: .4em 0; vertical-align: middle; }
.woocommerce div.product form.cart .variations label { color: var(--bone); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.woocommerce div.product form.cart .reset_variations { color: var(--ash); font-size: .8rem; }
.woocommerce div.product .product_meta { color: var(--ash); font-size: .85rem; display: grid; gap: 4px; border-top: 1px dashed var(--line); padding-top: 1.2em; }
.woocommerce div.product .product_meta a { color: var(--bone); }

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border: 1px solid var(--line); padding: 12px; background: var(--stone); box-shadow: 10px 10px 0 var(--blood); }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 20px; display: flex; gap: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 80px; float: none; }
.woocommerce div.product div.images .flex-control-thumbs li img { opacity: .5; transition: opacity .3s; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: var(--ink); border-radius: 0; top: 22px; right: 22px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before { border-color: var(--bone); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after { background: var(--bone); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 56px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ash); padding: 1em 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--white); text-decoration: underline wavy var(--blood-hi) 1.5px; text-underline-offset: .6em; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 75ch; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 2rem; }
.woocommerce table.shop_attributes :is(th, td) { border-color: var(--line); color: var(--bone); }
.woocommerce table.shop_attributes tr:nth-child(even) :is(th, td) { background: var(--stone); }

.woocommerce :is(.related, .upsells, .cross-sells) > h2 { text-align: center; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 72px 0 40px; }

#reviews #comments ol.commentlist li .comment-text { border-color: var(--line); border-radius: 0; }
#reviews #comments ol.commentlist li img.avatar { background: var(--slab); border-color: var(--line); }

/* Notices (classic + blocks) */
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wc-block-components-notice-banner {
    background: var(--stone); color: var(--bone);
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--blood);
    border-radius: 0;
}
.woocommerce :is(.woocommerce-message, .woocommerce-info)::before { color: var(--bone); }
.woocommerce .woocommerce-error::before { color: var(--blood-text); }
.wc-block-components-notice-banner > svg { background: var(--blood); fill: var(--white); }
.woocommerce :is(.woocommerce-message, .woocommerce-info) .button { float: right; padding: .7em 1.2em; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li :is(a, span) { border: 1px solid var(--line); color: var(--bone); padding: .6em .9em; min-width: 2.6em; }
.woocommerce nav.woocommerce-pagination ul li :is(a:hover, a:focus, span.current) { background: var(--blood); color: var(--white); border-color: var(--bone); }

/* Tables (classic cart, orders) */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table :is(th, td) { border-top: 1px solid var(--line); padding: 14px 12px; }
.woocommerce table.shop_table th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.woocommerce a.remove { color: var(--blood-text) !important; }
.woocommerce a.remove:hover { background: var(--blood); color: var(--white) !important; }
.woocommerce-cart table.cart img { width: 64px; }

/* Forms */
.woocommerce form .form-row label { color: var(--ash); font-size: .9rem; }
.woocommerce form .form-row .required { color: var(--blood-text); }
.woocommerce :is(form.login, form.register, form.checkout_coupon) { border-color: var(--line); border-radius: 0; }

/* My account */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a {
    display: block; padding: .9em 0 .9em 1em; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ash);
    transition: border-color .3s, color .3s;
}
.woocommerce-MyAccount-navigation li:is(.is-active, :hover) a { color: var(--white); border-left-color: var(--blood-hi); }

/* Block cart & checkout */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--bone); }
.wc-block-components-text-input :is(input, textarea),
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea,
.wc-block-components-form .wc-block-components-text-input input {
    background: var(--stone) !important; color: var(--bone) !important;
    border: 1px solid var(--line) !important; border-radius: 0 !important;
}
.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--ash) !important; }
.wc-blocks-components-select__container { background: var(--stone) !important; border-radius: 0 !important; }
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option { border-color: var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1px var(--blood-hi) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--blood-hi) !important; }
.wc-block-components-radio-control__input, .wc-block-components-checkbox__input[type=checkbox] { background: var(--stone) !important; border-color: var(--ash) !important; }
.wc-block-components-checkbox__mark { fill: var(--white) !important; }
.wc-block-components-title.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--display) !important; font-size: 1.8rem !important; text-transform: none !important; }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary-item, .wc-block-cart-items, .wc-block-cart-items td,
.wc-block-cart-items th, .wc-block-components-sidebar-layout .wc-block-components-main { border-color: var(--line) !important; }
.wc-block-components-product-name { font: 1.4rem/1 var(--display); text-decoration: none; color: var(--white) !important; }
.wc-block-components-quantity-selector { border-radius: 0 !important; }
.wc-block-components-quantity-selector::after { border-color: var(--line) !important; border-radius: 0 !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { background: transparent !important; border: 0 !important; color: var(--bone) !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--bone) !important; }
.wc-block-components-product-badge { border-radius: 0 !important; border-color: var(--blood-hi) !important; color: var(--bone) !important; }
.wc-block-components-order-summary-item__quantity { background: var(--blood) !important; color: var(--white) !important; border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-components-validation-error, .wc-block-components-validation-error > p,
.wc-block-components-text-input.has-error label { color: var(--blood-text) !important; }
.wc-block-components-text-input.has-error input { border-color: var(--blood-text) !important; }
.wc-block-components-panel__button, .wc-block-components-totals-coupon-link { color: var(--bone) !important; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .scribble path, .sketchbook__page use { stroke-dashoffset: 0; }
}
