/* Base light theme */
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --muted:#64748b;
  --text:#1e2430;
  --accent:#f97316;
  --accent-2:#fbbf24;
  --shadow:0 14px 32px rgba(15,23,42,.12);
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  background:linear-gradient(180deg,#fdfdfd 0%,#eef2ff 100%);
  color:var(--text);
  line-height:1.5;
}

.container{width:min(1100px,92%); margin:0 auto}

header{
  position:sticky; top:0; z-index:10;
  --header-image:url('header-placeholder.svg');
  background-image:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.9)),var(--header-image);
  background-size:cover;
  background-position:center;
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:0 6px 24px rgba(15,23,42,.06);
  backdrop-filter:blur(8px);
  color:var(--text);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:inline-flex; align-items:center; gap:14px;
}

.brand img{
  display:block;
  max-height:60px;
  width:auto;
  object-fit:contain;
}

.nav a{
  color:var(--text); text-decoration:none; padding:10px 14px; border-radius:12px; font-weight:500;
  transition:background-color .2s ease,color .2s ease,box-shadow .2s ease;
}
.nav a:hover{
  background:rgba(249,115,22,.14);
  color:#9a3412;
  box-shadow:0 4px 12px rgba(249,115,22,.12);
}

@media (max-width:720px){
  .nav{flex-direction:column; align-items:flex-start; gap:12px}
  .nav nav{display:flex; flex-wrap:wrap; gap:8px; width:100%}
}

.hero{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr); gap:36px; align-items:center;
  padding:40px 0 20px;
}
.hero .title{font-size:clamp(28px,4.2vw,46px); margin:0 0 12px}
.hero-tagline{
  font-size:13px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#fb923c;
  margin:0 0 18px;
  font-weight:600;
}
.hero-tagline:empty{display:none}
.hero p{color:var(--muted); margin-top:0}
.hero-media{
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  background:linear-gradient(180deg,#fff7ed 0%,#f2f5ff 100%);
  border:1px solid rgba(249,115,22,.18);
  border-radius:var(--radius);
  box-shadow:0 18px 34px rgba(15,23,42,.08);
}
.hero-media img{
  width:100%; max-height:360px; object-fit:cover;
  border-radius:calc(var(--radius) - 8px);
  box-shadow:0 18px 38px rgba(15,23,42,.12);
}
.controls{
  display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 0;
}
.controls input, .controls select{
  background:#ffffff; color:var(--text); border:1px solid rgba(15,23,42,.12);
  padding:12px 14px; border-radius:12px; outline:none;
  box-shadow:0 2px 6px rgba(15,23,42,.06);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.controls input::placeholder{color:rgba(30,36,48,.5)}
.controls input:focus, .controls select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(249,115,22,.15);
}
.controls .row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:800px){
  .hero{grid-template-columns:1fr}
  .hero-media{margin-top:24px}
  .controls .row{grid-template-columns:1fr}
}
.grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:28px 0 60px;
}
@media (max-width:900px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid{grid-template-columns:1fr} }

.card{
  background:var(--card); border:1px solid rgba(15,23,42,.08);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column; transition:transform .18s ease,box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 22px 44px rgba(15,23,42,.16)}

