/* === Refurbly — Clean premium minimal === */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --bg-tint: #f4f3ef;
  --ink: #0e1012;
  --ink-2: #2a2d31;
  --muted: #6e7277;
  --muted-2: #9a9ea3;
  --line: #e9e7e1;
  --line-strong: #d6d3cb;
  --accent: #0a6f3c;      /* vert sobre (éco / trust) */
  --accent-soft: #e8f1ec;
  --warn: #b24b1a;
  --warn-soft: #fbeee5;
  --gold: #b98a2e;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14,16,18,0.04), 0 1px 1px rgba(14,16,18,0.03);
  --shadow: 0 6px 24px rgba(14,16,18,0.06), 0 2px 6px rgba(14,16,18,0.04);
  --shadow-lg: 0 20px 60px rgba(14,16,18,0.12), 0 6px 18px rgba(14,16,18,0.06);
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ======== NAV ======== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-cats { display: none; gap: 4px; margin-left: 20px; }
.nav-cats button {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cats button:hover { background: var(--bg-tint); }
.nav-cats button.active { background: var(--ink); color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 0;
}
.nav-search input {
  border: 0; background: transparent; outline: 0;
  width: 100%; font-size: 14px;
}
.nav-search svg { flex-shrink: 0; }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: background 0.15s;
}
.nav-icon-btn:hover { background: var(--bg-tint); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
@media (min-width: 768px) {
  .nav-cats { display: flex; }
  .nav-search { width: 280px; }
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--ink-2); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #085931; }
.btn-outline {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ======== LAYOUT ======== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }

/* ======== HERO ======== */
.hero {
  padding: 32px 0 16px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}
.hero-card {
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: grid;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  width: fit-content;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 16 / 11;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1.1fr 1fr;
    padding: 48px;
    gap: 48px;
    align-items: center;
  }
}

/* ======== TRUST STRIP ======== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.trust-track {
  display: flex; gap: 56px;
  padding: 16px 0;
  animation: trust-scroll 36s linear infinite;
  width: max-content;
  will-change: transform;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }
@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ======== FILTERS ======== */
.filters-bar {
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.filters-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; gap: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filters-bar-inner::-webkit-scrollbar { display: none; }
.chip {
  padding: 9px 16px; border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.chip:hover { background: var(--line); }
.chip.active {
  background: var(--ink); color: #fff;
}

/* ======== PRODUCT GRID ======== */
.grid-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px 18px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.grid-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
}
.grid-header .count { color: var(--muted); font-size: 14px; }
.product-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 18px 48px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ======== PRODUCT CARD ======== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
  cursor: pointer;
  position: relative;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
}
.card-img .device {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  padding: 4px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
}
.card-badge.eco { background: var(--accent); }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 640px) { .card-body { padding: 14px 14px 16px; } }
.card-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.card-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin: 2px 0; }
.card-grade { font-size: 12px; color: var(--muted); }
.card-prices {
  margin-top: 8px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.card-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.card-price-old {
  font-size: 13px; color: var(--muted);
  text-decoration: line-through;
}
.card-saving {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ======== SECTION HEADER ======== */
.section-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(24px, 4vw, 34px);
  margin: 0;
}
.section-head .link {
  font-size: 14px; color: var(--muted);
  font-weight: 500;
}
.section-head .link:hover { color: var(--ink); }

/* ======== WHY (trust) ======== */
.why {
  background: var(--bg-soft);
  padding: 48px 0;
}
.why-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.why-item .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.why-item h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.why-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ======== REVIEWS ======== */
.reviews-bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.reviews-score {
  display: flex; align-items: center; gap: 14px;
}
.reviews-score .big {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 500; letter-spacing: -0.02em;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.reviews-list {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  padding: 0 18px;
  max-width: var(--maxw); margin: 0 auto;
  margin-top: 20px;
}
@media (min-width: 640px) { .reviews-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reviews-list { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--muted); }
.review-text { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.55; }
.review-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--accent); font-weight: 600;
  margin-top: 8px;
}

