/* ==========================================================================
   NB Theme — main.css
   Mobile-first, RTL-first (logical properties only → LTR works too).
   1. Tokens   ← change the brand here (or Appearance → Customize → NB — التصميم)
   ========================================================================== */
:root {
	/* Divra Club — divra-logo-pack/BRAND.md */
	--c-bg: #ede7dc;          /* Ivory */
	--c-surface: #f7f4ee;
	--c-ink: #0b0b0b;         /* Black */
	--c-ink-2: #2e2e2e;       /* Charcoal */
	--c-muted: #6b665d;
	--c-line: #dad3c6;
	--c-soft: #e2dbcd;        /* image placeholders */
	--c-accent: #ff5a1f;      /* Signal */
	--c-accent-ink: #0b0b0b;  /* Black on Signal (≈6.9:1); Ivory would fail contrast */
	--c-olive: #556b4f;       /* Olive — secondary brand colour */
	--c-signal: #ff5a1f;      /* Signal — small touches only (tags, sticker) */
	--c-sale: #b3261e;        /* Deep red — sale & errors; kept clearly apart from Signal ("جديد") */
	--c-ok: #3f6b3a;

	/* Latin: Inter (body) / Michroma (headings). Arabic glyphs fall through to Alexandria. */
	--font: "Inter", "Alexandria", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--font-display: "Michroma", "Alexandria", system-ui, sans-serif;
	--fs-xs: .75rem;
	--fs-sm: .875rem;
	--fs-md: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	--fs-2xl: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
	--fs-hero: clamp(2.7rem, 1.2rem + 7.5vw, 6.4rem);

	--radius: 18px;
	--radius-sm: 10px;
	--pill: 999px;
	--shadow: 0 18px 40px -22px rgba(11, 11, 11, .35);
	--gutter: 16px;
	--container: 1280px;
	--header-h: 60px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 72px; } }

/* 2. Reset / base ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { overflow-x: clip; }
body {
	margin: 0; background: var(--c-bg); color: var(--c-ink);
	font: 400 var(--fs-md)/1.65 var(--font);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.has-overlay { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; font-family: var(--font-display); font-synthesis: none; }
p { margin: 0 0 1em; }
ul[role="list"], .menu { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-accent); color: var(--c-accent-ink); }
.icon { flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10000; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.page-title { font-size: var(--fs-2xl); font-weight: 800; margin-block: 8px 20px; }
.hero__title, .section-title, .page-title, .collection-tile strong, .cat-chip__img b, .empty-state__big, .summary .product_title, .woocommerce-thankyou-order-received { font-family: var(--font-display); font-synthesis: none; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; }

/* 3. Buttons / badges / chips / forms ==================================== */
.btn, .button, button.button, input.button, .woocommerce-button, #place_order, .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--c-ink); border-radius: var(--pill);
	background: var(--c-ink); color: #fff; font-weight: 600; font-size: var(--fs-md); line-height: 1.2;
	transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s;
	text-align: center; white-space: nowrap;
}
.btn:hover, .button:hover, #place_order:hover, .single_add_to_cart_button:hover { color: #fff; background: var(--c-ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.btn--accent:hover { background: var(--c-accent); color: var(--c-accent-ink); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.btn--outline { background: transparent; color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: var(--fs-lg); }
.button.disabled, .button:disabled, .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button.loading { opacity: .7; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; position: relative; color: var(--c-ink); }
.icon-btn:hover { background: rgba(11, 11, 11, .06); }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; background: var(--c-ink); color: #fff; }
.badge--sale { background: var(--c-sale); color: #fff; letter-spacing: .02em; }
.badge--new { background: var(--c-accent); color: var(--c-accent-ink); }
.badge--muted { background: rgba(11, 11, 11, .7); }

.chip, .opt {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
	border: 1.5px solid var(--c-line); border-radius: var(--pill); background: var(--c-surface);
	font-size: var(--fs-sm); font-weight: 500; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--c-ink); color: var(--c-ink); }
