/* SLEEPSINERO — clean retail style (white, bold gothic, functional grid) */
:root {
  --ink: #1B1B1B;
  --ink-2: #444;
  --sub: #757575;
  --line: #DADADA;
  --line-2: #EDEDED;
  --tile: #F4F4F4;
  --bg-2: #F7F7F7;
  --brand: #3E3A39;
  --ame: #12AFCB;
  --star: #F0B400;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num: "Poppins", "Noto Sans JP", sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 3.2vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.7; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ame); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 12px; z-index: 99; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.head-top { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo img { height: 26px; width: auto; }
.search { flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; background: var(--tile); border-radius: 2px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font-size: 13px; }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; padding: 0 12px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.search svg { width: 18px; height: 18px; }
.head-links { display: flex; gap: 18px; font-size: 12px; white-space: nowrap; }
.head-links a:hover { text-decoration: underline; }
.head-cats { display: flex; gap: 28px; height: 46px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.head-cats::-webkit-scrollbar { display: none; }
.head-cats a { display: flex; align-items: center; font-size: 13.5px; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.head-cats a:hover, .head-cats a[aria-current="page"] { border-bottom-color: var(--ink); }
.head-cats .sep { margin-left: auto; }

/* ---------- common ---------- */
.sec { padding-top: clamp(48px, 6vw, 80px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: .04em; }
.sec-head a { font-size: 13px; font-weight: 500; white-space: nowrap; }
.sec-head a::after { content: " ›"; }
.sec-head a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 32px; font-size: 14px; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--ink); background: #fff; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--bg-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3a3a; }
.btn svg { width: 15px; height: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--ink); letter-spacing: .06em; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero-main { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--tile); min-height: clamp(360px, 38vw, 520px); }
.hero-text { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero-text h1 { font-size: clamp(30px, 3.5vw, 50px); font-weight: 900; line-height: 1.25; letter-spacing: .02em; }
.hero-text p { font-size: 14px; color: var(--ink-2); max-width: 26em; }
.hero-text .hero-price { font-family: var(--num); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }
.hero-price small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--sub); margin-left: 6px; }
.hero-text .btn, .hero-text .tag { align-self: flex-start; }
.hero-text .btn { margin-top: 8px; }
.hero-img { display: grid; place-items: center; overflow: hidden; }
.hero-img img { width: 82%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.hero-subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.sub-banner { display: grid; grid-template-columns: 1fr 44%; align-items: center; background: var(--tile); min-height: 170px; padding: 20px 0 20px 24px; }
.sub-banner b { display: block; font-size: 17px; font-weight: 700; line-height: 1.45; }
.sub-banner span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.sub-banner em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 12px; border-bottom: 1px solid var(--ink); }
.sub-banner img { width: 100%; height: 130px; object-fit: contain; mix-blend-mode: multiply; }
.sub-banner:hover b { text-decoration: underline; }

/* ---------- colour picker feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0; }
.feature-img { background: var(--tile); aspect-ratio: 1; display: grid; place-items: center; }
.feature-img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s; }
.feature-info h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.35; }
.feature-info .lead { margin-top: 10px; color: var(--ink-2); }
.feature-meta { display: flex; align-items: baseline; gap: 16px; margin-top: 18px; }
.feature-meta .p { font-family: var(--num); font-weight: 600; font-size: 24px; }
.color-name { margin-top: 24px; font-size: 13px; }
.color-name b { font-weight: 700; margin-left: 6px; }
.chips-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin-top: 10px; max-width: 520px; }
.chip-lg { aspect-ratio: 1; border: 1px solid var(--line); padding: 3px; background: #fff; cursor: pointer; }
.chip-lg i { display: block; width: 100%; height: 100%; }
.chip-lg[aria-pressed="true"] { border: 2px solid var(--ink); padding: 2px; }
.feature-info .btn { margin-top: 28px; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat { text-align: center; }
.cat .ph { aspect-ratio: 1; }
.cat b { display: block; font-size: 13.5px; font-weight: 700; margin-top: 10px; }
.cat:hover b { text-decoration: underline; }

/* ---------- image tile ---------- */
.ph { background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.ph img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.grid.five { grid-template-columns: repeat(5, 1fr); }
.card { display: block; position: relative; }
.card .ph { aspect-ratio: 1; }
.rank { position: absolute; top: 0; left: 0; min-width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--num); font-weight: 600; font-size: 13px; }
.rank.r1 { background: #B8962E; } .rank.r2 { background: #8E8E8E; } .rank.r3 { background: #9C6B3C; }
.chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; min-height: 12px; align-items: center; }
.chips i { width: 12px; height: 12px; border: 1px solid rgba(0,0,0,.14); display: block; }
.chips small { font-size: 11px; color: var(--sub); margin-left: 3px; line-height: 1; }
.card-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--sub); margin-top: 6px; }
.card-name { font-size: 13.5px; line-height: 1.6; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-name { text-decoration: underline; }
.card-price { font-family: var(--num); font-weight: 600; font-size: 17px; margin-top: 6px; letter-spacing: .01em; }
.card-price small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--sub); margin-left: 2px; }
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.stars i { position: relative; display: inline-block; font-style: normal; font-size: 12px; letter-spacing: 1px; color: #D6D6D6; line-height: 1; }
.stars i::before { content: "★★★★★"; }
.stars i b { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); font-weight: 400; }
.stars i b::before { content: "★★★★★"; }

