/* ==========================================================================
   JyotiDeep premium storefront
   All selectors are prefixed jd- (or scoped under .jd-body) so nothing leaks
   into other CI3 pages. Tokens first, then base, layout, components, sections.
   ========================================================================== */

:root {
	--jd-header-all: 157px;
	--jd-red: #DA251C;          /* sampled from the JyotiDeep logo */
	--jd-red-deep: #B51D15;
	--jd-ink: #1F1A17;
	--jd-ink-2: #4A423A;
	--jd-muted: #7A6F62;
	--jd-ivory: #F8F2E8;
	--jd-sand: #F0E8DA;
	--jd-sand-2: #E5DAC6;
	--jd-line: #E5DAC6;
	--jd-white: #FFFFFF;
	--jd-font-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jd-font-head: 'Urbanist', 'DM Sans', system-ui, sans-serif;
	--jd-ease: cubic-bezier(.22, 1, .36, 1);
	--jd-shadow-sm: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 12px rgba(60, 40, 20, .05);
	--jd-shadow-md: 0 2px 4px rgba(60, 40, 20, .05), 0 14px 32px rgba(60, 40, 20, .10);
	--jd-shadow-lg: 0 24px 60px rgba(40, 25, 10, .18);
	--jd-header-h: 72px;
	--jd-gutter: clamp(16px, 4vw, 40px);
}

html.jd-js { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.jd-js { scroll-behavior: auto; } }
html.jd-locked { overflow: hidden; }

.jd-body {
	margin: 0; background: var(--jd-ivory); color: var(--jd-ink);
	font-family: var(--jd-font-ui); font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: clip;
}
.jd-body *, .jd-body *::before, .jd-body *::after { box-sizing: border-box; }
.jd-body [hidden] { display: none !important; }
.jd-body [id] { scroll-margin-top: calc(var(--jd-header-h) + 64px); }
:where(.jd-body) img { max-width: 100%; height: auto; display: block; }
:where(.jd-body) a { color: inherit; text-decoration: none; }
:where(.jd-body) button { font: inherit; color: inherit; cursor: pointer; }
:where(.jd-body) :is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.jd-body) :is(ul, ol) { list-style: none; }
:where(.jd-body) :is(h1, h2, h3) { font-family: var(--jd-font-head); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.jd-body :focus-visible { outline: 2px solid var(--jd-red); outline-offset: 3px; border-radius: 6px; }
.jd-body ::selection { background: var(--jd-red); color: #fff; }

.jd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.jd-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.jd-i--lg { width: 34px; height: 34px; stroke-width: 1.4; }
.jd-i--sm { width: 18px; height: 18px; }
.jd-i--xs { width: 14px; height: 14px; stroke-width: 2; }
.jd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jd-skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--jd-ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.jd-skip:focus { top: 12px; }
.jd-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--jd-gutter); }

/* ---------- reveal states (only hidden while JS is about to animate them) ---------- */
.jd-js:not(.jd-ready) .jd-reveal { opacity: 0; }

/* ---------- intro (first visit of a session, never blocks input) ---------- */
.jd-intro { display: none; position: fixed; inset: 0; z-index: 500; background: var(--jd-ivory); flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.jd-intro-on .jd-intro { display: flex; }
.jd-intro img { width: min(260px, 60vw); height: auto; }
.jd-intro__line { display: block; width: min(160px, 40vw); height: 2px; background: var(--jd-red); transform-origin: left; }

/* ---------- announcement bar ---------- */
.jd-announce { background: var(--jd-sand); color: var(--jd-ink-2); border-bottom: 1px solid var(--jd-line); font-size: 13px; letter-spacing: .02em; overflow: hidden; height: 36px; }
.jd-announce__track { display: flex; width: max-content; height: 100%; animation: jd-marquee 38s linear infinite; }
.jd-announce:hover .jd-announce__track { animation-play-state: paused; }
.jd-announce__set { display: flex; align-items: center; flex: none; }
.jd-announce__set li { white-space: nowrap; padding-inline: 28px; position: relative; }
.jd-announce__set li a { color: inherit; text-decoration: none; }
.jd-announce__set li a:hover, .jd-announce__set li a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.jd-announce__set li::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--jd-red); }
@keyframes jd-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .jd-announce__track { animation: none; } .jd-announce__set[aria-hidden] { display: none; } }