.opt.is-on, .chip--active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.opt.is-on:hover, .chip--active:hover { color: #fff; }
.opt__swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chip-clear { font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; padding-inline: 6px; }

input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
	background: var(--c-surface); font-size: 16px; /* ≥16px = no iOS zoom */ transition: border-color .15s, box-shadow .15s;
	appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b0b0b' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 38px; }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(11, 11, 11, .08); }
label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.required { color: var(--c-sale); text-decoration: none; border: 0; }
.woocommerce-invalid input.input-text, .woocommerce-invalid select { border-color: var(--c-sale); }

/* select2 / selectWoo (state dropdown) */
.select2-container .select2-selection--single { height: 50px !important; border: 1.5px solid var(--c-line) !important; border-radius: var(--radius-sm) !important; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px !important; padding-inline: 14px !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px !important; }
.select2-dropdown { border: 1.5px solid var(--c-ink) !important; border-radius: var(--radius-sm) !important; overflow: hidden; }
.select2-results__option--highlighted { background: var(--c-ink) !important; }

/* Notices (classic + WooCommerce ≥8.5 block-style banners) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none;
	margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--fs-sm);
	background: var(--c-surface); border: 1.5px solid var(--c-line);
}
.wc-block-components-notice-banner > svg { width: 22px; height: 22px; flex: none; }
.wc-block-components-notice-banner__content { flex: 1; }
.wc-block-components-notice-banner__content ul { margin: 0; padding-inline-start: 18px; }
.woocommerce-message, .wc-block-components-notice-banner.is-success { border-color: var(--c-ok); background: #f1faf4; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-color: var(--c-sale); background: #fdf2f1; }
.woocommerce-info, .wc-block-components-notice-banner.is-info { border-color: var(--c-ink); }
.woocommerce-message .button, .wc-block-components-notice-banner .button { min-height: 36px; padding: 6px 14px; font-size: var(--fs-sm); margin-inline-start: auto; order: 2; }

/* 4. Announcement / header / drawers ===================================== */
.announcement { background: var(--c-ink); color: var(--c-bg); letter-spacing: .04em; font-size: var(--fs-xs); font-weight: 500; text-align: center; }
.announcement .container { padding-block: 9px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }

.site-header { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--c-line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 8px; }
.header-menu-btn { justify-self: start; }
.logo { justify-self: center; display: inline-flex; align-items: center; }
.logo { gap: 10px; color: var(--c-ink); }
.logo:hover { color: inherit; }
.logo svg { display: block; flex: none; width: auto; }
.logo__mark { height: 26px; aspect-ratio: 190 / 120; }
.logo__word { height: 13px; aspect-ratio: 792 / 86; }
/* Desktop nav needs the room between 1024–1199px: mark only there. */
@media (min-width: 1024px) and (max-width: 1199px) { .site-header .logo__word { display: none; } }
.logo__img { max-height: 40px; width: auto; }
@media (min-width: 768px) { .logo__mark { height: 30px; } .logo__word { height: 15px; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.header-account { display: none; }
.primary-nav { display: none; }
.cart-count {
	position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: var(--pill); background: var(--c-accent); color: var(--c-accent-ink);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--c-bg);
}
.cart-count[data-count="0"] { display: none; }
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

@media (min-width: 1024px) {
	.header-row { grid-template-columns: auto 1fr auto; gap: 32px; }
	.header-menu-btn { display: none; }
	.logo { justify-self: start; }
	.primary-nav { display: block; justify-self: center; }
	.primary-nav .menu { display: flex; gap: 4px; }
	.primary-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: var(--pill); font-weight: 500; font-size: var(--fs-sm); }
	.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--c-ink); color: #fff; }
	.primary-nav .sub-menu { display: none; }
	.header-account { display: inline-grid; }
}

.site-header--checkout .header-row { grid-template-columns: 1fr auto 1fr; }
.site-header--checkout .logo { grid-column: 2; }
.secure-badge { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-ok); font-weight: 600; }
.header-back { grid-column: 3; justify-self: end; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; }

/* Drawers (nav / filters / cart) */
.drawer { position: fixed; inset: 0; z-index: 1000; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 11, .45); opacity: 0; transition: opacity .3s; }
.drawer__panel {
	position: absolute; inset-block: 0; width: min(420px, 90vw); display: flex; flex-direction: column;
	background: var(--c-bg); box-shadow: var(--shadow); transition: transform .35s var(--ease);
}
.drawer--start .drawer__panel { inset-inline-start: 0; transform: translateX(100%); }
.drawer--end .drawer__panel { inset-inline-end: 0; transform: translateX(-100%); }
[dir="ltr"] .drawer--start .drawer__panel { transform: translateX(-100%); }
[dir="ltr"] .drawer--end .drawer__panel { transform: translateX(100%); }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); border-bottom: 1px solid var(--c-line); min-height: var(--header-h); }
.drawer__title { font-size: var(--fs-lg); font-weight: 700; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px var(--gutter); overscroll-behavior: contain; }
.drawer__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-bg); }

.drawer-nav .menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: var(--fs-lg); font-weight: 600; border-bottom: 1px solid var(--c-line); }
.drawer-nav .sub-menu { list-style: none; padding-inline-start: 12px; margin: 0; }
.drawer-nav .sub-menu a { font-size: var(--fs-md); font-weight: 400; }
.drawer-nav__extra { margin-top: 24px; }
.drawer-nav__extra .menu a { font-size: var(--fs-sm); font-weight: 400; color: var(--c-muted); border: 0; padding: 8px 4px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0 0 auto; z-index: 1000; background: var(--c-bg); padding-block: 12px; box-shadow: var(--shadow); animation: drop .25s var(--ease); }
@keyframes drop { from { transform: translateY(-100%); } }
.search-form { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--c-ink); }
.search-form input { border: 0; background: transparent; min-height: 52px; padding-inline: 0; font-size: var(--fs-lg); box-shadow: none !important; }

