/* =========================================================
   Riwo Imports — storefront styles (mobile-first)
   ========================================================= */
:root {
  --green: #0A8F08;
  --green-600: #087C07;
  --green-700: #066105;
  --green-50: #EEF8EC;
  --green-100: #DCF1D8;
  --orange: #E8561B;
  --orange-50: #FFF1EA;
  --rust: #B1340A;
  --ink: #14241A;
  --ink-2: #33443A;
  --muted: #5E6E63;
  --line: #E3E9E0;
  --bg: #F6F8F4;
  --card: #FFFFFF;
  --red: #C62828;
  --amber: #B7791F;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 36, 26, .05), 0 4px 16px rgba(20, 36, 26, .06);
  --shadow-lg: 0 10px 40px rgba(20, 36, 26, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font);
  --header-h: 64px;
  --bottom-nav-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(10, 143, 8, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.green { color: var(--green) !important; }
.orange { color: var(--orange) !important; }
.danger { color: var(--red) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green-700); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-50); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-ghost-light.on .icon { fill: #fff; }
.btn-link { background: none; color: var(--green-600); padding: 8px 6px; min-height: 36px; }
.btn-link:hover { text-decoration: underline !important; }
.btn-muted { background: #EEF1EC; color: var(--muted); cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.grow { flex: 1; }
.btn-stack { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--green-700); color: #fff; font-size: .82rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; text-align: center; }
.announce .icon { width: 16px; height: 16px; color: #FFD27A; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; min-height: var(--header-h); }
.logo img { height: 46px; width: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--green-50); }
.icon-btn .icon { width: 24px; height: 24px; }

.search { grid-column: 1 / -1; grid-row: 2; display: flex; margin-bottom: 10px; position: relative; }
.search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 0 52px 0 18px; font: inherit; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--green); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button .icon { width: 18px; height: 18px; }

.header-actions { display: flex; justify-content: flex-end; gap: 2px; }
.action { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; color: var(--ink); font-size: .88rem; font-weight: 500; }
.action:hover { background: var(--green-50); text-decoration: none; }
.action .icon { width: 23px; height: 23px; }
.action-label { display: none; }
.count {
  position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

.cat-nav { border-top: 1px solid var(--line); display: none; }
.cat-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { padding: 11px 12px; font-size: .9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--green-700); text-decoration: none; }
.cat-nav a.active { color: var(--green-700); border-color: var(--green); }
.cat-nav a.highlight { margin-left: auto; color: var(--orange); font-weight: 600; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 12, .45); z-index: 60; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; z-index: 61;
  transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 44px; width: auto; }
.drawer-body { overflow-y: auto; padding: 8px 8px 24px; }
.drawer-body a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.drawer-body a:hover { background: var(--green-50); text-decoration: none; }
.drawer-body a.sub { padding-left: 16px; font-weight: 400; color: var(--ink-2); }
.drawer-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 16px 12px 4px; font-weight: 600; }
.drawer-hello { padding: 8px 12px; margin: 0; }
body.drawer-open { overflow: hidden; }

