:root{
  --bg:#0b0c0d;
  --bg-soft:#111214;
  --surface:rgba(255,255,255,0.08);
  --surface-strong:rgba(255,255,255,0.12);
  --stroke:rgba(255,255,255,0.14);
  --text:#f4f7f5;
  --muted:#aeb6b1;
  --accent:#30d158;
  --accent-dark:#1fa244;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:24px;
  --radius-sm:18px;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(48,209,88,.10), transparent 24%),
    radial-gradient(circle at bottom right, rgba(48,209,88,.08), transparent 22%),
    linear-gradient(180deg,#050505 0%, #0e0f10 100%);
  min-height:100vh;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}

.container{
  width:min(calc(100% - 32px), var(--container));
  margin:0 auto;
}

.glass{
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.bg-orb{
  position:fixed;
  width:340px;
  height:340px;
  border-radius:50%;
  filter:blur(60px);
  opacity:.22;
  pointer-events:none;
  z-index:0;
}
.orb-1{background:var(--accent); top:-80px; left:-90px}
.orb-2{background:#ffffff; bottom:-120px; right:-120px; opacity:.08}

.header{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  margin-bottom:10px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.2px;
}

.logo-mark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--accent), #8df4a7);
  color:#041109;
  box-shadow:0 10px 30px rgba(48,209,88,.35);
}

.nav{
  display:flex;
  align-items:center;
  gap:22px;
  color:var(--muted);
}
.nav a:hover{color:var(--text)}
.nav-btn{
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(48,209,88,.4);
  color:var(--text) !important;
  background:rgba(48,209,88,.08);
}
.menu-btn{
  display:none;
  background:transparent;
  border:1px solid var(--stroke);
  color:var(--text);
  width:46px;
  height:46px;
  border-radius:14px;
}

.mobile-menu{
  display:none;
  width:min(calc(100% - 32px), var(--container));
  margin:0 auto 10px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
}
.mobile-menu.open{display:grid;gap:12px}

.hero{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  padding:38px 0 24px;
  align-items:stretch;
}