/* ======== PRODUCT PAGE ======== */
.pp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted);
  padding: 18px 0 10px;
}
.pp-back:hover { color: var(--ink); }
.pp-wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px 60px;
  display: grid; gap: 28px;
}
@media (min-width: 900px) {
  .pp-wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
}
.pp-gallery {
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.pp-gallery .device { position: absolute; inset: 0; display: grid; place-items: center; }
@media (min-width: 900px) { .pp-gallery { position: sticky; top: 80px; } }
.pp-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  line-height: 1.1;
}
.pp-tagline { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.pp-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pp-price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.pp-price {
  font-family: var(--font-display);
  font-weight: 500; font-size: 38px;
  letter-spacing: -0.02em;
}
.pp-price-old { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.pp-saving {
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
}
.pp-section { margin-bottom: 22px; }
.pp-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pp-label .value { color: var(--muted); font-weight: 500; }
.pp-options { display: flex; gap: 10px; flex-wrap: wrap; }
.opt {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px; font-weight: 500;
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 96px;
  transition: all 0.15s;
}
.opt .opt-price { font-size: 12px; color: var(--muted); font-weight: 500; }
.opt:hover { border-color: var(--ink-2); }
.opt.active {
  border-color: var(--ink); border-width: 2px;
  padding: 11px 15px;
}
.opt-color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--line-strong);
  transition: outline 0.15s;
  flex-shrink: 0;
  min-width: 0;
}
.opt-color.active { outline: 2px solid var(--ink); }
.opt-grade {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  display: flex; flex-direction: column;
  transition: all 0.15s;
}
.opt-grade:hover { border-color: var(--ink-2); }
.opt-grade.active { border-color: var(--ink); border-width: 2px; padding: 13px; }
.opt-grade-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.opt-grade-dots { display: inline-flex; gap: 3px; }
.opt-grade-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.opt-grade-dot.on { background: var(--accent); }
.opt-grade-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.opt-grade-price { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin-top: 6px; }
.grades { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .grades { grid-template-columns: repeat(2, 1fr); } }

.pp-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
}
.pp-specs {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.pp-specs h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 14px; }
.pp-specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-specs td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-specs td:first-child { color: var(--muted); width: 40%; }
.pp-specs tr:last-child td { border-bottom: 0; }

.pp-trust {
  display: grid; gap: 10px;
  margin-top: 18px;
  grid-template-columns: 1fr;
}
.pp-trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.pp-trust-item svg { color: var(--accent); flex-shrink: 0; }
.pp-trust-item strong { display: block; font-size: 14px; font-weight: 600; }
.pp-trust-item span { color: var(--muted); font-size: 12px; }

/* ======== CART / CHECKOUT ======== */
.checkout-wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px 18px 60px;
  display: grid; gap: 28px;
}
@media (min-width: 900px) {
  .checkout-wrap { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
}
.checkout-title {
  font-family: var(--font-display);
  font-weight: 500; font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.ck-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  margin-bottom: 14px;
}
.ck-step h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.ck-step h3 .num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: 0;
  transition: border-color 0.15s;
  font-size: 15px;
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.pay-methods { display: grid; gap: 10px; grid-template-columns: 1fr; }
.pay-method {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}
.pay-method.active { border-color: var(--ink); border-width: 2px; padding: 13px 15px; }
.pay-method-left { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  flex-shrink: 0;
}
.pay-method.active .radio { border-color: var(--ink); border-width: 2px; }
.pay-method.active .radio::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--ink);
}

