/* 3D Jellies — storefront styles. Tokens from design_handoff README. */

@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--bg: #FAF7FB;
	--surface: #FFFFFF;
	--ink: #362B3E;
	--ink-muted: #655A6E;
	--ink-subtle: #9B8FA5;
	--line: #E8DEEE;
	--primary: #8A5FA8;
	--primary-dark: #5B3F78;
	--tint: #F2E9F6;
	--tint-2: #E3D2EE;
	--band: #E9DCF1;
	--band-ink: #4A3159;
	--accent-soft: #D7A9DE;
	--dark: #3A2B44;
	--on-dark: #F7F4F8;
	--stripe-2: #EBDFF1;
	--error: #B3261E;
	--error-bg: #FBEAEA;

	--f-display: "Quicksand", ui-rounded, system-ui, sans-serif;
	--f-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "DM Mono", ui-monospace, Menlo, monospace;

	--max: 1240px;
	--gutter: 24px;
	--ring: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

.jl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jl-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-dark); text-decoration: none; }
.jl-skip:focus { top: 12px; color: var(--on-dark); }

.jl-wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.jl-section { padding-block: 56px; }
.jl-main { min-height: 50vh; }

/* ---------- Type ---------- */
.jl-eyebrow, .jl-kicker, .jl-step__n, .jl-meta { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-subtle); }
.jl-eyebrow { color: var(--primary); margin-bottom: 14px; }
.jl-eyebrow--soft { color: var(--accent-soft); }
.jl-meta { text-transform: none; letter-spacing: 0; }
.jl-h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.jl-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.jl-lead { font-size: 18px; color: var(--ink-muted); max-width: 56ch; }

.jl-prose { max-width: 72ch; margin-top: 24px; color: var(--ink-muted); }
.jl-prose h2, .jl-prose h3 { color: var(--ink); margin: 1.6em 0 0.5em; }
.jl-prose p, .jl-prose ul, .jl-prose ol { margin: 0 0 1em; }
.jl-page .jl-lead { margin-top: 12px; }
.jl-page .jl-btn { margin-top: 28px; }

/* ---------- Buttons, pills, chips ---------- */
.jl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s; }
.jl-btn:hover { background: var(--primary-dark); color: #fff; }
.jl-btn:disabled { opacity: .5; cursor: not-allowed; }
.jl-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.jl-btn--block { width: 100%; }
.jl-btn--outline { background: transparent; color: var(--primary-dark); box-shadow: inset 0 0 0 1.5px var(--primary); }
.jl-btn--outline:hover { background: var(--tint); color: var(--primary-dark); }
.jl-btn--dark { background: var(--dark); }
.jl-btn--dark:hover { background: var(--ink); }
.jl-btn--soft { background: var(--accent-soft); color: var(--dark); }
.jl-btn--soft:hover { background: var(--tint-2); color: var(--dark); }
.jl-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.jl-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.jl-pill:hover { background: var(--tint-2); color: var(--ink); }
.jl-pill.is-on, .jl-pill--basket { background: var(--primary); color: #fff; }
.jl-pill.is-on:hover, .jl-pill--basket:hover { background: var(--primary-dark); color: #fff; }

.jl-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.jl-chip.is-on { background: var(--ink); color: var(--on-dark); }

.jl-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--primary-dark); font-family: var(--f-mono); font-size: 12px; }
.jl-media .jl-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.jl-tag--pill { background: var(--tint); }

/* ---------- Promo + header ---------- */
.jl-promo { background: var(--dark); color: var(--on-dark); text-align: center; font-size: 14px; padding: 9px var(--gutter); }
.jl-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jl-header__inner { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.jl-logo { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.jl-logo:hover { color: var(--primary-dark); }
.jl-nav { flex: 1; }
.jl-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.jl-nav__list a { color: var(--ink-muted); font-weight: 500; text-decoration: none; }
.jl-nav__list a:hover, .jl-nav__list .current-menu-item > a { color: var(--ink); }
.jl-nav__list .current-menu-item > a { font-weight: 700; }
.jl-actions { display: flex; align-items: center; gap: 8px; }
.jl-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--tint); align-items: center; justify-content: center; }
.jl-burger__bars, .jl-burger__bars::before, .jl-burger__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.jl-burger__bars::before, .jl-burger__bars::after { content: ""; position: absolute; left: 0; }
.jl-burger__bars::before { top: -6px; }
.jl-burger__bars::after { top: 6px; }
.jl-menu-open .jl-burger__bars { background: transparent; }
.jl-menu-open .jl-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.jl-menu-open .jl-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Footer ---------- */
.jl-footer { margin-top: 80px; background: var(--dark); color: var(--on-dark); }
.jl-footer__inner { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.jl-footer__logo { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--on-dark); text-decoration: none; }
.jl-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.jl-footer__links a { color: var(--on-dark); opacity: .8; font-size: 14px; text-decoration: none; }
.jl-footer__links a:hover { opacity: 1; color: var(--on-dark); }

/* ---------- Cards, media, placeholder ---------- */
.jl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.jl-media { position: relative; display: block; overflow: hidden; background: var(--tint); }
.jl-media--square { aspect-ratio: 1 / 1; }
.jl-media img { width: 100%; height: 100%; object-fit: cover; }
.jl-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
	background: repeating-linear-gradient(135deg, var(--tint) 0 14px, var(--stripe-2) 14px 28px); }
