/* ==========================================================================
   Neribo Tech
   Palette:  ink #12141A, body #5B6472, page #F7F8FA, border #E7E9EC,
             accent orange #FF6A3D (deep #E14F22), navy #101828, teal #0EA5A5
   Type:     Manrope (headings), Inter (body)
   ========================================================================== */

:root {
  --ink: #12141a;
  --body: #5b6472;
  --bg: #f7f8fa;
  --white: #fff;
  --border: #e7e9ec;
  --accent: #ff6a3d;
  --accent-deep: #e14f22;
  --accent-text: #b93a12;
  --navy: #101828;
  --navy2: #182437;
  --teal: #0ea5a5;
  --sale: #d3182a;
  --amber: #f5a623;
  --radius: 12px;
  --max: 1180px;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.25rem;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.bg-white { background: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.scroller { display: flex; gap: 0.75rem; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; padding-bottom: 4px; }
.scroller::-webkit-scrollbar { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-accent { background: var(--accent); color: #12141a; }
.btn-accent:hover { background: #ff8460; }
.btn-ghost { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #0b6f6f; }
.btn-light:hover { background: #e9fbfb; }
.btn-elite { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-elite:hover { background: #fff; color: #241a05; }
.btn-block { width: 100%; }

/* ---------- Top bar and nav ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; flex-wrap: wrap; }
.topbar a { opacity: 0.9; text-decoration: underline; text-underline-offset: 0.2em; }

.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-bar { display: flex; align-items: center; gap: 0.75rem; height: 4rem; position: relative; }
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-img { height: 2.1rem; width: auto; }
.logo-word { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }

.nav-search { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 0.6rem 1rem 0.8rem; border-bottom: 1px solid var(--border); display: none; z-index: 60; }
.nav-search.open { display: block; }
.nav-search input { width: 100%; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--border); padding: 0 2.9rem 0 1rem; font-size: 0.95rem; font-family: inherit; outline: none; background: #fff; color: var(--ink); }
.nav-search input:focus { border-color: var(--accent-deep); }
.search-submit { position: absolute; right: 1.5rem; top: 0.6rem; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; color: var(--body); }
.search-results { position: absolute; left: 1rem; right: 1rem; top: calc(100% - 0.35rem); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14); overflow: hidden; z-index: 70; }
.search-results[hidden] { display: none; }
.search-results li button { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.55rem 0.75rem; text-align: left; font-size: 0.9rem; }
.search-results li button:hover,
.search-results li button:focus-visible { background: var(--bg); }
.search-results img { width: 2.5rem; height: 2.5rem; border-radius: 8px; object-fit: cover; flex: none; }
.search-results .sr-name { font-weight: 600; line-height: 1.3; }
.search-results .sr-price { font-size: 0.82rem; color: var(--body); }
.search-results .sr-more { padding: 0.65rem 0.75rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-text); border-top: 1px solid var(--border); width: 100%; text-align: left; }

.nav-icons { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.icon-btn { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #12141a; font-size: 0.7rem; font-weight: 800; border-radius: 999px; min-width: 1.15rem; height: 1.15rem; display: flex; align-items: center; justify-content: center; padding: 0 0.25rem; }

@media (min-width: 54rem) {
  .nav-search { position: relative; display: block; top: auto; left: auto; right: auto; padding: 0; border: 0; flex: 1; max-width: 26rem; margin-left: 0.5rem; background: transparent; }
  .search-submit { right: 0; top: 0; }
  .search-results { left: 0; right: 0; top: calc(100% + 0.4rem); }
  .search-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero-section { padding: 0; }
.hero-section .wrap { padding: 0.75rem 1rem 0; }
.hero { position: relative; background: var(--navy); overflow: hidden; border-radius: 16px; }
.hero-track { display: flex; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; position: relative; aspect-ratio: 4 / 3; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 22, 0.78), rgba(8, 12, 22, 0.35) 55%, rgba(8, 12, 22, 0) 80%); }
.hero-text { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.1rem 2rem; max-width: 62%; color: #fff; }
.hero-text .eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.4rem; }
.hero-text h1, .hero-text h2 { font-size: clamp(1.3rem, 0.9rem + 2.4vw, 2.5rem); font-weight: 800; color: #fff; }
.hero-text p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); margin-top: 0.5rem; font-size: 0.9rem; max-width: 20rem; display: none; }
.hero-text .btn { margin-top: 0.85rem; align-self: flex-start; min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.85rem; }
.hero-dots { position: absolute; bottom: 0.15rem; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
.hero-dots button { width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; }
.hero-dots button::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.5); transition: width 0.2s ease, background-color 0.2s ease; }
.hero-dots button.active::before { width: 1.4rem; background: #fff; }

@media (min-width: 40rem) {
  .hero-text p:not(.eyebrow) { display: block; }
  .hero-text { padding: 1.5rem 2rem 2rem; max-width: 52%; }
}
@media (min-width: 54rem) {
  .hero-slide { aspect-ratio: 16 / 7; }
  .hero-slide > img { object-position: center 18%; }
  .hero-text { padding-left: 3.5rem; max-width: 46%; }
  .hero-text .btn { min-height: 2.9rem; padding: 0.6rem 1.4rem; font-size: 0.95rem; }
}

/* ---------- Announcement strip ---------- */
.announce { background: var(--navy2); color: #fff; text-align: center; padding: 0.7rem 1rem; font-size: 0.85rem; margin-top: 0.75rem; }
.announce strong { color: var(--amber); margin-right: 0.4rem; }
.announce a { text-decoration: underline; text-underline-offset: 0.2em; margin-left: 0.25rem; white-space: nowrap; }

/* ---------- Section shell ---------- */
section { padding: 1.75rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.section-head h2 { font-size: 1.15rem; font-weight: 800; }
.section-head a, .result-count { font-size: 0.85rem; font-weight: 700; color: var(--accent-text); }
.result-count { color: var(--body); font-weight: 600; }
.tag-strip { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.tag-pill { font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; background: #fff1ec; color: var(--accent-text); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.prod-grid.scroller { display: flex; overflow-x: auto; }
.prod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; min-width: 0; }
.prod-card[hidden] { display: none; }
.prod-grid.scroller .prod-card { width: 10.5rem; }
.prod-media { aspect-ratio: 1; position: relative; background: #eef0f4; display: block; width: 100%; padding: 0; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 0.4rem; left: 0.4rem; background: var(--sale); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 6px; }
.stock-badge { position: absolute; bottom: 0.4rem; left: 0.4rem; background: rgba(255, 255, 255, 0.94); color: #166534; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 6px; }
.prod-body { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.prod-name { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; line-height: 1.35; min-height: 2.3rem; color: var(--ink); }
.prod-price { font-size: 0.98rem; font-weight: 800; margin-top: auto; padding-top: 0.2rem; }
.prod-price .old { font-size: 0.78rem; color: var(--body); font-weight: 500; text-decoration: line-through; margin-left: 0.35rem; }
.add-btn { margin-top: 0.4rem; min-height: 2.5rem; width: 100%; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.82rem; font-weight: 700; transition: background-color 0.15s ease; }
.add-btn:hover { background: #1e2c47; }
.add-btn.added { background: #166534; }
.prod-actions { display: flex; justify-content: space-between; gap: 0.25rem; margin-top: 0.2rem; }
.prod-actions button { min-height: 2.25rem; padding: 0 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--body); display: inline-flex; align-items: center; gap: 0.25rem; }
.prod-actions button:hover { color: var(--ink); }
.prod-actions .save-btn[aria-pressed="true"] { color: var(--sale); }

@media (min-width: 35rem) and (max-width: 53.99rem) {
  .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 54rem) {
  body { padding-bottom: 0; }
  .prod-grid,
  .prod-grid.scroller { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .prod-grid.scroller .prod-card { width: auto; }
}

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; transition: border-color 0.15s ease; }
.cat-card:hover { border-color: var(--accent-deep); }
.cat-icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: #fff1ec; color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.cat-card span:last-child { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
@media (min-width: 35rem) and (max-width: 53.99rem) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 54rem) { .cat-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* ---------- Promo banners ---------- */
.promo-banner { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); display: flex; align-items: center; color: #fff; }
.promo-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-trade > img { object-position: 60% 40%; }
.promo-bnpl { background: var(--teal); }
.promo-bnpl > img { object-position: 60% 15%; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 34, 0.86), rgba(10, 18, 34, 0.4) 55%, rgba(10, 18, 34, 0) 80%); }
.promo-bnpl::after { background: linear-gradient(90deg, rgba(8, 100, 100, 0.55), rgba(8, 100, 100, 0.2) 50%, rgba(8, 100, 100, 0) 75%); }
.promo-text { position: relative; z-index: 2; padding: 1rem 1.1rem; max-width: 62%; }
.promo-text h2 { color: #fff; font-size: clamp(1.05rem, 0.8rem + 1.6vw, 1.8rem); }
.promo-text p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.88); margin: 0.4rem 0 0.75rem; display: none; }
.promo-text .btn { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.85rem; margin-top: 0.7rem; }
@media (min-width: 40rem) {
  .promo-banner { aspect-ratio: 2.2 / 1; }
  .promo-bnpl { aspect-ratio: 2.5 / 1; }
  .promo-text { padding: 1.5rem 2.25rem; max-width: 48%; }
  .promo-text p { display: block; }
  .promo-text .btn { margin-top: 0; }
}

/* ---------- Elite card ---------- */
.elite-card { background: linear-gradient(120deg, #241a05, #4a330c); border-radius: 16px; padding: 1.5rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.elite-card h2 { color: var(--amber); font-size: 1.15rem; }
.elite-card p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin-top: 0.3rem; max-width: 22rem; }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.25rem 1rem; }
.spotlight-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.spotlight-badge { background: var(--amber); color: var(--navy); font-weight: 800; font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px; }
.spotlight-head h2 { color: #fff; font-size: 1.05rem; }
.spotlight-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.spotlight-tags span { font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.25); padding: 0.25rem 0.65rem; border-radius: 999px; }
.spotlight .prod-card { background: #182437; border-color: rgba(255, 255, 255, 0.1); }
.spotlight .prod-name, .spotlight .prod-price { color: #fff; }
.spotlight .prod-price .old { color: rgba(255, 255, 255, 0.6); }
.spotlight .add-btn { background: var(--accent); color: #12141a; }
.spotlight .add-btn:hover { background: #ff8460; }
.spotlight .prod-actions button { color: rgba(255, 255, 255, 0.75); }

/* ---------- Shop by budget ---------- */
.budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.budget-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.3rem; transition: border-color 0.15s ease; }
.budget-tile:hover { border-color: var(--accent-deep); }
.budget-tile strong { font-family: var(--font-head); font-size: 0.98rem; font-weight: 800; }
.budget-tile span { font-size: 0.82rem; color: var(--body); line-height: 1.4; }
@media (min-width: 54rem) { .budget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Tabs, filters ---------- */
.tabs, .filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tab-btn, .chip { min-height: 2.5rem; padding: 0.4rem 0.95rem; font-size: 0.85rem; font-weight: 700; border-radius: 999px; border: 1px solid var(--border); color: var(--body); background: #fff; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.tab-btn:hover, .chip:hover { border-color: var(--ink); color: var(--ink); }
.tab-btn.active, .tab-btn[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-sm { min-height: 2.25rem; padding: 0.25rem 0.8rem; font-size: 0.8rem; }
.filter-block { margin-bottom: 0.25rem; }
.filters-sub { margin-top: -0.25rem; }
.search-note { font-size: 0.88rem; color: var(--body); margin-bottom: 0.75rem; }
.search-note button { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; margin-left: 0.4rem; }
.no-results { padding: 1.5rem 0; color: var(--body); }
.no-results[hidden] { display: none; }

/* ---------- SEO / About ---------- */
.seo-block { margin-bottom: 1.5rem; max-width: 46rem; }
.seo-block h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.seo-block h3 { font-size: 0.98rem; font-weight: 700; margin: 0.25rem 0 0.35rem; color: var(--accent-text); }
.seo-block p { font-size: 0.95rem; color: var(--body); margin-bottom: 0.5rem; }
.pop { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.search-link { min-height: 2.25rem; padding: 0.2rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--ink); background: #fff; }
.search-link:hover { border-color: var(--accent-deep); color: var(--accent-text); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 0.95rem 0.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.98rem; font-weight: 700; list-style: none; min-height: 2.75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0.25rem 1rem; font-size: 0.95rem; color: var(--body); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.75rem 1.25rem; text-align: center; }
.newsletter h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.4rem; }
.newsletter p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin: 0 auto 1rem; max-width: 26rem; }
.newsletter form { display: flex; gap: 0.5rem; max-width: 26rem; margin: 0 auto; }
.newsletter input { flex: 1; min-width: 0; height: 2.9rem; border-radius: 8px; border: none; padding: 0 0.9rem; font-size: 0.95rem; font-family: inherit; outline: none; }
.newsletter input:focus-visible { outline: 3px solid var(--amber); }
.newsletter form button { background: var(--accent); color: #12141a; font-weight: 700; font-size: 0.9rem; padding: 0 1.1rem; border-radius: 8px; }
.newsletter form button:hover { background: #ff8460; }
.newsletter .news-status { margin: 0.75rem auto 0; min-height: 1.4rem; color: var(--amber); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #fff; margin-top: 1.25rem; padding: 2rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.logo-foot { margin-bottom: 0.9rem; }
.logo-foot .logo-word { color: #fff; }
.logo-img-foot { background: #fff; border-radius: 8px; padding: 0.25rem 0.35rem; height: 2.4rem; }
.foot-col h3 { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.65); margin-bottom: 0.6rem; font-family: var(--font-head); }
.foot-col > a:not(.logo), .foot-addr { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); display: block; padding: 0.35rem 0; }
.foot-col > a:not(.logo):hover { color: #fff; text-decoration: underline; }
.foot-call { background: rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 0.75rem 0.9rem; margin-bottom: 0.9rem; }
.foot-call span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); display: block; margin-bottom: 0.15rem; }
.foot-call a { font-weight: 800; color: #fff; font-size: 1.05rem; }
.foot-bottom { text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); padding-top: 1.25rem; margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 54rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; } }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 60; }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.55rem 0 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--body); min-height: 3.4rem; }
.bottom-nav a:hover, .bottom-nav button:hover { color: var(--accent-text); }
@media (min-width: 54rem) { .bottom-nav { display: none; } }

/* ---------- Slide-in panel (order list) and modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 22, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay-right .panel { position: absolute; top: 0; right: 0; height: 100%; width: 92%; max-width: 26rem; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
.overlay-right.open .panel { transform: translateX(0); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.15rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-empty { color: var(--body); font-size: 0.95rem; }
.cart-list { display: grid; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 4.25rem 1fr; gap: 0.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cart-item img { width: 4.25rem; height: 4.25rem; object-fit: cover; border-radius: 8px; }
.cart-item h3 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.cart-item .line-price { color: var(--body); font-size: 0.9rem; margin-top: 0.1rem; }
.qty { display: inline-flex; align-items: center; margin-top: 0.4rem; border: 1px solid var(--border); border-radius: 8px; }
.qty button { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
.qty button:hover { background: var(--bg); }
.qty span { min-width: 2rem; text-align: center; font-size: 0.9rem; font-weight: 600; }
.remove-btn { margin-left: 0.75rem; font-size: 0.82rem; color: var(--body); text-decoration: underline; text-underline-offset: 0.2em; padding: 0.4rem 0; }
.cart-foot { padding: 1rem 1rem 1.25rem; border-top: 1px solid var(--border); display: grid; gap: 0.6rem; background: #fff; }
.cart-foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; color: var(--body); }
.cart-total strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.cart-note, .cart-hint { font-size: 0.82rem; color: var(--body); line-height: 1.45; }

.overlay-center { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 44rem; max-height: 100%; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.modal-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; background: rgba(255, 255, 255, 0.95); }
.qv-media { aspect-ratio: 1; background: #eef0f4; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.qv-cat { font-size: 0.8rem; font-weight: 700; color: var(--accent-text); }
.qv-body h2 { font-size: 1.25rem; }
.qv-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.qv-price .old { font-size: 0.95rem; color: var(--body); font-weight: 500; text-decoration: line-through; margin-left: 0.5rem; }
.qv-stock { font-size: 0.9rem; color: #166534; font-weight: 600; }
.qv-actions { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
@media (min-width: 40rem) {
  .modal { grid-template-columns: 1fr 1fr; }
  .qv-media { aspect-ratio: auto; min-height: 20rem; }
  .qv-body { justify-content: center; padding: 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track, .overlay, .overlay-right .panel { transition: none; }
  .btn, .add-btn { transition: none; }
}