/* ---------- header ---------- */
.jd-header { position: sticky; top: 0; z-index: 80; background: rgba(248, 242, 232, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.jd-header.is-stuck { border-bottom-color: var(--jd-line); box-shadow: 0 6px 24px rgba(60, 40, 20, .06); }
.jd-header__bar { height: var(--jd-header-h); display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.jd-searchbar { flex: 1 1 auto; min-width: 0; max-width: none; margin-inline: 0; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--jd-line); background: var(--jd-white); color: var(--jd-muted); font-size: 14.5px; text-align: left; transition: border-color .25s, box-shadow .25s, background .25s; }
.jd-searchbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-searchbar:hover { border-color: var(--jd-ink); color: var(--jd-ink-2); }
.jd-searchbar:focus-visible { outline: 0; border-color: var(--jd-red); box-shadow: 0 0 0 4px rgba(218, 37, 28, .14); }
.jd-header__row2 { border-top: 1px solid var(--jd-line); }
.jd-header__navwrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 48px; }
.jd-header__call { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 500; color: var(--jd-ink-2); }
.jd-header__call:hover { color: var(--jd-red-deep); }
.jd-header__call .jd-i { color: var(--jd-red); }
.jd-actions__search { display: none; }
.jd-logo { display: inline-flex; flex: none; }
.jd-logo img { height: 34px; width: auto; }
.jd-iconbtn.jd-header__burger { display: none; }
.jd-nav { min-width: 0; }
.jd-nav__list { display: flex; align-items: center; gap: clamp(0px, .6vw, 8px); margin-left: -12px; }
.jd-nav__item--mega { position: static; }
.jd-nav__link { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 clamp(10px, 1vw, 16px); background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--jd-ink-2); border-radius: 8px; position: relative; transition: color .2s; white-space: nowrap; }
.jd-nav__link::after { content: ""; position: absolute; left: clamp(10px, 1vw, 16px); right: clamp(10px, 1vw, 16px); bottom: 0; height: 2px; background: var(--jd-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--jd-ease); }
.jd-nav__link:hover, .jd-nav__item.is-open > .jd-nav__link { color: var(--jd-ink); }
.jd-nav__link:hover::after, .jd-nav__item.is-open > .jd-nav__link::after { transform: scaleX(1); }
.jd-nav__item.is-open .jd-i--xs { transform: rotate(180deg); }
.jd-nav__link .jd-i--xs { transition: transform .3s var(--jd-ease); }

.jd-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--jd-white); border-bottom: 1px solid var(--jd-line); box-shadow: 0 24px 40px rgba(60, 40, 20, .08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--jd-ease), visibility 0s .25s; }
.jd-nav__item.is-open .jd-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.jd-mega__inner { display: grid; grid-template-columns: 1fr 240px; gap: 40px; padding-block: 28px 32px; }
.jd-mega__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jd-mega__cat { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; transition: background .25s; }
.jd-mega__cat:hover { background: var(--jd-sand); }
.jd-mega__thumb { width: 84px; height: 84px; flex: none; border-radius: 12px; background: var(--jd-sand); overflow: hidden; }
.jd-mega__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.jd-mega__text strong { display: block; font-family: var(--jd-font-head); font-size: 18px; letter-spacing: -.01em; }
.jd-mega__text small { display: block; color: var(--jd-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.jd-mega__side { border-left: 1px solid var(--jd-line); padding-left: 32px; display: flex; flex-direction: column; gap: 10px; }
.jd-mega__side a { display: flex; align-items: center; justify-content: space-between; font-weight: 500; padding: 6px 0; }
.jd-mega__side a:hover { color: var(--jd-red-deep); }

.jd-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.jd-iconbtn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--jd-ink); transition: background .2s, color .2s; }
.jd-iconbtn:hover { background: var(--jd-sand); }
.jd-iconbtn--ring { border: 1px solid var(--jd-line); background: var(--jd-white); }
.jd-iconbtn--ring:hover { border-color: var(--jd-ink); background: var(--jd-ink); color: #fff; }
.jd-iconbtn--ring[disabled], .jd-iconbtn--ring.swiper-button-disabled { opacity: .35; pointer-events: none; }
.jd-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px; background: var(--jd-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

@media (max-width: 1024px) {
	.jd-iconbtn.jd-header__burger { display: inline-grid; margin-left: -10px; }
	.jd-header__row2 { display: none; }
	.jd-header__bar { gap: 10px; }
}
@media (max-width: 760px) {
	.jd-searchbar { display: none; }
	.jd-header__bar .jd-logo { margin-right: auto; }
	.jd-actions { margin-left: 0; }
	.jd-actions__search { display: inline-grid; }
}
@media (max-width: 560px) {
	:root { --jd-header-h: 64px; }
	.jd-logo img { height: 28px; }
	.jd-actions__account { display: none; }
	.jd-iconbtn { width: 42px; height: 42px; }
}

/* ---------- shared type & buttons ---------- */
.jd-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jd-red-deep); }
.jd-eyebrow--light { color: #FFE0DD; }
.jd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jd-red); }