/* 5. Home ================================================================ */
.hero { background: var(--c-ink); color: var(--c-bg); overflow: hidden; position: relative; }
.hero__grid { display: grid; gap: 28px; padding-block: 44px 56px; }
.hero .eyebrow { color: color-mix(in srgb, var(--c-bg) 70%, transparent); letter-spacing: .2em; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.1; letter-spacing: 0; margin-bottom: 18px; }
.hero__title mark { display: inline-block; background: var(--c-accent); color: var(--c-accent-ink); padding: 0 .18em .06em; border-radius: .18em; transform: rotate(-2deg); margin-top: .06em; }
.hero__text { max-width: 34ch; font-size: var(--fs-lg); color: color-mix(in srgb, var(--c-bg) 78%, transparent); margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--ghost { color: var(--c-bg); }
.hero__visual { position: relative; min-height: 220px; display: grid; place-items: center; }
.hero__brand { direction: ltr; display: grid; justify-items: center; gap: clamp(18px, 3vw, 32px); color: var(--c-bg); user-select: none; }
.hero__brand .hero__mark { width: clamp(150px, 40vw, 340px); height: auto; }
.hero__brand .hero__word { width: clamp(180px, 46vw, 400px); height: auto; opacity: .9; }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.sticker { position: absolute; inset-block-end: -18px; inset-inline-end: -4px; width: 92px; height: 92px; direction: ltr; display: grid; place-items: center; background: var(--c-signal); color: var(--c-ink); border-radius: 50%; box-shadow: 0 0 0 6px var(--c-ink); }
.sticker svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 14s linear infinite; }
.sticker text { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; fill: currentColor; font-family: var(--font); }
.sticker .sticker__mark { width: 34%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
	.hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 72px 88px; }
	.hero__visual { min-height: 420px; }
	.sticker { width: 124px; height: 124px; inset-block-start: -8px; inset-block-end: auto; inset-inline-end: -8px; }
	.sticker text { font-size: 10px; }
}

.marquee { background: var(--c-accent); color: var(--c-accent-ink); overflow: hidden; border-block: 2px solid var(--c-ink); }
.marquee__track { display: flex; width: max-content; gap: 22px; padding-block: 12px; font-weight: 700; font-size: var(--fs-md); white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee__track i { font-style: normal; }
@keyframes marquee { to { transform: translateX(50%); } }
[dir="ltr"] .marquee__track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: var(--fs-2xl); font-weight: 800; margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid var(--c-accent); padding-bottom: 2px; }

.cat-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail li { scroll-snap-align: start; }
.cat-chip { display: grid; justify-items: center; gap: 8px; width: 84px; text-align: center; }
.cat-chip__img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c-surface); border: 2px solid var(--c-line); transition: border-color .2s, transform .2s var(--ease); }
.cat-chip__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip__img b { font-size: 1.8rem; font-weight: 800; }
.cat-chip:nth-child(3n+1) .cat-chip__img, .cat-rail li:nth-child(3n+1) .cat-chip__img { background: var(--c-accent); }
.cat-rail li:nth-child(3n+2) .cat-chip__img { background: var(--c-ink); color: var(--c-bg); }
.cat-chip:hover .cat-chip__img { border-color: var(--c-ink); transform: translateY(-3px); }
.cat-chip__name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
@media (min-width: 1024px) { .cat-rail { justify-content: center; gap: 28px; } .cat-chip { width: 110px; } .cat-chip__img { width: 110px; height: 110px; } }

.collection-grid { display: grid; gap: 14px; }
.collection-tile { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 220px; padding: 26px; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.collection-tile strong { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.collection-tile .eyebrow { color: inherit; opacity: .7; }
.collection-tile__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.collection-tile--0 { background: var(--c-ink); color: var(--c-bg); }
.collection-tile--1 { background: var(--c-accent); color: var(--c-accent-ink); }
.collection-tile::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; inset-block-start: -90px; inset-inline-end: -70px; border: 36px solid currentColor; opacity: .08; transition: transform .5s var(--ease); }
.collection-tile:hover::after { transform: scale(1.15); }
.collection-tile:hover { color: inherit; }
.collection-tile--0:hover { color: var(--c-bg); }
@media (min-width: 768px) { .collection-grid { grid-template-columns: 1fr 1fr; } .collection-tile { min-height: 300px; padding: 36px; } }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--c-surface); border-radius: var(--radius); }
.trust__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); }
.trust strong { display: block; font-size: var(--fs-sm); }
.trust small { display: block; font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.4; }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; } .trust li { padding: 22px; } }
.trust--compact { grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 18px; }
.trust--compact li { padding: 10px 12px; background: transparent; border: 1px solid var(--c-line); }
.trust--compact .trust__icon { width: 32px; height: 32px; }
.trust--compact .trust__icon svg { width: 18px; height: 18px; }
.trust--compact strong { font-weight: 600; font-size: var(--fs-xs); }

/* 6. Product grid + card ================================================= */
.grid-products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 768px) { .grid-products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1200px) { .grid-products, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--c-soft); }
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.product-card__img--hover { opacity: 0; }
@media (hover: hover) {
	.product-card:hover .product-card__img { transform: scale(1.04); }
	.product-card:hover .product-card__img--hover { opacity: 1; }
}
.product-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.product-card__body { padding: 12px 2px 0; display: grid; gap: 4px; }
.product-card__title { font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (min-width: 768px) { .product-card__title { font-size: var(--fs-md); } }

.price { font-weight: 700; font-size: var(--fs-md); display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price del { color: var(--c-muted); font-weight: 400; font-size: .85em; }
.price ins { text-decoration: none; color: var(--c-sale); }
.price .from { font-weight: 400; color: var(--c-muted); font-size: .8em; }
.woocommerce-Price-amount { unicode-bidi: isolate; white-space: nowrap; }
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.dots em { font-style: normal; font-size: var(--fs-xs); color: var(--c-muted); }

/* Vendor UI (hidden in Phase 1 — rendered only when nb-core flag is on) */
.nb-vendor { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--c-muted); position: relative; z-index: 1; }
.nb-vendor--single { padding: 10px 14px; margin-block: 6px 14px; background: var(--c-surface); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--c-ink); }
.nb-vendor--single img { width: 40px; height: 40px; border-radius: 50%; }
.nb-vendor--single span { display: grid; line-height: 1.3; }
.nb-vendor--single small { color: var(--c-muted); }
.nb-vendor--single em { font-style: normal; font-size: var(--fs-xs); }

