/* =========================================================
   MILL STREET — store + new home sections
   ========================================================= */
:root {
  --cond: 'Libre Caslon Condensed', 'Instrument Serif', 'Georgia', serif;
  --inst: 'Instrument Serif', 'Georgia', serif;
  --script: 'Pinyon Script', 'Kalam', cursive;
  --mono: 'Space Mono', ui-monospace, monospace;
  --peach: #F7E2C4;
  --terra: #B5472E;
  --olive: #B9AE6A;
  --card: #FCF8EF;
}
body.lock { overflow: hidden; }
.icon-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.icon-btn.signed::after { content: ''; position: absolute; right: 8px; bottom: 8px; width: 8px; height: 8px; border-radius: 50%; background: #3F8F4F; box-shadow: 0 0 0 2px var(--atta); }
.count[hidden] { display: none !important; }

/* ---------------- product card ---------------- */
.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(43, 19, 32, .1); border-radius: 18px; padding: .6rem .6rem 1rem; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.pc:hover { box-shadow: 0 24px 40px -26px rgba(43, 19, 32, .45); transform: translateY(-3px); }
.pc-media { position: relative; display: block; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--atta-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pc:hover .pc-media img { transform: scale(1.06); }
.pc-sash { position: absolute; z-index: 2; top: 0; left: .7rem; background: var(--plum); color: var(--atta); padding: .45rem .5rem .55rem; border-radius: 0 0 22px 22px; text-align: center; line-height: 1; min-width: 46px; box-shadow: 0 6px 12px -6px rgba(43, 19, 32, .5); }
.pc-sash b { display: block; font-size: 1rem; font-weight: 700; }
.pc-sash small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.pc-best { position: absolute; z-index: 2; top: 0; right: 0; display: inline-flex; align-items: center; gap: .3rem; background: var(--turmeric); color: var(--ink); font-size: .74rem; font-weight: 700; padding: .38rem .7rem .4rem .6rem; border-radius: 0 0 0 13px; }
.pc-best svg { width: 12px; height: 12px; fill: var(--ink); }
.pc-cta { display: flex; justify-content: flex-end; margin: -26px .5rem .6rem 0; position: relative; z-index: 3; min-height: 46px; }
.pc-add { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.2rem; border-radius: 12px; background: var(--plum); color: var(--atta); font-weight: 700; font-size: 1rem; letter-spacing: .02em; box-shadow: 0 8px 18px -8px rgba(110, 42, 62, .7); transition: background .25s, transform .25s var(--ease); }
.pc-add:hover { background: var(--ink); transform: translateY(-2px); }
.pc-add svg { width: 19px; height: 19px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--plum); border-radius: 12px; overflow: hidden; background: var(--card); }
.qty button { width: 38px; height: 38px; font-size: 1.2rem; color: var(--plum); font-weight: 600; transition: background .2s; }
.qty button:hover { background: rgba(140, 55, 79, .1); }
.qty output { min-width: 30px; text-align: center; font-weight: 700; }
.qty-card { height: 46px; background: var(--plum); border-color: var(--plum); box-shadow: 0 8px 18px -8px rgba(110, 42, 62, .7); }
.qty-card button, .qty-card output { color: var(--atta); height: 46px; }
.qty-card button:hover { background: rgba(255, 255, 255, .12); }
.pc-name { font-family: var(--serif); font-size: 1.06rem; line-height: 1.28; padding: 0 .35rem; min-height: 2.56em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-name:hover { color: var(--plum); }
.pc-note { padding: .2rem .35rem 0; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-price { display: flex; align-items: baseline; gap: .7rem; padding: .55rem .35rem .5rem; margin-top: auto; }
.pc-price s { color: #9C8F8A; font-size: 1.02rem; text-decoration-thickness: 1.5px; }
.pc-price b { font-size: 1.32rem; font-weight: 700; color: var(--ink); }
.pc-coupon { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: .4rem; background: rgba(217, 154, 30, .16); color: #5A3B0E; border-radius: 8px; padding: .32rem .55rem; font-size: .8rem; margin: 0 .2rem; }
.pc-coupon svg { width: 14px; height: 14px; flex: 0 0 auto; }
.pc-coupon b { font-weight: 700; }

/* ---------------- category icon tabs ---------------- */
.ctabs { display: flex; justify-content: center; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0 0; border-bottom: 1px solid rgba(43, 19, 32, .12); }
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .4rem 1rem .8rem; position: relative; color: var(--ink-soft); font-size: .93rem; font-weight: 500; transition: color .25s; }
.ctab img { width: 58px; height: 58px; object-fit: contain; transition: transform .45s var(--ease); }
.ctab:hover img { transform: translateY(-4px) rotate(-4deg); }
.ctab::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--plum); transform: scaleX(0); transition: transform .4s var(--ease); }
.ctab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.ctab[aria-selected="true"]::after { transform: scaleX(1); }
.ctab .ct-ring { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.ctab[aria-selected="true"] .ct-ring { background: rgba(140, 55, 79, .08); }

/* ---------------- rail (carousel) ---------------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 4.8rem) / 5)); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 1.8rem .2rem 1.4rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 42%; z-index: 4; width: 50px; height: 50px; border-radius: 50%; background: var(--atta); border: 1.5px solid rgba(43, 19, 32, .18); display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(43, 19, 32, .4); transition: background .25s, color .25s, opacity .25s; }
.rail-btn:hover { background: var(--plum); color: var(--atta); border-color: var(--plum); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn.prev { left: -22px; }
.rail-btn.next { right: -22px; }
.rail-btn svg { width: 18px; height: 18px; }

/* ---------------- 1. harvest supper (long table) ---------------- */
.feast { padding: clamp(4.5rem, 9vw, 7.5rem) 0 0; text-align: center; background: var(--atta); }
.feast-sun { width: 46px; margin: 0 auto 1rem; opacity: .9; }
.feast-eyebrow { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.feast h2 { font-family: var(--inst); font-weight: 400; text-transform: uppercase; font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.005em; color: var(--ink); max-width: 24ch; margin: 0 auto 1.3rem; }
.feast h2 em { display: block; font-style: italic; }
.feast p { max-width: 54ch; margin: 0 auto; font-size: .98rem; color: var(--ink-soft); }
.feast-img { margin-top: clamp(2.4rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.feast-img img { width: 100%; height: clamp(320px, 52vw, 760px); object-fit: cover; object-position: 50% 62%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.feast-img.in img { transform: scale(1); }
.feast-cap { position: absolute; left: var(--pad); bottom: 1.4rem; font-family: var(--hand); color: #fff; font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); transform: rotate(-2deg); }

/* ---------------- 4. welcome / shop ---------------- */
.welcome { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: #F7F1E3; }
.welcome-head { text-align: center; margin-bottom: 2rem; }
.welcome-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--plum); }
.welcome-head p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--ink); margin-top: .2rem; }
.welcome-foot { display: flex; justify-content: center; margin-top: .8rem; }

/* ---------------- 2. big stacked type ---------------- */
.stack { padding: clamp(5rem, 11vw, 9rem) 0; background: #F4ECDA; text-align: center; overflow: hidden; position: relative; }
.stack-eyebrow { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.55; margin-bottom: 1.4rem; color: var(--ink); }
.stack-lines { list-style: none; }
.stack-lines li { font-family: var(--cond); font-weight: 600; text-transform: uppercase; color: var(--plum); font-size: clamp(3rem, 10vw, 8.4rem); line-height: .9; letter-spacing: -.005em; overflow: hidden; }
.stack-lines li span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.stack.in .stack-lines li span { transform: none; }
.stack.in .stack-lines li:nth-child(2) span { transition-delay: .1s; }
.stack.in .stack-lines li:nth-child(3) span { transition-delay: .2s; }
.stack.in .stack-lines li:nth-child(4) span { transition-delay: .3s; }
.stack-lines li:hover span { color: var(--ink); transition: color .3s, transform 1s var(--ease); }
.stack-script { font-family: var(--script); font-size: clamp(1.5rem, 2.8vw, 2.3rem); color: var(--ink); margin-top: 1.6rem; }

/* ---------------- 8. why mill street ---------------- */
.why { background: var(--peach); color: var(--terra); }
.why-top { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem); text-align: center; }
.why-top .hand { font-size: 1.3rem; }
.why-top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; color: var(--ink); margin: .2rem 0 1rem; }
.why-top > .wrap > p { max-width: 56ch; margin: 0 auto 3.2rem; color: #7A4535; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.why-item img { width: 100%; max-width: 330px; margin: 0 auto 1.4rem; transition: transform .8s var(--ease); }
.why-item:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.why-item h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.55rem; line-height: 1.15; color: var(--terra); margin-bottom: .5rem; }
.why-item p { color: #7A4535; max-width: 32ch; margin: 0 auto; font-size: .97rem; }
.band { background: var(--plum); color: var(--atta); overflow: hidden; white-space: nowrap; }
.band-track { display: inline-flex; animation: marquee 30s linear infinite; padding: .7rem 0; }
.band.rev .band-track { animation-direction: reverse; }
.band span { font-weight: 600; letter-spacing: .08em; font-size: .9rem; text-transform: uppercase; padding: 0 2.6rem; position: relative; }
.band span::after { content: '|'; position: absolute; right: -.15rem; opacity: .6; }
/* marquee pauses on hover so chips/links can be clicked, resumes on leave */
.band:hover .band-track, .band .band-track:hover, .band:focus-within .band-track { animation-play-state: paused; }
/* category CTA band (home): clickable pills instead of plain text */
.cat-band .band-track { align-items: center; animation-duration: 42s; padding: .5rem 0; }
.cat-chip { display: inline-flex; align-items: center; white-space: nowrap; margin: 0 .4rem; padding: .44rem 1.2rem; border: 1.5px solid rgba(253, 239, 216, .5); border-radius: 999px; color: var(--atta); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.cat-chip:hover, .cat-chip:focus-visible { background: var(--atta); color: var(--plum); border-color: var(--atta); transform: translateY(-1px); }
.cat-band .cat-sep { padding: 0 1.6rem; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: .01em; text-transform: none; color: rgba(253, 239, 216, .82); }
.cat-band .cat-sep::after { content: none; }
.why-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.why-strip figure { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.why-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.92); }
.why-strip figure:hover img { transform: scale(1.06); filter: saturate(1.05); }
.why-strip figcaption { position: absolute; left: .9rem; bottom: .7rem; font-family: var(--hand); color: #fff; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.why-strip figure:hover figcaption { opacity: 1; transform: none; }
.why-quote { background: var(--olive); color: #FFF7E6; text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad); }
.why-quote blockquote { font-family: var(--script); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.1; }
.why-quote p { max-width: 60ch; margin: 1.2rem auto 0; font-size: .95rem; color: rgba(255, 247, 230, .92); }

/* ---------------- 6. quality (text only) ---------------- */
.quality { padding: clamp(4.5rem, 9vw, 7rem) 0; background: #E7EEE6; position: relative; overflow: hidden; }
.quality::before { content: ''; position: absolute; inset: auto -6% -30% auto; width: 46vw; aspect-ratio: 1; background: url(../img/wheel-ink.svg) center / contain no-repeat; opacity: .04; animation: spin 160s linear infinite; }
.quality h2 { text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; color: #2F5A4A; margin-bottom: clamp(2rem, 4vw, 3rem); }
.q-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; position: relative; }
.q-card { background: #FBF3E2; border-radius: 16px; padding: 2.2rem 1.6rem 2.4rem; text-align: center; position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.q-card::before { content: ''; position: absolute; top: -40px; left: -40px; width: 130px; height: 130px; background: url(../img/wheel-turmeric.svg) center / contain no-repeat; opacity: .18; transition: transform 1.2s var(--ease); }
.q-card:hover { transform: translateY(-6px); box-shadow: 0 30px 40px -30px rgba(47, 90, 74, .5); }
.q-card:hover::before { transform: rotate(60deg); }
.q-num { font-family: var(--hand); color: var(--plum); font-size: 1.1rem; margin-bottom: .6rem; }
.q-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.42rem; line-height: 1.2; color: #23473A; margin-bottom: .7rem; }
.q-card p { color: #3F5A50; font-size: .96rem; line-height: 1.5; }
.q-card .q-foot { margin-top: auto; padding-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #6C8378; }

/* ---------------- 7. testimonials + badges ---------------- */
.voices { padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: #F7F4EC; border-top: 1px solid rgba(43, 19, 32, .14); }
.voices h2 { text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--ink); margin-bottom: .4rem; }
.voices .sub { text-align: center; color: var(--ink-soft); margin-bottom: 2rem; }
.v-rail { grid-auto-columns: minmax(300px, calc((100% - 3.6rem) / 4)); padding-top: .8rem; }
.v-card { background: #fff; border: 1px solid rgba(43, 19, 32, .1); border-radius: 18px; padding: 1.8rem 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1.4rem; min-height: 250px; transition: box-shadow .4s; }
.v-card:hover { box-shadow: 0 24px 40px -28px rgba(43, 19, 32, .45); }
.v-card blockquote { font-size: .97rem; line-height: 1.6; color: #3E3036; }
.v-card blockquote::before { content: '\201C'; display: block; font-family: var(--serif); font-size: 2.4rem; line-height: .6; color: var(--turmeric); margin-bottom: .2rem; }
.v-who { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.v-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(43, 19, 32, .12); flex: 0 0 auto; }
.v-who b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.08rem; }
.v-who small { color: var(--ink-soft); font-size: .82rem; }
.stars { color: var(--turmeric); letter-spacing: .12em; font-size: .9rem; }
.v-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .6rem; }
.v-nav .rail-btn { position: static; opacity: 1 !important; pointer-events: auto !important; box-shadow: none; background: transparent; }
.v-dots { display: flex; gap: .45rem; }
.v-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(43, 19, 32, .2); transition: background .3s, transform .3s; }
.v-dots button[aria-current="true"] { background: var(--plum); transform: scale(1.25); }
.badges { background: #fff; border-top: 1px solid rgba(43, 19, 32, .08); border-bottom: 2px solid #0F4B37; }
.badges-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; overflow-x: auto; scrollbar-width: none; }
.badges-row::-webkit-scrollbar { display: none; }
.badges-row svg { height: 104px; width: auto; flex: 0 0 auto; color: #0F4B37; transition: transform .4s var(--ease); }
.badges-row svg:hover { transform: translateY(-4px) scale(1.04); }

/* ---------------- 11. values over photo ---------------- */
.values { position: relative; min-height: 640px; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.values-bg { position: absolute; inset: -10% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.values::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 30, 18, .55), rgba(20, 30, 18, .62)); }
.values-in { padding: 5rem var(--pad); }
.values .hand { color: var(--turmeric); font-size: 1.25rem; display: block; margin-bottom: 2.6rem; }
.v-items { display: flex; justify-content: center; gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap; margin-bottom: 3.6rem; }
.v-item { width: 200px; }
.v-item img { width: 124px; height: 124px; margin: 0 auto 1.1rem; transition: transform .6s var(--ease); }
.v-item:hover img { transform: rotate(-10deg) scale(1.06); }
.v-item span { font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.4; display: block; }
.btn-white { background: #fff; color: var(--ink); padding: 1rem 4.2rem; font-weight: 500; font-size: 1.05rem; border: 1.5px solid var(--ink); }
.btn-white:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------------- 5. category page ---------------- */
.cat-hero { padding: clamp(2.6rem, 6vw, 4.5rem) 0 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cat-hero .crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cat-hero .crumbs a:hover { color: var(--plum); }
.cat-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; color: var(--plum); }
.cat-hero .hand { display: block; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--ink-soft); margin-top: .2rem; }
.cat-hero p { max-width: 56ch; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.cat-hero .shop-wheel { position: absolute; right: -8vw; top: -6vw; width: 32vw; max-width: 440px; opacity: .08; animation: spin 90s linear infinite; pointer-events: none; }
.subnav { position: sticky; top: var(--head-h); z-index: 20; background: rgba(241, 232, 212, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.subnav .ctab img { width: 50px; height: 50px; }
.subnav .ctab .ct-ring { width: 66px; height: 66px; }
.subnav .ctab small { font-size: .74rem; color: var(--ink-soft); font-weight: 400; margin-top: -.3rem; }
.backlink { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--plum); font-weight: 600; margin-bottom: .8rem; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.2rem; padding: 2rem 0 clamp(4rem, 8vw, 6rem); }
.pgrid .pc { opacity: 0; animation: cardIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.pgrid-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; }
.pgrid-empty img { width: 90px; margin: 0 auto 1rem; opacity: .7; }
.pgrid-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: .4rem; }
.pgrid-empty p { color: var(--ink-soft); }
.coupon-strip { display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--ink); color: var(--atta); padding: .7rem var(--pad); font-size: .92rem; }
.coupon-strip .tag { border: 1.5px dashed var(--turmeric); color: var(--turmeric); padding: .15rem .6rem; border-radius: 6px; font-weight: 700; letter-spacing: .06em; }

/* ---------------- cart drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 8500; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(43, 19, 32, .5); opacity: 0; transition: opacity .4s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--atta); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4); }
.drawer.open .drawer-panel { transform: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid rgba(43, 19, 32, .12); }
.dr-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.dr-count { color: var(--plum); }
.dr-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--atta-2); transition: transform .3s var(--ease); }
.dr-x:hover { transform: rotate(90deg); }
.dr-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.dr-ship { padding: 1rem 1.4rem 1.2rem; background: var(--atta-2); font-size: .9rem; }
.dr-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(43, 19, 32, .12); margin-top: .6rem; }
.dr-bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--plum); transition: width .6s var(--ease); }
.dr-bar i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: left .6s var(--ease); }
.dr-bar i img { width: 100%; animation: spin 6s linear infinite; }
.dr-items { list-style: none; padding: .4rem 1.4rem; }
.dr-item { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px dashed rgba(43, 19, 32, .18); align-items: start; }
.dr-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; display: block; }
.dr-img img { width: 100%; height: 100%; object-fit: cover; }
.dr-info a { font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; display: block; }
.dr-meta { font-size: .8rem; color: var(--ink-soft); }
.dr-row { display: flex; justify-content: space-between; align-items: center; margin-top: .55rem; gap: .5rem; }
.dr-row .qty button { width: 32px; height: 32px; }
.dr-price { font-weight: 700; text-align: right; }
.dr-price s { display: block; font-weight: 400; font-size: .78rem; color: #9C8F8A; }
.dr-rm { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-soft); }
.dr-rm:hover { background: rgba(181, 71, 46, .12); color: var(--terra); }
.dr-coupon { padding: .4rem 1.4rem 1rem; }
.dr-cpn-form { display: flex; border: 1.5px solid rgba(43, 19, 32, .25); border-radius: 12px; overflow: hidden; background: #fff8; }
.dr-cpn-form input { flex: 1; border: 0; background: transparent; padding: .8rem 1rem; outline: none; text-transform: uppercase; }
.dr-cpn-form button { padding: 0 1.1rem; font-weight: 700; color: var(--plum); }
.dr-cpn-hint { margin-top: .6rem; display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; font-size: .86rem; padding: .55rem .7rem; border-radius: 10px; background: rgba(217, 154, 30, .14); }
.dr-cpn-hint:hover { background: rgba(217, 154, 30, .26); }
.tag { border: 1.5px dashed var(--plum); color: var(--plum); padding: .1rem .5rem; border-radius: 6px; font-weight: 700; letter-spacing: .06em; font-size: .8rem; }
.dr-cpn-msg { font-size: .84rem; color: var(--terra); min-height: 1.2em; margin-top: .3rem; }
.dr-cpn-on { display: flex; justify-content: space-between; align-items: center; background: rgba(63, 143, 79, .12); color: #2C6B3A; padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; }
.dr-cpn-on button { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dr-sum { margin: 0 1.4rem; padding: .8rem 0; border-top: 1px solid rgba(43, 19, 32, .12); }
.dr-sum div { display: flex; justify-content: space-between; font-size: .93rem; padding: .25rem 0; }
.dr-sum dt { color: var(--ink-soft); }
.dr-sum .neg { color: #2C6B3A; }
.dr-sum .tot { border-top: 1px solid rgba(43, 19, 32, .12); margin-top: .4rem; padding-top: .7rem; font-size: 1.15rem; }
.dr-sum .tot dt { color: var(--ink); font-weight: 600; }
.dr-sum .tot dd { font-weight: 700; }
.dr-foot { margin-top: auto; position: sticky; bottom: 0; background: var(--atta); padding: 1rem 1.4rem 1.4rem; border-top: 1px solid rgba(43, 19, 32, .12); }
.dr-saved { font-size: .85rem; color: #2C6B3A; font-weight: 600; text-align: center; margin-bottom: .6rem; }
.dr-checkout { width: 100%; justify-content: center; padding: 1.05rem; font-size: 1.02rem; }
.dr-checkout:disabled { background: var(--ink-soft); cursor: default; }
.dr-note { font-size: .78rem; text-align: center; color: var(--ink-soft); margin-top: .6rem; }
.dr-empty { padding: 2.4rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dr-empty-art { position: relative; width: 150px; height: 150px; border-radius: 50%; background: var(--atta-2); display: grid; place-items: center; margin-bottom: 1.4rem; }
.dr-empty-art img { width: 92px; animation: wobble 4s ease-in-out infinite; }
.dr-empty-art .hand { position: absolute; bottom: -10px; right: -26px; color: var(--plum); font-size: 1rem; transform: rotate(-8deg); }
@keyframes wobble { 50% { transform: rotate(-6deg) translateY(-3px); } }
.dr-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: .4rem; }
.dr-empty p { color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.4rem; font-size: .95rem; }
.dr-picks { width: 100%; margin-top: 2rem; text-align: left; }
.dr-picks-h { font-family: var(--hand); color: var(--plum); font-size: 1.1rem; display: block; margin-bottom: .4rem; }
.dr-pick { display: grid; grid-template-columns: 54px 1fr auto; gap: .8rem; align-items: center; padding: .6rem 0; border-top: 1px dashed rgba(43, 19, 32, .15); }
.dr-pick img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.dr-pick b { display: block; font-family: var(--serif); font-weight: 400; font-size: .98rem; }
.dr-pick span { font-size: .85rem; font-weight: 700; }
.dr-pick s { font-weight: 400; color: #9C8F8A; margin-left: .3rem; }
.dr-pick-add { width: 36px; height: 36px; border-radius: 10px; background: var(--plum); color: var(--atta); font-size: 1.3rem; }

/* ---------------- login ---------------- */
.login { position: fixed; inset: 0; z-index: 8600; display: grid; place-items: center; padding: 1rem; visibility: hidden; }
.login.open { visibility: visible; }
.login-bg { position: absolute; inset: 0; background: rgba(43, 19, 32, .6); opacity: 0; transition: opacity .4s; }
.login.open .login-bg { opacity: 1; }
.login-card { position: relative; width: min(470px, 100%); aspect-ratio: 470 / 640; max-height: 94vh; border-radius: 26px; overflow: hidden; background: #2b2b2b; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .6s var(--ease), opacity .35s; display: flex; flex-direction: column; justify-content: flex-end; }
.login.open .login-card { transform: none; opacity: 1; }
.login-photo { position: absolute; inset: 0; }
.login-photo img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.06); transition: transform 6s ease-out; }
.login.open .login-photo img:first-child { transform: scale(1); }
.login-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%); }
.login-logo { position: absolute; top: 1.2rem; left: 1.3rem; width: 110px; z-index: 1; }
.login-x { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s var(--ease); }
.login-x:hover { transform: rotate(90deg); }
.login-sheet { position: relative; margin: 0 1rem 1.6rem; background: #fff; border-radius: 18px; padding: 1.6rem 1.3rem 1.3rem; text-align: center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.lg-step .hand { color: var(--plum); font-size: 1.05rem; }
.lg-step h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin-bottom: .3rem; }
.lg-sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.1rem; }
.lg-phone { display: flex; align-items: stretch; border: 1.5px solid #0F4B37; border-radius: 12px; overflow: hidden; }
.lg-cc { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .9rem; border-right: 1px solid rgba(43, 19, 32, .15); font-size: 1.1rem; color: #444; }
.flag { width: 22px; height: 15px; border-radius: 2px; background: linear-gradient(#FF9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); position: relative; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; border: 1px solid #000080; }
.lg-phone input { flex: 1; min-width: 0; border: 0; outline: none; padding: 1rem .8rem; font-size: 1.05rem; letter-spacing: .03em; }
.lg-phone button { background: #0F4B37; color: #fff; font-weight: 700; padding: 0 1.3rem; font-size: 1.02rem; transition: background .25s; }
.lg-phone button:hover { background: var(--plum); }
.lg-err { color: var(--terra); font-size: .84rem; min-height: 1.2em; margin-top: .4rem; }
.lg-terms { font-size: .8rem; color: #666; }
.lg-terms a { text-decoration: underline; font-weight: 600; }
.otp-boxes { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.otp-boxes input { width: 46px; height: 54px; border: 1.5px solid rgba(43, 19, 32, .25); border-radius: 10px; text-align: center; font-size: 1.4rem; font-weight: 700; outline: none; transition: border-color .2s, box-shadow .2s; }
.otp-boxes input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(140, 55, 79, .15); }
.lg-verify { width: 100%; justify-content: center; }
.lg-link { color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lg-link:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }
.lg-resend { font-size: .85rem; color: var(--ink-soft); }
.lg-wheel { width: 64px; margin: 0 auto .8rem; animation: spin 12s linear infinite; }
.lg-done .btn { margin-top: .2rem; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .q-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: minmax(240px, calc((100% - 2.4rem) / 3)); }
}
@media (max-width: 900px) {
  .ctabs { justify-content: flex-start; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-strip { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; }
  .rail-btn.prev { left: 4px; } .rail-btn.next { right: 4px; }
  .rail { grid-auto-columns: 72%; }
  .v-rail { grid-auto-columns: 86%; }
  .badges-row svg { height: 84px; }
}
@media (max-width: 560px) {
  .q-grid { grid-template-columns: 1fr; }
  .q-card { min-height: 0; }
  .pc-add { padding: 0 .9rem; font-size: .92rem; height: 42px; }
  .pc-name { font-size: .96rem; }
  .pc-price b { font-size: 1.12rem; }
  .pc-coupon { font-size: .72rem; }
  .ctab { padding: .3rem .6rem .7rem; font-size: .84rem; }
  .ctab .ct-ring { width: 62px; height: 62px; }
  .ctab img { width: 46px; height: 46px; }
  .otp-boxes input { width: 40px; height: 50px; }
  .values { min-height: 0; }
}

.popup-body .form-msg:empty { display: none; }
