/* CheapKirin — KuKirin-styled storefront */
:root {
  --orange: #f47a20;
  --orange-dark: #d95f0a;
  --red: #e02b2b;
  --ink: #121212;
  --gray: #6b6b6b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- notice bar ---------- */
.notice-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.notice-bar a { color: var(--orange); text-decoration: underline; }

/* ---------- header ---------- */
header.site {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.header-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand-name .cheap { color: var(--orange); }

nav.main-nav { display: flex; gap: 30px; margin: 0 auto; align-items: center; }
nav.main-nav a {
  font-weight: 600;
  font-size: 15.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
nav.main-nav a:hover { color: var(--orange); }

/* category mega-menu */
header.site { position: relative; z-index: 50; }
.nav-item-mega > a { padding: 24px 0; display: inline-block; }
.nav-item-mega > a::after { content: " ▾"; font-size: 11px; color: var(--gray); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 44px rgba(0,0,0,.13);
  display: none; justify-content: center; gap: 48px;
  padding: 38px 48px 42px;
}
/* invisible bridge over the gap between the nav link and the panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.nav-item-mega.open .mega { display: flex; }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(150px, 200px)); gap: 38px; }
.mega-col h5 { font-size: 17px; font-weight: 600; margin-bottom: 13px; }
.mega-col a { display: block; padding: 5px 0; font-size: 14px; color: #4b4b4b; font-weight: 500; }
.mega-col a:hover { color: var(--orange); }
.mega-promo {
  width: 240px; border-radius: 12px; overflow: hidden;
  position: relative; display: block; flex-shrink: 0;
}
.mega-promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mega-promo:hover img { transform: scale(1.04); }
.mega-promo span {
  position: absolute; bottom: 12px; left: 14px;
  color: #fff; font-weight: 700; font-size: 17px;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
}
@media (max-width: 900px) { .mega { display: none !important; } }

.header-icons { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; font-size: 20px; line-height: 1;
  position: relative; padding: 6px; color: var(--ink);
}
.icon-btn:hover { color: var(--orange); }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-btn { display: inline-flex; align-items: center; }

/* language dropdown */
.lang-dd { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .4px;
  padding: 9px 13px;
  border: 1.5px solid var(--line); border-radius: 22px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
.lang-btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.lang-btn .caret { width: 12px; height: 12px; stroke-width: 2.4; transition: transform .18s; }
.lang-dd.open .lang-btn .caret { transform: rotate(180deg); }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  min-width: 172px; padding: 6px; display: none;
}
.lang-dd.open .lang-panel { display: block; }
.lang-panel button {
  display: block; width: 100%; text-align: left;
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  padding: 9px 14px; border: none; background: none; border-radius: 9px;
  color: var(--ink); cursor: pointer;
}
.lang-panel button:hover { background: var(--bg-soft); }
.lang-panel button.active { color: var(--orange); font-weight: 700; }

.search-box {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  overflow: hidden; max-height: 0; transition: max-height .25s ease;
}
.search-box.open { max-height: 70px; padding-bottom: 14px; }
.search-box input {
  width: 100%; font-size: 16px; font-family: inherit;
  padding: 12px 16px; border: 2px solid var(--orange); border-radius: 6px; outline: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 34vw, 700px);
  display: flex; align-items: center;
  background: #0f1110;
  overflow: hidden;
}
/* soft orange glow behind the headline */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(720px 420px at 16% 68%, rgba(244,122,32,.17), transparent 70%);
}
/* rotating rider photo, faded into the dark panel — no hard edge at any width */
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0;
  background: center right/cover no-repeat; opacity: 0;
  transition: opacity .7s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero-content { z-index: 1; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips span {
  color: #fff; font-size: 14.5px; font-weight: 600;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px; padding: 8px 18px;
  backdrop-filter: blur(3px);
}
.hero-chips span b { color: var(--orange); }
.hero-content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding: 60px 48px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  max-width: 720px;
  line-height: 1.05;
}
.hero h1 .tile {
  background: var(--orange);
  border-radius: 8px;
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-4deg);
}
.hero p {
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 2vw, 22px);
  margin: 22px 0 26px;
  max-width: 560px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.btn-hero {
  display: inline-block;
  font-size: 24px; font-weight: 700; color: #fff;
  padding: 14px 52px;
  border: none; border-radius: 40px;
  background: linear-gradient(180deg, #ffb066 0%, var(--orange) 45%, var(--orange-dark) 100%);
  box-shadow: 0 6px 18px rgba(217,95,10,.55), inset 0 2px 4px rgba(255,255,255,.7);
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform .12s ease;
}
.btn-hero:hover { transform: scale(1.05); }

/* ---------- trust badges ---------- */
.badges {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 44px 24px;
}
.badge-item { text-align: center; }
.badge-item svg {
  width: 34px; height: 34px; margin: 0 auto;
  fill: none; stroke: var(--orange); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.badge-item h4 { margin: 10px 0 4px; font-size: 16px; }
.badge-item p { font-size: 13.5px; color: var(--gray); }
.icon-btn .ico {
  width: 21px; height: 21px; display: block;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}

/* ---------- sections ---------- */
section.products { max-width: 1400px; margin: 0 auto; padding: 30px 24px 60px; }
.section-title {
  text-align: center;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  margin: 30px 0 46px;
}

.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 40px;
}
.filter-btn {
  border: 1px solid #ccc; background: #fff;
  font-size: 14.5px; font-weight: 600;
  padding: 9px 22px; border-radius: 24px;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 40px 28px;
}
.no-results { grid-column: 1/-1; text-align: center; font-size: 32px; color: #bbb; padding: 40px; }

.view-all-wrap { text-align: center; margin-top: 40px; }
.view-all-btn {
  display: inline-block;
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 13px 38px;
  border: 1.5px solid var(--ink); border-radius: 40px;
  transition: background .15s, color .15s, transform .12s ease;
}
.view-all-btn:hover { background: var(--ink); color: #fff; transform: scale(1.03); }

.card { display: flex; flex-direction: column; }
.card-img {
  position: relative; cursor: pointer;
  background: #fff; border-radius: 10px;
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img img {
  max-height: 92%; object-fit: contain;
  transition: transform .25s ease;
}
.card-img:hover img { transform: scale(1.05); }
.badge-digital {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 12px;
}
.badge-digital.inline { position: static; display: inline-block; margin-bottom: 10px; }
.badge-off {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.badge-off.inline { position: static; margin-left: 8px; }
.badge-out {
  position: absolute; top: 10px; right: 10px;
  background: #4b4b4b; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}
.card.is-out .card-img img { filter: grayscale(.85); opacity: .75; }
.card.is-out .btn-deal { border-color: #bbb; color: #999; background: #f5f5f5; }
.card.is-out .btn-deal:hover { background: #f5f5f5; border-color: #bbb; color: #999; }
.btn-buy.out, .btn-buy:disabled {
  background: #c9c9c9; box-shadow: none; cursor: not-allowed; transform: none !important;
}
.card-title { font-size: 16px; font-weight: 700; margin: 14px 0 6px; line-height: 1.35; }
.card-price { margin-bottom: 12px; }
.price-now { color: var(--red); font-weight: 600; font-size: 16.5px; }
.price-old { color: var(--gray); text-decoration: line-through; margin-left: 8px; font-size: 14.5px; }
.btn-deal {
  margin-top: auto;
  border: 1.5px solid var(--ink); background: #fff;
  font-weight: 700; font-size: 14px;
  padding: 10px; border-radius: 26px;
  transition: all .15s;
}
.btn-deal:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- how it works ---------- */
.how {
  background: var(--bg-soft);
  padding: 60px 24px 70px;
}
.how-grid {
  max-width: 1200px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.how-step {
  background: #fff; border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.how-step h3 { color: var(--orange); font-size: 19px; margin-bottom: 10px; }
.how-step p { color: var(--gray); font-size: 15px; line-height: 1.55; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-body {
  background: #fff; border-radius: 14px;
  max-width: 980px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  padding: 34px;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; color: var(--gray);
}
.modal-close:hover { color: var(--ink); }
.modal-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; }
.modal-img { display: flex; align-items: center; justify-content: center; }
.modal-img img { max-height: 420px; object-fit: contain; }
.modal-info h2 { font-size: 26px; margin-bottom: 10px; }
.modal-info h4 { margin: 18px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.modal-price .price-now { font-size: 26px; }
.modal-price .price-old { font-size: 18px; }
.specs { border-top: 1px solid var(--line); }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 7px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-row span { color: var(--gray); }
.spec-note { font-size: 12.5px; color: #999; margin-top: 8px; font-style: italic; }
.btn-buy {
  width: 100%; margin-top: 18px;
  background: linear-gradient(180deg, #ffb066 0%, var(--orange) 45%, var(--orange-dark) 100%);
  color: #fff; font-size: 17px; font-weight: 700;
  border: none; border-radius: 30px; padding: 14px;
  box-shadow: 0 4px 12px rgba(217,95,10,.4);
  transition: transform .12s;
}
.btn-buy:hover { transform: scale(1.02); }
.btn-buy.owned { background: #2ea44f; box-shadow: none; cursor: default; }
.order-box {
  margin-top: 18px; padding: 18px;
  background: #fff8f2; border: 1px solid #ffd9b8; border-radius: 12px;
}
.order-msg { font-size: 14px; margin-bottom: 4px; }
.deal-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.deal-link {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 14px; font-size: 14.5px; font-weight: 600;
  background: #fff;
  transition: all .15s;
}
.deal-link:hover { border-color: var(--orange); color: var(--orange); }
.deal-link.best { border: 2px solid var(--orange); background: #fff4ea; }
.deal-link em { font-style: normal; color: var(--red); font-size: 13px; }
.btn-copy {
  margin-top: 12px; width: 100%;
  background: var(--ink); color: #fff; border: none;
  padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.btn-copy:hover { background: #333; }

/* ---------- library ---------- */
.library h2 { margin-bottom: 20px; }
.lib-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.lib-item img { max-height: 100px; object-fit: contain; }
.lib-item h4 { margin-bottom: 8px; }
.lib-empty { color: var(--gray); font-size: 16px; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink); color: #ccc;
  padding: 54px 24px 30px;
}
.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
footer.site h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
footer.site p, footer.site a { font-size: 14px; line-height: 1.6; }
footer.site a { display: block; padding: 3px 0; }
footer.site a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1300px; margin: 36px auto 0;
  border-top: 1px solid #333; padding-top: 20px;
  font-size: 12.5px; color: #888; text-align: center;
}

/* ---------- product page ---------- */
.product-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 24px 80px; }
.product-wrap .back { color: var(--orange); font-weight: 600; display: inline-block; margin-bottom: 22px; }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gallery-main {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gallery-main img { max-height: 94%; max-width: 94%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px; padding: 4px;
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb:hover { border-color: #bbb; }
.thumb.active { border-color: var(--orange); }
.product-info h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin-bottom: 12px; }
.product-info .modal-price { margin-bottom: 18px; }
.product-desc { font-size: 16px; line-height: 1.65; color: #333; margin-bottom: 18px; }
.usp-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.usp-row span {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.usp-ico {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.product-info .btn-buy { max-width: 380px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--gray); }
.qty-picker {
  display: inline-flex; align-items: center;
  border: 1.5px solid #d1d5db; border-radius: 10px; overflow: hidden;
}
.qty-picker button {
  width: 38px; height: 38px; border: none; background: var(--bg-soft);
  font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1;
}
.qty-picker button:hover { background: #efefef; color: var(--orange); }
.qty-picker input {
  width: 46px; height: 38px; border: none; border-left: 1.5px solid #d1d5db; border-right: 1.5px solid #d1d5db;
  text-align: center; font-family: inherit; font-size: 15px; font-weight: 600; outline: none;
}
.qty-total { font-size: 16px; font-weight: 700; color: var(--red); }
.product-specs { margin-top: 54px; }
.product-specs h2 { font-size: 26px; margin-bottom: 14px; }
.specs.big { border-top: 1px solid var(--line); max-width: 760px; }
.specs.big .spec-row { padding: 11px 2px; font-size: 15.5px; }

/* ---------- checkout ---------- */
.checkout-wrap { max-width: 1080px; margin: 0 auto; padding: 44px 24px 80px; }
.checkout-wrap h1 { font-size: clamp(30px, 4vw, 44px); }
.co-sub { color: var(--gray); margin: 8px 0 30px; max-width: 640px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.co-form { display: flex; flex-direction: column; gap: 14px; }
.co-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; }
.co-form input, .co-form textarea {
  font-family: inherit; font-size: 16px; /* ≥16px prevents iOS auto-zoom on focus */
  padding: 11px 13px; border: 1.5px solid #ccc; border-radius: 8px; outline: none;
}
.co-form input:focus, .co-form textarea:focus { border-color: var(--orange); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-row .co-zip { max-width: 100%; }
.legal-callout.small { margin: 6px 0; padding: 12px 16px; font-size: 13.5px; }
.legal-callout.small p { font-size: 13.5px; }
.co-error { color: #b42318; font-weight: 600; }
.ref-msg { font-size: 13px; font-weight: 600; min-height: 16px; }
.ref-msg.ok { color: #1a7f37; }
.ref-msg.bad { color: #b42318; }
.ref-applied { color: #1a7f37; font-weight: 700; font-size: 14px; margin-top: 6px; }
.co-qty-line { font-size: 14.5px; color: var(--gray); margin-top: 4px; }
.co-qty-line b { color: var(--ink); }
.co-form .qty-picker { align-self: flex-start; }
.co-summary {
  background: var(--bg-soft); border-radius: 14px; padding: 26px;
  text-align: center; position: sticky; top: 20px;
}
.co-summary img { max-height: 220px; object-fit: contain; margin: 0 auto 12px; }
.co-summary h3 { margin: 8px 0 6px; }
.co-cart-line {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.co-cart-line:first-child { padding-top: 0; }
.co-cart-line img { width: 52px; height: 52px; max-height: 52px; object-fit: contain; margin: 0; flex-shrink: 0; }
.co-cart-line div { font-size: 14px; }

/* ---------- cart ---------- */
.cart-wrap { max-width: 980px; margin: 0 auto; padding: 44px 24px 90px; }
.cart-wrap h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 26px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray); }
.cart-empty p { font-size: 17px; margin-bottom: 20px; }
.cart-empty-cta { font-size: 17px !important; padding: 12px 34px !important; }
.cart-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.cart-line {
  display: grid; grid-template-columns: 74px 1fr auto auto auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.cart-line.is-out { opacity: .6; }
.cart-line-img {
  width: 74px; height: 74px; border-radius: 8px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-line-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 15px; }
.cart-line-price { color: var(--gray); font-size: 14px; }
.cart-line-out { color: var(--red); font-size: 13px; font-weight: 700; }
.cart-line-total { font-weight: 700; font-size: 15px; min-width: 90px; text-align: right; }
.cart-line-remove {
  border: none; background: none; color: var(--gray); font-size: 16px; cursor: pointer; padding: 6px;
}
.cart-line-remove:hover { color: var(--red); }
.cart-summary {
  background: var(--bg-soft); border-radius: 14px; padding: 24px 26px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.cart-out-note { align-self: stretch; color: var(--red); font-size: 14px; font-weight: 600; text-align: left; }
.cart-total-row { display: flex; align-items: baseline; gap: 14px; font-size: 19px; }
.cart-total-row b { font-size: 24px; color: var(--red); }
.cart-checkout-btn { font-size: 18px !important; padding: 13px 40px !important; }
.cart-checkout-btn:disabled { background: #c9c9c9 !important; box-shadow: none; cursor: not-allowed; }
.cart-continue { font-size: 14px; color: var(--gray); text-decoration: underline; }
.btn-add-cart {
  width: 100%; max-width: 380px; margin-top: 10px;
  background: #fff; border: 2px solid var(--ink); color: var(--ink);
  font-size: 15.5px; font-weight: 700; border-radius: 30px; padding: 12px;
}
.btn-add-cart:hover { background: var(--ink); color: #fff; }
.add-cart-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 12px 26px; border-radius: 30px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
}
.add-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; row-gap: 10px; }
  .cart-line-img { width: 56px; height: 56px; }
  .cart-line-qty { grid-column: 1/2; }
  .cart-line-total { grid-column: 2/3; text-align: right; }
  .cart-line-remove { position: absolute; margin-left: -8px; }
  .cart-summary { align-items: stretch; }
  .cart-total-row { justify-content: space-between; }
}

/* ---------- success ---------- */
.success-wrap { max-width: 720px; margin: 0 auto; padding: 60px 24px 80px; text-align: center; }
.success-box { background: var(--bg-soft); border-radius: 16px; padding: 44px 34px; margin-bottom: 24px; }
.success-emoji { font-size: 52px; }
.success-box h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 6px; }
.s-model { color: var(--gray); margin-bottom: 22px; }
.success-box h3 { margin-bottom: 10px; }
.s-link {
  display: inline-block; word-break: break-all; margin-bottom: 10px;
  background: #fff4ea; border: 2px solid var(--orange); border-radius: 10px;
  padding: 14px 20px; font-weight: 700; color: var(--orange-dark); font-size: 16px;
}
.s-link:hover { background: var(--orange); color: #fff; }
.s-emailed { color: var(--gray); font-size: 14px; margin-top: 12px; }
.s-pending { font-size: 16px; margin: 10px 0; }
.spinner {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border: 4px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- terms page ---------- */
.terms-wrap { max-width: 860px; margin: 0 auto; padding: 50px 24px 80px; }
.terms-wrap h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.terms-wrap .back { color: var(--orange); font-weight: 600; display: inline-block; margin-bottom: 28px; }
.legal-callout {
  background: #fff4ea; border: 2px solid var(--orange);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0 36px;
}
.legal-callout h3 { color: var(--orange-dark); margin-bottom: 6px; }
.terms-wrap h2 { font-size: 21px; margin: 34px 0 10px; }
.terms-wrap p { font-size: 15.5px; line-height: 1.7; color: #333; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 20px 24px 70px; }
.faq-list details {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 17px 22px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--orange); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 22px 18px; color: #444; font-size: 15px; line-height: 1.6; }

/* ---------- flash sale (light theme — matches the rest of the site) ---------- */
.flash-section { max-width: 1300px; margin: 0 auto; padding: 40px 24px 10px; }
.flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.flash-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  background: #fff; border: 1.5px solid var(--orange); border-radius: 14px;
  padding: 16px 18px; position: relative;
  box-shadow: 0 6px 18px rgba(244,122,32,.13);
}
.flash-card-img {
  background: var(--bg-soft); border-radius: 10px; align-self: center;
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.flash-card-img img { max-height: 88%; max-width: 88%; object-fit: contain; }
.flash-label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
  margin-bottom: 8px;
}
.flash-card h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.flash-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.flash-price-row .price-now { color: var(--red); font-size: 19px; font-weight: 700; }
.flash-price-row .price-old { color: var(--gray); text-decoration: line-through; font-size: 13.5px; }
.flash-countdown-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.flash-countdown-label { font-size: 12px; color: var(--gray); font-weight: 600; }
.flash-countdown { display: flex; gap: 4px; }
.flash-countdown span {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  border-radius: 6px; padding: 3px 7px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.flash-stock { margin-bottom: 12px; }
.flash-stock-bar { background: var(--bg-soft); border-radius: 6px; height: 7px; overflow: hidden; margin-bottom: 4px; }
.flash-stock-bar div { height: 100%; background: linear-gradient(90deg, #ffb066, var(--orange)); }
.flash-stock-label { font-size: 12px; color: var(--gray); font-weight: 600; }
.flash-card-cta {
  display: inline-block; background: linear-gradient(180deg, #ffb066 0%, var(--orange) 45%, var(--orange-dark) 100%);
  color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 9px 22px; border-radius: 24px; border: none;
  box-shadow: 0 3px 10px rgba(217,95,10,.35);
}
.flash-card-inline { grid-template-columns: 1fr; max-width: 420px; margin-bottom: 20px; }
.flash-card-inline .flash-label { position: static; }
@media (max-width: 480px) {
  .flash-card { grid-template-columns: 84px 1fr; padding: 14px; gap: 12px; }
}

/* ---------- youtube section ---------- */
.yt-section { max-width: 1300px; margin: 0 auto; padding: 20px 24px 70px; }
.yt-sub { text-align: center; color: var(--gray); font-size: 14.5px; margin: -14px 0 34px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.yt-card h4 { font-size: 14.5px; font-weight: 600; margin: 10px 0 8px; line-height: 1.35; }
.yt-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  background: #000; cursor: pointer;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb iframe { width: 100%; height: 100%; border: none; display: block; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  border: none; border-radius: 50%; background: rgba(20,20,20,.75);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.yt-thumb:hover .yt-play { background: var(--orange); transform: scale(1.08); }
.yt-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.yt-links { display: flex; gap: 14px; font-size: 13px; }
.yt-links a { color: var(--gray); text-decoration: underline; }
.yt-links a:hover { color: var(--orange); }

/* ---------- reviews ---------- */
.card-rating { font-size: 13.5px; color: var(--gray); margin: -2px 0 4px; }
.card-rating .star { color: var(--orange); }
.card-rating .rating-count { color: #aaa; }
.reviews { margin-top: 56px; max-width: 760px; }
.reviews h2 { font-size: 26px; margin-bottom: 12px; }
.stars span { color: #d8d8d8; font-size: 18px; }
.stars span.on { color: var(--orange); }
.stars.pick span { font-size: 27px; cursor: pointer; padding: 0 2px; }
.rv-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 17px; }
.muted-txt { color: var(--gray); font-size: 14px; }
.rv-list { border-top: 1px solid var(--line); }
.rv-item { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-item p { font-size: 15px; line-height: 1.6; color: #333; }
.rv-none { color: var(--gray); padding: 8px 0 4px; }
.rv-form { margin-top: 26px; background: var(--bg-soft); border-radius: 14px; padding: 22px; }
.rv-form h3 { margin-bottom: 12px; }
.rv-form label { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rv-form input, .rv-form textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 11px 13px; border: 1.5px solid #ccc; border-radius: 8px;
  outline: none; margin-bottom: 10px; background: #fff;
}
.rv-form input:focus, .rv-form textarea:focus { border-color: var(--orange); }
.rv-btn { max-width: 260px; font-size: 15px !important; padding: 11px !important; }
.rv-msg { margin-top: 10px; font-weight: 600; font-size: 14px; }
.rv-msg.ok { color: #1a7f37; }
.rv-msg.bad { color: #b42318; }

/* success check + 404 */
.success-check {
  width: 64px; height: 64px; margin: 0 auto 6px; display: block;
  fill: none; stroke: #2ea44f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nf-code { font-size: 64px; font-weight: 700; color: var(--orange); line-height: 1; }

/* ---------- related products ---------- */
.related { margin-top: 56px; }
.related h2 { font-size: 26px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.rel-card { display: block; }
.rel-img {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
}
.rel-img img { max-height: 88%; object-fit: contain; transition: transform .25s; }
.rel-card:hover .rel-img img { transform: scale(1.06); }
.rel-card h4 { font-size: 14.5px; margin-bottom: 4px; }
.rel-card p .price-now { font-size: 15px; }
.rel-card p .price-old { font-size: 13px; }

/* ---------- mobile menu ---------- */
.burger { display: none; font-size: 22px; }
.mobile-menu {
  display: none; max-height: 0; overflow-y: auto; transition: max-height .3s ease;
  background: #fff; border-top: 1px solid var(--line);
}
.mobile-menu.open { max-height: 70vh; }
.mobile-menu a { display: block; padding: 11px 24px; font-size: 15px; color: #333; }
.mobile-menu a:active, .mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mm-main { font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.mm-group h5 {
  padding: 14px 24px 4px; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--gray);
}
.mm-group a { padding: 8px 32px; font-size: 14.5px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .mobile-menu { display: block; }
}

/* ---------- footer extras / misc polish ---------- */
.pay-row {
  max-width: 1300px; margin: 10px auto 0;
  text-align: center; font-size: 13.5px; color: #aaa;
}
.pay-icons {
  max-width: 1300px; margin: 30px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.pi { width: 44px; height: 28px; border-radius: 5px; flex-shrink: 0; }
#toTopBtn {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; font-size: 19px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
#toTopBtn.show { opacity: .92; pointer-events: auto; transform: none; }
#toTopBtn:hover { background: var(--orange); }
.card-img { transition: box-shadow .2s; }
.card:hover .card-img { box-shadow: 0 10px 26px rgba(0,0,0,.10); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 26px 14px; }
  .brand img { height: 38px; }
  .brand-name { font-size: 16px; }
  .header-main { gap: 10px; padding: 10px 14px; }
  #langSelect { max-width: 110px; font-size: 13px; }
  .hero { min-height: 420px; }
  .hero-content { padding: 40px 20px; }
  .hero-bg {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.8) 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.8) 100%);
  }
  .btn-hero { font-size: 19px; padding: 12px 38px; }
  .section-title { margin: 20px 0 30px; }
  .modal { padding: 10px; }
  .modal-body { padding: 22px 18px; max-height: 94vh; }
  .modal-close { font-size: 26px; padding: 8px 12px; }
  .modal-img img { max-height: 230px; }
  .modal-info h2 { font-size: 21px; }
  .co-row { grid-template-columns: 1fr; }
  .checkout-wrap, .terms-wrap, .success-wrap { padding-top: 26px; }
  .badges { padding: 30px 16px; gap: 18px; }
  .thumb { width: 56px; height: 56px; }

  /* header used to overflow the viewport (sideways scroll on phones):
     the icon row couldn't shrink, so it pushed past the right edge.
     Let it flex/shrink, tighten the gaps, and trim the language button
     down to just the globe + code. */
  .header-icons { gap: 10px; flex-shrink: 1; min-width: 0; }
  .brand { min-width: 0; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lang-btn { padding: 6px 8px; gap: 4px; }
  .lang-btn .caret { display: none; }

  /* comfortable tap targets — 44px is the accessibility minimum,
     kept visually the same size via negative margin */
  .icon-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    margin: -5px;
  }
}
/* never allow sideways scrolling on any screen */
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- order tracking page ---------- */
.track-wrap { max-width: 620px; margin: 0 auto; padding: 40px 24px 80px; }
.track-wrap h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.track-sub { color: var(--gray); margin-bottom: 24px; }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form input {
  flex: 1; min-width: 200px;
  padding: 13px 16px; border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none;
}
.track-form input:focus { border-color: var(--orange); }
.track-btn { font-size: 16px; padding: 13px 28px; }
.track-card {
  margin-top: 24px; background: #fff; border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px; padding: 22px;
}
.track-status-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; font-size: 18px;
}
.pill-status {
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
  background: #f3f4f6; color: #4b5563;
}
.pill-status.paid { background: #fff4ea; color: var(--orange-dark); }
.pill-status.fulfilled { background: #e7f7ed; color: #17803d; }
.track-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.track-item { font-weight: 600; }
.track-msg { color: var(--gray); font-size: 14.5px; margin-top: 6px; }
.track-card h3 { margin: 18px 0 10px; font-size: 17px; }
@media (max-width: 540px) {
  .track-wrap { padding: 26px 16px 60px; }
  .track-btn { width: 100%; }
}

/* ---------- accessibility ---------- */
/* visible keyboard focus everywhere — :focus-visible so it only appears for
   keyboard/AT users, never as a click outline on mouse users */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
/* skip straight to content, first thing a keyboard/screen-reader user hits */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
/* visually hidden but read aloud by screen readers */
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- accessories (real physical stock we ship) ---------- */
.acc-sub { text-align: center; color: var(--gray); margin: -26px 0 34px; font-size: 16px; }
.acc-card .card-img { background: var(--bg-soft); }
.acc-desc { font-size: 13.5px; color: var(--gray); line-height: 1.45; margin-bottom: 10px; }
.acc-ship {
  font-size: 12.5px; font-weight: 600; color: #17803d;
  background: #e7f7ed; border-radius: 8px;
  padding: 6px 10px; margin-bottom: 12px; display: inline-block;
}
.s-ship {
  background: #e7f7ed; border: 2px solid #17803d; border-radius: 10px;
  padding: 14px 18px; margin: 10px 0; font-size: 15.5px; color: #14532d;
}