.jl-ph span { padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-muted); font-family: var(--f-mono); font-size: 12px; }

/* ---------- Swatches, dots ---------- */
.jl-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.jl-swatches--lg { gap: 12px; }
.jl-swatch { --sz: 22px; display: inline-block; flex: none; width: var(--sz); height: var(--sz); padding: 0; border: 1px solid rgba(54, 43, 62, .15); border-radius: 999px; background: var(--sw, var(--line)); }
.jl-swatch.is-on, .jl-swatch[aria-current] { box-shadow: var(--ring); }
.jl-swatches--lg .jl-swatch.is-on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.jl-dots { display: inline-flex; }
.jl-dots span, .jl-banner__dots span { display: block; border-radius: 999px; background: var(--sw); border: 2px solid var(--surface); }
.jl-dots span { width: 18px; height: 18px; margin-left: -5px; }
.jl-dots span:first-child { margin-left: 0; }

/* ---------- Home: hero ---------- */
.jl-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 56px 40px; }
.jl-hero__title { font-size: clamp(2.5rem, 5vw, 3.9rem); line-height: 1.05; }
.jl-hero__lead { margin: 20px 0 30px; }
.jl-hero__media { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--tint); }
.jl-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Promises */
.jl-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 16px 40px; }
.jl-promise { padding: 24px; border-radius: 18px; }
.jl-promise__title { font-size: 20px; margin: 8px 0 6px; }
.jl-promise__body { color: var(--ink-muted); font-size: 15px; }

/* Builder banner */
.jl-banner-wrap { padding-block: 16px; }
.jl-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 28px; background: var(--dark); color: var(--on-dark); }
.jl-banner__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.jl-banner__body { margin-top: 10px; opacity: .85; max-width: 52ch; }
.jl-banner__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }
.jl-banner__dots { display: flex; gap: 8px; }
.jl-banner__dots span { width: 30px; height: 30px; border-color: var(--dark); box-shadow: 0 0 0 1px rgba(247, 244, 248, .25); }

/* Section heading row */
.jl-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.jl-more { font-weight: 700; text-decoration: none; }

/* Grids */
.jl-grid { display: grid; gap: 20px; }
.jl-grid--fav { grid-template-columns: repeat(4, 1fr); }
.jl-grid--shop { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }

/* Favourites card */
.jl-fav { display: block; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s; }
.jl-fav:hover { border-color: var(--accent-soft); color: inherit; }
.jl-fav__body { padding: 16px 18px 18px; }
.jl-fav__name { font-size: 19px; }
.jl-fav__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.jl-fav__price { font-weight: 700; }