/* 7. Listing ============================================================= */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--c-ink); }
.listing-head { margin-bottom: 8px; }
.listing-desc { color: var(--c-muted); max-width: 70ch; }
.listing-toolbar { position: sticky; top: var(--header-h); z-index: 50; display: flex; align-items: center; gap: 10px; padding-block: 10px; margin-bottom: 14px; background: var(--c-bg); }
.listing-count { font-size: var(--fs-sm); color: var(--c-muted); }
.sort-form { margin-inline-start: auto; }
.sort-form select { min-height: 40px; padding-block: 6px; width: auto; font-size: var(--fs-sm); border-radius: var(--pill); }
.filter-toggle { position: relative; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--c-sale); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.filter-group { border: 0; padding: 0; margin: 0 0 24px; }
.filter-group legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options--size .opt { min-width: 52px; justify-content: center; }

@media (min-width: 1024px) {
	.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
	.filter-toggle { display: none; }
	.filters[hidden] { display: block; }
	.filters { position: sticky; top: calc(var(--header-h) + 70px); inset: auto; z-index: 1; }
	.filters::before { display: none; }
	.filters .drawer__panel { position: static; width: auto; transform: none; background: none; box-shadow: none; }
	.filters .drawer__head, .filters .drawer__foot { display: none; }
	.filters .drawer__body { padding: 0; overflow: visible; }
}

.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--pill); border: 1.5px solid var(--c-line); font-weight: 600; }
.woocommerce-pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.empty-state { text-align: center; padding-block: 48px; display: grid; justify-items: center; gap: 12px; }
.empty-state__big { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; margin: 0; color: var(--c-ink); -webkit-text-stroke: 0; }
.empty-state form { width: min(420px, 100%); }

/* 8. Single product ====================================================== */
.product-single .breadcrumb { margin-bottom: 12px; }
.product-layout { display: grid; gap: 24px; }
@media (min-width: 900px) {
	.product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
	.product-single .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}

.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; background: var(--c-soft); }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__badge { position: absolute; z-index: 2; top: 14px; inset-inline-start: calc(var(--gutter) + 4px); }
.gallery__dots { position: absolute; inset-inline: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots span { width: 7px; height: 7px; border-radius: var(--pill); background: rgba(11, 11, 11, .25); transition: width .25s var(--ease), background .25s; }
.gallery__dots span.is-on { width: 22px; background: var(--c-ink); }
.gallery__thumbs { display: none; }
@media (min-width: 900px) {
	.gallery { margin-inline: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
	.gallery__track { grid-column: 2; border-radius: var(--radius); }
	.gallery__badge { inset-inline-start: calc(84px + 28px); }
	.gallery__dots { display: none; }
	.gallery__thumbs { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 10px; }
	.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-soft); aspect-ratio: 4 / 5; transition: border-color .2s; }
	.gallery__thumbs button.is-on { border-color: var(--c-ink); }
	.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
}

.summary .product_title { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 10px; }
.summary .eyebrow { margin-bottom: 4px; }
.summary > .price { font-size: var(--fs-xl); margin-inline-end: 10px; }
.summary > .badge { vertical-align: middle; }
.summary .woocommerce-product-details__short-description { color: var(--c-ink-2); margin-block: 14px; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); margin-bottom: 8px; }

/* Variations table → stacked rows */
.variations_form table.variations, .variations_form table.variations tbody, .variations_form table.variations tr, .variations_form table.variations th, .variations_form table.variations td { display: block; width: 100%; padding: 0; border: 0; text-align: start; }
.variations_form table.variations { margin: 18px 0 6px; }
.variations_form table.variations tr { margin-bottom: 16px; }
.variations_form table.variations th.label label { font-weight: 700; font-size: var(--fs-sm); }
.variations_form .reset_variations { display: inline-block; margin-top: 8px; font-size: var(--fs-xs); color: var(--c-muted); text-decoration: underline; }

