:root{
  --bg:#fff;
  --text:#111;
  --muted:#7a7a7a;
  --line:#ededed;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --accent:#F6D21A; /* SOLNECHNO yellow (strong) */
  --accent2:#111;
  --brandPink:#F66C93; /* SOLNECHNO pink from PDF page 2 */
  --kb:0px; /* keyboard inset (js) */
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; background:var(--bg); color:var(--text); -webkit-text-size-adjust: 100%}

.hide{display:none !important}

.topbar{
  position:sticky; top:0; z-index:10;
  background:var(--brandPink);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.topbar .inner{max-width:920px; margin:0 auto; padding:12px 14px; display:flex; gap:12px; align-items:center; justify-content:space-between}

.brandRow{display:flex; gap:10px; align-items:center}
.mark{width:34px; height:34px; border-radius:12px; border:1px solid rgba(0,0,0,.10); background:rgba(255,255,255,.72); display:flex; align-items:center; justify-content:center; box-shadow: 0 2px 12px rgba(0,0,0,.04)}
.mark img{width:18px; height:18px; object-fit:contain}
.brand{display:flex; flex-direction:column; gap:2px}
.brand .title{font-weight:900; letter-spacing:.2px; color:#111}
.brand .sub{font-size:12px; color:rgba(17,17,17,.72)}

.cartbtn{
  display:flex; align-items:center; gap:8px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.78);
  padding:10px 12px;
  border-radius:999px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.cartbtn.has{border-color: rgba(0,0,0,.12)}
.badge{
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px;
  background:var(--accent);
  color:#111;
  font-size:12px;
  display:flex; align-items:center; justify-content:center;
  font-weight:1000;
}

.container{max-width:920px; margin:0 auto; padding:14px; padding-bottom: calc(110px + var(--kb) + env(safe-area-inset-bottom, 0px))}

/* Splash */
.splash{position:fixed; inset:0; background:var(--brandPink); display:flex; align-items:center; justify-content:center; z-index:50;
  background-image: url('/static/splash_bg.jpg');
  background-size: cover;
  background-position: center;
}
.splash:before{content:""; position:absolute; inset:0; background:rgba(0,0,0,.06)}

/* Chips */
.chips{display:flex; gap:10px; overflow:auto; padding:6px 2px 12px; -webkit-overflow-scrolling:touch}
.chip{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  color:#111;
  white-space:nowrap;
}
.chip.active{border-color: rgba(17,17,17,.9); background:var(--accent); color:#111}
/* subtle premium for chips */
.chip{ box-shadow: 0 1px 10px rgba(0,0,0,.03); }

/* Grid */
.grid{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px}
@media (max-width:480px){ .grid{grid-template-columns: 1fr 1fr;} }

.row2{display:grid; grid-template-columns: 1.2fr .8fr; gap:10px}
.field{display:flex; flex-direction:column; gap:6px}
.label{font-size:12px; font-weight:900; color:rgba(17,17,17,.62); letter-spacing:.2px; padding-left:2px}

.product-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow: 0 3px 16px rgba(0,0,0,.04)}
.product-card .photo{height:170px; background:#f4f4f4 center/cover no-repeat}
.product-card .pc-body{padding:10px 10px 12px; position:relative}
.pc-title{font-weight:900; font-size:13.5px; line-height:1.2; min-height:34px}
.pc-price{color:#111; font-weight:900; margin-top:6px}
.pc-actions{position:absolute; right:10px; bottom:10px}
.pc-plus{width:38px; height:38px; border-radius:14px; border:0; background:var(--accent); color:#111; font-size:22px; font-weight:1000}

/* Product view */
.product-hero{border-radius:22px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); background:#f4f4f4}
.product-hero .img{height:260px; background:#f4f4f4 center/cover no-repeat}
.product-body{padding:14px}
.h1{font-weight:1000; font-size:20px}
.p{color:var(--muted); margin-top:6px; line-height:1.45}

.actionsRow{display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:14px}
.stepper{display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:14px; padding:6px 8px}
.step{width:36px; height:36px; border-radius:12px; border:0; background:#f2f2f2; font-weight:900; font-size:18px}
.step:disabled{opacity:.4}
.step-val{min-width:22px; text-align:center; font-weight:900}

.btnPrimary{flex:1; border:0; border-radius:16px; padding:14px 14px; background:#111; color:#fff; font-weight:1000}
.btnPrimary.accent{background:var(--accent); color:#111}
.btnGhost{border:1px solid var(--line); border-radius:16px; padding:12px 12px; background:#fff; font-weight:900}

/* Cart */
.cartBox{border:1px solid var(--line); border-radius:22px; box-shadow: var(--shadow); padding:12px}
.cart-row{display:flex; justify-content:space-between; gap:10px; padding:10px 4px; border-bottom:1px solid var(--line)}
.cart-row:last-child{border-bottom:0}
.cr-title{font-weight:900}
.cr-muted{color:var(--muted); font-size:12px; margin-top:4px}

.summary{margin-top:12px; border-top:1px solid var(--line); padding-top:12px; display:grid; gap:6px; color:#111}
.sumRow{display:flex; justify-content:space-between; font-weight:800}
.sumRow.muted{color:var(--muted); font-weight:700}

.bottomNav{position:fixed; left:0; right:0; bottom:var(--kb); background:rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top:1px solid rgba(0,0,0,.06); z-index:30; padding-bottom: env(safe-area-inset-bottom, 0px)}
.bottomNav .inner{max-width:920px; margin:0 auto; padding:8px 14px; display:flex; gap:10px; justify-content:space-between}

.navItem{flex:1; border:0; background:transparent; padding:8px 6px; border-radius:18px; display:flex; flex-direction:column; align-items:center; gap:4px; color:rgba(17,17,17,.55)}
.navItem.active{color:#111}
.navIco{width:22px; height:22px}
.navTxt{font-size:11px; font-weight:900}

.toast{position:fixed; left:50%; bottom:86px; transform:translateX(-50%); background:#111; color:#fff; padding:10px 12px; border-radius:999px; opacity:0; transition:.18s; font-weight:800; font-size:13px}
.toast.show{opacity:1}

.formGrid{display:grid; gap:10px; margin-top:12px}

.checkoutNav{display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:14px}
.chkBtn{flex:1; min-height:48px; border-radius:999px; font-weight:1000; font-size:16px; padding:14px 16px; border:1px solid rgba(0,0,0,.08)}
.chkBtn.secondary{background:rgba(255,255,255,.92); color:#111}
.chkBtn.primary{background:var(--accent); color:#111}
.input{width:100%; padding:12px 12px; border:1px solid var(--line); border-radius:16px; font-weight:800; font-size:16px; line-height:20px; background:rgba(255,255,255,.96); color:#111; min-height:46px}

/* iOS: make date/time inputs readable */
.input[type="date"], .input[type="time"], .input[type="datetime-local"]{
  -webkit-appearance: none;
  appearance: none;
}
.input[type="date"]::-webkit-datetime-edit,
.input[type="time"]::-webkit-datetime-edit,
.input[type="datetime-local"]::-webkit-datetime-edit{
  color:#111;
}
.input[type="date"]::-webkit-datetime-edit-text,
.input[type="date"]::-webkit-datetime-edit-month-field,
.input[type="date"]::-webkit-datetime-edit-day-field,
.input[type="date"]::-webkit-datetime-edit-year-field,
.input[type="time"]::-webkit-datetime-edit-hour-field,
.input[type="time"]::-webkit-datetime-edit-minute-field{
  color:#111;
}

.stepHeader{display:flex; align-items:center; justify-content:space-between; margin-top:10px}
.stepPill{border:1px solid var(--line); padding:8px 12px; border-radius:999px; font-weight:900}
