/* ============================================================
   Voltano – Elektronik-Parodie-Shop (Midea Porta Split)
   Original styling. Not a clone of any real retailer.
   ============================================================ */

:root {
  --brand: #0a6cff;
  --brand-dark: #0653c7;
  --ink: #12233b;
  --muted: #5b6b80;
  --line: #e4e9f0;
  --bg: #f5f7fb;
  --ok: #16a34a;
  --warn: #b45309;
  --card: #ffffff;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(18, 35, 59, .06);
  --maxw: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Top bar / header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding-block: 7px;
  flex-wrap: wrap;
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -.3px;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 40px; height: 40px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), #38bdf8);
  display: grid; place-items: center;
  color: #fff; font-size: 22px;
}
.logo .mark svg { width: 24px; height: 24px; }
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .2px;
}

.search {
  flex: 1;
  display: flex;
  min-width: 0;
}
.search input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 11px 14px;
  font-size: 15px;
  min-width: 0;
}
.search button {
  border: none;
  background: var(--brand);
  color: #fff;
  padding-inline: 18px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-size: 15px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef3ff;
  color: var(--brand-dark);
  border: 1px solid #d8e4ff;
  padding: 10px 16px;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-btn:hover { text-decoration: none; background: #e3ecff; }
.cart-btn svg { width: 20px; height: 20px; }
.ic { width: 1em; height: 1em; vertical-align: -2px; }
.cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding-inline: 5px;
}

/* ---------- Hero / product ---------- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-top: 28px;
}

.gallery .main {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery .main img { object-fit: contain; width: 100%; height: 100%; padding: 12px; }
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.thumbs .t {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.thumbs .t img { object-fit: contain; padding: 8px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 2px;
  background: #eafaf0;
  color: var(--ok);
}
.pill.blue { background: #eaf1ff; color: var(--brand-dark); }
.pill.amber { background: #fef3e2; color: var(--warn); }

.product h1 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -.4px;
}
.rating { color: #f59e0b; font-size: 15px; margin-bottom: 14px; }
.rating span { color: var(--muted); margin-left: 6px; }

.price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 4px; }
.price { font-size: 34px; font-weight: 800; color: var(--ink); }
.price .old { font-size: 18px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.price .save { font-size: 14px; font-weight: 700; color: var(--ok); }
.tax { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.stock { color: var(--ok); font-weight: 600; font-size: 14px; margin-bottom: 18px; display:flex; align-items:center; gap:8px;}

.specs { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs li b { color: var(--muted); font-weight: 600; }

.buy {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.qty button { border: none; background: #f2f5fa; width: 40px; height: 46px; font-size: 20px; cursor: pointer; }
.qty input { width: 46px; height: 46px; border: none; text-align: center; font-size: 16px; }

.btn {
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  border-radius: 2px;
  padding: 14px 22px;
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-cta { background: #ff8c1a; color: #fff; }
.btn-cta:hover { background: #f57c00; }
.btn-ghost { background: #eef3ff; color: var(--brand-dark); }
.btn-block { width: 100%; text-align: center; }
.btn-lg { padding: 16px 24px; font-size: 17px; }

.assurance { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--muted); }
.assurance div { display: flex; align-items: center; gap: 8px; }

/* ---------- Description section ---------- */
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-top: 22px;
}
.section h2 { margin-top: 0; font-size: 20px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.feature { padding: 16px; border: 1px solid var(--line); border-radius: 2px; }
.feature .ic { color: var(--brand); }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { margin: 8px 0 4px; font-size: 15px; }
.feature p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.panel h2 { margin: 0 0 4px; font-size: 18px; display:flex; align-items:center; gap:10px;}
.panel .step { background: var(--brand); color:#fff; width:26px;height:26px;border-radius:999px;display:grid;place-items:center;font-size:14px;}
.panel .hint { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-2 { grid-column: span 2; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 13px;
  font-size: 15px;
  background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid #cfe0ff; border-color: var(--brand); }

.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pay {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-width: 104px; min-height: 66px;
  cursor: pointer;
  background: #fff;
}
.pay.active { border-color: var(--brand); box-shadow: 0 0 0 2px #cfe0ff inset; }
.pay .pay-logo { height: 20px; width: auto; display: block; }
.pay .pay-logo.duo { display: inline-flex; align-items: center; gap: 6px; }
.pay .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.assurance svg { width: 16px; height: 16px; }

/* order summary */
.summary { position: sticky; top: 90px; }
.summary .line-item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary .line-item .ph {
  width: 72px; height: 72px; border-radius: 2px; border: 1px solid var(--line);
  display: grid; place-items: center; background:#fff; overflow:hidden; flex-shrink:0;
}
.summary .line-item .ph img { object-fit: contain; padding:6px; }
.summary .line-item h4 { margin: 0 0 4px; font-size: 14px; }
.summary .line-item p { margin: 0; font-size: 13px; color: var(--muted); }
.totals { margin-top: 16px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ---------- Reveal overlay ---------- */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(6, 14, 30, .78);
  backdrop-filter: blur(4px);
}
.reveal.show { display: grid; animation: fade .2s ease; }
.reveal .box {
  background: #fff;
  border-radius: 3px;
  max-width: 520px;
  width: 100%;
  padding: 40px 34px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: pop .28s cubic-bezier(.2,1.2,.3,1);
}
.reveal .emoji { font-size: 64px; line-height: 1; }
.reveal h2 { font-size: 26px; margin: 16px 0 10px; letter-spacing: -.4px; }
.reveal p { color: var(--muted); font-size: 16px; margin: 0 0 8px; }
.reveal .small { font-size: 13px; margin-top: 18px; }
.reveal-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.reveal-actions .btn { margin-top: 0; }
.bmc {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffdd00; color: #0d0c22; font-weight: 700; font-size: 15px;
  padding: 13px 18px; border-radius: 2px; text-decoration: none; white-space: nowrap;
}
.bmc:hover { text-decoration: none; filter: brightness(0.95); }
.bmc svg { width: 18px; height: 18px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 40px;
  background: #0e1a2b;
  color: #c4d0de;
  font-size: 14px;
}
footer.site .wrap { padding-block: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; }
.foot-cols h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.foot-cols a { color: #c4d0de; display: block; padding: 3px 0; }
.foot-cols a:hover { color: #fff; }
.disclaimer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: #8fa1b5;
  line-height: 1.6;
}
.disclaimer strong { color: #cbd6e2; }

/* ---------- Legal pages ---------- */
.legal { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin-top: 28px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { color: #33445a; }
.legal .note {
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
  padding: 14px 16px; border-radius: 2px; font-size: 14px;
}

/* ---------- Storefront (homepage) ---------- */
.hero {
  margin-top: 24px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #38bdf8);
  color: #fff;
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 26px;
  align-items: center;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; opacity: .9; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 10px; letter-spacing: -.5px; }
.hero p { margin: 0 0 20px; opacity: .96; font-size: 16px; }
.hero .btn-cta { background: #ff8c1a; }
.hero .hero-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  padding: 18px;
  display: flex; gap: 14px; align-items: center;
}
.hero .hero-card .ph { width: 96px; height: 96px; border-radius: 2px; background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.hero .hero-card .ph img { object-fit: contain; padding: 8px; }
.hero .hero-card h3 { margin: 0 0 4px; font-size: 15px; }
.hero .hero-card .hp { font-size: 22px; font-weight: 800; }
.hero .hero-card .hp .old { font-size: 13px; font-weight: 500; text-decoration: line-through; opacity: .8; margin-left: 6px; }

.cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cats a {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.cats a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-dark); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 16px; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head a { font-size: 14px; font-weight: 600; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: box-shadow .12s ease, border-color .12s ease; }
a.card:hover { text-decoration: none; border-color: #b9c6d6; box-shadow: 0 4px 14px rgba(18,35,59,.12); }
.card .img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .img img { object-fit: contain; padding: 22px; width: 100%; height: 100%; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 15px; margin: 0; line-height: 1.35; min-height: 2.7em; }
.card .c-rating { color: #f59e0b; font-size: 13px; }
.card .c-rating span { color: var(--muted); }
.card .c-price { font-size: 20px; font-weight: 800; margin-top: 2px; }
.card .c-price .old { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.card .c-del { font-size: 12px; color: var(--muted); }
.card .card-actions { margin-top: auto; padding-top: 4px; }
.card .card-actions .btn { width: 100%; padding: 10px 12px; font-size: 14px; }
.card .tag { position: absolute; top: 0; left: 0; background: #e2001a; color: #fff; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 0; }

/* ---------- Long description on product page ---------- */
.desc-body { max-width: 78ch; }
.desc-body p { margin: 0 0 14px; }
.desc-body h3 { font-size: 16px; margin: 22px 0 8px; }
.desc-body ul { margin: 0 0 14px; padding-left: 20px; }
.desc-body li { margin: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.col-2 { grid-column: span 1; }
  .search { order: 3; flex-basis: 100%; }
  header.site .wrap { flex-wrap: wrap; }
  .price { font-size: 28px; }
  .reveal h2 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