/* Variation Swatches plugin overrides — big tap targets, ink selection */
.variable-items-wrapper { gap: 8px !important; margin: 0 !important; }
.variations_form ul.variable-items-wrapper li.variable-item { margin: 0 !important; box-shadow: none !important; border: 1.5px solid var(--c-line) !important; background: var(--c-surface) !important; transition: border-color .15s, background .15s; }
.variations_form ul.variable-items-wrapper li.button-variable-item { min-width: 52px !important; height: 46px !important; border-radius: var(--pill) !important; padding-inline: 14px !important; }
.variable-items-wrapper .button-variable-item .variable-item-span { font-weight: 600; font-size: var(--fs-sm); }
.variations_form ul.variable-items-wrapper li.variable-item.button-variable-item.selected, .variations_form ul.variable-items-wrapper li.variable-item.button-variable-item.selected:hover { background: var(--c-ink) !important; border-color: var(--c-ink) !important; color: #fff !important; }
.variations_form ul.variable-items-wrapper li.variable-item.button-variable-item.selected .variable-item-span { color: #fff !important; }
.variations_form ul.variable-items-wrapper li.color-variable-item { width: 40px !important; height: 40px !important; border-radius: 50% !important; padding: 3px !important; }
.variations_form ul.variable-items-wrapper li.variable-item.color-variable-item.selected { border-color: var(--c-ink) !important; border-width: 2px !important; }
.variable-items-wrapper .variable-item:not(.disabled):hover { border-color: var(--c-ink) !important; }
.variable-items-wrapper .variable-item.disabled { opacity: .35 !important; }

.size-guide-row { display: flex; justify-content: flex-end; margin-top: 12px; margin-bottom: -26px; position: relative; z-index: 1; }
.nb-size-guide-btn { display: inline-flex !important; align-items: center; gap: 6px; font-size: var(--fs-sm) !important; font-weight: 600; }

.single_variation_wrap .woocommerce-variation-price { margin-bottom: 8px; }
.woocommerce-variation-availability .stock, .stock { font-size: var(--fs-sm); font-weight: 600; margin: 4px 0 12px; }
.stock.in-stock { color: var(--c-ok); }
.stock.out-of-stock { color: var(--c-sale); }
form.cart { margin-block: 12px 4px; }
.summary .added_to_cart { display: none; } /* the cart drawer replaces WooCommerce's "View cart" link */
.woocommerce-variation-add-to-cart, .summary form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: stretch; }
.single_add_to_cart_button { flex: 1; min-height: 56px; font-size: var(--fs-lg); }

.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: var(--pill); background: var(--c-surface); overflow: hidden; }
.quantity input.qty { width: 44px; min-height: 0; height: 52px; border: 0; padding: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; background: transparent; box-shadow: none !important; }
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; height: 52px; border: 0; background: none; display: grid; place-items: center; }
.qty-btn:hover { background: var(--c-soft); }

.accordions { border-top: 1px solid var(--c-line); margin-top: 8px; }
.accordions details { border-bottom: 1px solid var(--c-line); }
.accordions summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary .icon { transition: transform .25s var(--ease); }
.accordions details[open] summary .icon { transform: rotate(180deg); }
.accordions .prose { padding-bottom: 16px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; }
.spec dt { color: var(--c-muted); }
.spec dd { margin: 0; font-weight: 600; }

.sticky-atc { position: fixed; z-index: 800; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--c-surface); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .3); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-atc.is-visible { transform: none; }
.sticky-atc__info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.sticky-atc__info strong { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .price { font-size: var(--fs-sm); }
.sticky-atc .btn { flex: none; }
@media (min-width: 900px) { .sticky-atc { display: none; } }

.related, .upsells { padding-top: 48px; }
.related > h2, .upsells > h2 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 20px; }
.product-reviews { max-width: 760px; }
.product-reviews h2 { font-size: var(--fs-xl); }
.commentlist { list-style: none; padding: 0; }
.commentlist .comment_container { display: flex; gap: 12px; padding: 16px; background: var(--c-surface); border-radius: var(--radius); margin-bottom: 12px; }
.commentlist img.avatar { width: 44px; height: 44px; border-radius: 50%; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; line-height: 1; font-size: .95em; overflow: hidden; color: var(--c-ink); }
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--c-line); letter-spacing: .1em; }
.star-rating span { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; inset-inline-start: 0; letter-spacing: .1em; }
p.stars a { font-size: 0; display: inline-block; width: 1.4rem; height: 1.4rem; position: relative; }
p.stars a::before { content: "★"; font-size: 1.4rem; color: var(--c-line); position: absolute; inset: 0; }
p.stars:hover a::before, p.stars.selected a::before { color: var(--c-ink); }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: var(--c-line); }

/* 9. Mini cart (drawer) + free shipping ================================== */
.free-ship { padding: 14px; margin-bottom: 14px; background: var(--c-surface); border-radius: var(--radius-sm); }
.free-ship p { margin: 0 0 10px; font-size: var(--fs-sm); }
.free-ship__bar { height: 8px; border-radius: var(--pill); background: var(--c-soft); overflow: hidden; }
.free-ship__bar span { display: block; height: 100%; width: var(--p); background: var(--c-ink); border-radius: inherit; transition: width .6s var(--ease); }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); }
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 600; }
.woocommerce-mini-cart-item img { grid-row: span 3; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--c-soft); }
.woocommerce-mini-cart-item .remove { position: absolute; inset-inline-end: 0; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: var(--c-muted); }
.woocommerce-mini-cart-item .remove:hover { background: var(--c-soft); color: var(--c-sale); }
.woocommerce-mini-cart-item .variation { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; color: var(--c-muted); font-size: var(--fs-xs); }
.woocommerce-mini-cart-item .variation dd, .woocommerce-mini-cart-item .variation p { margin: 0; }
.woocommerce-mini-cart-item .quantity { border: 0; background: none; font-weight: 700; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: var(--fs-lg); padding-block: 16px; margin: 0; }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--c-ink); }
.woocommerce-mini-cart__buttons .checkout { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--c-muted); padding-block: 40px; }

