@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root{
  --bg: #f5f5f4;          /* secondary-50 */
  --card: #ffffff;
  --border: #e7e5e4;      /* secondary-100 */
  --muted: #78716c;       /* secondary-400 */
  --text: #1c1917;        /* secondary-800 */
  --title: #14532d;       /* primary-900-ish */
  --green: #16a34a;       /* primary-600 */
  --green-2: #dcfce7;     /* primary-100 */
  --green-3: #f0fdf4;     /* primary-50 */
  --danger: #ef4444;
  --danger-bg: #fff1f2;
  --danger-border: #fecaca;
}

body{
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* width matches products */
.content-wrap{ max-width: 1100px; margin: 0 auto; }

/* === Generic cards === */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

/* === Buttons === */
.btn-primary{
  background: var(--green);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover{
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

/* === Accordion / Toggle sections (Решения / Съставки) === */
.acc-trigger{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafaf9;
  cursor:pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.acc-trigger:hover{
  background:#f5f5f4;
  transform: translateY(-1px);
}

.acc-left{
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.acc-title{
  font-size: 16px;
  font-weight: 900;
  color: var(--title);
}
.acc-sub{
  font-size: 13px;
  color: #44403c;
}

.chev{
  width: 18px;
  height: 18px;
  color:#57534e;
  transition: transform 0.2s ease;
}
.acc-trigger.is-open .chev{ transform: rotate(180deg); }

.acc-panel{
  display:none;
}
.acc-panel.is-open{
  display:block;
}

/* inner panels */
.panel{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

/* panel header */
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.panel-title{
  font-size: 14px;
  font-weight: 900;
  color: var(--title);
}

/* chips */
.chip{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:#fafaf9;
  color:#44403c;
  white-space: nowrap;
}
.chip-success{
  border-color:#bbf7d0;
  background: var(--green-3);
  color:#166534;
}
.chip-danger{
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color:#991b1b;
}

/* note */
.note{
  border: 1px solid var(--border);
  background: #fafaf9;
  padding: 12px;
  border-radius: 12px;
  color: #1c1917;
}

/* icons */
.icon-danger{ width: 18px; height: 18px; color: var(--danger); margin-top: 2px; }
.icon-success{ width: 18px; height: 18px; color: #22c55e; margin-top: 2px; }

/* === Products === */
.product-card{ padding: 18px; }

.product-image{
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 12px;
}

.offer-badge{
  position: absolute;
  top: -10px;
  right: -10px;
  background: #22c55e;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 16px rgba(0,0,0,0.12);
  z-index: 10;
}

.ingredients-toggle-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green-2);
  color: #166534;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ingredients-toggle-badge:hover{
  background: #bbf7d0;
  transform: translateY(-1px);
}

.ingredients-box{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.ingredients-box.is-open{
  max-height: 260px;
  opacity: 1;
}
.ingredients-inner{
  background: var(--green-3);
  border: 1px solid var(--green-2);
  border-radius: 12px;
  padding: 12px;
}

/* === Checkout (no bright blue; site palette) === */
.checkout-shell{
  background: #ffffff;             /* was blue */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.checkout-head{
  padding: 10px 10px 0 10px;
}

.checkout-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (min-width: 900px){
  .checkout-grid{
    grid-template-columns: 1.15fr 0.85fr;
    align-items:start;
  }
}

/* Left blocks */
.form-block{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.form-block-title{
  font-weight: 900;
  color: var(--title);
  font-size: 14px;
  margin-bottom: 10px;
}

.form-block-sub{
  font-weight: 900;
  color: var(--title);
  font-size: 13px;
}

.label{
  display:block;
  font-size: 12px;
  font-weight: 700;
  color: #1c1917;
  margin-top: 8px;
  margin-bottom: 6px;
}

.input{
  width:100%;
  padding: 10px 12px;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  background:#fff;
  font-size: 14px;
  outline:none;
}
.input:focus{
  border-color:#86efac;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

.phone-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.phone-country{
  width: 52%;
  padding: 10px 10px;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  background:#fff;
  font-size: 13px;
}
.phone-input{ flex:1; }

/* Delivery/Payment cards */
.radio-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
  margin-top: 10px;
}
.radio-card:hover{
  background: #fafaf9;
}
.radio-card.compact{ align-items:center; }
.radio-card input{ margin-top: 3px; }
.radio-main{ flex:1; }
.radio-title{
  font-weight: 900;
  color: var(--title);
  font-size: 13px;
}
.radio-sub{
  font-size: 12px;
  color:#57534e;
  margin-top: 2px;
}
.radio-price{
  font-size: 12px;
  font-weight: 900;
  color:#1c1917;
  white-space: nowrap;
  align-self:center;
}

/* Right summary */
.summary-card{
  background:#ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  position: sticky;
  top: 16px;
}

.summary-title{
  font-weight: 900;
  color: var(--title);
  font-size: 14px;
  margin-bottom: 10px;
}

.summary-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.summary-thumb{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fafaf9;
  object-fit: contain;
  padding: 4px;
}

.summary-info{ flex: 1; }
.summary-name{
  font-weight: 900;
  font-size: 13px;
  color:#1c1917;
}
.summary-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* qty */
.qty-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top: 8px;
}
.qty-btn{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fafaf9;
  font-weight: 900;
  color:#1c1917;
}
.qty-btn:hover{
  background:#f5f5f4;
}
.qty-input{
  width: 38px;
  text-align:center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  background:#fff;
  font-weight: 900;
}

.summary-price{
  text-align:right;
  min-width: 92px;
}
.price-big{
  font-weight: 900;
  color:#1c1917;
  font-size: 13px;
}
.price-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.summary-lines{
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color:#1c1917;
  margin-top: 6px;
}
.line strong{ font-weight: 900; }

/* coupon */
.coupon{
  display:flex;
  gap:8px;
  margin-top: 12px;
}
.coupon-input{
  flex:1;
  padding: 10px 10px;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  background:#fff;
  font-size: 13px;
}
.coupon-btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#1c1917;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
}
.coupon-msg{
  font-size: 12px;
  color:#57534e;
  margin-top: 8px;
  min-height: 16px;
}

/* free shipping */
.free-ship{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.free-ship-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 12px;
  color:#1c1917;
}
.bar{
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow:hidden;
  margin-top: 8px;
}
.bar-fill{
  height: 100%;
  width: 0%;
  background: var(--green);
}

/* total */
.total{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--border);
}
.total-right{ text-align:right; }
.total-bgn{
  font-weight: 900;
  font-size: 16px;
  color:#1c1917;
}
.total-eur{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* finish button */
.finish-btn{
  width:100%;
  margin-top: 12px;
  background: #b91c1c;
  color:#fff;
  font-weight: 900;
  padding: 12px 12px;
  border-radius: 14px;
}
.finish-btn:hover{
  filter: brightness(0.95);
}

/* trust */
.trust{
  display:flex;
  gap:12px;
  justify-content:space-between;
  margin-top: 12px;
  color:#57534e;
  font-size: 11px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:8px;
}
.trust svg{
  width: 16px;
  height: 16px;
}

/* Scrollbar */
::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: #fff; }
::-webkit-scrollbar-thumb{ background: var(--green-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover{ background: #bbf7d0; }

.gdpr-error input {
  outline: 2px solid #dc2626; /* Tailwind red-600 */
  outline-offset: 2px;
}