.jd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: background .3s var(--jd-ease), color .3s, border-color .3s, transform .3s var(--jd-ease), box-shadow .3s; }
.jd-btn .jd-i { transition: transform .35s var(--jd-ease); }
.jd-btn:hover .jd-i { transform: translateX(4px); }
.jd-btn:active { transform: scale(.98); }
.jd-btn--primary { background: var(--jd-red); color: #fff; box-shadow: 0 10px 24px rgba(218, 37, 28, .28); }
.jd-btn--primary:hover { background: var(--jd-red-deep); }
.jd-btn--ghost { background: transparent; border-color: var(--jd-ink); color: var(--jd-ink); }
.jd-btn--ghost:hover { background: var(--jd-ink); color: #fff; }
.jd-btn--dark { background: var(--jd-ink); color: #fff; }
.jd-btn--dark:hover { background: var(--jd-red); }
.jd-btn--light { background: #fff; color: var(--jd-ink); }
.jd-btn--light:hover { background: var(--jd-ink); color: #fff; }
.jd-btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.jd-btn--block { width: 100%; }
.jd-btn--grow { flex: 1; }
.jd-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font-weight: 600; font-size: 14.5px; color: var(--jd-red-deep); }
.jd-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.jd-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--jd-ink); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.jd-tag--sale { background: var(--jd-red); }
.jd-note { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jd-muted); border: 1px dashed var(--jd-sand-2); padding: 3px 10px; border-radius: 6px; }
.jd-note--block { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; padding: 12px 14px; background: var(--jd-sand); border-radius: 10px; margin-bottom: 18px; }

.jd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.jd-price__now { font-family: var(--jd-font-head); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.jd-price__was { color: var(--jd-muted); font-size: 14px; }
.jd-price--lg .jd-price__now { font-size: 30px; }
.jd-price--lg .jd-price__was { font-size: 17px; }

/* ---------- sections ---------- */
.jd-section { padding-block: clamp(56px, 8vw, 112px); }
.jd-section--tight { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.jd-sechead { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.jd-sechead h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-top: 14px; }
.jd-sechead__lead { color: var(--jd-ink-2); font-size: clamp(16px, 1.3vw, 18px); margin-top: 16px; max-width: 54ch; }
.jd-sechead--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jd-center { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- hero (bento) ---------- */
.jd-bento { padding: clamp(14px, 2vw, 24px) 0 8px; }
.jd-bento__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .62fr) minmax(0, .62fr); grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); height: clamp(560px, calc(100svh - var(--jd-header-all) - 32px), 760px); }
.jd-bento__intro { grid-row: 1 / 3; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: clamp(24px, 4vw, 56px); background: #fff; border: 1px solid var(--jd-line); border-radius: 28px; }
.jd-bento__intro::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--jd-line); box-shadow: 0 0 0 36px #fff, 0 0 0 37px var(--jd-line); pointer-events: none; }
.jd-bento__title { font-size: clamp(2.4rem, 4.4vw, 4.7rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; max-width: 12ch; }
.jd-bento__title em { font-style: normal; color: var(--jd-red); }
.jd-bento__lead { max-width: 44ch; font-size: clamp(15.5px, 1.25vw, 18px); color: var(--jd-ink-2); }
.jd-bento__cta { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.jd-bento__cats { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.jd-bento__cats a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--jd-sand); font-size: 13.5px; font-weight: 600; transition: background .25s, color .25s; }
.jd-bento__cats a:hover { background: var(--jd-ink); color: #fff; }
.jd-bento__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--jd-line); width: 100%; font-size: 13.5px; font-weight: 500; color: var(--jd-ink-2); position: relative; z-index: 1; }
.jd-bento__facts li { display: inline-flex; align-items: center; gap: 8px; }
.jd-bento__facts .jd-i { color: var(--jd-red); }

.jd-btile { position: relative; display: block; overflow: hidden; border-radius: 28px; isolation: isolate; transition: transform .6s var(--jd-ease), box-shadow .6s var(--jd-ease); }
.jd-btile--tall { grid-column: 2; grid-row: 1 / 3; }
.jd-btile--top { grid-column: 3; grid-row: 1; }
.jd-btile--bottom { grid-column: 3; grid-row: 2; }
.jd-btile__cat { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 600; color: var(--jd-ink-2); }
.jd-btile img { position: absolute; left: 6%; right: 6%; top: 52px; width: 88%; height: calc(100% - 134px); object-fit: contain; mix-blend-mode: multiply; transition: transform 1s var(--jd-ease); }
.jd-btile__foot { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(31, 26, 23, .07); }
.jd-btile__txt { display: flex; flex-direction: column; min-width: 0; }
.jd-btile__txt strong { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.jd-btile__txt small { font-family: var(--jd-font-head); font-weight: 700; font-size: 15px; }
.jd-btile__txt s { font-family: var(--jd-font-ui); font-weight: 400; font-size: 12.5px; color: var(--jd-muted); }
.jd-btile__go { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--jd-ink); color: #fff; transition: background .3s, transform .4s var(--jd-ease); }
@media (hover: hover) {
	.jd-btile:hover { transform: translateY(-4px); box-shadow: var(--jd-shadow-md); }
	.jd-btile:hover img { transform: scale(1.06); }
	.jd-btile:hover .jd-btile__go { background: var(--jd-red); transform: translateX(2px) rotate(-45deg); }
}

/* entrance (CSS only; armed by .jd-js, released by .is-live which the intro/failsafe sets) */
.jd-bento [data-b] { transition: opacity .9s ease calc(var(--i) * 120ms), transform 1.1s var(--jd-ease) calc(var(--i) * 120ms), box-shadow .6s var(--jd-ease); }
.jd-js .jd-bento:not(.is-live) [data-b] { opacity: 0; transform: translateY(26px); }

@media (max-width: 1100px) {
	.jd-bento__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
	.jd-bento__intro { grid-column: 1 / -1; grid-row: auto; }
	.jd-btile--tall, .jd-btile--top, .jd-btile--bottom { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
	.jd-bento__title { max-width: 16ch; }
}
@media (max-width: 640px) {
	.jd-bento { padding-top: 10px; }
	.jd-bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jd-bento__intro { border-radius: 24px; gap: 16px; padding: 24px 20px; }
	.jd-bento__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
	.jd-bento__cta { width: 100%; flex-direction: column; }
	.jd-bento__cta .jd-btn { width: 100%; }
	.jd-bento__facts { display: none; }
	.jd-btile { border-radius: 22px; }
	.jd-btile--tall { grid-column: 1 / -1; aspect-ratio: 5 / 4.4; }
	.jd-btile--top, .jd-btile--bottom { aspect-ratio: 1 / 1.12; }
	.jd-btile__foot { left: 8px; right: 8px; bottom: 8px; padding: 8px 8px 8px 12px; border-radius: 16px; }
	.jd-btile--top .jd-btile__go, .jd-btile--bottom .jd-btile__go { display: none; }
	.jd-btile__txt strong { font-size: 13px; }
	.jd-btile__cat { top: 10px; left: 10px; font-size: 10.5px; }
	.jd-btile img { top: 38px; height: calc(100% - 110px); }
}
@media (prefers-reduced-motion: reduce) { .jd-js .jd-bento:not(.is-live) [data-b] { opacity: 1; transform: none; } }

/* header search bar: field with a call-to-action button */
.jd-searchbar { padding: 0 5px 0 20px; justify-content: space-between; box-shadow: 0 1px 2px rgba(31, 26, 23, .04); }
.jd-searchbar__go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; background: var(--jd-red); color: #fff; transition: background .25s, transform .3s var(--jd-ease); }
.jd-searchbar:hover .jd-searchbar__go { background: var(--jd-red-deep); transform: scale(1.06); }

/* ---------- categories ---------- */
.jd-cats__grid { display: grid; grid-template-columns: 1.08fr 1fr; grid-template-rows: repeat(2, minmax(200px, auto)); gap: clamp(12px, 1.5vw, 18px); min-height: 0; }
.jd-cat { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--jd-sand); isolation: isolate; min-height: 200px; }
.jd-cat--kitchen { grid-row: span 2; background: #F1E8D8; }
.jd-cat--home { background: #EFE7D9; }
.jd-cat--crockery { background: #F5E6DE; }
.jd-cat__media { position: absolute; inset: 0; }
.jd-cat__img { position: absolute; width: auto; height: auto; mix-blend-mode: multiply; object-fit: contain; object-position: center; transition: transform 1s var(--jd-ease); }
/* tall card: text on top, two images centred side by side along the bottom */
.jd-cat--kitchen .jd-cat__img { bottom: 2%; width: 46%; height: 52%; object-position: center center; }
.jd-cat--kitchen .jd-cat__img--a { left: 2%; }
.jd-cat--kitchen .jd-cat__img--b { right: 2%; }
/* short cards: one image centred vertically in the right half */
.jd-cat--home .jd-cat__img--a, .jd-cat--crockery .jd-cat__img--a { right: 0; top: 0; width: 48%; height: 100%; padding: 4%; box-sizing: border-box; object-position: center center; }
.jd-cat--home .jd-cat__img--b, .jd-cat--crockery .jd-cat__img--b { display: none; }

.jd-cat:hover .jd-cat__img { transform: scale(1.07); }
.jd-cat__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(18px, 2.2vw, 28px); max-width: 62%; height: 100%; z-index: 1; }
.jd-cat__no { font-family: var(--jd-font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--jd-red-deep); }
.jd-cat__title { font-family: var(--jd-font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; }
.jd-cat__blurb { color: var(--jd-ink-2); font-size: 15px; max-width: 30ch; }
.jd-cat__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 18px; border-radius: 999px; background: var(--jd-ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .3s, gap .3s var(--jd-ease); }
.jd-cat:hover .jd-cat__go { background: var(--jd-red); gap: 14px; }
.jd-cat--kitchen .jd-cat__text { max-width: 80%; }
.jd-cat--home .jd-cat__text, .jd-cat--crockery .jd-cat__text { max-width: 54%; }
@media (max-width: 860px) {
	.jd-cats__grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
	.jd-cat, .jd-cat--kitchen { grid-row: auto; min-height: 220px; }
	.jd-cat--kitchen { min-height: 320px; }
	.jd-cat__text, .jd-cat--kitchen .jd-cat__text { max-width: 80%; }
	.jd-cat--home .jd-cat__text, .jd-cat--crockery .jd-cat__text { max-width: 58%; }
	.jd-cat--kitchen .jd-cat__img { height: 46%; }
}

/* ---------- discovery ---------- */
.jd-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.jd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--jd-line); background: var(--jd-white); font-size: 14px; font-weight: 500; color: var(--jd-ink-2); transition: background .25s, color .25s, border-color .25s; }
.jd-chip:hover { border-color: var(--jd-ink); color: var(--jd-ink); }
.jd-chip.is-active { background: var(--jd-ink); border-color: var(--jd-ink); color: #fff; }
.jd-toolbar__tools { display: flex; flex-wrap: wrap; gap: 12px; }
.jd-field { position: relative; display: inline-flex; align-items: center; background: var(--jd-white); border: 1px solid var(--jd-line); border-radius: 999px; min-height: 44px; transition: border-color .2s; }
.jd-field:focus-within { border-color: var(--jd-ink); }
.jd-field > .jd-i { position: absolute; left: 16px; color: var(--jd-muted); pointer-events: none; }
.jd-field input, .jd-field select { font: inherit; font-size: 14.5px; color: var(--jd-ink); background: transparent; border: 0; outline: 0; height: 42px; }
.jd-field--search input { padding: 0 18px 0 42px; width: 230px; }
.jd-field--select select { appearance: none; padding: 0 40px 0 18px; cursor: pointer; }
.jd-field--select > .jd-i { left: auto; right: 16px; }
.jd-count { font-size: 14px; color: var(--jd-muted); margin-bottom: 22px; }

.jd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 1100px) { .jd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .jd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .jd-toolbar__tools { width: 100%; } .jd-field--search { flex: 1; } .jd-field--search input { width: 100%; } }
@media (max-width: 760px) {
	.jd-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
	.jd-chips::-webkit-scrollbar { display: none; }
	.jd-chip { flex: none; }
	.jd-search .jd-chips { flex-wrap: wrap; overflow: visible; }
}

.jd-card { position: relative; display: flex; flex-direction: column; background: var(--jd-white); border: 1px solid var(--jd-line); border-radius: 18px; overflow: hidden; transition: transform .5s var(--jd-ease), box-shadow .5s var(--jd-ease), border-color .3s; }
@media (hover: hover) { .jd-card:hover { transform: translateY(-4px); box-shadow: var(--jd-shadow-md); border-color: transparent; } }
.jd-card__media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.jd-card__link { position: absolute; inset: 0; }
.jd-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .9s var(--jd-ease); backface-visibility: hidden; }
@media (hover: hover) { .jd-card:hover .jd-card__media img { transform: scale(1.06); } }
.jd-card__media img.is-missing { object-fit: cover; padding: 0; }
.jd-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.jd-card__wish { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--jd-shadow-sm); color: var(--jd-ink); transition: background .25s, color .25s, transform .25s var(--jd-ease); }
.jd-card__wish:hover { transform: scale(1.08); }
.jd-card__wish.is-on, .jd-pdp__wish.is-on { color: var(--jd-red); }
.jd-card__wish.is-on svg, .jd-pdp__wish.is-on svg { fill: currentColor; }
.jd-card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 999px; border: 0; background: rgba(27, 26, 25, .88); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--jd-ease), background .25s; }
.jd-card__quick:hover { background: var(--jd-red); }
.jd-card:hover .jd-card__quick, .jd-card__quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
	.jd-card__quick { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; width: 38px; min-height: 38px; padding: 0; background: rgba(255, 255, 255, .92); color: var(--jd-ink); box-shadow: var(--jd-shadow-sm); }
	.jd-card__quick span { display: none; }
}
.jd-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 4px; }
.jd-card__cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--jd-muted); font-weight: 600; }
.jd-card__name { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-card__name a:hover { color: var(--jd-red-deep); }
.jd-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.jd-card__add { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--jd-ink); background: transparent; font-size: 14px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.jd-card__add:hover { background: var(--jd-red); border-color: var(--jd-red); color: #fff; }
@media (max-width: 760px) {
	.jd-card { border-radius: 14px; }
	.jd-card__body { padding: 12px 12px 14px; }
	.jd-card__name { font-size: 15px; }
	.jd-card__foot { flex-direction: column; align-items: stretch; }
	.jd-card__add { justify-content: center; }
	.jd-price__now { font-size: 18px; }
	.jd-card__wish { width: 36px; height: 36px; top: 8px; right: 8px; }
	.jd-card__badges { top: 8px; left: 8px; }
}

.jd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 20px; color: var(--jd-ink-2); }
.jd-empty .jd-i { color: var(--jd-muted); }
.jd-empty h3 { font-size: 22px; color: var(--jd-ink); }
.jd-empty .jd-btn { margin-top: 10px; }
.jd-empty--inline { padding: 40px 12px; }

/* ---------- promo ---------- */
.jd-promo { display: grid; grid-template-columns: 1fr 1fr; background: #C41F17; color: #fff; overflow: hidden; }
.jd-promo__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: clamp(48px, 7vw, 112px) var(--jd-gutter) clamp(48px, 7vw, 112px) max(var(--jd-gutter), calc((100vw - 1360px) / 2 + var(--jd-gutter))); }
.jd-promo h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); letter-spacing: -.035em; font-weight: 800; }
.jd-promo__lead { color: rgba(255, 255, 255, .9); max-width: 44ch; font-size: clamp(16px, 1.3vw, 18px); }
.jd-promo__visual { position: relative; min-height: 520px; background: #F1E8D8; overflow: hidden; }
.jd-promo__plate { position: absolute; width: 78%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: #E4D7BF; }
.jd-promo__img { position: absolute; mix-blend-mode: multiply; object-fit: contain; }
.jd-promo__img--a { width: 62%; left: 2%; bottom: 4%; }
.jd-promo__img--b { height: 76%; width: auto; right: 5%; top: 12%; }
@media (max-width: 860px) {
	.jd-promo { grid-template-columns: 1fr; }
	.jd-promo__copy { padding: 56px var(--jd-gutter); }
	.jd-promo__visual { min-height: 380px; }
	.jd-promo__img--a { width: 68%; }
	.jd-promo__img--b { height: 78%; }
}

/* ---------- carousel ---------- */
.jd-carousel { padding: 10px 6px 34px; margin-inline: -6px; }
.jd-carousel .swiper-slide { height: auto; }
.jd-carousel .jd-card { height: 100%; }
.jd-carousel--plain .swiper-wrapper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; }
.jd-carousel__nav { display: flex; gap: 10px; }
@media (max-width: 560px) { .jd-carousel__nav { display: none; } }

/* ---------- brand story ---------- */
.jd-story { background: var(--jd-sand); }
.jd-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.jd-story__visual { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.jd-story__tile { position: relative; border-radius: 22px; background: var(--jd-ivory); overflow: hidden; }
.jd-story__tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.jd-story__tile--a { grid-row: span 2; background: #EDE2CC; border-radius: 999px 999px 22px 22px; }
.jd-story__tile--a img { padding: 12%; }
.jd-story__tile--b { background: #EFE8DA; }
.jd-story__tile--c { background: #F5E6DE; }
.jd-story__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.jd-story__copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; }
.jd-story__lead { color: var(--jd-ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 48ch; }
.jd-story__list { width: 100%; max-width: 420px; border-top: 1px solid var(--jd-line); }
.jd-story__list li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--jd-line); font-family: var(--jd-font-head); font-weight: 600; font-size: 20px; }
.jd-story__list span { font-size: 13px; letter-spacing: .1em; color: var(--jd-red-deep); }
@media (max-width: 860px) {
	.jd-story__grid { grid-template-columns: 1fr; }
	.jd-story__visual { aspect-ratio: 1 / .9; max-width: 520px; }
}

/* ---------- trust ---------- */
.jd-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.jd-trust__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jd-trust__item { border-top: 1.5px solid var(--jd-ink); padding-top: 24px; }
.jd-trust__item > a { display: block; height: 100%; }
.jd-trust__item .jd-i--lg { color: var(--jd-red); margin-bottom: 18px; transition: transform .4s var(--jd-ease); }
.jd-trust__item a:hover .jd-i--lg { transform: translateY(-3px); }
.jd-trust__item h3 { font-size: 21px; margin-bottom: 8px; }
.jd-trust__item p { color: var(--jd-ink-2); font-size: 15px; }
.jd-trust__item .jd-link { margin-top: 14px; }
.jd-trust__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: clamp(36px, 5vw, 64px); padding: 22px 28px; border-radius: 18px; background: var(--jd-white); border: 1px solid var(--jd-line); }
.jd-trust__contact p { font-family: var(--jd-font-head); font-size: 20px; font-weight: 700; margin-right: auto; }
.jd-trust__contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.jd-trust__contact a:hover { color: var(--jd-red-deep); }
.jd-trust__contact .jd-i { color: var(--jd-red); }
.jd-trust__contact--card { margin-top: 32px; }
@media (max-width: 960px) { .jd-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .jd-trust__grid, .jd-trust__grid--three { grid-template-columns: 1fr; } .jd-trust__contact p { width: 100%; } }

/* ---------- inner pages / PDP ---------- */
.jd-pagehead { padding-block: clamp(32px, 5vw, 72px) clamp(8px, 2vw, 24px); }
.jd-pagehead--slim { padding-bottom: 0; }
.jd-pagehead__title { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; margin-top: 16px; }
.jd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--jd-muted); }
.jd-crumbs a:hover { color: var(--jd-red-deep); }
.jd-crumbs [aria-current] { color: var(--jd-ink); }
.jd-prose { max-width: 1100px; }
.jd-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.jd-pdp__media { background: #fff; border: 1px solid var(--jd-line); border-radius: 24px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: sticky; top: calc(var(--jd-header-h) + 20px); }
.jd-pdp__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.jd-pdp__info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.jd-pdp__title { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; }
.jd-pdp__desc { color: var(--jd-ink-2); font-size: 17px; max-width: 52ch; }
.jd-pdp__buy { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin-top: 4px; }
.jd-pdp__facts { margin-top: 8px; }
.jd-qty { display: inline-flex; align-items: center; border: 1px solid var(--jd-line); border-radius: 999px; background: var(--jd-white); height: 52px; }
.jd-qty button { width: 44px; height: 100%; display: grid; place-items: center; background: none; border: 0; border-radius: 999px; }
.jd-qty button:hover { background: var(--jd-sand); }
.jd-qty input { width: 40px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 600; -moz-appearance: textfield; outline: 0; }
.jd-qty input::-webkit-outer-spin-button, .jd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jd-qty--sm { height: 34px; }
.jd-qty--sm button { width: 32px; }
.jd-qty--sm span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .jd-pdp { grid-template-columns: 1fr; } .jd-pdp__media { position: static; } }