/* ---------- ranking tabs ---------- */
.rtabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.rtab { background: none; border: 0; padding: 12px 22px; font-size: 14px; font-weight: 700; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.rtab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rpanel[hidden] { display: none; }

/* ---------- service banners ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service { background: var(--bg-2); padding: 28px 28px 26px; display: block; border: 1px solid var(--line-2); }
.service .big { font-family: var(--num); font-weight: 600; font-size: 34px; line-height: 1.1; }
.service .big small { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-left: 4px; }
.service h3 { font-size: 16px; font-weight: 700; margin-top: 8px; }
.service p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.service:hover h3 { text-decoration: underline; }

/* ---------- catalogue ---------- */
.crumbs { font-size: 12px; color: var(--sub); padding: 16px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a:hover { text-decoration: underline; }
.page-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; padding: 8px 0 24px; }
.plp { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.side { position: sticky; top: 130px; }
.side h2 { font-size: 13px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.side .block + .block { margin-top: 28px; }
.side button { display: flex; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0; padding: 9px 0; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.side button span { color: var(--sub); font-size: 12px; }
.side button[aria-pressed="true"] { font-weight: 700; }
.side button:hover { text-decoration: underline; }
.plp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.count { font-size: 13px; }
.plp-bar select, .side select { border: 1px solid var(--line); background: #fff; padding: 8px 10px; font-size: 13px; }
.plp .grid { grid-template-columns: repeat(4, 1fr); }
.empty { padding: 48px 0; color: var(--sub); }
.mobile-filters { display: none; gap: 8px; margin-bottom: 16px; }
.mobile-filters select { flex: 1; border: 1px solid var(--line); background: #fff; padding: 10px; font-size: 13px; min-width: 0; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd > * { min-width: 0; }
.pd-media { position: sticky; top: 130px; }
.pd-media .ph { aspect-ratio: 1; }
.pd-media .ph img { width: 88%; height: 88%; }
.thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.thumb { aspect-ratio: 1; background: var(--tile); border: 1px solid transparent; padding: 2px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { border: 2px solid var(--ink); }
.pd h1 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.5; }
.pd-id { font-size: 12px; color: var(--sub); margin-top: 6px; }
.pd .stars { margin-top: 10px; font-size: 12.5px; }
.pd .stars i { font-size: 14px; }
.pd-price { font-family: var(--num); font-weight: 600; font-size: 30px; margin-top: 14px; }
.pd-price small { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--sub); margin-left: 6px; }
.feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.feats li { font-size: 11.5px; font-weight: 700; padding: 3px 8px; background: var(--bg-2); border: 1px solid var(--line-2); }
.opt-block { margin-top: 24px; }
.opt-label { font-size: 13px; margin-bottom: 10px; }
.opt-label b { font-weight: 700; margin-left: 6px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 6px; }
.swatch { width: 52px; height: 52px; padding: 2px; border: 1px solid var(--line); background: var(--tile); cursor: pointer; }
.swatch img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.swatch[aria-pressed="true"] { border: 2px solid var(--ink); padding: 1px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 60px; height: 44px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-family: var(--num); font-weight: 500; font-size: 13px; cursor: pointer; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-pressed="true"] { border: 2px solid var(--ink); }
.size:disabled { color: #BDBDBD; text-decoration: line-through; cursor: not-allowed; background: var(--bg-2); }
.buy { margin-top: 28px; }
.btn-buy { width: 100%; min-height: 56px; font-size: 15px; }
.buy-note { font-size: 11.5px; color: var(--sub); margin-top: 10px; line-height: 1.8; }
.assure { margin-top: 18px; border: 1px solid var(--line); }
.assure a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 12.5px; }
.assure a + a { border-top: 1px solid var(--line); }
.assure b { font-family: var(--num); font-weight: 600; font-size: 16px; min-width: 44px; }
.assure a:hover span { text-decoration: underline; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 15px; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--num); font-size: 20px; font-weight: 400; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc-body { padding: 0 0 22px; font-size: 13px; line-height: 1.9; }
.pd-accs { margin-top: 32px; }
.desc { margin-bottom: 14px; }
.bullets { padding-left: 1.1em; margin: 0; display: grid; gap: 8px; }
.bullets b { font-weight: 700; }
.bullets span { display: block; color: var(--ink-2); }
.tbl-wrap { overflow-x: auto; }
.size-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-tbl th, .size-tbl td { padding: 9px 8px; text-align: center; border: 1px solid var(--line); white-space: nowrap; }
.size-tbl thead th { background: var(--bg-2); font-weight: 700; }
.size-tbl td:first-child { font-weight: 700; background: var(--bg-2); }
.dl { display: grid; grid-template-columns: 9em 1fr; margin: 0; border-top: 1px solid var(--line-2); }
.dl dt, .dl dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); margin: 0; font-size: 13px; }
.dl dt { color: var(--sub); }
.aplus { max-width: 970px; margin: 0 auto; }
.aplus img { width: 100%; height: auto; margin-bottom: 0; background: var(--tile); }

/* ---------- content pages ---------- */
.doc { max-width: 820px; padding-bottom: 16px; }
.doc .lead-text { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.doc h2 { font-size: 18px; font-weight: 700; margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--ink); line-height: 1.4; }
.doc p, .doc li { font-size: 14px; color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; }
.doc a { text-decoration: underline; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--bg-2); padding: 22px 24px; margin-top: 16px; }
.mailbox code { font-family: var(--num); font-weight: 600; font-size: clamp(16px, 2vw, 20px); }
.doc .mailbox a { text-decoration: none; }
.co-tbl { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.co-tbl th, .co-tbl td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-tbl th { width: 11em; background: var(--bg-2); font-weight: 700; }
.gtee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.gtee > div { background: var(--bg-2); border: 1px solid var(--line-2); padding: 28px; }
.gtee .big { font-family: var(--num); font-weight: 600; font-size: 44px; line-height: 1; }
.gtee .big small { font-family: var(--sans); font-size: 17px; font-weight: 700; margin-left: 4px; }
.gtee h3 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.gtee p { font-size: 13.5px; color: var(--ink-2); }
.gtee .note { font-size: 12px; color: var(--sub); margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; border: 1px solid var(--line); padding: 16px; }
.steps .n { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--num); font-weight: 600; }
.steps b { font-weight: 700; }
.steps span { font-size: 13.5px; color: var(--ink-2); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px 1fr 16px; gap: 8px; padding: 16px 0; font-size: 14.5px; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; font-family: var(--num); color: var(--ame); }
.qa summary::after { content: "+"; font-family: var(--num); font-weight: 400; }
.qa[open] summary::after { content: "−"; }
.qa .a { padding: 0 0 18px 36px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- brand story ---------- */
.story-hero { background: var(--tile); padding: clamp(56px, 8vw, 120px) 0; text-align: center; }
.story-hero h1 { font-size: clamp(28px, 4.4vw, 56px); font-weight: 900; line-height: 1.35; }
.story-hero p { margin-top: 16px; color: var(--ink-2); }
.story { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.story p { font-size: 15.5px; line-height: 2.1; color: var(--ink-2); }
.story p + p { margin-top: 1.1em; }
.story .lead { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; color: var(--ink); line-height: 1.6; margin: 48px 0 24px; }
.story h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; margin: 72px 0 20px; }
.story-logo { width: min(420px, 90%); margin: 8px 0 28px; }
.vows { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vow { background: var(--bg-2); border: 1px solid var(--line-2); padding: 28px; }
.vow h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.vow p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.vow a { text-decoration: underline; }
.story-close { text-align: center; padding: clamp(64px, 8vw, 112px) var(--gutter) 0; }
.story-close p { font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.9; }
.story-close .btn { margin-top: 28px; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(64px, 8vw, 104px); background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0 40px; }
.site-foot h2 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.site-foot ul a:hover { text-decoration: underline; }
.foot-about p { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; }
.foot-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 11.5px; color: var(--sub); }
.foot-bottom img { height: 20px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid.five { grid-template-columns: repeat(4, 1fr); }
  .plp { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-filters { display: flex; }
  .head-links { display: none; }
}
@media (max-width: 860px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-img { order: -1; min-height: 300px; }
  .hero-subs, .services { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid, .grid.five, .plp .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { position: static; }
  .gtee, .vows { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .head-top { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .logo img { height: 22px; }
  .search { flex-basis: 100%; max-width: none; order: 3; }
  .head-cats { gap: 20px; height: 42px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .sub-banner { min-height: 140px; }
  .co-tbl th { width: 7em; }
  .dl { grid-template-columns: 7em 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.feature > *, .hero-main > *, .plp > * { min-width: 0; }

/* ---------- cart button ---------- */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px 2px; font-size: 12px; white-space: nowrap; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn em { font-style: normal; }
.cart-count { position: absolute; top: 0; left: 15px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--num); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.cart-count[hidden] { display: none; }

/* ---------- product buy block ---------- */
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.qty-row select { border: 1px solid var(--line); background: #fff; padding: 9px 12px; min-width: 88px; }
.btn-buy svg { width: 20px; height: 20px; }
.btn-now { margin-top: 8px; border-width: 1.5px; }
.ulink { text-decoration: underline; display: inline-flex; align-items: center; gap: 4px; }
.ulink svg { width: 12px; height: 12px; }

/* ---------- cart drawer ---------- */
body.noscroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; font-weight: 700; }
.drawer-head h2 span { font-size: 13px; font-weight: 500; margin-left: 4px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; color: var(--ink); }
.drawer-msg { margin: 14px 20px 0; padding: 10px 12px; background: #EAF8FB; border: 1px solid #BFE9F1; font-size: 13px; font-weight: 700; }
.drawer-msg::before { content: "✓ "; color: var(--ame); }
.drawer-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.drawer-empty[hidden] { display: none; }
.drawer-empty .btn { margin-top: 16px; }
.ci { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.ci-img { background: var(--tile); aspect-ratio: 1; display: grid; place-items: center; }
.ci-img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.ci-name { font-size: 13.5px; font-weight: 700; line-height: 1.5; display: block; }
.ci-name:hover { text-decoration: underline; }
.ci-spec { font-size: 12px; color: var(--sub); margin-top: 2px; }
.ci-price { font-family: var(--num); font-weight: 600; font-size: 15px; margin-top: 4px; }
.ci-price small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--sub); margin-left: 4px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.ci-row select { border: 1px solid var(--line); background: #fff; padding: 4px 8px; margin-left: 4px; }
.linkbtn { background: none; border: 0; padding: 0; font-size: 12px; text-decoration: underline; cursor: pointer; color: var(--ink-2); }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 8px; }
.drawer-foot[hidden] { display: none; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.sum b { font-family: var(--num); font-size: 22px; font-weight: 600; }
.btn-block { width: 100%; }
.drawer-foot .note, .help .note { font-size: 11px; color: var(--sub); line-height: 1.7; }
.drawer-foot .linkbtn { justify-self: start; }

/* ---------- contact widget ---------- */
.help { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; border: 0; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.help-btn svg { width: 22px; height: 22px; }
.help-btn:hover { background: #3a3a3a; }
.help.is-open .help-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.help-panel { width: min(360px, calc(100vw - 40px)); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.16); }
.help-panel[hidden] { display: none; }
.help-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.help-head b { font-size: 15px; }
.help-head .x { color: #fff; font-size: 22px; }
.help-lead { padding: 14px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.help-links { display: flex; gap: 8px; padding: 12px 16px 0; }
.help-links a { flex: 1; text-align: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); padding: 8px 4px; }
.help-links a:hover { border-color: var(--ink); }
.help-form { display: grid; gap: 10px; padding: 14px 16px 16px; }
.help-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.help-form input, .help-form select, .help-form textarea { border: 1px solid var(--line); background: #fff; padding: 8px 10px; font-size: 13px; font-weight: 400; resize: vertical; }
.help-form input:focus, .help-form select:focus, .help-form textarea:focus { outline: none; border-color: var(--ink); }
.drawer:not([hidden]) ~ .help { display: none; }

@media (max-width: 1080px) { .cart-btn em { display: none; } }
@media (max-width: 560px) {
  .cart-btn { margin-left: auto; }
  .help { right: 12px; bottom: 12px; }
  .help-btn { height: 48px; padding: 0 14px; }
  .help-btn span { display: none; }
  .help-btn { width: 48px; justify-content: center; padding: 0; }
}