/* Group-shot photo banners */
.jl-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 8px 24px; }
.jl-photo { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.jl-photo:hover { border-color: var(--accent-soft); color: inherit; transform: translateY(-2px); }
.jl-photo__media { aspect-ratio: 3 / 2; background: #fff; overflow: hidden; }
.jl-photo__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.jl-photo:hover .jl-photo__media img { transform: scale(1.03); }
.jl-photo__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.jl-photo__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 4px; }
.jl-photo__text { color: var(--ink-muted); margin-top: 4px; }
.jl-photo .jl-btn { flex: none; }
.jl-photo--wide { grid-column: 1 / -1; }
.jl-photo--wide:hover { transform: none; }
.jl-photo--wide .jl-photo__media { aspect-ratio: 2 / 1; }
.jl-photo__ctas { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* Steps */
.jl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 40px 64px; }
.jl-step { border-top: 1px solid var(--line); padding-top: 18px; }
.jl-step__n { color: var(--primary); }
.jl-step__title { font-size: 20px; margin: 8px 0 6px; }
.jl-step__body { color: var(--ink-muted); }

/* Points band */
.jl-band { background: var(--band); color: var(--band-ink); padding-block: 64px; }
.jl-band__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.jl-band__title { color: var(--band-ink); }
.jl-band__body { margin: 14px 0 26px; max-width: 48ch; }
.jl-ledger { margin: 0; padding: 8px 24px; border-color: transparent; }
.jl-ledger div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.jl-ledger div:last-child { border-bottom: 0; }
.jl-ledger dt { color: var(--ink-muted); }
.jl-ledger dd { margin: 0; font-family: var(--f-mono); color: var(--ink); }

/* ---------- Shop ---------- */
.jl-shop { padding-block: 48px 24px; }
.jl-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; padding: 16px 20px; border-radius: 18px; }
.jl-filter__colours { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.jl-filter__label { font-weight: 700; margin-right: 4px; }
.jl-filter__status { margin-left: 8px; color: var(--ink-muted); font-size: 14px; }
.jl-sort { display: flex; align-items: center; gap: 10px; }
.jl-sort label { font-weight: 700; }
.jl-sort select { min-height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) 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' fill='none' stroke='%23362B3E' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }

.jl-pcard { display: flex; flex-direction: column; overflow: hidden; }
.jl-pcard__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.jl-pcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jl-pcard__name { font-size: 19px; }
.jl-pcard__name a { color: var(--ink); text-decoration: none; }
.jl-pcard__name a:hover { color: var(--primary-dark); }
.jl-pcard__price { font-weight: 700; white-space: nowrap; }
.jl-pcard__colour { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.jl-pcard .jl-btn--block { margin-top: auto; }

.jl-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.jl-seg button { min-height: 36px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.jl-seg button.is-on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }

.jl-added { font-size: 14px; color: var(--primary-dark); text-align: center; }
.jl-added.is-error { padding: 8px 12px; border-radius: 12px; background: var(--error-bg); color: var(--error); }

.jl-empty { margin-top: 32px; padding: 32px; border-radius: 22px; background: var(--tint); text-align: center; }

.jl-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 28px 32px; border-radius: 22px; background: var(--tint); }
.jl-prompt__title { font-size: 22px; }
.jl-prompt__body { margin-top: 4px; color: var(--ink-muted); }

/* ---------- WooCommerce notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--tint); }
.woocommerce-error { background: var(--error-bg); color: var(--error); }
.woocommerce-message .button, .woocommerce-info .button { float: right; font-weight: 700; }

/* ---------- Product ---------- */
.jl-product { padding-block: 32px 24px; }
.jl-crumbs { font-size: 14px; color: var(--ink-subtle); margin-bottom: 20px; }
.jl-crumbs a { color: var(--ink-muted); text-decoration: none; }
.jl-crumbs a:hover { color: var(--ink); }
.jl-product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.jl-product__about { margin-top: 48px; }
.jl-product__about h2 { margin-top: 0; }

.jl-gallery { position: sticky; top: 96px; }
.jl-gallery__main { border-radius: 26px; }
.jl-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.jl-thumb.is-other img { opacity: .8; }
.jl-gallery__more { display: block; margin: 12px auto 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.jl-gallery__more:hover { border-color: var(--accent-soft); }
.jl-thumb { position: relative; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.jl-thumb img { width: 100%; height: 100%; object-fit: cover; }
button.jl-thumb:hover { border-color: var(--accent-soft); }
.jl-thumb--empty .jl-ph span { font-size: 11px; }

.jl-buy { display: flex; flex-direction: column; gap: 22px; }
.jl-buy__price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 26px; font-weight: 700; }
.jl-buy__price .jl-tag { font-size: 13px; font-weight: 400; }
.jl-buy__blurb { color: var(--ink-muted); }
.jl-buy__blurb p + p { margin-top: .8em; }

.jl-opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.jl-opt__head { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 700; }
.jl-opt__value { font-weight: 400; color: var(--ink-muted); }
.jl-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jl-size { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.jl-size:hover { border-color: var(--accent-soft); }
.jl-size.is-on { border-color: var(--ink); background: var(--tint); }
.jl-size__name { font-weight: 700; }
.jl-size__price { font-size: 14px; color: var(--ink-muted); }

.jl-buy__row { display: flex; gap: 12px; }
.jl-qty { display: flex; align-items: center; flex: none; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.jl-qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 20px; color: var(--ink-muted); }
.jl-qty button:hover { color: var(--ink); }
.jl-qty input { width: 40px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.jl-qty input::-webkit-inner-spin-button, .jl-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.jl-buy__add { flex: 1; }

.jl-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1.5px dashed var(--accent-soft); border-radius: 16px; background: var(--tint); color: var(--ink); text-decoration: none; }
.jl-upsell:hover { background: var(--tint-2); color: var(--ink); }
.jl-upsell__sub { display: block; font-size: 14px; color: var(--ink-muted); }
.jl-upsell__go { flex: none; font-weight: 700; color: var(--primary-dark); }

.jl-facts { margin: 0; border-top: 1px solid var(--line); }
.jl-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.jl-facts dt { color: var(--ink-muted); }
.jl-facts dd { margin: 0; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.jl-grid--fav { grid-template-columns: repeat(2, 1fr); }
	.jl-grid--shop { grid-template-columns: repeat(2, 1fr); }
	.jl-hero, .jl-product__grid { gap: 36px; }
}

@media (max-width: 860px) {
	.jl-hero, .jl-band__inner, .jl-product__grid { grid-template-columns: 1fr; }
	.jl-hero__media { order: -1; aspect-ratio: 4 / 3; }
	.jl-promises, .jl-steps { grid-template-columns: 1fr; gap: 12px; }
	.jl-steps { gap: 24px; }
	.jl-banner { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
	.jl-banner__cta { align-items: flex-start; }
	.jl-photos { grid-template-columns: 1fr; }
	.jl-gallery { position: static; }
}

@media (max-width: 760px) {
	.jl-header__inner { flex-wrap: wrap; gap: 10px; }
	/* Basket + burger stay in the bar; nav and the other pills drop below when open. */
	.jl-actions { display: contents; }
	.jl-basket { order: 1; margin-left: auto; }
	.jl-burger { display: inline-flex; order: 2; margin-left: 0; }
	.jl-nav { display: none; order: 3; flex-basis: 100%; }
	.jl-pill--build, .jl-pill--account { display: none; order: 4; }
	.jl-menu-open .jl-nav { display: block; }
	.jl-menu-open .jl-pill--build, .jl-menu-open .jl-pill--account { display: inline-flex; margin-bottom: 8px; }
	.jl-nav__list { flex-direction: column; gap: 0; padding-top: 8px; border-top: 1px solid var(--line); }
	.jl-nav__list a { display: block; padding: 12px 0; font-size: 18px; }
	.jl-logo { font-size: 21px; }
	.jl-section { padding-block: 40px; }
	.jl-filter { flex-direction: column; align-items: flex-start; }
	.jl-filter__status { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.jl-grid--fav { gap: 12px; }
	.jl-grid--shop { grid-template-columns: 1fr; }
	.jl-fav__body { padding: 12px 14px 14px; }
	.jl-fav__name { font-size: 16px; }
	.jl-fav__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
	.jl-sizes { gap: 8px; }
	.jl-size { padding: 12px; }
	.jl-buy__row { flex-direction: column; }
	.jl-qty { align-self: flex-start; }
	.jl-prompt { padding: 24px; }
	.jl-photo__body { flex-direction: column; align-items: flex-start; padding: 18px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Build your own (3.4) ---------- */
.jl-byo { padding-top: 40px; padding-bottom: 64px; }
.jl-byo .jl-lead { margin-top: 10px; max-width: 640px; font-size: 17px; color: var(--ink-muted); }
.jl-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 999px; background: var(--sw); border: 1px solid rgba(54, 43, 62, .15); vertical-align: -2px; margin-right: 8px; }
.jl-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.jl-stepper__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.jl-stepper__btn.is-done { background: var(--tint-2); border-color: var(--tint-2); }
.jl-stepper__btn.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.jl-stepper__n { font-family: var(--f-mono); font-size: 12px; opacity: .8; }
.jl-stepper__label { font-weight: 700; font-size: 15px; }
.jl-byo__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; margin-top: 28px; }
.jl-byo__main { flex: 2 1 480px; min-width: 0; }
.jl-byo__aside { flex: 1 1 300px; position: sticky; top: 90px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.jl-byo__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; margin: 0; }
.jl-byo__sub { margin: 6px 0 0; color: var(--ink-muted); }
.jl-byo__panel > .jl-byo__title + * { margin-top: 18px; }
.jl-byo__panel > .jl-byo__sub + * { margin-top: 18px; }

.jl-byo__chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.jl-byo-char { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.jl-byo-char .jl-media { border-radius: 14px; }
.jl-byo-char.is-on { border-color: var(--primary); background: var(--tint); }
.jl-byo-char__name { padding: 0 4px 4px; font-family: var(--f-display); font-weight: 700; font-size: 17px; }

.jl-byo__sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jl-byo-size { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.jl-byo-size.is-on { border-color: var(--primary); background: var(--tint); }
.jl-byo-size__art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 150px; margin-bottom: 10px; border-bottom: 2px dashed var(--accent-soft); }
.jl-byo-size__bar { display: block; width: 46%; max-width: 72px; border-radius: 999px 999px 14px 14px; background: var(--accent-soft); }
.jl-byo-size.is-on .jl-byo-size__bar { background: var(--primary); }
.jl-byo-size__name { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.jl-byo-size__price { color: var(--ink-muted); }

.jl-byo__pieces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.jl-byo__parts { display: flex; flex-direction: column; gap: 8px; }
.jl-byo-part { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.jl-byo-part.is-on { border-color: var(--primary); }
.jl-byo-part__sw { width: 28px; height: 28px; border-radius: 999px; background: var(--sw); border: 1px solid rgba(54, 43, 62, .15); }
.jl-byo-part__name { font-weight: 700; }
.jl-byo-part__colour { color: var(--ink-muted); font-size: 14px; }
.jl-byo__palette { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.jl-byo__palette-title { margin: 0 0 14px; font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.jl-byo__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 12px; justify-items: center; }
.jl-byo__swatches .jl-swatch { cursor: pointer; }
.jl-linkbtn { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jl-linkbtn:hover { color: var(--primary-dark); }

.jl-byo__review { margin: 0; padding: 6px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.jl-byo__review div, .jl-byo__lines div { display: flex; justify-content: space-between; gap: 16px; }
.jl-byo__review div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.jl-byo__review div:last-child { border-bottom: 0; }
.jl-byo__review dt { color: var(--ink-muted); }
.jl-byo__review dd, .jl-byo__lines dd { margin: 0; font-weight: 700; text-align: right; }

.jl-byo__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jl-byo__nav [data-role="next"], .jl-byo__nav [data-role="add"] { margin-left: auto; }
.jl-byo__error { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--error-bg); color: var(--error); }

.jl-byo__preview { border-radius: 16px; }
.jl-byo__note { margin: 10px 0 0; font-size: 13px; color: var(--ink-muted); }
.jl-byo__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.jl-byo__chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 700; }
.jl-byo__chip .jl-dot { margin-right: 6px; }
.jl-byo__name { margin: 16px 0 0; font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.jl-byo__lines { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.jl-byo__lines dt { color: var(--ink-muted); }
.jl-byo__lines dd { font-weight: 500; }
.jl-byo__total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 700; }
.jl-byo__earn { margin: 6px 0 0; font-size: 13.5px; color: var(--primary-dark); }

@media (max-width: 860px) {
	.jl-byo__aside { position: static; }
	.jl-byo__pieces { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.jl-byo { padding-top: 28px; padding-bottom: 48px; }
	.jl-stepper { grid-template-columns: repeat(2, 1fr); }
	.jl-byo__sizes { grid-template-columns: 1fr; }
	.jl-byo-size__art { height: 110px; }
	.jl-byo__chars { grid-template-columns: repeat(2, 1fr); }
	.jl-byo__nav .jl-btn { flex: 1 1 auto; }
}

/* ---------- Basket (3.6) ---------- */
.jl-cart-page { padding-top: 40px; padding-bottom: 64px; }
.jl-cart-page .woocommerce-notices-wrapper:not(:empty) { margin-top: 20px; }
.jl-cart { margin-top: 24px; transition: opacity .15s; }
.jl-cart.is-busy { opacity: .6; pointer-events: none; }
.jl-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.jl-cart__lines { display: flex; flex-direction: column; gap: 12px; }
.jl-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px; background: var(--surface); border-radius: 20px; }
.jl-line__img { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--tint); }
.jl-line__img img, .jl-line__img .jl-placeholder { width: 100%; height: 100%; object-fit: cover; }
.jl-line__name { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.jl-line__name:hover { color: var(--primary-dark); }
.jl-line__meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.jl-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.jl-line__actions .jl-linkbtn { margin: 0; }
.jl-line__total { margin: 0; font-weight: 700; font-size: 17px; white-space: nowrap; }
.jl-qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; }
.jl-qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.jl-qty button:hover { background: var(--tint-2); }
.jl-qty span { min-width: 26px; text-align: center; font-weight: 700; }

.jl-cart__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; padding: 22px; background: var(--surface); border-radius: 22px; }
.jl-cart__delivery { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.jl-cart__label { margin-bottom: 4px; padding: 0; font-weight: 700; font-size: 15px; }
.jl-radio-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.jl-radio-card:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.jl-radio-card input { accent-color: var(--primary); margin: 0; }
.jl-radio-card__name { flex: 1; }
.jl-radio-card__price { font-weight: 700; }
.jl-points-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--tint); border-radius: 14px; }
.jl-points-box p { margin: 0; font-weight: 700; font-size: 15px; }
.jl-points-box--note { display: block; }
.jl-points-box a { color: var(--primary-dark); }
.jl-points-box .jl-points-box__sub { margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.jl-switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #D9CFE0; cursor: pointer; transition: background .15s; }
.jl-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.jl-switch[aria-checked="true"] { background: var(--primary); }
.jl-switch[aria-checked="true"]::after { transform: translateX(20px); }
.jl-switch:focus-visible { outline: none; box-shadow: var(--ring); }
.jl-cart__totals { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 15px; }
.jl-cart__totals div { display: flex; justify-content: space-between; gap: 12px; }
.jl-cart__totals dd { margin: 0; }
.jl-cart__points-off { color: var(--primary-dark); }
.jl-cart__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.jl-cart__earn { margin: -6px 0 0; font-size: 13.5px; color: var(--primary-dark); }
.jl-cart__error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--error-bg); color: var(--error); font-size: 14px; }
.jl-cart__empty { padding: 56px 24px; background: var(--surface); border-radius: 22px; text-align: center; }
.jl-cart__empty h2 { margin: 0; font-family: var(--f-display); font-size: 24px; }
.jl-cart__empty p { margin: 8px 0 24px; color: var(--ink-muted); }

@media (max-width: 960px) {
	.jl-cart__grid { grid-template-columns: 1fr; }
	.jl-cart__aside { position: static; }
}
@media (max-width: 560px) {
	.jl-cart-page { padding-top: 28px; padding-bottom: 48px; }
	.jl-line { grid-template-columns: 72px minmax(0, 1fr); }
	.jl-line__total { grid-column: 2; }
}

/* ---------- Points (account card, history, 3.9 page) ---------- */
.jl-muted { color: var(--ink-muted); }
.jl-points-card { padding: 24px; border-radius: 22px; background: var(--band); color: var(--band-ink); }
.jl-points-card .jl-kicker { margin: 0; }
.jl-points-card__balance { margin: 6px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 48px); line-height: 1.05; }
.jl-points-card__worth { margin: 4px 0 18px; }
.jl-account__h2 { margin: 32px 0 12px; font-family: var(--f-display); font-size: 22px; }
.jl-points-log { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
.jl-points-log td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.jl-points-log tr:last-child td { border-bottom: 0; }
.jl-points-log__date { color: var(--ink-muted); white-space: nowrap; }
.jl-points-log__p { text-align: right; font-weight: 700; white-space: nowrap; }
.jl-points-hero .jl-kicker { color: var(--primary-dark); }
.jl-points-hero__title { max-width: 16ch; margin: 10px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 6vw, 62px); line-height: 1.05; color: var(--band-ink); }
.jl-points-hero__body { max-width: 52ch; margin: 18px 0 0; font-size: 18px; }
.jl-points-cards { padding-top: 56px; padding-bottom: 64px; }
.jl-points-cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.jl-points-cards__card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.jl-points-cards__card--example { background: #F4EDE2; border-color: transparent; }
.jl-points-cards__card .jl-kicker { margin: 0; }
.jl-points-cards__card h2 { margin: 8px 0 6px; font-family: var(--f-display); font-size: 24px; }
.jl-points-cards__card p:last-child { margin: 0; color: var(--ink-muted); }
.jl-points-cards__actions { margin-top: 32px; }

/* ---------- Forms (Woo fields, shared by checkout, login, account) ---------- */
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label, .jl-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.woocommerce form .form-row label.checkbox, .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.woocommerce form .form-row .required { color: var(--primary); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--ink-subtle); }
.woocommerce .input-text, .woocommerce select, .woocommerce textarea, .jl-input {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .15s;
}
.woocommerce textarea { min-height: 96px; }
.woocommerce .input-text:focus, .woocommerce select:focus, .woocommerce textarea:focus, .jl-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.woocommerce .woocommerce-invalid .input-text, .woocommerce .woocommerce-invalid select { border-color: var(--error); }
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.woocommerce .password-input { position: relative; display: block; }
.woocommerce .show-password-input { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; }
.woocommerce .show-password-input::after { content: "Show"; font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.woocommerce .show-password-input.display-password::after { content: "Hide"; }
.woocommerce .button, .woocommerce button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s; }
.woocommerce .button:hover { background: var(--primary-dark); color: #fff; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .5; cursor: not-allowed; }
.woocommerce-form-row--wide, .form-row-wide { clear: both; }
@media (min-width: 561px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { display: inline-block; width: calc(50% - 7px); vertical-align: top; }
	.woocommerce form .form-row-first { margin-right: 10px; }
}
.woocommerce .clear { clear: both; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Checkout (3.5, built from tokens) ---------- */
.jl-checkout-page { padding-top: 40px; padding-bottom: 64px; }
.jl-checkout-page .jl-h1 { margin-bottom: 8px; }
.jl-checkout-page .woocommerce-form-login, .jl-checkout-page .checkout_coupon { max-width: 640px; margin: 16px 0 0; padding: 20px; background: var(--surface); border-radius: 18px; }
.jl-checkout-page .woocommerce-form-login > p:first-child { margin-bottom: 14px; color: var(--ink-muted); }
.jl-checkout-page .woocommerce-info a { font-weight: 700; }
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 32px; align-items: start; margin-top: 24px; }
form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; margin-bottom: 16px; }
#customer_details { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 20px; }
#customer_details .col-1, #customer_details .col-2 { padding: 24px; background: var(--surface); border-radius: 22px; }
#customer_details .col-2:not(:has(.shipping_address, textarea)) { display: none; }
.woocommerce-checkout h3 { margin: 0 0 16px; font-size: 20px; }
#ship-to-different-address { font-size: 16px; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.woocommerce-account-fields { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.woocommerce-account-fields .create-account p { margin-top: 10px; }
#order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 22px 22px 0; background: var(--surface); border-radius: 22px 22px 0 0; }
#order_review { grid-column: 2; grid-row: 2; padding: 14px 22px 22px; background: var(--surface); border-radius: 0 0 22px 22px; }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table thead th { padding-top: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-subtle); }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table .product-name { padding-right: 12px; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 700; color: var(--ink-muted); }
.woocommerce-checkout-review-order-table dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }
.woocommerce-checkout-review-order-table dl.variation dt, .woocommerce-checkout-review-order-table dl.variation dd, .woocommerce-checkout-review-order-table dl.variation p { margin: 0; font-weight: 400; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 500; }
.woocommerce-checkout-review-order-table .fee td { color: var(--primary-dark); font-weight: 700; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { padding-top: 14px; border-bottom: 0; font-size: 19px; font-weight: 700; }
.woocommerce-shipping-totals td { text-align: left !important; }
.woocommerce-shipping-totals th { display: block; padding-bottom: 0; border: 0; }
.woocommerce-shipping-totals td { display: block; }
.woocommerce-shipping-totals { display: grid; }
#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#shipping_method li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
#shipping_method li:has(input:checked), #shipping_method li:only-child { border-color: var(--primary); background: var(--tint); }
#shipping_method li label { flex: 1; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
#shipping_method .amount { font-weight: 700; }
#payment { margin-top: 18px; }
.jl-checkout-points { margin-top: 18px; }
#payment .payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
#payment .wc_payment_method { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
#payment .wc_payment_method:has(> input:checked) { border-color: var(--primary); }
#payment .wc_payment_method > label { font-weight: 700; margin-left: 8px; cursor: pointer; }
#payment .payment_box { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
/* Stripe's off-screen style probe picks up .input-text width:100% and widens the page */
#wc-stripe-hidden-style-input { width: 1px !important; min-height: 0; }
#payment .payment_methods > .woocommerce-notice, #payment .woocommerce-info { margin: 0; font-size: 14px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; color: var(--ink-muted); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin-top: 12px; }
.woocommerce-terms-and-conditions { max-height: 240px; overflow: auto; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--bg); }
#place_order { width: 100%; min-height: 52px; margin-top: 14px; font-size: 16px; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; border-radius: 22px; }
@media (max-width: 960px) {
	form.woocommerce-checkout { grid-template-columns: 1fr; gap: 20px; }
	#customer_details, #order_review_heading, #order_review { grid-column: 1; grid-row: auto; }
	#order_review_heading { margin-bottom: -20px; }
}

/* Order received */
.woocommerce-order { display: grid; gap: 20px; margin-top: 16px; }
.woocommerce-thankyou-order-received { font-size: 18px; }
.woocommerce-order-overview { list-style: none; margin: 0; padding: 20px; display: flex; flex-wrap: wrap; gap: 12px 32px; background: var(--surface); border-radius: 18px; }
.woocommerce-order-overview li { font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-subtle); }
.woocommerce-order-overview strong { display: block; font-family: var(--f-body); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.woocommerce-order-details, .woocommerce-customer-details { padding: 22px; background: var(--surface); border-radius: 22px; }
.woocommerce-order-details__title, .woocommerce-column__title { margin-bottom: 12px; font-size: 20px; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.woocommerce-table--order-details td:last-child, .woocommerce-table--order-details tfoot td { text-align: right; }
.woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--ink-muted); }
.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; }

/* ---------- Sign in / create account (3.7) ---------- */
.jl-btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.jl-login-page { max-width: 460px; margin: 0 auto; padding: 56px 24px 72px; }
.jl-login-page .jl-h1 { text-align: center; }
.jl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: var(--tint); }
.jl-seg__tab { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; color: var(--ink-muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.jl-seg__tab[aria-selected="true"] { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(43,31,54,.12); }
.jl-seg__tab:focus-visible { outline: none; box-shadow: var(--ring); }
.jl-login__h1 { margin: 0 0 8px; font-family: var(--f-display); font-size: 34px; line-height: 1.15; color: var(--ink); }
.jl-login__lead { margin: 0 0 20px; color: var(--ink-muted); }
.jl-login__panel > form { margin-top: 20px; }
.jl-login__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.jl-login__row a { color: var(--primary); font-weight: 700; }
.jl-form-error { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #FBEAEA; color: #B3261E; font-size: 13px; }
.jl-form-error a { color: inherit; font-weight: 700; }
.jl-hint { display: block; margin-top: 6px; color: var(--ink-subtle); font-size: 13px; }
.jl-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.jl-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.jl-login .woocommerce-form-login .jl-btn, .jl-login .woocommerce-form-register .jl-btn { margin-top: 4px; }
.jl-login-page .woocommerce-ResetPassword { margin-top: 20px; }

/* ---------- My account (3.8) ---------- */
.jl-account-page { padding: 40px 24px 72px; }
.jl-account__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.jl-account__top .jl-h1 { margin: 0; }
.jl-account__top .jl-linkbtn { margin-top: 0; }
.jl-account { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink-muted); font-weight: 600; text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--tint); color: var(--primary-dark); }
.woocommerce-MyAccount-navigation li.is-active a { background: #F2E9F6; color: #5B3F78; font-weight: 700; }
.jl-account__content > * + * { margin-top: 28px; }
.jl-account__content h2, .jl-account__h2 { margin: 0; font-family: var(--f-display); font-size: 22px; }
.jl-account__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jl-account__row a { color: var(--primary); font-weight: 700; font-size: 14px; }
.jl-orders { display: grid; gap: 12px; margin-top: 14px; }
.jl-order { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.jl-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.jl-order__no { color: var(--ink); font-weight: 700; text-decoration: none; }
.jl-order__no:hover { color: var(--primary-dark); }
.jl-order__total { margin-left: auto; font-weight: 700; }
.jl-order__meta { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; }
.jl-order__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.jl-order__actions .jl-linkbtn { margin-top: 0; }
.jl-order__actions .jl-btn { margin-left: auto; }
.jl-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.jl-status--completed { background: #E3F2E6; color: #1E6B34; }
.jl-status--pending, .jl-status--on-hold { background: #FFF3D6; color: #7A5300; }
.jl-status--cancelled, .jl-status--failed, .jl-status--refunded { background: #EEE; color: var(--ink-muted); }
.jl-addresses { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.jl-address { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.jl-address__label { margin: 0 0 10px; font-family: var(--f-display); font-size: 18px; }
.jl-address address { font-style: normal; color: var(--ink-muted); line-height: 1.6; }
.jl-address a { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; }
.jl-account-empty { padding: 36px 24px; border: 1.5px dashed var(--line); border-radius: 18px; text-align: center; }
.jl-account-empty h2 { margin-bottom: 6px; }
.jl-account-empty p { margin: 0 0 18px; color: var(--ink-muted); }
.jl-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.jl-account__content form.woocommerce-EditAccountForm, .jl-account__content form.edit-address-form, .jl-account__content > form { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.jl-account__content fieldset { margin: 20px 0 0; padding: 0; border: 0; }
.jl-account__content legend { margin-bottom: 8px; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.jl-account__content table.shop_table { width: 100%; border-collapse: collapse; }
.jl-account__content table.shop_table th, .jl-account__content table.shop_table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 760px) {
	.jl-account { grid-template-columns: 1fr; gap: 20px; }
	.woocommerce-MyAccount-navigation ul { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
	.jl-order__total { margin-left: 0; }
}

/* ---------- FAQ (3.10) ---------- */
.jl-faq { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.jl-faq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.jl-faq__item { border-bottom: 1px solid var(--line); }
.jl-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.jl-faq__item summary::-webkit-details-marker { display: none; }
.jl-faq__item summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.jl-faq__icon::before { content: "+"; display: block; width: 22px; font-size: 22px; line-height: 1; text-align: center; color: #8A5FA8; }
.jl-faq__item[open] .jl-faq__icon::before { content: "\2212"; }
.jl-faq__item p { margin: -4px 0 20px; max-width: 680px; font-size: 16px; line-height: 1.65; color: #655A6E; }
.jl-tbc { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: #FFF1C2; color: #6B5300; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; vertical-align: middle; }
.jl-faq__more { margin-top: 28px; color: var(--ink-muted); }
.jl-faq__more a { color: var(--primary); font-weight: 700; }

/* ---------- Legal (3.11) ---------- */
.jl-legal { display: flex; align-items: flex-start; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.jl-legal__nav { position: sticky; top: 96px; flex: 0 0 230px; }
.jl-legal__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jl-legal__nav a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink-muted); font-weight: 600; text-decoration: none; }
.jl-legal__nav a:hover { background: var(--tint); color: var(--primary-dark); }
.jl-legal__nav .is-active a { background: #F2E9F6; color: #5B3F78; font-weight: 700; }
.jl-legal__body { flex: 1; min-width: 0; max-width: 720px; }
.jl-legal__body .jl-h1 { margin: 0; }
.jl-legal__date { margin: 8px 0 24px; font-size: 14px; color: #9B8FA5; }
.jl-legal__draft { margin: 0 0 28px; padding: 12px 16px; border-radius: 12px; background: #FFF1C2; color: #6B5300; font-size: 14px; }
.jl-legal__content { counter-reset: jl-sec; line-height: 1.7; color: var(--ink-muted); }
.jl-legal__content h2 { counter-increment: jl-sec; display: flex; align-items: baseline; gap: 12px; margin: 32px 0 10px; font-family: var(--f-display); font-size: 20px; color: var(--ink); }
.jl-legal__content h2::before { content: counter(jl-sec, decimal-leading-zero); font-family: var(--f-mono); font-size: 14px; font-weight: 400; color: #8A5FA8; }
.jl-legal__content h2:first-child { margin-top: 0; }
.jl-legal__content p { margin: 0 0 12px; }
.jl-legal-todo { padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--ink-subtle); font-size: 14px; font-style: italic; }
@media (max-width: 860px) {
	.jl-legal { flex-direction: column; gap: 24px; padding-top: 32px; }
	.jl-legal__nav { position: static; flex: none; width: 100%; }
	.jl-legal__nav ul { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
	.jl-legal__nav a { white-space: nowrap; }
}

/* ---------- Cookie consent ---------- */
.jl-consent { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; padding: 20px 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(43, 28, 58, .22); }
.jl-consent[hidden] { display: none; }
.jl-consent__title { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.jl-consent__text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }
.jl-consent__text a { color: var(--primary-dark); }
.jl-consent__prefs { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; }
.jl-consent__prefs[hidden] { display: none; }
.jl-consent__prefs small { margin-left: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-subtle); }
.jl-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jl-consent__actions .jl-btn { flex: 1 1 140px; }
.jl-consent__actions [hidden] { display: none; }
.jl-footer__cookie { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--on-dark); opacity: .8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jl-footer__cookie:hover { opacity: 1; }
.jl-footer__cookie:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.jl-consent__actions .jl-linkbtn { margin: 0 4px; }