/* ---------- footer ---------- */
.jd-footer { background: var(--jd-sand); border-top: 1px solid var(--jd-line); padding-top: clamp(48px, 6vw, 88px); margin-top: 0; }
.jd-footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.2fr; gap: clamp(28px, 4vw, 56px); }
.jd-footer__brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.jd-footer__brand p { color: var(--jd-ink-2); max-width: 36ch; font-size: 15px; }
.jd-footer__col h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--jd-font-ui); font-weight: 700; }
.jd-footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.jd-footer__col a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--jd-ink-2); transition: color .2s; }
.jd-footer__col a:hover { color: var(--jd-red-deep); }
.jd-footer__col .jd-i { color: var(--jd-red); }
.jd-social { display: flex; gap: 10px; }
.jd-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--jd-sand-2); background: var(--jd-ivory); transition: background .25s, color .25s, border-color .25s; }
.jd-social a:hover { background: var(--jd-ink); color: #fff; border-color: var(--jd-ink); }
.jd-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 72px); padding-block: 24px; border-top: 1px solid var(--jd-sand-2); font-size: 13.5px; color: var(--jd-muted); }
.jd-footer__base a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.jd-footer__base a:hover { color: var(--jd-red-deep); }
@media (max-width: 1100px) { .jd-footer__grid { grid-template-columns: repeat(3, 1fr); } .jd-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .jd-footer__grid { grid-template-columns: 1fr 1fr; } .jd-footer__col:last-child { grid-column: 1 / -1; } }

