/* D Foods Market: bright, colour-blocked grocery store. Font: Instrument Sans. */
:root {
  --blue: #1B4DB1; --blue-dark: #123A8A; --blue-soft: #E8EEFB;
  --yellow: #FFE14D; --sun: #FFC21A; --sun-soft: #FFF6D1;
  --red: #E8343F; --red-soft: #FDE7E8;
  --green: #22974A; --green-soft: #E3F4E8;
  --orange: #F26A1B; --pink: #D61F84;
  --ink: #111820; --text: #2A3140; --muted: #6A7283; --line: #E6E8EF;
  --bg: #F6F7FB; --white: #fff;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 32, .05), 0 6px 20px rgba(17, 24, 32, .05);
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1, .h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: .95em; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn-gold { background: var(--yellow); color: var(--ink); }
.btn-gold:hover { background: var(--sun); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--text); }
.pill-green { background: var(--green-soft); color: #136330; }
.pill-red { background: var(--red-soft); color: #A3141D; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--red); color: #fff; }
.badge-local { left: auto; right: 10px; background: var(--ink); }
.badge-lg { position: static; font-size: 13px; }

/* Flash */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; background: var(--blue-soft); color: var(--blue-dark); font-weight: 500; }
.flash-ok { background: var(--green-soft); color: #136330; }
.flash-err { background: var(--red-soft); color: #A3141D; }

/* Top bar */
.topbar { background: var(--blue); color: #fff; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar-msg { margin: 0; }
.topbar-msg a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: #fff; text-decoration: none; opacity: .92; }
.topbar-links a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.locale-btn { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (max-width: 520px) { .topbar { font-size: 12px; } .topbar-links { gap: 10px; } }
.locale-btn:hover { background: rgba(255,255,255,.24); }

/* Header */
.header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.logo-word small { font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--blue); margin-top: 3px; }
.logo-light { color: #fff; }
.logo-light .logo-word small { color: var(--yellow); }
.search { flex: 1; display: flex; max-width: 640px; background: var(--bg); border-radius: 999px; padding: 4px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 9px 16px; outline: none; min-width: 0; }
.search button { background: var(--blue); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: var(--blue-dark); }
.header-actions { display: flex; gap: 6px; margin-left: auto; }
.hact { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; position: relative; }
.hact:hover { background: var(--bg); color: var(--ink); }
.cart-link { background: var(--yellow); }
.cart-link:hover { background: var(--sun); }
.cart-count { position: absolute; top: 0; left: 26px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-btn { display: none; }
.catnav { border-top: 1px solid var(--line); }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 20px; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; }
.catnav a:hover { background: var(--bg); color: var(--ink); }
.catnav .catnav-deal { background: var(--red); color: #fff; font-weight: 700; }
.catnav .catnav-deal:hover { background: #c92833; color: #fff; }
.catnav .catnav-ws { color: var(--blue); font-weight: 700; }
@media (max-width: 860px) {
  .header-in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-btn { display: inline-block; }
  .catnav { display: none; }
  .catnav.open { display: block; }
  .catnav.open .catnav-in { flex-direction: column; }
}

/* Hero */
.hero { padding: 22px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 18px; }
.hero-main { background: var(--blue); color: #fff; border-radius: 28px; padding: clamp(26px, 4vw, 48px); position: relative; overflow: hidden; min-height: 400px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; }
.hero-main::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.07); right: -140px; top: -160px; }
.hero-main::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--yellow); right: 90px; bottom: -150px; }
.hero-main h1 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; }
.hero-main h1 em { font-style: normal; color: var(--yellow); }
.hero-main p { font-size: 17px; opacity: .92; max-width: 440px; }
.hero-main .eyebrow { color: var(--yellow); }
.hero-copy { position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; z-index: 1; height: 330px; }
.hero-art img { position: absolute; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hero-art .a0 { left: 4%; top: 6%; transform: rotate(-7deg); width: 52%; }
.hero-art .a1 { right: 2%; top: 0; transform: rotate(6deg); }
.hero-art .a2 { left: 26%; bottom: 0; transform: rotate(2deg); width: 44%; }
.hero-art .sticker { position: absolute; right: 2%; bottom: 10%; background: var(--red); color: #fff; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: 13px; line-height: 1.15; transform: rotate(-10deg); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.hero-art .sticker b { display: block; font-size: 22px; }
.hero-side { display: grid; gap: 18px; }
.tile { border-radius: 28px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; min-height: 190px; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); color: var(--ink); }
.tile h2 { font-size: 25px; max-width: 70%; letter-spacing: -.02em; }
.tile-yellow { background: var(--yellow); }
.tile-red { background: var(--red); color: #fff; }
.tile-red h2, .tile-red:hover { color: #fff; }
.tile-green { background: var(--green); color: #fff; }
.tile-green h2, .tile-green:hover { color: #fff; }
.tile-blue { background: var(--blue); color: #fff; }
.tile-blue h2, .tile-blue:hover { color: #fff; }
.tile img { position: absolute; right: -10px; bottom: -14px; width: 46%; transform: rotate(-8deg); border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.tile-link { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .hero-main { grid-template-columns: 1fr; } .hero-art { height: 240px; } .hero-side { grid-template-columns: 1fr; } .tile h2 { font-size: 22px; } }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 6px; }
.perk { background: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.perk-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.perk strong { display: block; color: var(--ink); font-size: 14.5px; }
.perk span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 28px 0 8px; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.row-head h2 { margin: 0; font-size: 26px; }
.row-head p { margin: 4px 0 0; }
.row-tools { display: flex; gap: 8px; align-items: center; }
.see-all { font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: #fff; }
.see-all:hover { background: var(--blue-soft); }
.scroll-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); }
.scroll-btn:hover { background: var(--yellow); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 720px) { .rail { grid-auto-columns: 46%; } }
.row-section { padding: 26px 0 6px; }

/* Category circles */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat { text-decoration: none; color: var(--ink); text-align: center; font-weight: 600; font-size: 14px; line-height: 1.25; }
.cat-ic { width: 100%; max-width: 116px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; position: relative; overflow: hidden; }
.cat-ic img { width: 78%; height: 78%; object-fit: contain; border-radius: 50%; background: #fff; }
.cat:hover .cat-ic { transform: translateY(-4px) scale(1.03); }
.cat:hover { color: var(--blue); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); } }

/* Promo banners */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo { border-radius: 24px; padding: 24px; min-height: 230px; color: #fff; text-decoration: none; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.promo h3 { color: inherit; font-size: 24px; max-width: 60%; position: relative; z-index: 1; letter-spacing: -.02em; }
.promo p { max-width: 58%; position: relative; z-index: 1; font-size: 14px; opacity: .92; }
.promo .btn { align-self: flex-start; }
.promo img { position: absolute; right: -14px; bottom: -18px; width: 38%; border-radius: 18px; transform: rotate(-6deg); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.promo-red { background: var(--red); }
.promo-blue { background: var(--blue); }
.promo-yellow { background: var(--yellow); color: var(--ink); }
.promo:hover { color: inherit; }
.promo-yellow:hover { color: var(--ink); }
@media (max-width: 900px) { .promos { grid-template-columns: 1fr; } }

/* Product card */
.card { background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(17,24,32,.1); transform: translateY(-2px); }
.card-img { display: block; position: relative; margin: 8px; border-radius: 14px; background: #F2F4F8; overflow: hidden; aspect-ratio: 1; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 4px 14px 0; flex: 1; }
.card-brand { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 3px; }
.card-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-pack { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.card-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--ink); font-size: 17px; }
.was { color: var(--muted); font-size: 13px; }
.card-ws { font-size: 12px; font-weight: 600; color: var(--green); margin: 4px 0 0; }
.card-ws span { color: var(--muted); font-weight: 500; }
.card-add { padding: 12px 14px 14px; position: relative; z-index: 1; }
.add-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 12px; background: var(--blue-soft); color: var(--blue); font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.add-btn:hover { background: var(--blue); color: #fff; }
.add-btn.added { background: var(--green); color: #fff; }

/* Listing */
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.crumbs a { color: var(--muted); }
.listing-head { background: #fff; border-radius: 24px; padding: 24px 28px; margin: 6px 0 18px; display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.listing-head h1 { margin: 0; font-size: 32px; }
.listing-head p { margin: 6px 0 0; }
.listing { padding-bottom: 20px; }
.listing-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.filters ul { list-style: none; padding: 0; margin: 0 0 16px; }
.filters h2 { margin-top: 14px; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; position: sticky; top: 140px; }
.filters h2 { font-size: 15px; margin: 0 0 10px; }
.filters a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.filters a:hover, .filters a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.filters summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { margin: 0; }
.sort select { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; width: auto; }
.count { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0; }
.pager a, .pager span { padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.pager [aria-current] { background: var(--blue); color: #fff; }
.empty { background: #fff; border-radius: 24px; padding: 48px 24px; text-align: center; }
@media (max-width: 860px) { .listing-grid { grid-template-columns: 1fr; } .filters { position: static; } }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; margin: 8px 0 30px; align-items: start; }
.pdp-media .badge { top: 22px; left: 22px; font-size: 14px; padding: 6px 12px; }
.pdp-media { background: #fff; border-radius: 28px; padding: 30px; position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.pdp-media img { width: 86%; height: 86%; object-fit: contain; }
.pdp-info { background: #fff; border-radius: 28px; padding: 28px; }
.pdp-info h1 { font-size: 30px; }
.pdp-price { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 14px 0; }
.price-lg { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.qty { display: inline-flex; align-items: center; background: var(--bg); border-radius: 999px; padding: 4px; }
.qty button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty input[type=number] { width: 56px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 16px; padding: 6px 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tiers { background: var(--green-soft); border-radius: 16px; padding: 16px; margin: 16px 0; }
.tiers h2 { font-size: 15px; color: #136330; }
.tiers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ws-box table { width: 100%; }
.tiers td, .tiers th { padding: 6px 0; text-align: left; border-bottom: 1px solid rgba(19, 99, 48, .12); }
.desc { color: var(--text); }
.secure { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* Panels and forms */
.panel { background: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.page-title { margin: 24px 0 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search]:not(#q), input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
.fields { display: grid; gap: 0 14px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: span 2; }
.field-err { color: #A3141D; font-size: 13px; margin: 4px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
@media (max-width: 620px) { .fields.two { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* Cart and checkout */
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; margin-bottom: 32px; }
.cart-lines { background: #fff; border-radius: var(--radius); padding: 6px 20px; }
.line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 84px; object-fit: contain; background: #F2F4F8; border-radius: 12px; padding: 6px; mix-blend-mode: multiply; }
.line-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.line-qty input { width: 70px; text-align: center; }
.line-price { font-weight: 700; color: var(--ink); text-align: right; min-width: 90px; }
.summary { background: #fff; border-radius: var(--radius); padding: 22px; position: sticky; top: 140px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; color: var(--ink); border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: 6px; }
.ship-opt, .pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; margin: 8px 0; cursor: pointer; font-weight: 500; }
.ship-opt:has(input:checked), .pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.ship-opt input, .pay-opt input { width: auto; margin-top: 4px; accent-color: var(--blue); }
.ship-text, .pay-opt span { flex: 1; }
.ship-price { font-weight: 700; color: var(--ink); }
.ship-note { font-size: 13px; color: var(--muted); }
.pay-options { margin-top: 6px; }
.is-disabled { opacity: .5; }
@media (max-width: 960px) { .cart-grid, .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) { .line { grid-template-columns: 64px 1fr; } .line img { width: 64px; height: 64px; } .line-qty, .line-price { grid-column: 2; text-align: left; } }

/* Order */
.order-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin: 24px 0 16px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg); color: var(--text); }
.status-paid, .status-delivered, .status-processing { background: var(--green-soft); color: #136330; }
.status-shipped { background: var(--blue-soft); color: var(--blue-dark); }
.status-pending { background: var(--sun-soft); color: #7A5600; }
.status-failed, .status-cancelled { background: var(--red-soft); color: #A3141D; }
.steps { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.steps li { list-style: none; flex: 1; min-width: 90px; text-align: center; font-size: 13px; padding: 10px 6px; border-radius: 12px; background: var(--bg); color: var(--muted); font-weight: 600; }
.steps li.done { background: var(--blue); color: #fff; }
.steps { padding: 0; }
.track-box { border: 2px solid var(--blue-soft); }
.addr { white-space: pre-line; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 16px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }

/* Auth */
.auth { display: grid; place-items: center; padding: 40px 16px 60px; }
.auth-card { background: #fff; border-radius: 28px; padding: 32px; width: 100%; max-width: 460px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 640px; }
.auth-card .btn { width: 100%; margin-top: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); border-radius: 18px; padding: 5px; margin: 10px 0; border: 0; }
.seg label { margin: 0; padding: 12px 14px; border-radius: 14px; cursor: pointer; }
.seg small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.seg label:has(input:checked) { background: #fff; box-shadow: var(--shadow); color: var(--blue); }
.seg input { position: absolute; opacity: 0; }

/* Wholesale */
.ws-hero { background: var(--ink); color: #fff; border-radius: 28px; margin: 22px 0; overflow: hidden; position: relative; }
.ws-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--yellow); right: -90px; top: -90px; }
.ws-hero-in { padding: clamp(26px, 4vw, 48px); position: relative; z-index: 1; max-width: 720px; }
.ws-hero h1 { color: #fff; }
.ws-hero .eyebrow { color: var(--yellow); }
.ws-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.ws-steps li { background: #fff; border-radius: var(--radius); padding: 18px; }
.ws-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); margin-bottom: 8px; }
.ws-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.ws-box { background: #fff; border-radius: 24px; padding: 24px; }
.ws-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 760px) { .ws-steps, .ws-fields { grid-template-columns: 1fr; } }

/* Static pages */
.prose { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 40px); margin: 24px auto 40px; }
.prose h2 { margin-top: 1.4em; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Brands strip */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands a { background: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brands a:hover { background: var(--yellow); }

/* Wholesale band on home */
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.band .eyebrow { color: var(--yellow); }
.band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.band-stats div { background: rgba(255,255,255,.08); border-radius: 18px; padding: 18px; }
.band-stats b { display: block; font-size: 28px; color: var(--yellow); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: #C9CFDB; margin-top: 50px; padding: 44px 0 26px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer a { display: block; color: #C9CFDB; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--yellow); }
.footer .contact-big { font-size: 22px; font-weight: 700; color: #fff; display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; }
.paylogos span { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 8px; font-weight: 600; color: #fff; font-size: 12px; }
.muted-light { color: #9AA3B4; }
.footer-linkbtn { color: #C9CFDB; font-size: 14px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Modal and consent */
.modal { border: 0; border-radius: 24px; padding: 0; width: min(440px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(17,24,32,.5); }
.modal-body { padding: 26px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; z-index: 60; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.consent a { color: var(--yellow); }
.consent-actions { display: flex; gap: 10px; }

/* WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; transform: scale(1.05); }

.status-new, .status-quoted { background: var(--sun-soft); color: #7A5600; }

dl { margin: 0; }
.summary dl > div, .panel dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; color: var(--ink); }
.summary .total dt, .panel .total dt { color: var(--ink); }
.order-head { display: block; text-align: center; }
.order-head .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.ship-text small, .pay-opt small { display: block; color: var(--muted); font-size: 13px; }
.sub { margin-top: 18px; }
.save { background: var(--green-soft); color: #136330; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.ws-box .tiers { background: none; padding: 0; margin: 10px 0; }
.ws-box { background: var(--green-soft); margin: 14px 0; }
.ship-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.filters summary { margin-bottom: 6px; }
fieldset.pay-options { border: 0; padding: 0; margin: 0; min-width: 0; }