/* 10. Cart page ========================================================= */
.wc-page .page-title { margin-bottom: 24px; }
table.shop_table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-sm); }
table.shop_table th, table.shop_table td { padding: 14px; text-align: start; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
table.shop_table thead th { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.woocommerce-cart-form .product-thumbnail img { width: 72px; border-radius: var(--radius-sm); aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce-cart-form .product-remove a { font-size: 22px; color: var(--c-muted); }
.woocommerce-cart-form .product-name a { font-weight: 600; }
.woocommerce-cart-form td.actions { background: var(--c-bg); }
.coupon { display: flex; gap: 8px; margin-bottom: 10px; }
.coupon label { display: none; }
.coupon .input-text { min-height: 44px; }
button[name="update_cart"] { background: transparent; color: var(--c-ink); }
.cart-collaterals { margin-top: 24px; }
.cart_totals h2 { font-size: var(--fs-xl); }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: var(--fs-lg); background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); margin-top: 14px; }
@media (max-width: 767px) {
	/* Responsive cart table: rows become cards */
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 80px 1fr; gap: 0 12px; padding: 12px; border-bottom: 1px solid var(--c-line); position: relative; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; padding: 4px 0; border: 0; grid-column: 2; }
	table.shop_table_responsive td::before { content: attr(data-title); color: var(--c-muted); font-size: var(--fs-xs); }
	table.shop_table_responsive td.product-thumbnail { grid-column: 1; grid-row: 1 / span 5; }
	table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table_responsive td.product-remove { position: absolute; top: 6px; inset-inline-end: 8px; }
	table.shop_table_responsive td.actions { grid-column: 1 / -1; display: block; }
}
@media (min-width: 900px) {
	.woocommerce-cart .wc-content .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
	.woocommerce-cart .wc-content .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .free-ship { grid-column: 1 / -1; }
	.cart-collaterals { margin-top: 0; position: sticky; top: calc(var(--header-h) + 20px); }
}

/* 11. Checkout ========================================================== */
.woocommerce-checkout .page-title { text-align: center; }
.woocommerce-form-login-toggle .woocommerce-info, .woocommerce-form-coupon-toggle .woocommerce-info { font-size: var(--fs-sm); }
form.checkout_coupon { display: flex; gap: 8px; margin-bottom: 16px; }
form.checkout_coupon p { margin: 0; flex: 1; }
form.checkout_coupon p:last-child { flex: none; }
.form-row { margin: 0 0 14px; }
.form-row-first, .form-row-last { width: 100%; }
.woocommerce-checkout h3, #order_review_heading { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 14px; }
.col2-set .col-2:empty { display: none; }
.woocommerce-additional-fields { margin-top: 6px; }
#order_review { background: var(--c-surface); border-radius: var(--radius); padding: 18px; }
#order_review table.shop_table { border-radius: 0; background: none; }
#order_review table.shop_table td, #order_review table.shop_table th { padding: 10px 0; }
#order_review .order-total th, #order_review .order-total td { font-size: var(--fs-lg); border-bottom: 0; }
#order_review .product-name .variation { color: var(--c-muted); font-size: var(--fs-xs); margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
#order_review .variation dd, #order_review .variation p { margin: 0; }
ul#shipping_method { list-style: none; margin: 0; padding: 0; }
ul#shipping_method li { display: flex; align-items: center; gap: 6px; }
.wc_payment_methods { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.wc_payment_method { border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px; background: var(--c-bg); }
.wc_payment_method:has(input:checked) { border-color: var(--c-ink); }
.wc_payment_method > label { display: inline; font-size: var(--fs-md); margin-inline-start: 6px; }
.wc_payment_method .payment_box { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-muted); }
.wc_payment_method .payment_box p:last-child { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 12px; }
#place_order { width: 100%; min-height: 58px; font-size: var(--fs-lg); background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
#place_order:hover { color: var(--c-accent-ink); filter: brightness(1.04); }
.nb-cod-notice { margin-top: 12px; }
@media (min-width: 900px) {
	form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 40px; align-items: start; }
	form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
	form.checkout #order_review { position: sticky; top: calc(var(--header-h) + 20px); }
	.woocommerce-checkout .wc-content { max-width: 1080px; margin-inline: auto; }
}
.woocommerce-order { max-width: 760px; margin-inline: auto; }
.woocommerce-thankyou-order-received { font-size: var(--fs-xl); font-weight: 800; text-align: center; padding: 24px; background: var(--c-accent); border-radius: var(--radius); }
ul.order_details { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
ul.order_details li { background: var(--c-surface); padding: 12px; border-radius: var(--radius-sm); font-size: var(--fs-xs); color: var(--c-muted); }
ul.order_details li strong { display: block; color: var(--c-ink); font-size: var(--fs-md); }

/* 12. My account / forms ================================================= */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: var(--pill); background: var(--c-surface); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--c-ink); color: #fff; }
@media (min-width: 900px) {
	.woocommerce-account .wc-content .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
}
.woocommerce-form-login, .woocommerce-form-register, .nb-track-form { max-width: 460px; background: var(--c-surface); padding: 24px; border-radius: var(--radius); }
.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.u-columns.col2-set { display: grid; gap: 24px; }
@media (min-width: 900px) { .u-columns.col2-set { grid-template-columns: 1fr 1fr; } }