/* ---------- overlays ---------- */
.jd-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(27, 26, 25, .5); opacity: 0; transition: opacity .35s; }
.jd-scrim.is-open { opacity: 1; }

.jd-drawer { position: fixed; top: 0; bottom: 0; z-index: 100; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--jd-ivory); box-shadow: var(--jd-shadow-lg); transition: transform .5s var(--jd-ease); }
.jd-drawer--right { right: 0; transform: translateX(100%); }
.jd-drawer--left { left: 0; transform: translateX(-100%); width: min(380px, 92vw); }
.jd-drawer.is-open { transform: none; }
.jd-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--jd-line); min-height: 72px; }
.jd-drawer__head h2 { font-size: 22px; }
.jd-drawer__head h2 span { font-family: var(--jd-font-ui); font-weight: 500; color: var(--jd-muted); font-size: 16px; }
.jd-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.jd-drawer__foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--jd-line); background: var(--jd-white); display: flex; flex-direction: column; gap: 10px; }
.jd-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.jd-drawer__sub strong { font-family: var(--jd-font-head); font-size: 24px; }
.jd-drawer__note { font-size: 13px; color: var(--jd-muted); }

.jd-lines { display: flex; flex-direction: column; }
.jd-line-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--jd-line); align-items: start; }
.jd-line-item__img { width: 80px; height: 80px; border-radius: 12px; background: #fff; border: 1px solid var(--jd-line); overflow: hidden; }
.jd-line-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.jd-line-item__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.jd-line-item__info > a { font-weight: 600; line-height: 1.3; }
.jd-line-item__info > a:hover { color: var(--jd-red-deep); }
.jd-line-item__info > span { color: var(--jd-muted); font-size: 14px; }
.jd-line-item__info .jd-qty { margin-top: 6px; }
.jd-line-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.jd-line-item__end strong { font-family: var(--jd-font-head); }
/* wishlist drawer: items as tinted cards, delete button filled */
#jd-wishlist-drawer .jd-lines { gap: 12px; }
#jd-wishlist-drawer .jd-line-item { padding: 12px; border: 1px solid var(--jd-line); border-radius: 16px; background: #fff; }
#jd-wishlist-drawer .jd-line-item__end .jd-iconbtn { background: #F6F2EA; color: var(--jd-red-deep); box-shadow: var(--jd-shadow-sm); }
#jd-wishlist-drawer .jd-line-item__end .jd-iconbtn:hover { background: var(--jd-red); color: #fff; }

.jd-mnav ul { display: flex; flex-direction: column; margin-bottom: 24px; }
.jd-mnav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--jd-line); font-family: var(--jd-font-head); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.jd-mnav a:hover { color: var(--jd-red-deep); }

