:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #686868;
  --line: #e8e8e8;
  --panel: #f7f7f7;
  --orange: #ff5a1f;
  --orange-dark: #e84610;
  --blue: #1269e8;
  --green: #16883f;
  --shadow: 0 10px 28px rgba(24, 24, 27, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-size: 16px; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 32px)); height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.08rem; letter-spacing: -.03em; }
.brand small { margin-top: 4px; color: var(--muted); font-weight: 650; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.home-link { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 13px; color: #333; background: #f4f4f5; text-decoration: none; font-weight: 700; font-size: .88rem; }
.home-link:hover { background: #e9e9eb; }
.home-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.market-intro { padding: 38px 0 26px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 28px; align-items: end; }
.eyebrow, .section-kicker { color: var(--orange-dark); font-weight: 800; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
h1 { max-width: 720px; margin: 7px 0 10px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.055em; }
.market-intro p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.6; }
.trust-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.trust-pills span { padding: 9px 11px; border: 1px solid #dbe8dc; border-radius: 10px; color: #20582f; background: #f2faf4; font-size: .82rem; font-weight: 720; }

.catalog-section { padding: 18px 0 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 3px 0 0; font-size: 1.55rem; letter-spacing: -.035em; }
.product-count { color: var(--muted); font-size: .88rem; font-weight: 650; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { position: relative; display: block; height: min(48vw, 430px); overflow: hidden; background: #f2f2f2; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.018); }
.stock-badge { position: absolute; top: 12px; left: 12px; padding: 7px 9px; border-radius: 8px; color: white; background: rgba(20,20,20,.84); backdrop-filter: blur(5px); font-size: .78rem; font-weight: 800; }
.product-info { padding: 16px; }
.rating { color: #ffb000; letter-spacing: .04em; font-size: .88rem; }
.rating span { color: var(--green); margin-left: 7px; letter-spacing: 0; font-weight: 750; }
.product-info h3 { margin: 8px 0 6px; font-size: 1.12rem; letter-spacing: -.025em; }
.product-info p { min-height: 44px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.price-row > div { display: grid; }
.price-row strong { font-size: 1.4rem; letter-spacing: -.04em; }
.price-row small { color: var(--muted); }
.price-row a { min-width: 92px; padding: 11px 18px; border-radius: 999px; color: white; background: var(--orange); text-align: center; text-decoration: none; font-weight: 850; }
.price-row a:hover { background: var(--orange-dark); }

.price-strip { margin: 2px 0 54px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.price-strip > div { padding: 17px; display: grid; gap: 5px; text-align: center; }
.price-strip > div + div { border-left: 1px solid var(--line); }
.price-strip span { color: var(--muted); font-size: .8rem; font-weight: 720; }
.price-strip strong { font-size: .96rem; }
.price-strip .best { background: #fff2eb; }
.price-strip .best span { color: var(--orange-dark); }

footer { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 24px 0 30px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer a { text-decoration: none; font-weight: 720; }

@media (max-width: 760px) {
  .header-inner, main, footer { width: min(100% - 24px, 1180px); }
  .market-intro { grid-template-columns: 1fr; padding-top: 26px; }
  .trust-pills { justify-content: flex-start; }
  .product-grid { gap: 10px; }
  .product-image { height: 58vw; }
  .product-info { padding: 12px; }
  .product-info p { display: none; }
  .product-info h3 { font-size: .98rem; }
  .price-row { align-items: center; gap: 8px; }
  .price-row strong { font-size: 1.08rem; }
  .price-row small { font-size: .72rem; }
  .price-row a { min-width: 64px; padding: 9px 12px; }
  .price-strip { grid-template-columns: 1fr; }
  .price-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 460px) {
  .home-link span { display: none; }
  h1 { font-size: 2rem; }
  .market-intro p { font-size: .94rem; }
  .product-image { height: 61vw; }
  .stock-badge { top: 8px; left: 8px; font-size: .68rem; }
  .rating { font-size: .76rem; }
  .rating span { display: none; }
}

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

.configured-section {
  margin: 0 0 60px;
  padding: 24px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 30px;
  align-items: center;
  border-radius: 20px;
  background: #f5f7fa;
}
.configured-copy h2 { margin: 6px 0 10px; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.045em; }
.configured-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.configured-copy ul { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.configured-copy li { padding-left: 25px; position: relative; color: #3f3f46; font-size: .92rem; line-height: 1.45; }
.configured-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.configured-section figure { margin: 0; overflow: hidden; border-radius: 14px; background: white; }
.configured-section img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.breadcrumbs { padding: 24px 0 14px; display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: var(--ink); font-weight: 700; text-decoration: none; }
.product-detail {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(390px, 1.08fr);
  gap: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 40px rgba(24,24,27,.06);
}
.gallery { min-width: 0; width: 100%; max-width: 430px; margin-inline: auto; }
.gallery-main { position: relative; overflow: hidden; height: 360px; border-radius: 16px; background: #f3f3f3; }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.detail-stock { position: absolute; top: 16px; left: 16px; padding: 8px 11px; border-radius: 8px; color: white; background: rgba(20,20,20,.86); font-size: .8rem; font-weight: 850; }
.stock-badge.low, .detail-stock.low { background: #b42318; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs button { width: 64px; height: 64px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #eee; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-copy { align-self: center; padding: 8px 12px 8px 0; }
.product-tag { display: inline-flex; padding: 7px 10px; border-radius: 7px; color: #1f5c31; background: #edf8f0; font-size: .78rem; font-weight: 800; }
.detail-rating { margin-top: 13px; }
.detail-copy h1 { margin: 10px 0 9px; max-width: 580px; font-size: clamp(1.8rem, 2.7vw, 2.45rem); line-height: 1.05; }
.detail-description { margin: 0; color: var(--muted); line-height: 1.6; }
.detail-price { margin: 15px 0; display: flex; align-items: baseline; gap: 8px; }
.detail-price strong { font-size: 1.9rem; letter-spacing: -.05em; }
.detail-price span { color: var(--muted); font-size: .9rem; }
.included-box { padding: 12px 13px; display: grid; gap: 4px; border: 1px solid #dbe8ef; border-radius: 11px; background: #f5faff; }
.included-box strong { color: var(--blue); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.included-box span { color: #3f4c59; font-size: .87rem; line-height: 1.45; }
.quantity-block { margin-top: 15px; }
.quantity-heading { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .86rem; font-weight: 800; }
.quantity-heading span { color: var(--green); }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stepper { height: 46px; display: grid; grid-template-columns: 44px 48px 44px; border: 1px solid #d6d6d6; border-radius: 11px; overflow: hidden; }
.stepper button { border: 0; background: #f5f5f5; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: #ececec; }
.stepper input { width: 100%; border: 0; border-inline: 1px solid #ddd; text-align: center; font-weight: 800; background: white; }
.quantity-price { display: grid; text-align: right; }
.quantity-price span { color: var(--muted); font-size: .78rem; }
.quantity-price strong { font-size: 1rem; }
.tier-list { margin: 13px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tier-list > div { min-height: 66px; padding: 10px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.tier-list > div.active { border-color: var(--orange); background: #fff5f0; box-shadow: inset 0 0 0 1px var(--orange); }
.tier-list span { color: var(--muted); font-size: .7rem; }
.tier-list strong { font-size: .76rem; line-height: 1.25; }
.buy-button { width: 100%; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 999px; color: white; background: var(--orange); box-shadow: 0 8px 18px rgba(255,90,31,.23); font-weight: 850; cursor: pointer; }
.buy-button:hover { background: var(--orange-dark); }
.buy-button:disabled { cursor: not-allowed; background: #a1a1aa; box-shadow: none; }
.buy-button strong { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.35); }
.secure-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: .75rem; line-height: 1.4; }
.how-it-works { max-width: 1060px; margin: 24px auto 58px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.how-it-works > div { padding: 22px; display: grid; gap: 6px; }
.how-it-works > div + div { border-left: 1px solid var(--line); }
.how-it-works span { color: var(--orange); font-size: .76rem; font-weight: 900; }
.how-it-works strong { font-size: 1.02rem; }
.how-it-works p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

body.dialog-open { overflow: hidden; }
dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.27); }
dialog::backdrop { background: rgba(14,14,18,.65); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; max-height: calc(100dvh - 30px); overflow-y: auto; padding: 28px; background: white; }
.dialog-close { position: sticky; top: 0; z-index: 4; float: right; width: 38px; height: 38px; margin: -6px -5px 0 12px; border: 0; border-radius: 50%; background: #f2f2f2; color: #333; font-size: 1.35rem; cursor: pointer; }
.checkout-progress { margin: 0 48px 22px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: #969696; font-size: .76rem; font-weight: 800; }
.checkout-progress i { height: 2px; background: #e5e5e5; }
.checkout-progress .active, .checkout-progress .done { color: var(--orange-dark); }
.checkout-progress i.active { background: var(--orange); }
.checkout-heading h2 { margin: 4px 0 7px; max-width: 580px; font-size: clamp(1.55rem, 4vw, 2.05rem); letter-spacing: -.04em; line-height: 1.1; }
.checkout-heading p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.order-mini { margin: 18px 0; padding: 10px; display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; border-radius: 12px; background: #f6f6f7; }
.order-mini img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.order-mini div { display: grid; gap: 3px; }
.order-mini div strong { font-size: .86rem; }
.order-mini div span { color: var(--muted); font-size: .76rem; }
.order-mini b { font-size: .95rem; }
.checkout-form { display: grid; gap: 13px; }
.checkout-form label { display: grid; gap: 6px; }
.checkout-form label > span { font-size: .79rem; font-weight: 780; }
.checkout-form input, .checkout-form textarea { width: 100%; border: 1px solid #d7d7d9; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; outline: none; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,31,.12); }
.checkout-form small { color: var(--muted); font-size: .7rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field-grid.three { grid-template-columns: .7fr 1fr 1fr; }
.checkout-primary { width: 100%; min-height: 50px; margin-top: 5px; padding: 0 18px; display: flex; justify-content: center; align-items: center; gap: 12px; border: 0; border-radius: 999px; color: white; background: var(--orange); font-weight: 850; cursor: pointer; }
.checkout-primary:hover { background: var(--orange-dark); }
.checkout-primary:disabled { cursor: wait; opacity: .72; }
.checkout-back { padding: 0; border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 760; cursor: pointer; }
.payment-heading { margin-top: 16px; }
.bizum-card { padding: 18px; display: flex; justify-content: space-between; align-items: center; border-radius: 15px; color: white; background: linear-gradient(125deg, #6723a8, #8c36c4); box-shadow: 0 10px 24px rgba(103,35,168,.2); }
.bizum-card > div { display: grid; gap: 3px; }
.bizum-card span { color: rgba(255,255,255,.78); font-size: .75rem; font-weight: 700; }
.bizum-card strong { font-size: 1.65rem; letter-spacing: .02em; }
.bizum-card button { padding: 9px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; background: rgba(255,255,255,.14); font-weight: 800; cursor: pointer; }
.payment-breakdown { margin: 12px 0; display: grid; gap: 7px; }
.payment-breakdown > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .83rem; }
.payment-breakdown .total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.upload-zone { min-height: 145px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 5px; border: 2px dashed #cfcfd3; border-radius: 14px; background: #fafafa; text-align: center; cursor: pointer; }
.upload-zone:hover, .upload-zone.has-file { border-color: var(--orange); background: #fff7f3; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--orange-dark); background: #ffe8dc; font-size: 1.2rem; }
.upload-zone > strong { font-size: .92rem; }
.upload-zone small { color: var(--muted); font-size: .72rem; }
.upload-zone b { margin-top: 4px; color: var(--orange-dark); font-size: .75rem; word-break: break-word; }
.confirm-check { margin: 13px 0; display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.confirm-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--orange); }
.confirm-check span { color: #46464c; font-size: .8rem; line-height: 1.4; }
.form-error { margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; color: #8a241b; background: #fff0ee; font-size: .82rem; font-weight: 700; }
.whatsapp-submit { background: #168b46; }
.whatsapp-submit:hover { background: #107439; }
.whatsapp-explainer { margin: 9px auto 0; max-width: 520px; color: var(--muted); text-align: center; font-size: .72rem; line-height: 1.4; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-success { padding: 18px 0 4px; text-align: center; }
.success-mark { width: 58px; height: 58px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: #168b46; font-size: 1.7rem; font-weight: 900; }
.order-success h2 { margin: 7px auto 8px; max-width: 520px; font-size: 2rem; letter-spacing: -.045em; }
.order-success > p { max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.5; }
.reference-card { margin: 18px auto; max-width: 380px; padding: 16px; display: grid; gap: 4px; border-radius: 12px; background: #f4f4f5; }
.reference-card span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.reference-card strong { font-size: 1.08rem; }
.reference-card small { color: var(--muted); }
.whatsapp-button { min-height: 52px; padding: 0 22px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; color: white; background: #168b46; text-decoration: none; font-weight: 850; }
.success-note { margin-top: 12px !important; font-size: .78rem; }
.secondary-button { margin-top: 18px; padding: 9px 13px; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }
.not-found { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.not-found > strong { color: var(--orange); font-size: 1rem; }
.not-found h1 { margin: 0; font-size: 2rem; }
.not-found a { padding: 11px 16px; border-radius: 999px; color: white; background: var(--orange); text-decoration: none; font-weight: 800; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr); gap: 24px; }
  .gallery-main { height: 330px; }
  .detail-copy { position: static; }
  .detail-copy h1 { font-size: 1.8rem; }
}

@media (max-width: 760px) {
  .configured-section { grid-template-columns: 1fr; padding: 17px; }
  .configured-section figure { order: -1; }
  .configured-section img { aspect-ratio: 16 / 9; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 12px; }
  .gallery { max-width: 430px; }
  .gallery-main { height: 280px; }
  .detail-copy { padding: 4px 4px 8px; }
  .how-it-works { grid-template-columns: 1fr; }
  .how-it-works > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .dialog-shell { padding: 20px; }
}

@media (max-width: 560px) {
  .breadcrumbs { padding-top: 16px; }
  .gallery-main { margin-inline: 0; height: min(72vw, 280px); border-radius: 13px; }
  .gallery-thumbs button { width: 58px; height: 58px; }
  .detail-copy h1 { font-size: 2rem; }
  .tier-list { gap: 5px; }
  .tier-list > div { padding: 8px 6px; }
  dialog { width: 100%; max-height: 96dvh; margin: auto 0 0; border-radius: 19px 19px 0 0; }
  .dialog-shell { max-height: 96dvh; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .order-mini { grid-template-columns: 52px 1fr auto; }
  .order-mini img { width: 52px; height: 52px; }
  .bizum-card strong { font-size: 1.35rem; }
  .order-success h2 { font-size: 1.7rem; }
}
