/* Rancho Markets storefront
   One loud element: the yellow flyer shelf tag with condensed red prices.
   Everything else stays quiet: white, green, ink. */
:root {
  --green: #00A859;
  --green-deep: #0B4A2B;
  --yellow: #FFD60A;
  --red: #D62828;
  --ink: #15201A;
  --muted: #5B6B61;
  --line: #DDE5DF;
  --mist: #F1F7F3;
  --white: #FFFFFF;
  --radius-s: 6px;
  --radius-m: 12px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--green-deep); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h2 { font-size: 1.4rem; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: .5rem 1rem; z-index: 10; }
.muted { color: var(--muted); }
.section { padding: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.empty { padding: 2rem; background: var(--mist); border-radius: var(--radius-m); }
.narrow { max-width: 520px; }

/* ---------- Header ---------- */
.site-head { background: var(--green); color: var(--white); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 1.25rem; padding: .75rem 0; }
.logo { display: flex; flex-direction: column; line-height: .9; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark { font-family: var(--display); font-size: 1.9rem; letter-spacing: .01em; }
.logo-sub { font-weight: 700; font-size: .8rem; color: var(--yellow); }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); padding: .7rem .9rem; font: inherit; min-width: 0; }
.search button { border: 0; background: var(--yellow); color: var(--ink); font-weight: 700; padding: 0 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; }
.head-actions { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.head-actions a { color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 700; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.dept-nav { background: var(--green-deep); }
.dept-row { display: flex; gap: 1.5rem; overflow-x: auto; padding: .55rem 0; scrollbar-width: none; }
.dept-row a { color: #D7EBDD; text-decoration: none; white-space: nowrap; font-weight: 500; font-size: .95rem; }
.dept-row a:hover { color: var(--white); }
.dept-row a.hot { color: var(--yellow); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--radius-s); border: 2px solid transparent; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); filter: brightness(.95); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { color: var(--yellow); }
.btn-ghost-dark { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }

/* ---------- Hero: deep green board with taped-up shelf tags ---------- */
.hero { background: var(--green-deep); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 3.5rem 0; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: .005em; max-width: 12ch; }
.hero-sub { font-size: 1.15rem; max-width: 40ch; color: #D7EBDD; }
.hero-dates { font-weight: 700; color: var(--yellow); }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-tags { list-style: none; margin: 0; padding: 0; position: relative; min-height: 340px; }
.hero-tag { position: absolute; width: 230px; }
.hero-tag a { display: block; text-decoration: none; color: var(--ink); }
.hero-tag .tag { box-shadow: 0 10px 0 rgba(0,0,0,.18); }
.hero-tag-name { display: block; background: var(--white); padding: .45rem .75rem; font-weight: 700; border-radius: 0 0 var(--radius-s) var(--radius-s); }
.hero-tag-0 { left: 0; top: 10px; transform: rotate(-4deg); }
.hero-tag-1 { left: 42%; top: 0; transform: rotate(3deg); }
.hero-tag-2 { left: 20%; top: 170px; transform: rotate(-1.5deg); }
.hero-tag a:hover .tag { transform: translateY(-3px); transition: transform .15s; }

/* ---------- Shelf tag (price) ---------- */
.tag { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: .35rem; color: var(--ink); }
.tag .pb { font-family: var(--display); display: inline-flex; align-items: flex-start; line-height: .9; }
.pb-s { font-size: 1.1rem; margin-top: .15rem; }
.pb-d { font-size: 2.4rem; }
.pb-c { font-size: 1.1rem; margin-top: .15rem; }
.tag-unit { font-weight: 700; align-self: flex-end; font-size: .9rem; }
.tag-sale { background: var(--yellow); color: var(--red); padding: .6rem .75rem .55rem; border-radius: var(--radius-s) var(--radius-s) 0 0; position: relative; }
.tag-sale .tag-unit { color: var(--red); }
.tag-multi { font-family: var(--display); font-size: 2.4rem; line-height: .9; display: inline-flex; align-items: flex-end; gap: .2rem; }
.tag-multi small { font-family: var(--body); font-weight: 800; font-size: .85rem; margin-bottom: .2rem; }
.tag-reg, .tag-save, .tag-limit { flex-basis: 100%; font: 600 .78rem/1.3 var(--body); color: var(--ink); }
.tag-save { color: var(--red); font-weight: 800; }
.tag-limit { color: var(--muted); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); overflow: hidden; }
.card-sale { border-color: #F2C200; }
.card-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--mist); text-decoration: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { font-size: 4rem; }
.badge { position: absolute; left: .5rem; top: .5rem; background: var(--red); color: var(--white); font-weight: 700; font-size: .78rem; padding: .2rem .5rem; border-radius: var(--radius-s); }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem; flex: 1; }
.card-sale .card-body .tag-sale { margin: -.85rem -.85rem .25rem; border-radius: 0; }
.card-title { font-size: 1rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-meta { margin: 0; color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.add-form { display: flex; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.qty { width: 4.2rem; padding: .55rem .4rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; text-align: center; }
.btn-add { flex: 1; background: var(--green); color: var(--white); padding: .55rem .6rem; font-size: .92rem; }
.btn-add:hover { background: var(--green-deep); }
.btn-add.done { background: var(--green-deep); }
.out { color: var(--red); font-weight: 700; margin-top: auto; }

/* ---------- Home blocks ---------- */
.promo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.promo { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border-radius: var(--radius-m); background: var(--mist); text-decoration: none; color: var(--ink); border-left: 6px solid var(--green); }
.promo strong { font-size: 1.15rem; }
.promo-code { display: inline-block; font-weight: 700; color: var(--green-deep); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.dept { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); }
.dept:hover { border-color: var(--green); }
.dept-icon { font-size: 2.2rem; }
.dept span:last-child { color: var(--muted); font-size: .88rem; }

/* ---------- Flyer page ---------- */
.flyer-head { background: var(--yellow); padding: 2rem 0; }
.flyer-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); color: var(--red); margin: 0; }
.flyer-head .hero-dates { color: var(--ink); }
.flyer-head .btn-ghost { color: var(--ink); }
.flyer-cover { border-radius: var(--radius-m); margin-bottom: 2rem; }
.flyer-page { margin-top: 2rem; padding-bottom: .4rem; border-bottom: 3px solid var(--yellow); }
.promo-block { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.promo-block-head { margin-bottom: 1rem; }

/* ---------- Product detail ---------- */
.crumbs { font-size: .9rem; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.pdp-img { aspect-ratio: 1; background: var(--mist); border-radius: var(--radius-m); display: grid; place-items: center; overflow: hidden; }
.pdp-img .ph { font-size: 9rem; }
.pdp-info .tag { margin: 1rem 0; max-width: 300px; }
.pdp-info .tag-sale { border-radius: var(--radius-s); }
.pdp-desc { max-width: 60ch; }
.badge-inline { display: inline-block; background: var(--red); color: var(--white); font-weight: 700; padding: .2rem .6rem; border-radius: var(--radius-s); }
.note { background: var(--mist); padding: .75rem 1rem; border-radius: var(--radius-s); font-size: .92rem; }
.add-form-lg { align-items: end; max-width: 380px; }
.add-form-lg label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; }
.add-form-lg .btn-add { padding: .8rem; }

/* ---------- Cart / checkout ---------- */
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cart-table td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct-img { width: 64px; }
.ct-img img, .ct-img .ph { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-s); font-size: 2rem; display: grid; place-items: center; background: var(--mist); }
.ct-name a { font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.ct-name .muted { font-size: .85rem; }
.ct-total { text-align: right; white-space: nowrap; }
.ct-total s { display: block; font-size: .85rem; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; margin: .2rem .25rem 0 0; }
.chip-yellow { background: var(--yellow); color: var(--red); }
.chip-green { background: #D6F1E1; color: var(--green-deep); }
.summary { background: var(--mist); border-radius: var(--radius-m); padding: 1.25rem; position: sticky; top: 130px; }
.summary dl, dl.summary { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0 0 1rem; }
.summary dd { margin: 0; text-align: right; }
.summary .save { color: var(--red); font-weight: 700; }
.summary .total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.summary-inline { max-width: 420px; margin-left: auto; position: static; }
.you-save { background: var(--yellow); color: var(--red); font-weight: 800; text-align: center; padding: .5rem; border-radius: var(--radius-s); }
.coupon { margin: 1rem 0; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.news-row { display: flex; }
.news-row input { flex: 1; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s) 0 0 var(--radius-s); font: inherit; }
.news-row button { border: 0; background: var(--green-deep); color: var(--white); font-weight: 700; padding: 0 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; }
.legend-sub { font-weight: 700; margin: 1rem 0 .25rem; }
.checkout label, .stack label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout select, .checkout textarea,
.stack input:not([type=checkbox]) { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; background: var(--white); }
.checkout label.check, .stack label.check { flex-direction: row; align-items: center; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seg { display: inline-flex; border: 2px solid var(--green); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 1rem; }
.seg label { flex-direction: row !important; margin: 0 !important; padding: .55rem 1rem; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--green); color: var(--white); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--yellow); }
.delivery-only[hidden], [data-delivery][hidden] { display: none; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.pay-method { flex-direction: row !important; align-items: center; gap: .6rem !important; border: 2px solid var(--line); border-radius: var(--radius-s); padding: .75rem; cursor: pointer; margin: 0 !important; }
.pay-method:has(input:checked) { border-color: var(--green); background: var(--mist); }
.pm-logo { width: 34px; height: 22px; border-radius: 4px; display: inline-block; background: var(--line) center/contain no-repeat; flex: none; }
.pm-card { background-color: #1F3B73; }
.pm-apple_pay { background-color: #000; }
.pm-google_pay { background-color: #fff; border: 1px solid var(--line); }
.pm-paypal { background-color: #003087; }
.pm-venmo { background-color: #008CFF; }
.pm-cash_pickup { background-color: var(--green); }

/* ---------- Pay / order ---------- */
.pay { max-width: 640px; }
.pay-total .pb { font-family: var(--display); color: var(--red); display: inline-flex; align-items: flex-start; line-height: .9; }
.pay-total .pb-d { font-size: 4rem; }
.pay-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.pay-switch a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.pay-switch a.on { border-color: var(--green); background: var(--mist); }
.pay-box { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); margin: 1rem 0; }
.pay-box .btn { margin-top: 1rem; }
.order-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1rem 0; }
.order-meta p { display: flex; flex-direction: column; margin: 0; }
.status { font-weight: 700; }
.status-paid, .status-ready, .status-completed { color: var(--green-deep); }
.status-pending_payment, .status-cancelled { color: var(--red); }

/* ---------- Misc ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--radius-s); margin: 1rem 0; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: #D6F1E1; color: var(--green-deep); }
.flash-error { background: #FBE0E0; color: #8A1414; }
.flash-warning { background: #FFF4C2; color: #6B5500; }
.filters { display: flex; gap: 1rem; align-items: center; }
.filters select { padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--radius-s); font-weight: 600; z-index: 20; }

/* ---------- Footer ---------- */
.site-foot { background: var(--green-deep); color: #D7EBDD; margin-top: 3rem; padding: 2.5rem 0 1rem; }
.site-foot a { color: var(--white); display: block; margin-bottom: .35rem; text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 2rem; }
.foot-logo { font-family: var(--display); font-size: 1.8rem; color: var(--white); margin: 0 0 .5rem; }
.foot-h { font-weight: 800; color: var(--yellow); display: block; margin-bottom: .6rem; }
.news input { border-color: transparent; }
.news-row button { background: var(--yellow); color: var(--ink); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .pdp, .cart-layout, .checkout, .foot-grid { grid-template-columns: 1fr; }
  .hero-tags { min-height: 300px; }
  .summary { position: static; }
  .head-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 520px) {
  .hero-tag { width: 180px; }
  .hero-tag-1 { left: 45%; }
  .row2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .add-form { flex-direction: column; }
  .qty { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   eGrowcery-style shopping UX: store bar, carousel, product rows,
   sidebar, steppers, cart drawer, store chooser
   ===================================================================== */
.store-bar { background: var(--white); border-bottom: 1px solid var(--line); font-size: .9rem; }
.store-bar-row { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; }
.store-pick { background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; display: flex; gap: .4rem; align-items: baseline; padding: .2rem 0; }
.sb-mode { color: var(--muted); }
.sb-change { color: var(--green-deep); text-decoration: underline; font-weight: 600; }
.store-bar .lang { color: var(--green-deep); font-weight: 600; }
.head-actions .lang { display: none; }

/* Banner carousel */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 260px; background: var(--bg, var(--green-deep)); color: var(--white); text-decoration: none; display: flex; align-items: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide img + .slide-copy { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.slide-copy { position: relative; padding: 2.5rem 0; }
.slide h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; margin: 0 0 .5rem; max-width: 16ch; }
.slide p { font-size: 1.15rem; margin: 0 0 .4rem; max-width: 45ch; }
.slide:hover { color: var(--white); }
.dots { position: absolute; bottom: .9rem; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: var(--yellow); border-color: var(--yellow); }

/* Department chips under the carousel */
.dept-chips { display: flex; gap: .75rem; overflow-x: auto; padding: 1.25rem 0 .25rem; scrollbar-width: none; }
.dept-chips a { flex: none; display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 108px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; }
.chip-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 2.2rem; border: 2px solid transparent; }
.dept-chips a:hover .chip-icon { border-color: var(--green); }

/* Horizontal product rows */
.row-section { padding: 1.5rem 0 .5rem; }
.row-ctrl { display: flex; align-items: center; gap: .5rem; }
.row-ctrl a { font-weight: 700; margin-right: .5rem; }
.row-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.row-arrow:hover { border-color: var(--green); }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; scrollbar-width: thin; }
.row-track .card { scroll-snap-align: start; }

/* Shop layout with left sidebar */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; padding: 2.5rem 0; }
.side-h { font-weight: 800; margin: 0 0 .5rem; }
.sidebar a { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.sidebar a small { margin-left: auto; color: var(--muted); }
.sidebar a:hover { background: var(--mist); }
.sidebar a.on { background: var(--green); color: var(--white); font-weight: 700; }
.sidebar a.on small { color: var(--white); }
.sidebar a.sale { color: var(--red); font-weight: 700; }

/* Favorite (my list) heart */
.card { position: relative; }
.fav { position: absolute; top: .5rem; right: .5rem; z-index: 1; }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: #C9D3CD; font-size: 1.05rem; cursor: pointer; }
.fav-btn.on { color: var(--red); }

/* + Add / − qty + stepper */
.stepper { margin-top: auto; padding-top: .5rem; }
.st-add { width: 100%; background: var(--green); color: var(--white); border: 0; border-radius: 999px; padding: .6rem; font: 700 .95rem var(--body); cursor: pointer; }
.st-add::before { content: "+ "; }
.st-add:hover { background: var(--green-deep); }
.st-row { display: none; align-items: center; justify-content: space-between; background: var(--green-deep); border-radius: 999px; padding: .2rem; }
.stepper.has-qty .st-add { display: none; }
.stepper.has-qty .st-row { display: flex; }
.st-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.st-btn:hover { background: rgba(255,255,255,.28); }
.st-qty { color: var(--white); font-weight: 800; }
.stepper.busy { opacity: .7; pointer-events: none; }

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--white); z-index: 31; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 24px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.drawer-body { overflow-y: auto; flex: 1; padding: 0 1.25rem; display: flex; flex-direction: column; }
.dl { display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.dl-img img, .dl-img .ph { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-s); background: var(--mist); display: grid; place-items: center; font-size: 1.8rem; }
.dl-info a { font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.dl-info .stepper { max-width: 150px; padding-top: .35rem; }
.dl-info .st-btn { width: 28px; height: 28px; }
.dl-note { display: block; font-size: .8rem; color: var(--muted); font-style: italic; }
.dl-price { text-align: right; }
.dl-price s { display: block; color: var(--muted); font-size: .8rem; }
.drawer-foot { margin-top: auto; position: sticky; bottom: 0; background: var(--white); padding: 1rem 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.dl-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 0; }
.line-note { display: block; width: 100%; margin-top: .35rem; padding: .35rem .5rem; border: 1px dashed var(--line); border-radius: var(--radius-s); font: inherit; font-size: .85rem; }

/* Store chooser dialog */
.store-dialog { border: 0; border-radius: var(--radius-m); padding: 1.5rem; width: min(520px, 94vw); max-height: 90vh; }
.store-dialog::backdrop { background: rgba(11,74,43,.55); }
.store-dialog h2 { margin-top: 0; }
.seg-big { display: flex; width: 100%; }
.seg-big label { flex: 1; justify-content: center; font-weight: 700; display: flex; }
.store-list { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 1rem; max-height: 50vh; overflow: auto; }
.store-opt { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius-s); padding: .75rem; cursor: pointer; }
.store-opt:has(input:checked) { border-color: var(--green); background: var(--mist); }
.store-opt strong { display: block; }
.store-opt small { color: var(--muted); }
.store-opt[hidden] { display: none; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; flex-direction: row; overflow-x: auto; padding: 1rem 0 0; gap: .4rem; }
  .sidebar .side-h { display: none; }
  .sidebar a { flex: none; border: 1px solid var(--line); border-radius: 999px; }
  .sidebar a small { display: none; }
  .row-track { grid-auto-columns: 165px; }
}