.jd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--jd-sand); border-radius: 999px; margin-bottom: 22px; }
.jd-tab { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--jd-ink-2); transition: background .25s, color .25s; }
.jd-tab.is-active { background: var(--jd-white); color: var(--jd-ink); box-shadow: var(--jd-shadow-sm); }
.jd-form { display: flex; flex-direction: column; gap: 16px; }
.jd-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.jd-form input { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--jd-line); background: var(--jd-white); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.jd-form input:focus { outline: 0; border-color: var(--jd-ink); box-shadow: 0 0 0 3px rgba(27, 26, 25, .08); }

/* search overlay: centred command-palette style panel */
.jd-scrim { backdrop-filter: blur(3px); background: rgba(31, 26, 23, .38); }
.jd-search { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: clamp(12px, 9vh, 96px) 12px 12px; opacity: 0; transition: opacity .3s; overflow-y: auto; }
.jd-search.is-open { opacity: 1; }
.jd-search__panel { width: min(720px, 100%); background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(31, 26, 23, .25); padding: 14px; transform: translateY(-14px) scale(.98); transition: transform .5s var(--jd-ease); }
.jd-search.is-open .jd-search__panel { transform: none; }
.jd-search__form { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px 0 18px; background: var(--jd-sand); border: 1.5px solid transparent; border-radius: 16px; transition: border-color .25s, background .25s, box-shadow .25s; }
.jd-search__form:focus-within { background: #fff; border-color: var(--jd-ink); box-shadow: 0 0 0 4px rgba(31, 26, 23, .06); }
.jd-search__form > .jd-i { color: var(--jd-muted); }
.jd-search__form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; box-shadow: none; background: transparent; font: inherit; font-size: 17px; font-weight: 500; color: var(--jd-ink); }
.jd-search__form input::placeholder { color: #9A8F80; font-weight: 400; }
.jd-search__form input::-webkit-search-cancel-button { display: none; }
.jd-search__clear, .jd-search__esc { display: inline-flex; align-items: center; justify-content: center; height: 34px; border: 0; border-radius: 10px; background: #fff; color: var(--jd-ink-2); box-shadow: inset 0 0 0 1px var(--jd-line); transition: background .2s; }
.jd-search__clear { width: 34px; }
.jd-search__esc { padding: 0 10px; font-size: 12px; font-weight: 600; }
.jd-search__esc:hover, .jd-search__clear:hover { background: var(--jd-sand-2); }
.jd-search__cancel { display: none; }
.jd-search__body { padding: 8px 6px 4px; max-height: min(58vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.jd-sgroup { padding: 14px 6px 6px; }
.jd-sgroup__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jd-sgroup__head p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--jd-muted); }
.jd-sterms { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-sterms--center { justify-content: center; margin-top: 8px; }
.jd-sterm { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--jd-line); background: #fff; font-size: 14px; font-weight: 500; color: var(--jd-ink-2); transition: background .2s, border-color .2s, color .2s; }
.jd-sterm .jd-i { color: var(--jd-muted); }
.jd-sterm:hover { border-color: var(--jd-ink); color: var(--jd-ink); background: var(--jd-sand); }
.jd-scats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jd-scat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--jd-sand); font-weight: 600; font-size: 14.5px; transition: background .2s, transform .3s var(--jd-ease); }
.jd-scat:hover { background: var(--jd-ink); color: #fff; transform: translateY(-2px); }
.jd-search__results { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.jd-sres { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 16px; transition: background .2s; }
.jd-sres:hover, .jd-sres:focus-within { background: var(--jd-sand); }
.jd-sres__link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; border-radius: 12px; }
.jd-sres__img { flex: none; width: 60px; height: 60px; border-radius: 12px; background: #fff; border: 1px solid var(--jd-line); }
.jd-sres__img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.jd-sres__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jd-sres__txt strong { font-weight: 600; line-height: 1.3; }
.jd-sres__txt mark { background: rgba(218, 37, 28, .12); color: inherit; border-radius: 3px; padding: 0; }
.jd-sres__txt small { color: var(--jd-muted); font-size: 13px; }
.jd-sres__price { font-family: var(--jd-font-head); font-weight: 700; font-size: 16px; padding-right: 4px; }
.jd-sres__add { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--jd-ink); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.jd-sres__add:hover { background: var(--jd-red); border-color: var(--jd-red); color: #fff; }
.jd-search__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px 28px; color: var(--jd-ink-2); }
.jd-search__empty .jd-i { color: var(--jd-muted); }
.jd-search__empty h3 { font-size: 20px; color: var(--jd-ink); }
.jd-search__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 6px; margin-top: 6px; border-top: 1px solid var(--jd-line); font-size: 13.5px; color: var(--jd-muted); }
.jd-search__keys { display: flex; align-items: center; gap: 6px; padding: 10px 12px 4px; font-size: 12px; color: var(--jd-muted); }
.jd-search__keys kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: var(--jd-sand); border: 1px solid var(--jd-line); font: 600 11px var(--jd-font-ui); text-align: center; }
.jd-search__keys kbd:not(:first-child) { margin-left: 10px; }
@media (hover: none) { .jd-search__keys { display: none; } }
@media (max-width: 640px) {
	.jd-search { padding: 8px; }
	.jd-search__panel { border-radius: 20px; padding: 10px; }
	.jd-search__form { height: 56px; }
	.jd-search__esctxt { display: none; } .jd-search__cancel { display: inline; font-size: 14px; }
	.jd-search__esc { padding: 0 12px; background: transparent; box-shadow: none; }
	.jd-scats { grid-template-columns: 1fr; }
	.jd-search__body { max-height: 62vh; }
	.jd-sres__price { display: none; }
}

/* quick view */
.jd-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .3s; }
.jd-modal.is-open { opacity: 1; }
.jd-modal__card { position: relative; width: min(940px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--jd-ivory); border-radius: 24px; box-shadow: var(--jd-shadow-lg); transform: translateY(24px) scale(.98); transition: transform .5s var(--jd-ease); }
.jd-modal.is-open .jd-modal__card { transform: none; }
.jd-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .9); }
.jd-modal__media { background: #fff; display: grid; place-items: center; min-height: 380px; }
.jd-modal__media img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; padding: 8%; }
.jd-modal__info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 4vw, 44px); justify-content: center; }
.jd-modal__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; padding-right: 36px; }
.jd-modal__desc { color: var(--jd-ink-2); max-width: 46ch; }
@media (max-width: 720px) {
	.jd-modal { align-items: flex-end; padding: 0; }
	.jd-modal__card { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92svh; width: 100%; }
	.jd-modal__media { min-height: 0; aspect-ratio: 4 / 3; }
	.jd-modal__media img { max-height: 100%; }
	.jd-modal .jd-pdp__buy { flex-wrap: wrap; }
}