/* ---------- Alerts / toast ---------- */
.flash-wrap { max-width: 1240px; margin: 12px auto 0; padding: 0 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 12px; font-size: .93rem; border: 1px solid; display: flex; gap: 8px; align-items: center; }
.alert-success { background: #ECF8EA; border-color: #BFE5B9; color: #135F12; }
.alert-error { background: #FDECEC; border-color: #F5C2C2; color: #8E1B1B; }
.alert-info { background: #EEF5FF; border-color: #C9DCF7; color: #1D4A85; }
.alert-warn { background: #FFF6E5; border-color: #F5D9A3; color: #7A4B00; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; z-index: 80;
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: #E2F5DF; color: #11650F; }
.badge-amber { background: #FFF1D6; color: #8A5300; }
.badge-red { background: #FDE5E5; color: #A11F1F; }
.badge-blue { background: #E3EEFF; color: #1F4F99; }
.badge-purple { background: #EFE7FF; color: #5A2EA6; }
.badge-grey { background: #EDF0EC; color: #4C5A51; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h2 { font-size: 1.1rem; }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-700); touch-action: pan-y; }
.hero-track { position: relative; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide.theme-green { background-color: var(--green); }
.hero-slide.theme-orange { background-color: var(--orange); }
.hero-slide.theme-dark { background-color: #12301A; }
.hero-slide.theme-cream { background-color: #FFF4E6; color: var(--ink); }
.hero-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 28px; padding-bottom: 76px; }
.hero-copy { max-width: 560px; }
.hero-copy .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.theme-cream .hero-copy .eyebrow { background: var(--green-50); color: var(--green-700); }
.hero-copy h2 { color: inherit; font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; margin: 12px 0 10px; }
.hero-copy p { font-size: clamp(.95rem, .9rem + .3vw, 1.12rem); opacity: .92; margin-bottom: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-slide .is-active .hero-copy > * { animation: rise .6s both; }
.hero-slide.is-active .hero-copy > * { animation: rise .6s both; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-product { animation: pop .7s .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }

.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--green-50); color: var(--green-700); }

.hero-product {
  position: relative; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); max-width: 380px; text-decoration: none !important;
}
.hero-product img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }
.hp-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-name { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.hp-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-700); }
.hp-price s { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.hp-dep { font-size: .78rem; color: var(--orange); font-weight: 600; }
.hp-off { position: absolute; top: -10px; right: -10px; background: var(--orange); color: #fff; font-weight: 800; font-size: .82rem; padding: 6px 9px; border-radius: 999px; box-shadow: var(--shadow); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.18); color: #fff; display: none; place-items: center; cursor: pointer; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.32); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-selected="true"] { width: 28px; background: #fff; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -26px; position: relative; z-index: 5; }
.trust-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.trust-item > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--green-50); color: var(--green); }
.trust-item b { display: block; font-size: .86rem; }
.trust-item span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; }

/* ---------- Sections ---------- */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-head h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.link-more .icon { width: 16px; height: 16px; }
.page { padding-top: 18px; padding-bottom: 40px; }
.page.narrow, .container.narrow { max-width: 520px; }
.page-head { margin-bottom: 16px; }
.page-head h1 { margin-bottom: 2px; }
.page-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span { opacity: .6; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-tile img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cat-tile b { display: block; font-size: .88rem; line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .76rem; }

/* ---------- Product grid + card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pc-media { position: relative; aspect-ratio: 1; background: #F1F4EF; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font-weight: 700; font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.pc-badge.lg { font-size: .9rem; padding: 6px 12px; top: 16px; left: 16px; }
.wish-btn {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.95); color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s, color .15s;
}
.wish-btn .icon { width: 19px; height: 19px; }
.wish-btn:hover { color: var(--orange); transform: scale(1.06); }
.wish-btn.on { color: var(--orange); }
.wish-btn.on .icon, .wish-text.on .icon, .wish-pill.on .icon { fill: currentColor; }
.wish-btn.lg { width: 48px; height: 48px; top: 16px; right: 16px; }
.wish-btn.lg .icon { width: 24px; height: 24px; }
.wish-btn.pulse, .wish-pill.pulse, .wish-text.pulse { animation: pulse .35s; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-origin { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.pc-origin .icon { width: 13px; height: 13px; }
.pc-title { font-family: var(--font); font-size: .9rem; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-title a { color: var(--ink); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--green-700); font-size: 1.05rem; }
.price.xl { font-size: 2rem; }
.old-price { color: var(--muted); font-size: .8rem; }
.pc-install { font-size: .76rem; color: var(--orange); margin: 0; }
.pc-body .btn { margin-top: auto; }
.pc-body .pc-install + .btn, .pc-body .price-row + .btn { margin-top: 8px; }

/* ---------- Installment band ---------- */
.install-band { display: grid; gap: 22px; background: linear-gradient(135deg, #FFF4EC, #FFE5D6); border-radius: 20px; padding: 24px 18px; }
.ib-copy h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.ib-copy p { color: var(--ink-2); }
.ib-copy .eyebrow { background: #fff; color: var(--orange); margin-bottom: 10px; }
.ib-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ib-steps li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.75); border-radius: 14px; padding: 12px; }
.ib-steps li > span { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 800; font-family: var(--font-head); }
.ib-steps b { display: block; }
.ib-steps small { color: var(--ink-2); }

/* ---------- Shop ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.shop-head h1 { margin: 0; }
.shop-head p { margin: 0; }
.shop-layout { display: grid; gap: 16px; }
.filters { display: none; }
.filters.open { display: block; }
.filter-form { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .88rem; }
.field-row { display: flex; gap: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=url], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,143,8,.12); }
input:disabled { background: #F2F4F1; color: var(--muted); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty > .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-bottom: 10px; }
.empty.sm { padding: 28px 16px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--green); color: #fff; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 20px; }
.pdp-media { position: relative; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-info h1 { margin: 6px 0 8px; }
.lead { color: var(--ink-2); font-size: 1.02rem; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 10px 0 14px; }
.pdp-price .market { color: var(--muted); font-size: .9rem; }
.pdp-price .save { background: var(--orange-50); color: var(--rust); font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: 999px; }
.install-card { display: flex; gap: 12px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.install-card p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }
.ic-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; }
.stock { font-weight: 600; color: var(--green-700); display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.stock.low { color: var(--orange); }
.stock.out { color: var(--red); }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.pdp-buy .qty { flex: 0 0 auto; }
.pdp-buy .btn-primary { flex: 1 1 180px; }
.pdp-buy .btn-outline { flex: 1 1 120px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.qty button:hover { color: var(--green); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 44px; min-height: 0; height: 100%; border: 0; text-align: center; padding: 0; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty.sm { height: 40px; }
.qty.sm button { width: 36px; }
.qty.sm input { width: 36px; }
.pdp-perks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.pdp-perks li { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.pdp-perks .icon { color: var(--green); }
.pdp-desc { margin-top: 24px; }
.prose { color: var(--ink-2); }

/* ---------- Cart ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 16px; align-items: start; }
.cart-list { padding: 4px 16px; }
.cart-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-img img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.cart-info { display: flex; flex-direction: column; gap: 2px; }
.cart-name { color: var(--ink); font-weight: 600; }
.cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cart-line { grid-column: 2; font-family: var(--font-head); font-weight: 700; }
.summary h2 { margin-bottom: 12px; }
.summary.sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .94rem; }
.sum-row.discount { color: var(--green-700); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.08rem; font-weight: 700; font-family: var(--font-head); }
.sum-row.paynow { font-weight: 700; color: var(--orange); }
.install-note { display: flex; gap: 8px; align-items: flex-start; background: var(--green-50); border-radius: 10px; padding: 10px 12px; font-size: .86rem; margin: 10px 0 14px; }
.install-note .icon { color: var(--green); }
.install-note.muted { background: #F3F5F2; }
.summary .btn-lg { margin-top: 8px; }

/* ---------- Checkout ---------- */
.checkout-main { display: grid; gap: 16px; }
.step h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.grid-2 { display: grid; gap: 0 14px; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #BFD8BA; }
.option:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.opt-body { flex: 1; display: flex; flex-direction: column; }
.opt-body small { color: var(--muted); font-size: .82rem; }
.opt-price { font-weight: 700; white-space: nowrap; }
.pay-now-field { margin-top: 14px; }
.sum-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.sum-items li, .od-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.sum-items img, .od-items img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.sum-items small, .od-items small { color: var(--muted); display: block; }
.promo-box { display: flex; gap: 8px; margin: 6px 0 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: center; }
.promo-box input { min-height: 40px; text-transform: uppercase; }
.promo-applied { display: flex; align-items: center; gap: 8px; color: var(--green-700); font-size: .92rem; }

/* ---------- Auth / misc pages ---------- */
.auth-card { padding: 26px 22px; }
.auth-card form { margin: 18px 0; }
.test-pay { text-align: center; padding: 28px 22px; }
.test-pay h1 { margin-top: 14px; }
.howto-hero { text-align: center; max-width: 640px; margin: 12px auto 28px; }
.howto-hero p { color: var(--ink-2); font-size: 1.05rem; }
.howto-hero h1 { margin-top: 12px; }
.howto-grid { display: grid; gap: 12px; }
.howto-step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 8px; font-family: var(--font-head); }
.howto-step p { color: var(--ink-2); margin: 0; font-size: .92rem; }
.example { margin-top: 20px; }
.example-list { list-style: none; padding: 0; margin: 0 0 12px; }
.example-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }

/* ---------- Tables ---------- */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: #FAFBF9; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Account ---------- */
.account-layout { display: grid; gap: 16px; align-items: start; }
.account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); white-space: nowrap; font-weight: 500; font-size: .9rem; box-shadow: var(--shadow); }
.account-nav a:hover { text-decoration: none; color: var(--green-700); }
.account-nav a.active { background: var(--green); color: #fff; }
.account-nav .icon { width: 18px; height: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.stat { padding: 14px; }
.stat span { display: block; color: var(--muted); font-size: .8rem; }
.stat b { font-family: var(--font-head); font-size: 1.25rem; }
.stat.warn b { color: var(--orange); }
.order-list { display: grid; gap: 10px; margin-bottom: 26px; }
.order-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); color: var(--ink); }
.order-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.order-card > img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.oc-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.oc-top { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.oc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-amounts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--ink-2); }
.oc-amounts .bal { color: var(--orange); }
.oc-chev { color: var(--muted); }
.progress { height: 8px; background: #EBEFEA; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #34B832); border-radius: 999px; transition: width .6s; }
.progress.lg { height: 12px; margin: 14px 0 6px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 500; font-size: .88rem; white-space: nowrap; border: 1.5px solid var(--line); }
.tabs a.active { border-color: var(--green); color: var(--green-700); background: var(--green-50); }
.tabs a:hover { text-decoration: none; }
.order-detail { display: grid; gap: 16px; align-items: start; }
.od-main, .od-side { display: grid; gap: 16px; }
.pp-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-figures span { display: block; font-size: .78rem; color: var(--muted); }
.pp-figures b { font-family: var(--font-head); font-size: clamp(1rem, .9rem + .6vw, 1.3rem); }
.pay-form { margin-top: 16px; display: grid; gap: 8px; }
.pay-form label { font-weight: 600; font-size: .9rem; }
.pay-row { display: flex; gap: 8px; }
.pay-row input { flex: 1; font-weight: 600; font-size: 1.05rem; }
.quick-amts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; font-weight: 500; }
.chip:hover { border-color: var(--green); color: var(--green-700); }
.bank { margin-top: 14px; background: #FAFBF9; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.bank summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.bank p { margin: 8px 0 0; }
.od-items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.pay-log { list-style: none; margin: 0; padding: 0; }
.pay-log li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pay-log li:last-child { border-bottom: 0; }
.pay-log small { display: block; color: var(--muted); font-size: .78rem; word-break: break-all; }
.pay-log li.failed b { color: var(--muted); text-decoration: line-through; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--green-100); }
.timeline li { position: relative; padding: 0 0 14px 6px; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff; }
.timeline small { display: block; color: var(--muted); font-size: .76rem; }
.form-card { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #0F2415; color: #C9D6CC; margin-top: 48px; padding: 36px 0 16px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 6px 10px; height: auto; margin-bottom: 10px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer a, .site-footer span { display: flex; align-items: center; gap: 8px; color: #C9D6CC; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 14px; font-size: .8rem; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff;
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(0,0,0,.05);
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 500; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a.active { color: var(--green); }
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #fff; font-size: .65rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .howto-grid { grid-template-columns: 1fr 1fr; }
  .hero-product { max-width: 420px; }
  .hero-product img { width: 110px; height: 110px; }
  .cart-row { grid-template-columns: 90px 1fr auto; align-items: center; }
  .cart-img img { width: 90px; height: 90px; }
  .cart-line { grid-column: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .bottom-nav, .menu-toggle, .filter-toggle { display: none; }
  .toast { bottom: 24px; }
  .header-row { grid-template-columns: auto 1fr auto; gap: 24px; min-height: 76px; }
  .logo img { height: 56px; }
  .search { grid-column: auto; grid-row: auto; margin: 0; max-width: 560px; width: 100%; justify-self: center; }
  .action { flex-direction: column; gap: 2px; padding: 6px 12px; font-size: .78rem; }
  .action-label { display: block; color: var(--ink-2); }
  .count { left: auto; right: 6px; top: 0; }
  .cat-nav { display: block; }
  .hero-track { min-height: 480px; }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 40px; }
  .hero-product { flex-direction: column; align-items: stretch; width: 340px; padding: 14px; border-radius: 24px; flex-shrink: 0; margin-right: 40px; }
  .hero-product img { width: 100%; height: 260px; border-radius: 16px; }
  .hp-info { padding: 6px 4px 2px; }
  .hp-name { font-size: 1rem; }
  .hp-price { font-size: 1.3rem; }
  .hero-arrow { display: grid; }
  .hero-dots { bottom: 46px; }
  .hero-inner { padding-bottom: 60px; }
  .trust { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -30px; }
  .trust-item { padding: 16px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .cat-tile { flex-direction: column; text-align: center; padding: 14px 10px; }
  .cat-tile img { width: 88px; height: 88px; border-radius: 50%; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .shop-layout { grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
  .shop-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { display: block; position: sticky; top: 140px; }
  .install-band { grid-template-columns: 1fr 1fr; padding: 36px; gap: 36px; align-items: center; }
  .pdp { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .pdp-media { position: sticky; top: 140px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 360px; gap: 24px; }
  .account-layout { grid-template-columns: 230px 1fr; gap: 28px; }
  .account-nav { flex-direction: column; margin: 0; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 140px; }
  .account-nav a { box-shadow: none; border-radius: 10px; }
  .order-detail { grid-template-columns: 1fr 300px; }
  .howto-grid { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 22px; }
}

@media (min-width: 1100px) {
  .shop-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-track { min-height: 520px; }
}

/* Mobile tables become stacked cards */
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; }
  .table .num { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