/* 13. Prose (policy pages) =============================================== */
.prose-page .prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: start; }
.prose thead th { background: var(--c-ink); color: #fff; }
.prose .wp-block-table { overflow-x: auto; margin: 1.2em 0; }
.nb-vendor-terms-note { display: none; } /* future-marketplace notes stay hidden in Phase 1 */

/* 14. Footer ============================================================= */
.site-footer { background: var(--c-ink); color: color-mix(in srgb, var(--c-bg) 80%, transparent); margin-top: 48px; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--c-bg); }
.footer-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
.footer-brand .logo { justify-self: start; color: var(--c-bg); margin-bottom: 16px; }
.footer-brand .logo__mark { height: 34px; }
.footer-brand .logo__word { height: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-title { color: var(--c-bg); font-size: var(--fs-sm); letter-spacing: .06em; margin-bottom: 14px; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer .menu a { display: inline-flex; align-items: center; gap: 6px; }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.pay-methods span { display: inline-block; padding: 4px 10px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .25); font-size: var(--fs-xs); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px calc(18px + env(safe-area-inset-bottom)); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* nb-core size-guide dialog: match theme */
.nb-size-guide { border-radius: var(--radius) !important; background: var(--c-bg); }
.nb-size-guide thead th { background: var(--c-ink); color: #fff; }

form.cart.is-shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 16. Divra Club — loyalty landing (/club/) + home band ================== */

/* Membership cards (pure CSS illustration, Latin text → LTR) */
.club-cards { --w: min(340px, 76vw); position: relative; width: var(--w); aspect-ratio: 1 / .86; margin-inline: auto; direction: ltr; }
.club-cards--sm { --w: min(230px, 62vw); }
@media (min-width: 900px) { .club-cards--sm { --w: 300px; } }
.club-card {
	position: absolute; left: 0; bottom: 0; width: 84%; aspect-ratio: 1.586; border-radius: 16px; padding: 6% 7%;
	display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
	background: var(--c-surface); color: var(--c-ink); transform-origin: 0 100%; transition: transform .6s var(--ease);
	box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7);
}
.club-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .14) 46%, transparent 62%); }
.club-card:nth-child(1) { transform: translate(16%, -30%) rotate(8deg); }
.club-card:nth-child(2) { transform: translate(8%, -15%) rotate(4deg); }
.club-card.is-front { transform: none; z-index: 3; }
.club-hero__visual:hover .club-card:nth-child(1), .club-home__visual:hover .club-card:nth-child(1) { transform: translate(19%, -40%) rotate(11deg); }
.club-hero__visual:hover .club-card:nth-child(2), .club-home__visual:hover .club-card:nth-child(2) { transform: translate(10%, -21%) rotate(5.5deg); }
.club-card--member { background: #f7f4ee; color: var(--c-ink); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--c-line); }
.club-card--club { background: var(--c-olive); color: #fff; }
.club-card--inner { background: linear-gradient(140deg, #232323 0%, #0b0b0b 65%); color: var(--c-bg); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7), inset 0 0 0 1.5px var(--c-signal); }
.club-card__top, .club-card__bottom { position: relative; display: flex; justify-content: space-between; gap: 8px; }
.club-card__top { align-items: center; }
.club-card__bottom { align-items: flex-end; }
.club-card__mark { width: 24%; height: auto; }
.club-card__top span, .club-card__bottom span { font-family: var(--font-display); font-size: clamp(7px, 2.1vw, 10px); letter-spacing: .16em; opacity: .75; white-space: nowrap; }
.club-card__bottom strong { font-family: var(--font-display); font-size: clamp(13px, 4.2vw, 21px); line-height: 1.1; font-weight: 400; }

/* Shared facts row (hero + home band) */
.club-facts { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 28px 0 0; padding: 0; list-style: none; }
.club-facts li { display: grid; }
.club-facts strong { font-size: var(--fs-xl); font-weight: 800; line-height: 1.25; }
.club-facts span { font-size: var(--fs-xs); opacity: .72; }

/* Hero */
.club-hero { background: var(--c-ink); color: var(--c-bg); overflow: hidden; }
.club-hero__grid { display: grid; gap: 44px; padding-block: 40px 64px; align-items: center; }
.club-hero .eyebrow { color: color-mix(in srgb, var(--c-bg) 70%, transparent); letter-spacing: .2em; }
.club-hero__title { font-family: var(--font-display); font-size: clamp(2.5rem, 1rem + 6.4vw, 5.4rem); font-weight: 400; line-height: 1.05; margin: 0 0 14px; }
.club-hero__lead { display: inline-block; margin: 0; padding: .05em .45em .12em; border-radius: .2em; background: var(--c-accent); color: var(--c-accent-ink); font-size: var(--fs-xl); font-weight: 800; transform: rotate(-1.5deg); }
.club-hero__text { max-width: 40ch; font-size: var(--fs-lg); color: color-mix(in srgb, var(--c-bg) 78%, transparent); margin-block: 20px 26px; }
.club-hero__me { margin: -8px 0 22px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .07); max-width: 46ch; }
.club-hero .btn--ghost { color: var(--c-bg); }
@media (min-width: 900px) { .club-hero__grid { grid-template-columns: 1.1fr .9fr; padding-block: 72px 92px; } }

/* How it works + example */
.club-steps { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.club-steps li { background: var(--c-surface); border-radius: var(--radius); padding: 24px 22px; }
.club-steps__n { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--c-accent); }
.club-steps h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.club-steps p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }
@media (min-width: 768px) { .club-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.club-example { max-width: 560px; margin: 20px auto 0; padding: 20px 22px; border: 1.5px dashed var(--c-ink); border-radius: var(--radius); }
.club-example__title { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; color: var(--c-muted); }
.club-example dl { margin: 0; }
.club-example dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--c-line); }
.club-example dt, .club-example dd { margin: 0; }
.club-example dd { font-weight: 700; color: var(--c-ok); white-space: nowrap; }
.club-example .is-total dt, .club-example .is-total dd { font-weight: 800; color: var(--c-ink); }
.club-example__result { margin: 12px 0 0; font-size: var(--fs-lg); }

/* Ways to earn */
.club-earn { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.club-earn__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--c-surface); border-radius: var(--radius); }
.club-earn__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: var(--c-bg); }
.club-earn__item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 6px; font-size: var(--fs-md); }
.club-earn__item p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.club-pill { display: inline-flex; padding: 2px 10px; border-radius: var(--pill); background: var(--c-accent); color: var(--c-accent-ink); font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
@media (min-width: 768px) { .club-earn { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .club-earn { grid-template-columns: repeat(3, 1fr); } }

/* Tiers */
.club-muted { color: var(--c-muted); margin: -8px 0 18px; }
.club-progress-card { padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--c-surface); }
.club-progress-card p { margin: 0 0 10px; }
.club-progress { height: 8px; border-radius: var(--pill); background: var(--c-line); overflow: hidden; }
.club-progress span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--c-accent); }
.club-tiers { display: grid; gap: 14px; }
.club-tier { padding: 24px 22px; border-radius: var(--radius); background: var(--c-surface); }
.club-tier header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.club-tier__name { margin: 0; font-size: var(--fs-xl); font-weight: 400; }
.club-tier__req { margin: 4px 0 16px; font-size: var(--fs-sm); color: var(--c-muted); }
.club-tier ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.club-tier li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.club-tier li .icon { margin-top: 2px; color: var(--c-ok); }
.club-tier--club { background: var(--c-olive); color: #fff; }
.club-tier--inner { background: var(--c-ink); color: var(--c-bg); box-shadow: inset 0 0 0 1.5px var(--c-signal); }
.club-tier--club .club-tier__req, .club-tier--inner .club-tier__req { color: color-mix(in srgb, currentColor 72%, transparent); }
.club-tier--club li .icon { color: #fff; }
.club-tier--inner li .icon { color: var(--c-signal); }
.club-tier .badge { background: var(--c-accent); color: var(--c-accent-ink); }
.club-tier.is-current { outline: 3px solid var(--c-accent); outline-offset: 3px; }
@media (min-width: 900px) { .club-tiers { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Referral band */
.club-ref { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; padding: 30px 24px; border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-ink); }
.club-ref::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%; inset-block-start: -110px; inset-inline-end: -80px; border: 40px solid currentColor; opacity: .08; }
.club-ref .eyebrow { color: inherit; opacity: .7; }
.club-ref__title { margin-bottom: 8px; font-size: var(--fs-2xl); font-weight: 800; }
.club-ref p { margin: 0; }
.club-ref__code { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px !important; }
.club-ref__code strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .14em; }
.club-ref__row { display: flex; flex-wrap: wrap; gap: 10px; }
.club-ref .btn--outline { border-color: var(--c-ink); }
@media (min-width: 900px) { .club-ref { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 48px; } }

/* FAQ + closing CTA */
.club-faq .accordions { max-width: 860px; }
.club-faq .accordions .prose { font-size: var(--fs-md); }
.club-cta { padding-block: 56px; margin-bottom: -48px; text-align: center; background: var(--c-surface); border-top: 1px solid var(--c-line); }
.club-cta__title { font-size: var(--fs-2xl); font-weight: 800; }
.club-cta p { max-width: 46ch; margin: 0 auto 22px; color: var(--c-ink-2); }

/* Home band */
.club-home__card { position: relative; overflow: hidden; display: grid; gap: 34px; padding: 32px 24px 40px; border-radius: var(--radius); background: var(--c-ink); color: var(--c-bg); }
.club-home .eyebrow { color: color-mix(in srgb, var(--c-bg) 65%, transparent); letter-spacing: .2em; }
.club-home__title { margin-bottom: 12px; font-size: var(--fs-2xl); font-weight: 800; }
.club-home__name { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; color: var(--c-accent); }
.club-home__text { max-width: 44ch; margin: 0; color: color-mix(in srgb, var(--c-bg) 80%, transparent); }
.club-home .club-facts { margin: 22px 0 26px; }
.club-home .btn--ghost { color: var(--c-bg); }
@media (min-width: 900px) { .club-home__card { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 56px; } }

/* 15. Motion preferences ================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
