/* Island of Durian Store v3 · catalog listing, product page, compare page. Builds on base.css (cards, buttons). */

/* Breadcrumbs (markup from igt_breadcrumbs) */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.xcrumbs-wrap { padding-block: 18px 14px; }

/* ============================================================================ LISTING */
/* Header (r7): a soft tint band (category tint, the brand's own colour as a light tint, sand for all products) with
   the photo shown whole in a rounded rectangle beside the text. No diagonal cut, no crop, nothing over the photo. */
.xcat-hero { --tint: var(--sand); --tint-ink: var(--sand-ink); position: relative; overflow: hidden; isolation: isolate; background: var(--tint); }
.xcat-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 22px clamp(26px, 3vw, 40px); }
.xcat-hero.has-photo .xcat-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xcat-copy { display: grid; gap: 14px; align-content: center; }
.xcat-copy .crumbs { margin-bottom: clamp(8px, 2vw, 22px); }
.xcat-copy .crumbs ol { color: var(--ink-2); }
.xcat-copy .xk { margin-bottom: -4px; color: var(--tint-ink); }
.xcat-copy h1 { font: 900 clamp(30px, 3.4vw, 48px)/1.02 var(--display); font-stretch: 88%; letter-spacing: -.02em; }
.xcat-copy p { color: var(--ink-2); max-width: 54ch; }
.xcat-count { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-weight: 700; font-size: 14.5px; color: var(--ink) !important; }
.xcat-logo { height: 52px; width: auto; max-width: 260px; object-fit: contain; object-position: left center; }
.xcat-photo { display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.xcat-photo img { display: block; width: auto; height: auto !important; max-width: 100%; max-height: 340px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -28px rgba(42, 37, 39, .5); }
.xcat-hero.has-photo:has(.xcat-photo--fill) .xcat-hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.xcat-photo--fill img { width: 100%; max-width: 680px; max-height: none; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 60%; }

/* Sticky bar */
.xbar { position: sticky; top: var(--hd-h, 122px); z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--display); }
.xbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 8px; }
.xbar-sizes { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.xbar-sizes::-webkit-scrollbar { display: none; }
.xbar-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.xbar-label .ic { color: var(--red); }
.xbar-sizes a { display: inline-grid; justify-items: center; gap: 0; min-width: 72px; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--line-2); line-height: 1.15; white-space: nowrap; transition: border-color .2s, background .2s; }
.xbar-sizes a b { font-size: 14.5px; }
.xbar-sizes a small { font-size: 11.5px; color: var(--ink-3); }
.xbar-sizes a[data-size-all] { min-width: 0; align-content: center; font-weight: 700; font-size: 14.5px; }
.xbar-sizes a:hover { border-color: var(--red); }
.xbar-sizes a.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.xbar-sizes a.is-on small { color: rgba(255, 255, 255, .85); }
.xbar-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.xdd { position: relative; }
.xdd summary { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; white-space: nowrap; }
.xdd summary::-webkit-details-marker { display: none; }
.xdd summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.xdd[open] summary .ic { transform: rotate(180deg); }
.xdd.is-set summary { border-color: var(--red); background: var(--red-bg); color: var(--red-ink); }
.xdd-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 260px; display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); font-family: var(--body); }
.xsort { position: relative; display: inline-flex; align-items: center; }
.xsort select { height: 42px; padding: 0 38px 0 14px; border-radius: 8px; border: 1.5px solid var(--line-2); background: #fff; font: 700 14.5px/1 var(--display); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.xsort .ic { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; }
.xbar-all { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--red); background: #fff; color: var(--red-ink); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.xbar-all:hover { background: var(--red-bg); }
.xbar-all .ic { width: 18px; height: 18px; }
.xbar-all em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; }