.hero-content{
  padding:36px;
  border-radius:32px;
}
.eyebrow{
  display:inline-block;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(48,209,88,.12);
  color:#95f6ad;
  font-size:13px;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;
}
h1,h2,h3,p{margin:0}
h1{
  font-size:clamp(34px, 5vw, 66px);
  line-height:1.02;
  letter-spacing:-1.5px;
  margin-bottom:18px;
}
.hero-text{
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
  max-width:640px;
}
.hero-actions{
  display:flex;
  gap:14px;
  margin:28px 0 24px;
  flex-wrap:wrap;
}
.hero-points{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  color:#cdd6d1;
}
.hero-points li{
  position:relative;
  padding-left:18px;
}
.hero-points li::before{
  content:"";
  position:absolute;
  left:0;
  top:9px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 22px;
  border-radius:16px;
  font-weight:700;
  transition:.25s ease;
  border:1px solid transparent;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
  color:#041109;
  background:linear-gradient(135deg, var(--accent), #8df4a7);
  box-shadow:0 12px 30px rgba(48,209,88,.28);
}
.btn-primary:hover{
  box-shadow:0 16px 34px rgba(48,209,88,.36);
}
.btn-secondary{
  color:var(--text);
  border-color:var(--stroke);
  background:rgba(255,255,255,.04);
}
.btn-full{width:100%}

.hero-img-wrap{
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.hero-card{
  border-radius:30px;
  overflow:hidden;
  padding:16px;
  width:100%;
  display:flex;
  flex-direction:column;
}
.hero-card img{
  width:100%;
  flex:1;
  object-fit:cover;
  border-radius:22px;
  min-height:0;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:8px auto 14px;
}
.stat{
  padding:26px;
  border-radius:24px;
  text-align:center;
}
.stat strong{
  display:block;
  font-size:30px;
  margin-bottom:6px;
}
.stat span{color:var(--muted)}

.section{
  position:relative;
  z-index:1;
  padding:72px 0;
}
.section-heading{
  max-width:760px;
  margin-bottom:26px;
}
.section-heading h2{
  font-size:clamp(28px, 4vw, 48px);
  line-height:1.08;
  margin-bottom:12px;
}
.section-heading p{
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}
.product-card{
  border-radius:28px;
  overflow:hidden;
}
.product-image{
  aspect-ratio: 4 / 3;
  overflow:hidden;
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.product-card:hover .product-image img{transform:scale(1.04)}
.product-body{
  padding:24px;
}
.badge{
  display:inline-block;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(255,255,255,.08);
  color:#dfe5e1;
}
.product-body h3{
  font-size:28px;
  line-height:1.15;
  margin-bottom:12px;
}
.product-body p{
  color:var(--muted);
  line-height:1.7;
  margin-bottom:14px;
}
.product-body ul{
  margin:0 0 20px 0;
  padding-left:18px;
  color:#d5ddd8;
  line-height:1.9;
}
.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:4px;
}
.price{
  font-size:34px;
  font-weight:800;
  line-height:1;
  letter-spacing:-1px;
}

.advantages-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.advantage{
  padding:24px;
  border-radius:24px;
}
.adv-icon{
  font-size:30px;
  margin-bottom:12px;
}
.advantage h3{
  margin-bottom:10px;
  font-size:20px;
}
.advantage p{
  color:var(--muted);
  line-height:1.7;
}

.delivery{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:22px;
  padding:30px;
  border-radius:30px;
}
.delivery h2{
  font-size:clamp(28px, 4vw, 44px);
  margin:8px 0 12px;
}
.delivery p{
  color:var(--muted);
  line-height:1.8;
}
.delivery-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.delivery-list div{
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
}
.delivery-list strong{
  display:block;
  color:#95f6ad;
  margin-bottom:8px;
  font-size:28px;
}

.contact-box{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:24px;
  padding:30px;
  border-radius:30px;
}
.contact-copy h2{
  font-size:clamp(28px, 4vw, 42px);
  margin:8px 0 12px;
}
.contact-copy p{
  color:var(--muted);
  line-height:1.8;
}
.contact-form{
  display:grid;
  gap:14px;
}
.form-row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
input, textarea, select{
  width:100%;
  border:none;
  outline:none;
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px 18px;
}
input::placeholder, textarea::placeholder{color:#8f9893}
.form-note{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 0 40px;
  color:var(--muted);
}

@media (max-width: 1080px){
  .hero,
  .delivery,
  .contact-box{
    grid-template-columns:1fr;
  }
  .hero{
    grid-template-areas:
      "img"
      "content";
  }
  .hero-img-wrap{ grid-area: img; }
  .hero-content{ grid-area: content; }
  .advantages-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 860px){
  .nav{display:none}
  .menu-btn{display:inline-grid;place-items:center}
  .products-grid,
  .stats,
  .form-row{
    grid-template-columns:1fr;
  }
  .hero-card.small{
    max-width:none;
    justify-self:stretch;
  }
}

@media (max-width: 640px){
  .header{padding:16px 0}
  .hero{padding-top:20px}
  .hero-content,
  .contact-box,
  .delivery{padding:20px}
  .advantages-grid,
  .delivery-list{
    grid-template-columns:1fr;
  }
  .section{padding:56px 0}
  .product-body h3{font-size:24px}
  .footer{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* ─── Multi-cart styles ──────────────────────────────────────────────────── */
.cart-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(244,247,245,.4);
  margin-bottom: 10px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .2s, background .2s;
}

.cart-item.selected {
  background: rgba(48,209,88,.07);
  border-color: rgba(48,209,88,.35);
}

/* Верхній рядок: чекбокс + назва + ціна */
.cart-item-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.cart-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: #30d158;
  cursor: pointer;
  border-radius: 4px;
}

.cart-item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cart-item-info strong {
  font-size: .9rem;
  font-weight: 600;
  color: #f4f7f5;
}

.cart-item-info em {
  font-style: normal;
  font-size: .88rem;
  color: #95f6ad;
  font-weight: 700;
  white-space: nowrap;
}

/* Нижній рядок: кількість — з'являється при виборі */
.cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 32px; /* вирівнювання під назвою */
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(48,209,88,.4);
  background: rgba(48,209,88,.1);
  color: #95f6ad;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover { background: rgba(48,209,88,.22); }

.qty-input {
  width: 48px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #f4f7f5;
  font-size: .9rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 4px 4px;
  outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(48,209,88,.08);
  border: 1px solid rgba(48,209,88,.25);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
}

.cart-summary-label {
  font-size: .88rem;
  color: rgba(244,247,245,.55);
  font-weight: 600;
}

.cart-summary-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #95f6ad;
}

button.btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}