/* toasts + back to top */
.jd-toasts { position: fixed; left: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.jd-toast { display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 14px; background: var(--jd-ink); color: #fff; font-size: 14.5px; box-shadow: var(--jd-shadow-md); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .45s var(--jd-ease); pointer-events: auto; }
.jd-toast.is-in { opacity: 1; transform: none; }
.jd-toast .jd-i { color: #7BE0A0; flex: none; }
.jd-toast--error { background: #7A1712; }
.jd-toast--error .jd-i { color: #FFB3AD; }
.jd-toast__act { background: none; border: 0; padding: 0 0 0 6px; margin-left: auto; color: #FFB3AD; font-weight: 600; white-space: nowrap; }
.jd-toast__act:hover { text-decoration: underline; }
.jd-top { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--jd-ink); color: #fff; box-shadow: var(--jd-shadow-md); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .4s var(--jd-ease), background .2s; }
.jd-top.is-in { opacity: 1; transform: none; }
.jd-top:hover { background: var(--jd-red); }
@media (max-width: 560px) {
	.jd-toasts { left: 16px; right: 16px; bottom: 80px; align-items: stretch; }
	.jd-toast { max-width: none; }
	.jd-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
	.jd-drawer { width: 100vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.jd-body *, .jd-body *::before, .jd-body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.jd-card:hover, .jd-cat:hover .jd-cat__img, .jd-card:hover .jd-card__media img { transform: none; }
}

.jd-btile--tall img { left: -4%; right: auto; width: 108%; }

/* bag sidebar: same card look as the wishlist sidebar */
#jd-cart-drawer .jd-lines { gap: 12px; }
#jd-cart-drawer .jd-line-item { padding: 12px; border: 1px solid var(--jd-line); border-radius: 16px; background: #fff; }
#jd-cart-drawer .jd-line-item__end .jd-iconbtn { background: #F6F2EA; color: var(--jd-red-deep); box-shadow: var(--jd-shadow-sm); }
#jd-cart-drawer .jd-line-item__end .jd-iconbtn:hover { background: var(--jd-red); color: #fff; }

/* Free gift products use the same product-card layout as the shop grid. */
.jd-freeoffers { padding-top: clamp(24px, 4vw, 48px); }