.summary {
  position: sticky; top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 22px;
  align-self: start;
}
.summary h3 { font-size: 17px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.summary-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.summary-item:last-of-type { border-bottom: 0; }
.summary-item .thumb {
  width: 60px; height: 60px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.summary-item .info { font-size: 13px; }
.summary-item .info strong { display: block; font-weight: 600; }
.summary-item .info span { color: var(--muted); font-size: 12px; }
.summary-item .price { font-weight: 600; font-size: 14px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 10px; padding-top: 14px;
  font-size: 17px; font-weight: 600;
}
.summary-row.total .amt {
  font-family: var(--font-display);
  font-weight: 500; font-size: 26px; letter-spacing: -0.02em;
}
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; font-size: 16px; }
.qty button:hover { background: var(--bg-tint); }
.qty span { width: 24px; text-align: center; font-size: 13px; font-weight: 600; }

/* ======== EMPTY ======== */
.empty {
  max-width: 480px; margin: 40px auto;
  text-align: center; padding: 40px 20px;
}
.empty h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 10px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* ======== FOOTER ======== */
.footer {
  background: var(--ink);
  color: #cbccd0;
  padding: 48px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer li a:hover { color: #fff; }
.footer-bot {
  max-width: var(--maxw); margin: 32px auto 0;
  padding: 20px 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: #8e9097;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ======== TOAST ======== */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  display: flex; align-items: center; gap: 10px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ======== LANG SWITCH ======== */
.lang-switch {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 600;
}
.lang-switch button { padding: 6px 10px; }
.lang-switch button.active { background: var(--ink); color: #fff; }

/* ======== BOTTOM CTA STICKY (mobile) ======== */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; gap: 12px; align-items: center;
}
.sticky-buy .sp-price {
  font-family: var(--font-display);
  font-weight: 500; font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.sticky-buy .sp-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* device illustration helpers — polished minimal */
.device-iphone {
  width: 54%;
  aspect-ratio: 9 / 19.5;
  border-radius: 18%;
  background: var(--col, #1A1A1C);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.10),
    inset 0 0 0 1.5px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.device-iphone::before {
  content: '';
  position: absolute; inset: 5%;
  border-radius: 13%;
  background: color-mix(in oklab, var(--col) 78%, #111 22%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.device-iphone::after {
  content: '';
  position: absolute;
  top: 9%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 3%;
  background: color-mix(in oklab, var(--col) 15%, #000 85%);
  border-radius: 999px;
  z-index: 2;
}

/* subtle shine overlay */
.device-iphone > span, .device-macbook > span, .device-ipad > span {
  display: none;
}

.device-macbook {
  width: 80%;
  aspect-ratio: 16 / 10;
  border-radius: 6px 6px 0 0;
  background: var(--col, #D9D9DC);
  position: relative;
  box-shadow:
    0 24px 56px rgba(0,0,0,0.14),
    0 6px 16px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}
.device-macbook::before {
  content: '';
  position: absolute; inset: 5% 4% 12%;
  border-radius: 3px;
  background: color-mix(in oklab, var(--col) 8%, #050505 92%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.device-macbook::after {
  content: '';
  position: absolute;
  bottom: -8%; left: -8%; right: -8%;
  height: 9%;
  background: color-mix(in oklab, var(--col) 72%, #000 28%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.device-ipad {
  width: 58%;
  aspect-ratio: 3 / 4;
  border-radius: 9%;
  background: var(--col, #7D7E81);
  padding: 4%;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.14),
    0 6px 14px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.14);
  position: relative;
}
.device-ipad::before {
  content: '';
  display: block;
  width: 100%; height: 100%;
  border-radius: 7%;
  background: color-mix(in oklab, var(--col) 10%, #050505 90%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
/* home button indicator */
.device-ipad::after {
  content: '';
  position: absolute;
  bottom: 2%; left: 50%; transform: translateX(-50%);
  width: 6%; height: 1.5%;
  border-radius: 999px;
  background: color-mix(in oklab, var(--col) 40%, #fff 60%);
  opacity: 0.4;
}

/* size variants */
.device-sm { width: 46%; }
.device-md { width: 60%; }
.device-macbook.device-sm { width: 68%; }
.device-macbook.device-md { width: 76%; }
.device-ipad.device-sm { width: 50%; }
.device-ipad.device-md { width: 56%; }

/* ads ticker */
.ads-bar {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ads-bar strong { color: #fff; font-weight: 700; }
.ads-bar .dot { display: inline-block; margin: 0 10px; opacity: 0.5; }

/* search overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(14,16,18,0.4);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 16px;
}
.search-panel {
  width: 100%; max-width: 560px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input {
  width: 100%;
  padding: 18px 22px;
  font-size: 16px;
  border: 0; outline: 0;
  border-bottom: 1px solid var(--line);
}
.search-results { max-height: 60vh; overflow-y: auto; }
.search-result {
  padding: 12px 22px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: var(--bg-soft); }
.search-result .thumb {
  width: 44px; height: 44px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.search-result .name { font-weight: 500; font-size: 14px; }
.search-result .cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.search-result .price { margin-left: auto; font-weight: 600; font-size: 14px; }

/* chip groups on product page */
.pp-storage { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
@media (min-width: 560px) { .pp-storage { grid-template-columns: repeat(3, 1fr); } }