.thumb{ aspect-ratio:4/3; width:100%; background:#f3f4f6; display:grid; place-items:center}
.thumb img{ width:100%; height:100%; object-fit:cover}
.badges{ display:flex; gap:8px; flex-wrap:wrap; padding:14px 16px 0}
.badge{
  font-size:12px; padding:6px 12px; border-radius:999px;
  border:1px solid rgba(249,115,22,.22); background:rgba(249,115,22,.12);
  color:#9a3412; font-weight:600; text-transform:uppercase; letter-spacing:.04em;
}
.content{ padding:16px 18px 20px; display:flex; flex-direction:column; gap:12px }
.card h3{ margin:4px 0 0; font-size:20px}
.card p{ margin:0; color:var(--muted) }
.specs{ display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.specs span{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; background:#f1f5f9; border-radius:999px; border:1px solid rgba(15,23,42,.08) }

.card .actions{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.card .actions .btn{
  flex:1 1 140px;
  justify-content:center;
}
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#431407; font-weight:700; text-decoration:none; border:0; cursor:pointer; justify-content:center; text-align:center; font-family:inherit;
  box-shadow:0 12px 24px rgba(249,115,22,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 16px 32px rgba(249,115,22,.28)}
.btn.ghost{
  background:transparent; color:var(--accent); border:1px solid rgba(249,115,22,.4); box-shadow:none;
}
.btn.ghost:hover{ background:rgba(249,115,22,.1) }

.section{
  margin:50px 0; padding:20px; border:1px solid rgba(15,23,42,.08); border-radius:var(--radius);
  background:linear-gradient(180deg,#ffffff 0%,#f2f5ff 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.07);
}
.section h2{ margin:0 0 12px}
ul.clean{ padding-left:20px; margin:8px 0; color:var(--muted)}

footer{ border-top:1px solid rgba(15,23,42,.08); padding:28px 0 60px; color:var(--muted); background:#f8fafc }
footer a{ color:var(--accent); text-decoration:none }
footer a:hover{text-decoration:underline}
.small{ font-size:12px; color: var(--muted) }

/* product page */
.breadcrumbs{ font-size:13px; color:var(--muted); margin:14px 0}
.breadcrumbs a{ color:var(--accent); text-decoration:none }
.breadcrumbs a:hover{text-decoration:underline}
.product{
  display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:start; margin-bottom:40px;
}
@media (max-width:900px){ .product{ grid-template-columns:1fr } }
.gallery{
  background: var(--card); border:1px solid rgba(15,23,42,.08); border-radius: var(--radius); overflow:hidden;
  box-shadow:var(--shadow);
}
.gallery .main{ aspect-ratio:4/3; width:100%; background:#f3f4f6; display:grid; place-items:center}
.gallery .main img{ width:100%; height:100%; object-fit:cover }
.gallery .thumbs{ display:flex; gap:10px; padding:10px; overflow:auto; background:#f8fafc; border-top:1px solid rgba(15,23,42,.08)}
.gallery .thumbs img{ width:96px; height:72px; object-fit:cover; border-radius:12px; cursor:pointer; border:2px solid transparent; transition:border-color .2s ease,transform .2s ease }
.gallery .thumbs img:hover{ border-color:var(--accent); transform:translateY(-2px) }

.info .title{ margin:0 0 8px; font-size: clamp(24px, 4vw, 36px) }
.price{ font-weight:800; font-size:20px; color:#b45309 }
.kv{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin:16px 0 8px}
.kv div{ padding:12px 14px; border-radius:12px; background:#fff7ed; border:1px solid rgba(249,115,22,.25); color:#9a3412 }
@media (max-width:640px){ .kv{ grid-template-columns:1fr } }
table.specs{
  width:100%; border-collapse: collapse; overflow:auto; font-size:14px; margin-top:14px
}
table.specs th, table.specs td{ border-bottom:1px dashed rgba(15,23,42,.16); padding:12px 6px; text-align:left }
table.specs th{ width:42% ; color:var(--muted); font-weight:600}

.note{ font-size:13px; color: var(--muted); margin-top:18px }










.product-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:16px 0;
}
.product-actions .btn{
  flex:1 1 200px;
  justify-content:center;
}

body.modal-open{
  overflow:hidden;
}

.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.modal[hidden]{ display:none !important; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(6px);
}
.modal__dialog{
  position:relative;
  background:#ffffff;
  border-radius:20px;
  padding:28px;
  width:min(420px, 100%);
  box-shadow:0 34px 70px rgba(15,23,42,.22);
  display:grid;
  gap:18px;
}
.modal__close{
  position:absolute;
  top:16px;
  right:16px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:20px;
  cursor:pointer;
}
.modal__subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.modal__form{
  display:grid;
  gap:14px;
}
.modal__form label{
  display:grid;
  gap:6px;
  font-size:14px;
  color:var(--muted);
}
.modal__form input{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background:#f8fafc;
  color:var(--text);
  font-size:15px;
}
.modal__form input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(249,115,22,.18);
  outline:none;
}
.modal__success{
  display:grid;
  gap:12px;
  text-align:center;
}
.modal__success h3{
  margin:0;
  font-size:20px;
  color:var(--text);
}
.modal__success p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.modal__dialog .btn{
  justify-content:center;
}

@media (max-width:540px){
  .modal{ padding:16px; }
  .modal__dialog{ padding:24px 18px; width:100%; }
  .modal__close{ top:10px; right:10px; }
}
.thanks-page{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.thanks-page main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:64px 0;
}

.thanks-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:48px 40px;
  max-width:480px;
  width:100%;
  text-align:center;
}

.thanks-card h1{
  margin:0 0 12px;
  font-size:2.25rem;
}

.thanks-card p{
  margin:0 0 32px;
  color:var(--muted);
}

@media (max-width:600px){
  .thanks-page main{padding:48px 0;}
  .thanks-card{padding:40px 24px;}
  .thanks-card h1{font-size:1.9rem;}
}