/* Checks and chips (bar dropdowns + sheet) */
.xcheck { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.xcheck:hover { background: var(--bg); }
.xcheck small { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.xcheck-box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; }
.xcheck-box .ic { width: 14px; height: 14px; }
.xcheck.is-on .xcheck-box { background: var(--red); border-color: var(--red); color: #fff; }
.xchip { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--line-2); font: 600 14px/1 var(--display); }
.xchip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.xcat-main { padding-block: 24px clamp(48px, 6vw, 80px); }
.xactive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.xactive a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 6px; background: var(--red-bg); color: var(--red-ink); font: 600 13.5px/1 var(--display); }
.xactive a .ic { width: 14px; height: 14px; }
.xactive .xactive-clear { background: none; text-decoration: underline; text-underline-offset: 3px; }
.xsize-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 14.5px; }
.xsize-note .ic { color: var(--red); }
.xsize-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.xgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.xtile { grid-column: span 2; position: relative; border-radius: 14px; overflow: visible; }
.xtile--look .xl { height: 100%; border-radius: var(--r); }
.xtile--look .xl > img { width: 100%; height: 100% !important; object-fit: cover; border-radius: var(--r); }
.xtile-cap { position: absolute; left: 12px; top: 12px; display: grid; gap: 2px; padding: 8px 12px 9px; background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 10px; max-width: 64%; pointer-events: none; box-shadow: 0 4px 14px -8px rgba(42, 37, 39, .4); }
.xtile-cap small { font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.xtile-cap b { font: 800 16px/1.15 var(--display); }
.xtile-cap em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.xtile--guide { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px; align-content: center; padding: clamp(22px, 2.6vw, 36px); background: var(--red-bg); color: var(--ink); }
.xtile--guide .xk { color: var(--red-ink); }
.xtile--guide > b { font: 900 clamp(24px, 2.3vw, 34px)/1.04 var(--display); font-stretch: 88%; letter-spacing: -.01em; }
.xtile--guide > b em { color: var(--red-ink); font-style: normal; }
.xtile--guide p { color: var(--ink-2); max-width: 44ch; font-size: 15px; }
.xtile-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xtile-sizes a { display: grid; gap: 2px; padding: 10px 8px; border-radius: 10px; background: #fff; text-align: center; border: 1.5px solid transparent; }
.xtile-sizes a:hover { border-color: var(--red); }
.xtile-sizes b { font: 800 17px/1.1 var(--display); }
.xtile-sizes small { font-size: 12px; color: var(--ink-3); }
.xtile--guide .xh-link { justify-self: start; color: var(--ink); }

.xc-cmp { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); justify-self: start; }
.xc-cmp:hover { color: var(--red-ink); }
.xc-cmp-box { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; border: 1.5px solid currentColor; }
.xc-cmp-box .ic { width: 12px; height: 12px; opacity: 0; }
.xc-cmp[aria-pressed="true"], .xcmp-btn[aria-pressed="true"] { opacity: 1; }
.xc-cmp[aria-pressed="true"], .xcmp-btn[aria-pressed="true"] { color: var(--red-ink); }
.xc-cmp[aria-pressed="true"] .xc-cmp-box, .xcmp-btn[aria-pressed="true"] .xc-cmp-box { background: var(--red); border-color: var(--red); }
.xc-cmp[aria-pressed="true"] .xc-cmp-box .ic, .xcmp-btn[aria-pressed="true"] .xc-cmp-box .ic { opacity: 1; color: #fff; }

.xmore { display: grid; justify-items: center; gap: 12px; margin-top: clamp(36px, 4vw, 56px); text-align: center; }
.xmore p { font-size: 15px; color: var(--ink-2); }
.xmore-bar { width: min(320px, 80%); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.xmore-bar i { display: block; height: 100%; background: var(--red); transition: width .4s var(--ease); }
.xmore .xbtn--dark { background: #fff; border-color: var(--red); color: var(--red-ink); } /* secondary action: outlined (r7) */
.xmore .xbtn--dark:hover, .xmore .xbtn--dark:focus-visible { background: var(--red-bg); color: var(--red-ink); }
.xempty { display: grid; justify-items: center; gap: 12px; padding-block: clamp(40px, 6vw, 80px); text-align: center; }
.xempty > .ic { width: 44px; height: 44px; color: var(--ink-3); }
.xempty h2 { font: 800 clamp(22px, 2.2vw, 30px)/1.15 var(--display); }
.xempty p { color: var(--ink-2); max-width: 46ch; }

/* Sheets (opened by the parent app.js: .sheet.is-open) */
.xsheet { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.xsheet.is-open { visibility: visible; }
.xsheet-scrim { position: absolute; inset: 0; background: rgba(23, 23, 28, .5); opacity: 0; transition: opacity .3s; }
.xsheet.is-open .xsheet-scrim { opacity: 1; }
.xsheet-panel { position: absolute; inset: 0 0 0 auto; width: min(92vw, 440px); display: flex; flex-direction: column; background: #fff; color: var(--ink); transform: translateX(100%); transition: transform .35s var(--ease); }
.xsheet.is-open .xsheet-panel { transform: none; }
.xsheet--center .xsheet-panel { inset: auto 0 0 0; margin-inline: auto; width: min(100%, 640px); max-height: 86vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
.xsheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.xsheet-head h2 { font: 800 20px/1.1 var(--display); }
.xsheet-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.xsheet-body { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.xsheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.xsheet-foot .xbtn { width: 100%; }
.xsheet-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.xfg { display: grid; gap: 10px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.xfg h3 { font: 800 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.xfg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xfg-list { display: grid; gap: 2px; }
.xfg-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xfg-price label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.xfg-price input { height: 46px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--line-2); font: 500 16px var(--body); }
.xfg .xbtn--line { height: 46px; }

/* Compare tray (added by dua.js) */
.xtray { position: fixed; left: 50%; bottom: calc(18px + var(--tab-h)); z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh); font: 600 14.5px/1.2 var(--display); max-width: calc(100vw - 24px); }
.xtray[hidden] { display: none; }
.xtray-thumbs { display: flex; gap: 6px; }
.xtray-thumbs img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.xtray b { white-space: nowrap; }
.xtray a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; white-space: nowrap; }
.xtray a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.xtray button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }

/* ============================================================================ PRODUCT PAGE */
.xpdp { padding-bottom: clamp(40px, 5vw, 72px); }
.xpdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.xgal { position: sticky; top: calc(var(--hd-h, 122px) + 16px); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.xgal-thumbs { display: grid; gap: 10px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.xgal-thumbs button { border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 1; background: var(--bg); }
.xgal-thumbs button.is-on { border-color: var(--red); }
.xgal-thumbs img { width: 100%; height: 100% !important; object-fit: cover; }
.xgal-main { position: relative; grid-column: 2; border-radius: 14px; overflow: hidden; background: var(--bg); }
.xgal:not(:has(.xgal-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.xgal:not(:has(.xgal-thumbs)) .xgal-main { grid-column: 1; }
.xgal-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.xgal-slides::-webkit-scrollbar { display: none; }
.xgal-slides figure { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; margin: 0; cursor: zoom-in; overflow: hidden; }
.xgal-slides img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s; }
.xgal-slides figure.is-zoom { cursor: zoom-out; }
.xgal-slides figure.is-zoom img { transform: scale(2); }
.xgal-count { position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 4px rgba(42, 37, 39, .18); font-size: 13px; font-weight: 600; }
.xgal-room { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 8px; background: var(--red); color: #fff; font: 700 14px/1 var(--display); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.xgal-room .ic { width: 18px; height: 18px; }
.xgal-main .xc-fav { width: 46px; height: 46px; right: 14px; top: 14px; }

.xbuy { display: grid; gap: 18px; min-width: 0; }
.xbuy-brand { display: flex; align-items: center; gap: 12px; }
.xbuy-brand a { font: 800 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.xpill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--green-bg); color: var(--green); font: 700 12.5px/1 var(--display); }
.xpill .ic { width: 14px; height: 14px; }
.xbuy h1 { font: 800 clamp(24px, 2.2vw, 32px)/1.18 var(--display); letter-spacing: -.015em; margin-top: -4px; }
.xbuy-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-3); }
.xprice-box { display: grid; gap: 10px; padding: 18px 20px; border-radius: 12px; background: var(--bg); }
.xprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.xprice strong { font: 900 clamp(28px, 2.4vw, 36px)/1.1 var(--display); letter-spacing: -.02em; color: var(--red-ink); }
.xprice strong small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.xprice s { font-size: 17px; color: var(--ink-3); }
.xprice .price-off { padding: 4px 8px; border-radius: 4px; background: var(--red); color: #fff; font: 800 13.5px/1 var(--display); }
.xprice.is-flash strong { color: var(--red-ink); }
.xflash-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 12px; background: var(--blush); color: var(--ink); box-shadow: inset 0 0 0 1px var(--red-bg-2); font-size: 14px; }
.xflash-strip > b { color: var(--red-ink); }
.xflash-strip b { display: inline-flex; align-items: center; gap: 6px; font-style: italic; text-transform: uppercase; letter-spacing: .08em; }
.xflash-strip .ic { fill: var(--red); stroke: var(--red); width: 18px; height: 18px; }
.xflash-strip .cd { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.xflash-strip .cd > em { font-style: normal; margin-right: 6px; }
.xflash-strip .cd b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 6px; background: var(--red); color: #fff; font-style: normal; letter-spacing: 0; text-transform: none; }
.xflash-strip .cd-d[hidden] { display: none; }
.xpoints { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.xpoints .ic { width: 18px; height: 18px; color: var(--red); }
.xvchips { display: flex; flex-wrap: wrap; gap: 8px; }
.xvchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1.5px dashed var(--red); color: var(--red-ink); font: 700 13px/1 var(--display); background: var(--red-bg); }
.xvchip .ic { width: 16px; height: 16px; }

.xopt { display: grid; gap: 10px; }
.xopt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.xopt-head button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--red-ink); }
.xopt-head button .ic { width: 18px; height: 18px; }
.xopt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { display: grid; gap: 1px; justify-items: start; min-width: 108px; padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--line-2); background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.opt-btn span { font: 700 14.5px/1.25 var(--display); }
.opt-btn small { font-size: 12.5px; color: var(--ink-3); }
.opt-btn em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.opt-btn:hover { border-color: var(--red); }
.opt-btn.is-on { border-color: var(--red); background: var(--red-bg); box-shadow: inset 0 0 0 1px var(--red); }
.opt-btn.is-out { opacity: .45; background: repeating-linear-gradient(-45deg, #fff 0 6px, #F4F1EC 6px 12px); }
.opt-btn.is-remembered:not(.is-on) { border-style: dashed; border-color: var(--red); }
.xopt.shake { animation: xshake .5s; }
@keyframes xshake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.xopt-memory { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--red-ink); }
.xopt-memory .ic { width: 18px; height: 18px; }
.xpack { display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--bg); }
.xpack-title { display: flex; align-items: center; gap: 8px; font: 700 14.5px/1.3 var(--display); }
.xpack-title .ic { width: 18px; height: 18px; color: var(--red); }
.xpack ul { display: grid; gap: 4px; margin: 0; padding-left: 20px; list-style: disc; font-size: 14.5px; color: var(--ink-2); }
.xpack li::marker { color: var(--red); }
.xqty-row { display: flex; align-items: center; gap: 16px; }
.xqty { display: inline-flex; align-items: center; height: 46px; border-radius: 8px; border: 1.5px solid var(--line-2); overflow: hidden; }
.xqty button { width: 46px; height: 100%; display: grid; place-items: center; }
.xqty button .ic { width: 18px; height: 18px; }
.xqty input { width: 52px; height: 100%; border: 0; text-align: center; font: 700 16px var(--body); -moz-appearance: textfield; }
.xqty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.xstock { font-size: 14px; color: var(--ink-3); }
.xstock.is-low { color: var(--red-ink); font-weight: 700; }
.xbuy-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.xbuy-actions .xbtn { height: 56px; min-width: 0; padding: 0 16px; }
.xbuy-actions .xbtn--wa { grid-column: 1 / -1; height: 50px; }
.xnotice { padding: 14px 16px; border-radius: 10px; background: var(--red-bg); color: var(--red-ink); font-weight: 600; }
.xnotice a { text-decoration: underline; }
.xcmp-btn { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* Complete set (differentiator 4) */
.xset { display: grid; gap: 14px; padding: 20px; border-radius: 14px; border: 2px solid var(--red-bg-2); background: var(--red-bg); }
.xset header h2 { font: 800 19px/1.2 var(--display); }
.xset header p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.xset-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.xset-sizes button { height: 36px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; font: 700 13.5px/1 var(--display); }
.xset-sizes button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.xset-list { display: grid; gap: 8px; }
.xset-list label { display: grid; grid-template-columns: 20px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; }
.xset-list label:hover { background: rgba(255, 255, 255, .7); }
.xset-list input { width: 18px; height: 18px; accent-color: var(--red); }
.xset-list img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.xset-list b { display: block; font-size: 14.5px; }
.xset-list b small { font-weight: 500; color: var(--ink-3); }
.xset-list span small { display: block; font-size: 13px; color: var(--ink-3); }
.xset-list em { font-style: normal; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.xset-list li.is-na label { opacity: .5; }
.xset-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed rgba(23, 23, 28, .2); }
.xset-total span { display: grid; font-size: 14px; color: var(--ink-2); }
.xset-total b { font: 900 22px/1.1 var(--display); color: var(--red-ink); }
.xset-total small { color: var(--green); font-weight: 700; font-size: 13.5px; }
.xset-total .xbtn { height: 50px; }

.xbuy-info { display: grid; gap: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.xbuy-info > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
.xbuy-info > div + div { border-top: 1px solid var(--line); }
.xbuy-info .ic { width: 22px; height: 22px; color: var(--red); }
.xbuy-info b { display: block; font-size: 15px; }
.xbuy-info span { font-size: 14px; color: var(--ink-2); }
.xbuy-info select { margin-top: 10px; width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--line-2); font: 500 15px var(--body); background: #fff; }
.xship-result { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.xship-result > div { display: flex; justify-content: space-between; gap: 10px; }

/* Room photos (differentiator 2) */
.xrooms { margin-top: clamp(48px, 6vw, 96px); }
.xrooms-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.xroom { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bg); }
.xroom img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ease); }
.xroom:hover img { transform: scale(1.04); }
.xroom span { position: absolute; left: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px -8px rgba(42, 37, 39, .45); font: 700 14px/1.2 var(--display); text-align: left; }
.xroom span .ic { width: 18px; height: 18px; flex: none; }

/* Viewer (zoomable, added by dua.js) */
.xviewer { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; color: var(--ink); }
.xviewer[hidden] { display: none; }
.xviewer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; font-size: 15px; }
.xviewer-top button, .xviewer-nav button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink); }
.xviewer-stage { position: relative; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: none; }
.xviewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s var(--ease); user-select: none; -webkit-user-drag: none; }
.xviewer-stage.is-zoom { cursor: grab; }
.xviewer-nav { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }

/* Details */
.xdetail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 96px); }
.xdetail h2, .xreviews h2, .xrooms h2 { font: 800 clamp(21px, 2vw, 28px)/1.15 var(--display); margin-bottom: 16px; }
.xspecs { display: grid; margin: 0 0 24px; border-top: 1px solid var(--line); }
.xspecs > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.xspecs dt { font: 700 14px/1.4 var(--display); color: var(--ink-3); }
.xspecs dd { font-size: 15.5px; }
.xspecs a { text-decoration: underline; text-underline-offset: 3px; }
.xcopy { display: grid; gap: 16px; margin-bottom: 24px; }
.xcopy.is-draft { padding: 18px; border-radius: 12px; border: 1.5px dashed var(--ink-3); background: var(--bg); }
.xcopy-flag { font-size: 13.5px; font-weight: 700; color: #8A6A12; }
.xfeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.xfeatures li { display: flex; gap: 10px; font-size: 15px; }
.xfeatures .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--green); flex: none; }
.xprose { font-size: 16px; color: var(--ink-2); }
.xprose p + p, .xprose ul { margin-top: 10px; }
.xprose ul { padding-left: 20px; list-style: disc; }
.xacc details { border-top: 1px solid var(--line); }
.xacc details:last-child { border-bottom: 1px solid var(--line); }
.xacc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 700 16px/1.3 var(--display); cursor: pointer; list-style: none; }
.xacc summary::-webkit-details-marker { display: none; }
.xacc summary .ic { width: 18px; height: 18px; transition: transform .2s; }
.xacc details[open] summary .ic { transform: rotate(180deg); }
.xacc details > div { padding-bottom: 18px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table thead th { background: var(--bg); font: 800 12.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

/* Reviews */
.xrv-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 12px; background: var(--bg); margin-bottom: 20px; }
.xrv-score b { display: block; font: 900 52px/1 var(--display); }
.xrv-score span { font-size: 14px; color: var(--ink-2); }
.xrv-bars { display: grid; gap: 6px; }
.xrv-bars div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13px; }
.xrv-bars i { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.xrv-bars i b { display: block; height: 100%; background: var(--red); }
.xrv-empty { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: 12px; background: var(--bg); margin-bottom: 20px; }
.xrv-empty .ic { width: 28px; height: 28px; color: var(--red); }
.xrv-empty p { font-size: 14.5px; color: var(--ink-2); }
.xrv-list { display: grid; }
.xrv { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.xrv header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; }
.xrv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red-bg); color: var(--red-ink); font-weight: 700; }
.xrv-demo { padding: 2px 8px; border-radius: 6px; background: #FFF3D6; color: #8A6A12; font-size: 12px; font-weight: 700; }
.xrv-stars { color: var(--red); letter-spacing: 1px; }
.xrv time { color: var(--ink-3); margin-left: auto; font-size: 13px; }
.xrv-var { font-size: 13.5px; color: var(--ink-3); }
.xrv p { font-size: 15.5px; }
.xrv-photos { display: flex; gap: 8px; }
.xrv-photos img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.xrv-reply { padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 14.5px; }
.xrv-reply b { display: block; margin-bottom: 2px; }

/* Voucher tickets inside the sheet: styles in base.css (.vc) */
.xvlist { display: grid; gap: 10px; }

/* Sticky buy bar (phone; app.js toggles .is-on) */
.xsticky { display: none; }

/* ============================================================================ COMPARE PAGE */
.xcmp { padding-block: 18px clamp(48px, 6vw, 96px); }
.xcmp .crumbs { margin-bottom: 18px; }
.xcmp h1 { font: 900 clamp(28px, 3vw, 42px)/1.05 var(--display); font-stretch: 88%; }
.xcmp h1 em { color: var(--red); }
.xcmp-common { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.xcmp-common .ic { color: var(--red); }
.xcmp-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.xcmp-table { width: 100%; min-width: calc(180px + var(--cols) * 220px); border-collapse: collapse; table-layout: fixed; }
.xcmp-table th, .xcmp-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; }
.xcmp-table tbody th { width: 180px; font: 800 12.5px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); }
.xcmp-table thead th:first-child { width: 180px; background: var(--bg); }
.xcmp-prod { display: grid; gap: 10px; }
.xcmp-prod img { width: 100%; aspect-ratio: 1; height: auto !important; object-fit: cover; border-radius: 10px; }
.xcmp-prod b { font: 700 16.5px/1.3 var(--display); }
.xcmp-remove { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.xcmp-remove:hover, .xcmp-remove:focus-visible { color: var(--red-ink); }
.xcmp-remove .ic { width: 14px; height: 14px; }
.xcmp-table td small { display: block; color: var(--ink-3); font-size: 13px; }
.xcmp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.xcmp-tags li { padding: 4px 8px; border-radius: 6px; background: var(--bg); font-size: 13px; }
.xcmp-tags li.is-common { background: var(--red-bg); color: var(--red-ink); font-weight: 700; }
.xcmp-ok { color: var(--green); font-weight: 700; }
.xcmp-out { color: var(--red-ink); font-weight: 700; }
.xcmp-actions td { border-bottom: 0; }
.xcmp-actions .xbtn { width: 100%; height: 48px; }

/* ============================================================================ RESPONSIVE */
@media (max-width: 1180px) {
	.xgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
	.xtile { grid-column: span 2; min-height: 360px; }
	.xbar-in { flex-wrap: wrap; }
	.xbar-tools { margin-left: 0; }
	.xpdp-grid, .xdetail { grid-template-columns: minmax(0, 1fr); }
	.xgal { position: relative; top: auto; }
}
@media (max-width: 760px) {
	/* Phone: breadcrumb, then the photo whole and full width (portrait photos centred), then the text below it. */
	.xcat-hero-in, .xcat-hero.has-photo .xcat-hero-in { grid-template-columns: 1fr; gap: 10px; padding-block: 12px 20px; }
	.xcat-hero.has-photo .xcat-copy { display: contents; }
	.xcat-hero.has-photo .xcat-copy > * { order: 2; }
	.xcat-hero.has-photo .xcat-copy > .crumbs { order: 0; }
	.xcat-hero.has-photo .xcat-photo { order: 1; margin-bottom: 4px; }
	.xcat-copy { gap: 10px; }
	.xcat-copy .crumbs { margin-bottom: 0; }
	.xcat-copy h1 { font-size: 30px; }
	.xcat-copy p { font-size: 15.5px; }
	.xcat-photo { justify-content: center; }
	.xcat-photo img { max-height: 280px; border-radius: 14px; }
	.xcat-hero.has-photo:has(.xcat-photo--fill) .xcat-hero-in { grid-template-columns: 1fr; }
	.xcat-photo--fill img { max-width: 100%; aspect-ratio: 16 / 10; }
	.xcat-logo { height: 42px; }
	.xbar { top: var(--hd-h, 104px); }
	.xbar-in { gap: 10px; min-height: 0; padding-block: 10px; }
	.xbar-sizes { width: calc(100% + var(--gut)); margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
	.xbar-label { display: none; }
	.xbar-sizes a { min-width: 64px; padding: 6px 10px; }
	.xbar-tools { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.xdd { position: static; }
	.xdd-panel { left: var(--gut); right: var(--gut); min-width: 0; }
	.xdd summary, .xsort select, .xbar-all { height: 38px; font-size: 13.5px; }
	.xbar-all { margin-left: auto; }
	.xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.xtile { grid-column: span 2; min-height: 0; }
	.xtile--look .xl { aspect-ratio: 4 / 5; height: auto; }
	.xtile-cap { max-width: 86%; padding: 12px 16px 14px; }
	.xtile-cap b { font-size: 17px; }
	.xtile-sizes b { font-size: 15px; }
	.xc-cmp { font-size: 12.5px; }
	.xsheet-panel { width: 100%; }

	.xcrumbs-wrap { padding-block: 12px 10px; }
	.xgal { grid-template-columns: 1fr; margin-inline: calc(-1 * var(--gut)); }
	.xgal-thumbs { display: none; }
	.xgal-main { grid-column: 1; border-radius: 0; }
	.xbuy { gap: 14px; }
	.xbuy h1 { font-size: 22px; }
	.xprice-box { padding: 16px; }
	.opt-btn { min-width: calc(50% - 4px); }
	.xbuy-actions .xbtn { height: 52px; font-size: 15px; }
	.xset { padding: 16px; }
	.xset-list label { grid-template-columns: 20px 48px minmax(0, 1fr); }
	.xset-list img { width: 48px; height: 48px; }
	.xset-list em { grid-column: 3; }
	.xset-total .xbtn { width: 100%; }
	.xrooms-track { grid-auto-columns: 78%; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
	.xspecs > div { grid-template-columns: 1fr; gap: 2px; }
	.xfeatures { grid-template-columns: 1fr; }
	.xrv-sum { grid-template-columns: 1fr; }

	.xsticky { position: fixed; left: 0; right: 0; bottom: var(--tab-h); z-index: 57; display: grid; grid-template-columns: minmax(0, 1fr) 48px auto auto; gap: 8px; align-items: center; padding: 10px var(--gut); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .35); transform: translateY(120%); transition: transform .3s var(--ease); }
	.xsticky.is-on { transform: none; }
	.xsticky--nowa { grid-template-columns: minmax(0, 1fr) auto auto; }
	.xsticky-price { display: grid; min-width: 0; }
	.xsticky-price small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.xsticky-price b { font: 900 17px/1.1 var(--display); color: var(--red-ink); }
	.xsticky .xbtn { height: 46px; padding: 0 14px; font-size: 14.5px; }
	.xsticky-wa { width: 48px; padding: 0 !important; }
	.single-product .xwa { display: none; }

	.xtray { left: 12px; right: 12px; transform: none; }
	.single-product .xtray { bottom: calc(84px + var(--tab-h)); }
	.xtray b { display: none; }
	.xcmp-table { min-width: calc(110px + var(--cols) * 170px); }
	.xcmp-table tbody th, .xcmp-table thead th:first-child { width: 110px; font-size: 11.5px; position: sticky; left: 0; z-index: 1; }
	.xcmp-table th, .xcmp-table td { padding: 12px; font-size: 14px; }
	.xcmp-prod b { font-size: 14.5px; }
}
.xset-sizes button.is-partial { opacity: .55; }
