/* =========================================================
   ISRIB Shop - Unified Stylesheet (Header + Products + Checkout)
   Compact sticky header, burger menu, products, FAQ, checkout
   ========================================================= */

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root{
  --brand-900:#1e40af; --brand-700:#2563eb; --brand-500:#3b82f6; --brand-800:#1b399b; 
  --accent-600:#0284c7; --accent-500:#0ea5e9;
  --bg:#ffffff; --bg-soft:#f8fafc; --panel:#ffffff;
  --text:#0f172a; --muted:#64748b; --muted-strong:#475569;
  --ring:#e2e8f0; --shadow:0 12px 30px rgba(2,6,23,.08);
  --radius:14px; --radius-lg:18px; --pad:22px;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0b1220; --panel:#0f172a; --bg-soft:#0f172a; --text:#e5e7eb; --muted:#94a3b8; --muted-strong:#cbd5e1; --ring:#1e293b; }
}
html, body { height: 100%; }
body { font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif; line-height: 1.8; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ========== Buttons ========== */
.btn{display:inline-flex;align-items:center;gap:10px;font-weight:700;border-radius:12px;padding:12px 20px;border:1px solid transparent;text-decoration:none;transition:.15s}
.btn-primary{background:var(--brand-700);color:#fff;box-shadow:var(--shadow)}
.btn-primary:hover{transform:translateY(-1px);background:var(--brand-900)}
.btn-ghost{background:#fff;color:var(--brand-700);border-color:var(--ring)}
.btn-ghost:hover{background:#f1f5f9}

/* ========== Slim Sticky Header (hide-on-scroll + burger) ========== */
.header-slim{
  position: sticky; top: 0; z-index: 60;
  background: #ffffff; padding: 12px 0; border-bottom: 1px solid #e5e7eb;
  transition: transform .24s ease, box-shadow .2s ease, background-color .2s ease, padding .2s ease;
  will-change: transform;
} 
.header-slim.scrolling-down{ transform: translate3d(0,-100%,0); }
.header-slim.scrolled{ box-shadow: 0 6px 18px rgba(2,6,23,.06); }
.header-slim.compact{ padding: 8px 0; }
.header-slim .header-content{ display:flex; align-items:center; justify-content:space-between; }

.logo-image-slim{ height: 36px; max-height: 36px; width:auto; display:block; }
@media (min-width:721px){ .header-slim.compact .logo-image-slim{ height: 30px; } }

/* Desktop nav */
.nav-slim{ display:flex; align-items:center; gap:24px; font-size:.95rem; font-weight:600; }
.nav-slim a{ color:#0f172a; text-decoration:none; transition: color .15s ease, opacity .15s ease; }
.nav-slim a:hover{ color:#1e40af; }

/* Cart */
.cart-btn-slim{ background:#1e40af; color:#fff; padding:6px 14px; border-radius:10px; font-weight:700; display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.badge-slim{ background:#fff; color:#1e40af; font-size:.75rem; font-weight:800; padding:2px 6px; border-radius:6px; }

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }
}

.burger:hover {
  background: #f8fafc;
}

.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open .burger-line:nth-child(1),
.burger.is-open .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open .burger-line:nth-child(2),
.burger.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.open .burger-line:nth-child(3),
.burger.is-open .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu{ display:none; position:fixed; inset:60px 0 auto 0; background:#ffffff; border-bottom:1px solid #e5e7eb; box-shadow:0 20px 40px rgba(2,6,23,.08); padding:12px 18px; z-index:59; }
.mobile-menu.is-open,
.mobile-menu.open{ display:grid; gap:6px; }
.mm-link{ padding:12px 10px; border-radius:10px; text-decoration:none; color:#0f172a; font-weight:700; }
.mm-link:hover{ background:#f8fafc; }
.mm-cart{ display:inline-flex; align-items:center; gap:8px; }
.mm-badge{ background:#1e40af; color:#fff; font-size:.75rem; padding:2px 6px; border-radius:6px; font-weight:800; }

/* Header responsive */
@media (max-width:720px){
  .nav-slim{ display:none; }
  .burger{ display:inline-flex; }
  .logo-image-slim{ height:32px; }
}

/* Dark scheme tweaks */
@media (prefers-color-scheme: dark){
  .header-slim{ background:#0b1220; border-bottom-color:#1e293b; }
  .nav-slim a{ color:#e5e7eb; } .nav-slim a:hover{ color:#93c5fd; }
  .burger{ background:#0b1220; border-color:#1e293b; }
  .burger-line{ background:#e5e7eb; }
  .mobile-menu{ background:#0f172a; border-bottom-color:#1e293b; }
  .mm-link{ color:#e5e7eb; } .mm-link:hover{ background:#0b1220; }
  .cart-btn-slim{ background:#1e3a8a; }
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);
  padding: 28px 0 36px; /* було 60px 0 40px */
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}

.hero::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 80%, rgba(30,64,175,.10) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(14,165,233,.10) 0%, transparent 50%);
}
.hero-content{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; position:relative; z-index:2; }
.hero-text h1{ font-size: clamp(2.5rem,5vw,4rem); font-weight:900; color:#1e293b; margin-bottom:25px; line-height:1.1; }
.hero-text .highlight{ background: linear-gradient(135deg,#1e40af,#0ea5e9); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.tagline{ font-size:1.1rem; color:#1e40af; font-weight:600; margin-bottom:20px; text-shadow:0 0 20px rgba(30,64,175,.3); }
.hero-text p{ font-size:1.2rem; color:#64748b; margin-bottom:30px; line-height:1.7; }
.hero-stats{ display:flex; gap:30px; margin-bottom:40px; }
.stat{ text-align:center; }
.stat-number{ font-size:2rem; font-weight:800; color:#1e40af; display:block; }
.stat-label{ font-size:.9rem; color:#64748b; margin-top:5px; }
.cta-buttons{ display:flex; gap:20px; flex-wrap:wrap; }
.btn-primary.hero-btn{ background: linear-gradient(135deg,#dc2626,#ef4444); border-radius:30px; padding:15px 30px; }

/* Hero visual */
.hero-visual{ position:relative; display:flex; justify-content:center; align-items:center; }
.molecule-container{ width:400px; height:400px; position:relative; background: linear-gradient(135deg,rgba(30,64,175,.1),rgba(14,165,233,.1)); border-radius:20px; display:flex; align-items:center; justify-content:center; animation:pulse 3s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(30,64,175,.4);} 50%{ transform:scale(1.05); box-shadow:0 0 30px 10px rgba(30,64,175,.1);} }
.molecule{ width:200px; height:200px; position:relative; display:flex; align-items:center; justify-content:center; }
.molecule::before{ content:''; position:absolute; inset:0; background: linear-gradient(45deg,#1e40af,#0ea5e9,#06b6d4); border-radius:20px; animation: rotate 8s linear infinite; opacity:.8; }
.molecule::after{ content:''; position:absolute; width:80px; height:80px; background: linear-gradient(135deg,#1e40af 0%,#0ea5e9 100%); border-radius:12px; z-index:2; animation: float 4s ease-in-out infinite; display:flex; align-items:center; justify-content:center; }
@keyframes rotate{ from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes float{ 0%,100%{ transform:translateY(0) rotate(0) } 25%{ transform:translateY(-10px) rotate(90deg)} 50%{ transform:translateY(0) rotate(180deg)} 75%{ transform:translateY(10px) rotate(270deg)} }

/* ========== Trust Indicators ========== */
.trust-section{ background:#fff; padding:60px 0; border-top:1px solid #e5e7eb; }
.trust-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:40px; text-align:center; }
.trust-item{ padding:20px; transition:.3s; }
.trust-item:hover{ transform:translateY(-3px); }
.trust-icon{ font-size:3rem; margin-bottom:15px; display:block; }
.trust-title{ font-size:1.1rem; font-weight:600; color:#1e293b; margin-bottom:10px; }
.trust-desc{ color:#64748b; font-size:.95rem; }
.trust-indicator{ background:#fff; border-radius:15px; padding:25px; text-align:center; box-shadow:0 4px 15px rgba(0,0,0,.05); transition:.3s; border:1px solid #e2e8f0; }
.trust-indicator:hover{ transform:translateY(-3px); box-shadow:0 8px 25px rgba(0,0,0,.1); border-color:#1e40af; }
.trust-indicator .icon{ font-size:2.5rem; margin-bottom:15px; display:block; }

/* ========== Products ========== */
.products-section{ background:#f8fafc; padding:80px 0; }
.section-header{ text-align:center; margin-bottom:60px; }
.section-title{ font-size: clamp(2rem,4vw,3rem); font-weight:800; color:#1e293b; margin-bottom:20px; }
.section-subtitle{ font-size:1.2rem; color:#64748b; max-width:600px; margin:0 auto; }
.products-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(350px,1fr)); gap:30px; }
.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  transition: .3s;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  cursor: pointer; /* ← додано */
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.product-formula {
  text-align: center;
  margin: 12px 0 -4px;
}

.product-formula img {
  max-height: 200px;   /* ⬅️ збільшено з 80px */
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
}


.product-header{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.product-name{ font-size:1.4rem; font-weight:700; color:#1e293b; margin-bottom:5px; }
.product-chemical{ font-size:.9rem; color:#64748b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.product-badge{ background: linear-gradient(135deg,#dc2626,#ef4444); color:#fff; padding:5px 12px; border-radius:15px; font-size:.8rem; font-weight:600; }
.product-badge.most-popular{ background: linear-gradient(135deg,#f59e0b,#d97706); animation:pulse-badge 2s ease-in-out infinite; }
@keyframes pulse-badge{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.product-description{ color:#64748b; margin-bottom:25px; line-height:1.6; }
.product-specs{ background:#f8fafc; padding:20px; border-radius:12px; margin-bottom:25px; }
.spec-row{ display:flex; justify-content:space-between; margin-bottom:8px; }
.spec-row:last-child{ margin-bottom:0; }
.spec-label{ font-weight:600; color:#374151; }
.spec-value{ color:#64748b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.9rem; }
.product-footer{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.price-range{ font-size:1.2rem; font-weight:700; color:#1e40af; }
.product-buttons{ display:flex; gap:10px; }
.view-product{ background: linear-gradient(135deg,#dc2626,#ef4444); color:#fff; padding:10px 20px; border-radius:20px; text-decoration:none; font-weight:600; font-size:.9rem; transition:.3s; }
.view-product:hover{ transform:translateY(-2px); box-shadow:0 5px 15px rgba(220,38,38,.3); }

/* Quantity selector */
.quantity-selector{ margin:20px 0; padding:20px; background:#f8fafc; border-radius:12px; border:1px solid #e2e8f0; }
.quantity-options{ display:flex; gap:10px; flex-wrap:wrap; }
.quantity-option{ flex:1; min-width:80px; padding:12px 8px; border:2px solid #e2e8f0; border-radius:8px; background:#fff; cursor:pointer; transition:.3s; text-align:center; position:relative; }
.quantity-option:hover{ border-color:#1e40af; transform:translateY(-2px); }
.quantity-option.active{ border-color:#1e40af; background:#eff6ff; transform:translateY(-2px); }
.quantity-option .quantity{ display:block; font-weight:700; color:#1e293b; font-size:.9rem; }
.quantity-option .price{ display:block; font-weight:600; color:#1e40af; font-size:1rem; margin-top:4px; }
.quantity-option .save{ position:absolute; top:-8px; right:-8px; background:#10b981; color:#fff; font-size:.7rem; padding:2px 6px; border-radius:10px; font-weight:600; }
.price-display{ display:flex; flex-direction:column; align-items:flex-start; }
.current-price{ font-size:1.4rem; font-weight:700; color:#1e40af; }
.price-per-mg{ font-size:.9rem; color:#64748b; margin-top:2px; }

/* ========== About ========== */
.about-section{ background:#fff; padding:80px 0; }
.about-content{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-text h2{ font-size:clamp(1.8rem,4vw,2.5rem); font-weight:800; color:#1e293b; margin-bottom:25px; }
.about-text p{ color:#64748b; margin-bottom:20px; font-size:1.1rem; }
.features-list{ list-style:none; margin-top:30px; }
.features-list li{ display:flex; align-items:center; gap:12px; margin-bottom:15px; color:#374151; font-weight:500; }
.features-list li::before{ content:'✓'; background: linear-gradient(135deg,#10b981,#059669); color:#fff; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; }
.about-visual{ background: linear-gradient(135deg,#f8fafc,#e2e8f0); border-radius:20px; padding:40px; text-align:center; position:relative; }
.lab-icon{ font-size:6rem; margin-bottom:20px; opacity:.8; }

/* ========== Page header (generic) ========== */
.page-header{ background: linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%); padding:150px 0 80px; text-align:center; position:relative; }
.page-header::before{ content:''; position:absolute; inset:0; background:
  radial-gradient(circle at 20% 80%, rgba(30,64,175,.1) 0%, transparent 50%),
  radial-gradient(circle at 80% 20%, rgba(14,165,233,.1) 0%, transparent 50%); }
.page-header h1{ font-size:clamp(2.5rem,5vw,4rem); font-weight:900; color:#1e293b; margin-bottom:20px; position:relative; z-index:1; }
.page-header p{ font-size:1.2rem; color:#64748b; max-width:600px; margin:0 auto; position:relative; z-index:1; }

/* ========== FAQ ========== */
.faq-section{ background:#fff; padding:80px 0; border-top:1px solid #e5e7eb; }
.faq-section h2{ font-size:clamp(2rem,4vw,3rem); font-weight:800; color:#1e293b; text-align:center; margin-bottom:60px; }
.faq-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:30px; max-width:1100px; margin:0 auto; align-items:start;}
.faq-item{ background:#f8fafc; border-radius:15px; padding:25px; transition:.3s; border-left:4px solid #dc2626; cursor:pointer; }
.faq-item:hover{ transform:translateY(-2px); box-shadow:0 8px 25px rgba(0,0,0,0.10); border-left-color:#1e40af; }
.faq-question{ font-size:1.1rem; font-weight:700; color:#1e293b; margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.faq-question::before{ content:'🔬'; font-size:1.2rem; }
.faq-answer{ color:#64748b; line-height:1.7; font-size:1rem; }


/* ========== How-to steps / Value cards / CTAs ========== */
.value-card{ transition:.3s; } .value-card:hover{ transform:translateY(-5px); box-shadow:0 10px 30px rgba(0,0,0,.1); }
.consultation-cta{ background:linear-gradient(135deg,rgba(30,64,175,.1),rgba(14,165,233,.1)); border:2px solid #1e40af; border-radius:15px; padding:30px; text-align:center; margin:40px 0; transition:.3s; }
.consultation-cta:hover{ background:linear-gradient(135deg,rgba(30,64,175,.15),rgba(14,165,233,.15)); transform:translateY(-2px); box-shadow:0 8px 25px rgba(30,64,175,.2); }
.step-indicator{ display:flex; align-items:flex-start; gap:20px; background:#fff; padding:25px; border-radius:15px; box-shadow:0 4px 15px rgba(0,0,0,.05); transition:.3s; margin-bottom:20px; }
.step-indicator:hover{ transform:translateY(-2px); box-shadow:0 8px 25px rgba(0,0,0,.1); }
.step-number{ background:#1e40af; color:#fff; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; font-size:1.1rem; }
.step-content h3{ color:#1e293b; margin-bottom:10px; font-size:1.2rem; font-weight:600; }
.step-content p{ color:#64748b; margin:0; line-height:1.6; }

/* ========== Filter Buttons ========== */
.filter-btn{ padding:10px 20px; border:2px solid #1e40af; background:#fff; color:#1e40af; border-radius:25px; font-weight:600; cursor:pointer; transition:.3s; text-decoration:none; display:inline-block; }
.filter-btn:hover{ background:#1e40af; color:#fff; transform:translateY(-2px); }
.filter-btn.active{ background:#1e40af; color:#fff; }

/* ========== Footer ========== */
.footer{ background:#1e293b; color:#fff; padding:60px 0 30px; }
.footer-content{ display:grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap:40px; margin-bottom:40px; }
.footer-section h3{ font-size:1.2rem; font-weight:700; margin-bottom:20px; color:#f1f5f9; }
.footer-section p, .footer-section li{ color:#94a3b8; margin-bottom:10px; }
.footer-section ul{ list-style:none; }
.footer-section a{ color:#94a3b8; text-decoration:none; transition: color .3s ease; }
.footer-section a:hover{ color:#3b82f6; }
.footer-bottom{ border-top:1px solid #374151; padding-top:30px; text-align:center; color:#94a3b8; }

/* ========== Checkout / Cart ========== */
.hidden{ display:none !important; }
.link{ color:#1e40af; text-decoration:none; font-weight:600; }
.link:hover{ text-decoration:underline; }
.link.danger{ color:#dc2626; }

.cart-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--ring); }
.cart-title{ color:var(--text); }
.cart-ctrl{ display:flex; align-items:center; gap:10px; }
.cart-qty{ width:64px; padding:6px 8px; border-radius:8px; border:1px solid var(--ring); font-weight:600; }
.cart-total{ padding-top:14px; }
.cart-total .line{ height:1px; background:var(--ring); margin:10px 0; }
.cart-total .sum{ font-size:1.15rem; color:var(--text); display:flex; justify-content:flex-end; }

.checkout-form .form-two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.checkout-form .radio-row { display:flex; gap:16px; flex-wrap:wrap; }
.checkout-form .form-group { margin-bottom:14px; }
.checkout-form .btn-primary { padding:10px 16px; font-weight:600; }
.checkout-form .form-status { font-size:.95rem; }
@media (max-width:768px){ .checkout-form .form-two { grid-template-columns:1fr; } }

/* ========== Responsive (mobile-first tweaks) ========== */
@media (max-width:480px){
  .container{ padding: 0 15px; }
  .hero { padding: 60px 0 40px; min-height: auto;}
  .hero-content{ grid-template-columns:1fr; gap:30px; text-align:center; }
  .hero-text h1{ font-size:2rem; line-height:1.1; margin-bottom:20px; }
  .tagline{ font-size:1rem; margin-bottom:15px; }
  .hero-text p{ font-size:1rem; margin-bottom:25px; }
  .hero-stats{ justify-content:center; gap:20px; margin-bottom:30px; }
  .stat-number{ font-size:1.5rem; }
  .cta-buttons{ justify-content:center; flex-direction:column; align-items:center; gap:15px; }
  .btn-primary, .btn-ghost{ padding:12px 25px; font-size:1rem; width:100%; max-width:280px; justify-content:center; }
  .molecule-container{ width:280px; height:280px; }
  .molecule::after{ width:60px; height:60px; }

  .products-section{ padding:60px 0; }
  .section-title{ font-size:1.8rem; margin-bottom:15px; }
  .section-subtitle{ font-size:1rem; }
  .section-header{ margin-bottom:40px; }
  .products-grid{ grid-template-columns:1fr; gap:20px; }
  .product-card{ padding:20px; margin-bottom:10px; }
  .product-name{ font-size:1.2rem; }
  .product-description{ font-size:.95rem; margin-bottom:20px; }
  .product-specs{ padding:15px; margin-bottom:20px; }
  .spec-row{ flex-direction:column; margin-bottom:10px; gap:2px; }

  .about-section{ padding:60px 0; }
  .about-content{ grid-template-columns:1fr; gap:40px; text-align:center; }
  .faq-section{ padding:60px 0; }
  .faq-grid{ grid-template-columns:1fr; gap:20px; }
  .faq-item{ padding:20px; }

  .footer{ padding:40px 0 20px; }
  .footer-content{ grid-template-columns:1fr; gap:30px; text-align:center; }

  .step-indicator{ flex-direction:column; text-align:center; gap:15px; }
  .consultation-cta{ padding:20px; margin:20px 0; }
}

/* Tablet Portrait */
@media (min-width:481px) and (max-width:768px){
  .hero{ padding:140px 0 70px; min-height:70vh; }
  .hero-content{ grid-template-columns:1fr; gap:40px; text-align:center; }
  .hero-text h1{ font-size:2.5rem; }
  .hero-stats{ justify-content:center; }
  .molecule-container{ width:320px; height:320px; }
  .products-grid{ grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap:25px; }
  .about-content{ grid-template-columns:1fr; gap:40px; }
  .faq-grid{ grid-template-columns:1fr; }
  .footer-content{ grid-template-columns: repeat(2,1fr); }
}

/* Tablet Landscape */
@media (min-width:769px) and (max-width:1024px){
  .container{ padding:0 25px; }
  .hero-content{ gap:50px; }
  .molecule-container{ width:350px; height:350px; }
  .products-grid{ grid-template-columns: repeat(2,1fr); gap:25px; }
  .faq-grid{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 30px;
    min-height: auto;
    align-items: flex-start;
  }
}

/* Small Desktop */
@media (min-width:1025px) and (max-width:1200px){
  .container{ max-width:1000px; }
  .products-grid{ grid-template-columns: repeat(2,1fr); gap:30px; }
}

/* Large Desktop / Ultra Wide tweaks */
@media (min-width:1201px) and (max-width:1440px){
  .container{ max-width:1200px; }
  .hero-text h1{ font-size:4.5rem; }
  .molecule-container{ width:450px; height:450px; }
}
@media (min-width:1441px){
  .container{ max-width:1400px; }
  .hero{ padding:200px 0 100px; }
  .hero-text h1{ font-size:5rem; }
  .products-section{ padding:100px 0; }
  .molecule-container{ width:500px; height:500px; }
}

/* Touch devices */
@media (hover:none) and (pointer:coarse){
  .btn-primary,.btn-ghost,.view-product,.add-to-cart{ min-height:44px; padding:12px 24px; }
  .product-card:hover{ transform:none; }
}

/* Accessibility */
:focus-visible{ outline: 2px solid #1e40af; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .molecule-container,.molecule::before,.molecule::after,.product-badge.most-popular{ animation:none !important; }
}

/* High-contrast */
@media (prefers-contrast: high){
  .product-card{ border:2px solid #000; }
  .btn-primary{ border:2px solid #fff; }
  .hero-text .highlight{ -webkit-text-fill-color:#1e40af; color:#1e40af; }
}

/* Print */
@media print{
  .header-slim,.sticky-mobile-cta,.molecule-container{ display:none !important; }
  .hero{ padding:20px 0; background:#fff; }
  .hero::before{ display:none; }
  .product-card{ box-shadow:none; border:1px solid #ccc; break-inside: avoid; }
  .btn-primary,.btn-ghost,.view-product,.add-to-cart,.cart-btn-slim{ display:none; }
  .footer{ page-break-before: always; }
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-track{ background:#f1f5f9; }
::-webkit-scrollbar-thumb{ background:#1e40af; border-radius:4px; }
::-webkit-scrollbar-thumb:hover{ background:#1d4ed8; }
/* === How to Order (restore) === */
.howto { background:#f8fafc; padding:80px 0; }
.howto-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin-bottom: 60px;
}
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.howto-card {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  border: 1px solid #e2e8f0;
}
.howto-step {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff; font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.howto-card-title { color:#1e293b; margin-bottom: 10px; font-weight: 700; }
.howto-card-text  { color:#64748b; font-size:.95rem; }
.howto-cta { text-align:center; margin-top: 40px; }

/* === Custom Synthesis (restore) === */
.custom-synth-section {
  background: radial-gradient(120% 120% at 10% 0%, #0b1220 0%, #0f172a 55%, #0b1220 100%);
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  padding: 84px 0;
  color: #e5e7eb; position: relative; overflow: hidden;
}
.custom-synth-section::before {
  content: ""; position: absolute; inset: auto -120px -120px auto;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(59,130,246,.28), rgba(59,130,246,0));
  filter: blur(6px); pointer-events: none;
}
.cs-grid { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 960px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-head h2 {
  font-weight: 900; line-height: 1.05; font-size: clamp(2.1rem, 4.2vw, 3rem);
  margin: 0 0 10px 0; letter-spacing: -0.01em;
}
.cs-head h2 span {
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-fill-color: transparent;
}
.cs-head p { margin: 0; color: #cbd5e1; font-size: 1.05rem; line-height: 1.65; max-width: 740px; }
.cs-list {
  list-style: none; padding: 22px; margin: 0; display: grid; gap: 14px;
  background: rgba(2,6,23,.45); border: 1px solid #1f2937; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.25);
}
.cs-list li {
  background: rgba(15,23,42,.55); border: 1px solid #263243; border-radius: 12px;
  padding: 12px 14px; color: #dbeafe; font-size: .98rem; line-height: 1.55;
}
.cs-list b { color: #e2e8f0; }
.cs-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-title {
  margin-top: 0;
}
/* === HARD OVERRIDE: make hero tight === */
.hero{
  padding-top: 16px !important;
  padding-bottom: 32px !important;
  min-height: auto !important;
  align-items: flex-start !important;
}
.hero > .container{ margin-top: 0 !important; padding-top: 0 !important; }

/* заголовок без дефолтного верхнього відступу */
h1, .hero h1, .page-title{ margin-top: 0 !important; }
/* Products page hero spacing */
.products-hero { padding: 28px 0 8px; }

/* Make card feel clickable (already for index, дублюємо для надійності) */
.product-card[data-href] { cursor: pointer; }

/* === Toast notifications === */
#toastHost{
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* кліки проходять крізь */
}
@media (max-width: 768px){
  #toastHost{ right: 50%; transform: translateX(50%); left: 0; bottom: 15px; }
}
.toast{
  pointer-events: auto;
  background: #0f172a;       /* slate-900 */
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.toast.show{ transform: translateY(0); opacity: 1; }
.toast.hide{ transform: translateY(8px); opacity: 0; }
.toast-success{ background: #065f46; }  /* emerald-800 */
.toast-error{ background: #7f1d1d; }    /* red-900 */
/* Header must be above any content */
.header-slim { z-index: 1000 !important; pointer-events: auto; }

/* Decorative backgrounds must not intercept clicks */
.hero::before,
.products-hero::before { pointer-events: none; }

/* Ensure sections do not sit above header by stacking */
.hero, .products-hero { position: relative; z-index: 1; }

/* Toast notifications (if ще не додав) */
#toastHost{
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
@media (max-width: 768px){
  #toastHost{ right: 50%; transform: translateX(50%); left: 0; bottom: 15px; }
}
.toast{
  pointer-events: auto;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.toast.show{ transform: translateY(0); opacity: 1; }
.toast.hide{ transform: translateY(8px); opacity: 0; }
.toast-success{ background: #065f46; }
.toast-error{ background: #7f1d1d; }
/* === Add to Cart (improved) === */
.add-to-cart{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:14px; font-weight:800;
  line-height:1; border:1px solid transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color:#fff; box-shadow: 0 8px 24px rgba(2,6,23,.15);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.add-to-cart:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.add-to-cart:active{ transform: translateY(0); }
.add-to-cart:focus-visible{ outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 14px; }
.add-to-cart .add-label{ font-weight:800; }
.add-to-cart .add-price{ font-weight:900; opacity:.95; }

/* Full‑width on mobile for better tap targets */
@media (max-width: 540px){
  .product-footer{ gap:12px; }
  .add-to-cart{ width:100%; justify-content:center; }
}
/* === Products page hero (title + subtitle) === */
.products-hero{
  padding: 36px 0 20px; position: relative;
  background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(14,165,233,.06));
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.products-hero h1{
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 0 8px 0;
}
.products-hero .muted{
  color: #475569; /* трохи контрастніше ніж .muted за замовчуванням */
  font-weight: 600;
}
@media (prefers-color-scheme: dark){
  .products-hero{ background: linear-gradient(135deg, rgba(148,163,184,.08), rgba(59,130,246,.08)); border-bottom-color:#1e293b; }
  .products-hero .muted{ color:#cbd5e1; }
}
/* === Product footer layout: стабільна лінія з кнопкою === */
.product-footer{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;           /* <- не дозволяємо перенесення на новий рядок */
  min-height: 48px;
}

.product-footer .view-product,
.product-footer .view-cart{
  white-space: nowrap;         /* лінки не рвуться */
  flex: 0 0 auto;
}

.product-footer .add-to-cart{
  flex: 1 1 auto;              /* кнопка займає весь доступний простір */
  min-width: 220px;            /* запобігає "зламу" при дуже коротких лейблах (100mg) */
  white-space: nowrap;         /* текст в кнопці на одній лінії */
}

/* Мобільна поведінка: стек у два рядки — але контрольовано */
@media (max-width: 560px){
  .product-footer{
    flex-wrap: wrap;           /* на вузьких екранах дозволяємо перенос */
  }
  .product-footer .add-to-cart{
    order: 3;
    width: 100%;
    min-width: 0;
  }
}
.add-to-cart{
  will-change: transform, box-shadow, filter;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}
/* (тут іде вміст ТВОГО оригінального styles.css без змін — 1:1)
   …
   … (усі 645+ рядків зберігаються)
   …
*/

/* =========================================================
   ISRIB.shop overrides — 2025-09-26
   Purpose: keep "View details + Add to cart" on first row, move "View cart" below full-width,
            hide price inside Add to cart button, ensure toast host is top-right,
            and style products hero header.
   These rules are appended at the end to take precedence.
   ========================================================= */


/* First row: View details + Add to cart; second row: View cart (full width) */
/* product footer layout (настільні та мобільні) */
.product-footer{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start; /* важливо: більше не space-between */
}

/* порядок елементів */
.product-footer .add-to-cart{ order:1; }
.product-footer .view-cart{ order:2; }
.product-footer .view-product{ order:3; margin-left:auto; } /* щоб "View Details" був справа */

/* мобільне: НЕ міняємо порядок на 3 */
@media (max-width:560px){
  .product-footer{ flex-wrap:wrap; }
  .product-footer .add-to-cart{
    order:1;           /* було 3 — прибираємо */
    flex:1 1 auto;
    min-width:0;
  }
}


/* Add to cart button polishing (no price inside) */
.add-to-cart{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  line-height:1;
  border:1px solid transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color:#fff;
  box-shadow: 0 8px 24px rgba(2,6,23,.15);
  will-change: transform, box-shadow, filter;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}
.add-to-cart:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.add-to-cart:active{ transform: translateY(0); }
.add-to-cart:focus-visible{ outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 14px; }
.add-to-cart .add-price{ display:none !important; } /* hide any legacy price span */

/* Toasts at the top-right (JS also sets top) */
#toastHost{
  position:fixed;
  right:20px;
  top:20px;
  bottom:auto !important;         /* force away from bottom */
  display:grid;
  gap:10px;
  z-index:9999;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  background:#0f172a;
  color:#fff;
  font-weight:700;
  padding:12px 16px;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  transform:translateY(8px);
  opacity:0;
  transition:transform .18s ease, opacity .18s ease;
  border:1px solid rgba(255,255,255,.08);
}
.toast.show{ transform:translateY(0); opacity:1; }
.toast.hide{ transform:translateY(8px); opacity:0; }

/* Products hero (title + subtitle) — safe enhancement */
.products-hero{
  padding: 36px 0 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(14,165,233,.06));
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.products-hero h1{
  font-weight:900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing:-.02em;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px 0;
}
.products-hero .muted{
  color:#475569;
  font-weight:600;
}
@media (prefers-color-scheme: dark){
  .products-hero{
    background: linear-gradient(135deg, rgba(148,163,184,.08), rgba(59,130,246,.08));
    border-bottom-color:#1e293b;
  }
  .products-hero .muted{ color:#cbd5e1; }
}
/* Page hero */
.page-hero{
  padding: 56px 0 24px;
  background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(14,165,233,.06));
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.page-hero h1{
  font-weight:900; letter-spacing:-.02em;
  font-size: clamp(2rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom: 6px;
}
.page-hero .subtitle{ color:#475569; max-width: 860px; }

/* About sections */
.about-section{ background:#fff; padding:80px 0 }
.about-section.alt{ background:#f8fafc }
.about-content{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center }
.about-text h2{ font-size:clamp(1.8rem,4vw,2.2rem); font-weight:800; color:#1e293b; margin-bottom:18px }
.about-text p{ color:#64748b; margin-bottom:16px; font-size:1.05rem; line-height:1.8 }
.about-text.center-narrow{ max-width:800px; margin:0 auto; text-align:center }
.about-text.center-narrow p{ text-align:left }

.about-visual .lab-icon{ font-size:3rem; margin-bottom:12px }
.about-visual h3{ color:#1e293b; margin-bottom:10px; font-weight:700 }

/* Feature cards */
.center{ text-align:center }
.feature-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px }
.feature-card{ background:#f8fafc; padding:24px; border-radius:15px; border-left:4px solid #1e40af }
.feature-card h3{ color:#1e293b; margin-bottom:10px; font-size:1.15rem }

/* Simple cards */
.cards-3up{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px }
.card-plain{ text-align:center; background:#fff; border-radius:15px; padding:24px; box-shadow:0 4px 15px rgba(0,0,0,.05) }
.card-emoji{ font-size:3rem; margin-bottom:10px }

/* Team */
.about-section.team.dark{ background:#1e293b; color:#fff }
.about-section.team.dark .light{ color:#f1f5f9 }
.team-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto }
.team-card{ text-align:center }
.team-avatar{ width:120px; height:120px; background: linear-gradient(135deg, #1e40af, #0ea5e9); border-radius:50%; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; font-size:3rem }

/* Reasons list */
.reasons{ display:grid; gap:20px; max-width:800px; margin:0 auto }
.reason{ display:flex; align-items:flex-start; gap:20px; background:#fff; padding:22px; border-radius:15px; box-shadow:0 4px 15px rgba(0,0,0,.05) }
.reason-num{ background:#1e40af; color:#fff; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0 }
.reason-body h3{ color:#1e293b; margin-bottom:8px }

/* CTA */
.about-cta{
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  color:#fff; text-align:center; padding:80px 0;
}
.about-cta .light{ color:#fff }
.about-cta .subt{ font-size:1.1rem; opacity:.9; margin-bottom:18px }
.about-cta .cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap }

/* Responsive */
@media (max-width: 980px){
  .about-content{ grid-template-columns:1fr; gap:36px; text-align:center }
}
/* FAQ page hero (узгоджено з about.html) */
.page-hero{ padding:56px 0 24px; background:linear-gradient(135deg, rgba(30,64,175,.06), rgba(14,165,233,.06)); border-bottom:1px solid rgba(2,6,23,.06) }
.page-hero h1{ font-weight:900; letter-spacing:-.02em; font-size:clamp(2rem,4vw,2.5rem);
  background:linear-gradient(135deg,#1e40af,#0ea5e9); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:6px }
.page-hero .subtitle{ color:#475569; max-width:860px }

/* FAQ sections */
.faq-section{ background:#fff; padding:80px 0; border-top:1px solid #e5e7eb }
.faq-section .section-title{ text-align:center; margin-bottom:10px }
.faq-section .section-subtitle{ text-align:center; margin:0 auto 30px; max-width:820px }

.faq-item{ position:relative; background:#f8fafc; border-radius:15px; padding:0; transition:.3s; border-left:4px solid #dc2626; cursor:pointer; scroll-margin-top:120px }


/* Button + answer panel */

.faq-question{ font-size:1.1rem; font-weight:700; color:#1e293b }
.faq-icon{ font-weight:900; font-size:1.3rem; margin-left:18px }
.faq-answer{ color:#64748b; line-height:1.7; font-size:1rem; padding:0 24px 22px; }

/* deep-link alias anchors (do not take space) */
.alias-anchor{ position:absolute; top:-120px; left:0; width:1px; height:1px; overflow:hidden; pointer-events:none }

/* Dark scheme */
@media (prefers-color-scheme: dark){
  .faq-section{ background:#0f172a; border-top-color:#1e293b }
  .faq-item{ background:#1e293b; border-color:#334155 }
  .faq-item:hover{ border-left-color:#3b82f6 }
  .faq-question{ color:#e2e8f0 }
  .faq-answer{ color:#94a3b8 }
}

/* Mobile tweaks */
@media (max-width:768px){
  .faq-grid{ grid-template-columns:1fr }
  .faq-button{ padding:18px }
  .faq-answer{ padding:0 18px 18px }
}
/* Гарантуємо, що приховане — справді приховане */
.faq-answer[hidden] { display: none !important; }

/* На всяк випадок: клікабельність кнопки */
.faq-button { cursor: pointer; }

/* Якщо раптом .faq-item перекривався шаром/оверлеєм */
.faq-item { position: relative; }
/* FAQ: надійне керування видимістю через клас .open */
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }

/* На випадок сторонніх !important */
.faq-answer[hidden] { display: none !important; }

/* Курсор та шар кліку */
.faq-item { position: relative; }
.faq-button { cursor: pointer; }
/* === Contact page === */
.contact-hero .subtitle{ color:#475569; max-width:860px }

/* cards */
.contact-methods{ background:#fff; padding:80px 0 }
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px }
.contact-card{ text-align:center; background:#f8fafc; border:1px solid #e2e8f0; border-radius:16px; padding:26px }
.contact-emoji{ font-size:2.2rem; margin-bottom:8px }
.link-strong{ color:#1e40af; font-weight:700; text-decoration:none }
.link-strong:hover{ text-decoration:underline }
.small{ font-size:.9rem }

/* form */
.contact-form-wrap{ background:#f8fafc; padding:80px 0 }
.contact-form-card{ background:#fff; border-radius:20px; box-shadow:0 10px 30px rgba(2,6,23,.08); padding:28px; max-width:900px; margin:0 auto }
.contact-form-card h2{ font-weight:800; font-size:clamp(1.6rem,3.5vw,2rem); margin-bottom:18px }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px }
.field label{ font-weight:700; color:#374151 }
.field input, .field select, .field textarea{
  padding:12px 14px; border:2px solid #e2e8f0; border-radius:10px; font:inherit; background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:#1e40af; box-shadow:0 0 0 3px rgba(30,64,175,.1);
}
.checkbox{ display:flex; align-items:center; gap:10px; margin:10px 0 18px }
.btn-wide{ width:100%; }
.hidden{ display:none !important }

/* payment band */
.contact-payment{ background:#1e293b; color:#fff; padding:80px 0 }
.contact-payment .light{ color:#fff }
.pay-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:22px; margin-top:18px }
.pay-card{ text-align:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:20px }
.pay-emoji{ font-size:2rem; margin-bottom:6px }
.pay-note{ text-align:center; margin-top:26px; padding:20px; background:rgba(255,255,255,.08); border-radius:14px }

@media (max-width: 820px){
  .grid-2{ grid-template-columns:1fr }
}
/* ===== Checkout layout/cards/inputs ===== */
.checkout-wrap{ padding: 40px 0 80px; }
.checkout-grid{ display:grid; grid-template-columns: 1.4fr .9fr; gap:24px; align-items:start; }
@media (max-width: 980px){ .checkout-grid{ grid-template-columns: 1fr; } }

.card{ background: var(--panel); border:1px solid var(--ring); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body{ padding: var(--pad); }

.checkout-form .form-group label{ display:block; font-weight:700; color:var(--text); margin-bottom:6px; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea{
  width:100%; padding:11px 12px; border:1px solid var(--ring); border-radius:12px;
  background:#fff; color:var(--text); font:inherit; line-height:1.4;
}
.checkout-form textarea{ resize:vertical; }
.checkout-form .form-two{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:768px){ .checkout-form .form-two{ grid-template-columns:1fr; } }
.checkout-form .req{ color:#dc2626; margin-left:4px; }
.checkout-form .agree-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;   
  margin: 24px 0 0;      /* Замість 10px */
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--ring);
  border-radius: 10px;
  max-width: 760px; margin-inline: auto;
}
.checkout-form .agree-row input[type="checkbox"]{
  -webkit-appearance: auto;
  appearance: auto;           /* стандартний системний чекбокс */
  transform: none;            /* прибираємо scale, що зсував вліво */
  margin: 4px 8px 0 2px;      /* акуратне вирівнювання з текстом */
  flex: 0 0 auto;             /* не розтягується */
}
.checkout-form .agree-row .muted{
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  line-height: 1.6;
}
.checkout-form .form-actions{ margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.checkout-form .form-status{ min-height:20px; }
.checkout-form .form-actions .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--brand-900);
  color: #fff;
  font-size: 1.05rem;
  transition: background 0.2s ease;
}
.btn-primary {
  background: var(--brand-900) !important;
  color: #fff !important;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--brand-800) !important;
  color: #fff !important;
  border: none !important;
}
.checkout-form .form-actions .btn:hover {
  background: var(--brand-800);
}
.order-card .sep{ margin:16px 0; border:none; border-top:1px solid var(--ring); }
.ro-list {
  margin-top: 10px;
  padding-left: 18px;     /* новий відступ від лівого краю */
  padding-right: 18px;    /* трішки повітря справа */
  line-height: 1.8;
}
.cart-list{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.cart-row{ display:grid; grid-template-columns:1fr auto; gap:12px; padding:10px 12px; border:1px solid var(--ring); border-radius:12px; background:var(--bg-soft); }
.cart-title{ font-weight:700; color:var(--text); }
.cart-ctrl{ display:flex; align-items:center; gap:8px; }
.cart-qty{ width:76px; padding:6px 8px; border-radius:8px; border:1px solid var(--ring); font-weight:700; }
.link{ background:none; border:none; color:var(--brand-900); cursor:pointer; padding:0; font-weight:700; }
.link.danger{ color:#dc2626; }

.totals{ margin-top:14px; }
.totals-row{ display:flex; justify-content:space-between; align-items:center; margin:6px 0; font-size:1rem; }
.totals-row .label{ color:var(--muted-strong); }
.totals-row .value{ font-weight:800; color:var(--text); }
.totals-row.total{ margin-top:10px; padding-top:10px; border-top:1px solid var(--ring); font-size:1.1rem; }
.totals-row.total .value{ font-size:1.2rem; }
/* Force styles for the checkout submit button */
#submitOrderBtn {
  background: var(--brand-900) !important;
  color: #fff !important;
  border: none !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#submitOrderBtn:hover,
#submitOrderBtn:focus,
#submitOrderBtn:active {
  background: var(--brand-800) !important;
  color: #fff !important;
  border: none !important;
}
/* === Checkout submit button: force stable hover === */
.checkout-form .form-actions #submitOrderBtn,
.checkout-form .form-actions #submitOrderBtn:hover,
.checkout-form .form-actions #submitOrderBtn:focus,
.checkout-form .form-actions #submitOrderBtn:active {
  background: var(--brand-900) !important;
  color: #fff !important;
  border: none !important;
}

.checkout-form .form-actions #submitOrderBtn:hover,
.checkout-form .form-actions #submitOrderBtn:focus {
  background: var(--brand-800) !important;
}
/* Checkout submit: гарантовано темний фон і на hover */
#submitOrderBtn,
.btn.btn-primary {
  background-color: var(--brand-900) !important;
  color:#fff !important;
  border:none !important;
  background-image:none !important;
  filter:none !important;
  display:inline-flex; justify-content:center; align-items:center;
}

#submitOrderBtn:hover,
.btn.btn-primary:hover,
#submitOrderBtn:focus,
.btn.btn-primary:focus,
#submitOrderBtn:active,
.btn.btn-primary:active {
  background-color: var(--brand-800) !important;
  color:#fff !important;
  border:none !important;
  background-image:none !important;
  filter:none !important;
}
/* Quality page helpers */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:980px){ .feature-grid{ grid-template-columns:1fr; } }

.page-quality .feature-card{
  background: var(--panel);
  border:1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}


.bullet{ margin:0; padding-left:22px; line-height:1.9; }

.sep{ border:none; border-top:1px solid var(--ring); }

.back-actions .btn{ display:inline-flex; align-items:center; justify-content:center; }
.btn-secondary{
  background:#e2e8f0; color:#111827; border:1px solid var(--ring);
}
.btn-secondary:hover{ background:#cfd8e3; color:#111827; }
/* Safety page helpers */
.safety-section{ padding:28px 0 70px; }
.safety-section .container{ max-width:980px; }
.bullet{ margin:0; padding-left:22px; line-height:1.9; }

.notice{
  background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12;
  border-radius:12px; padding:14px 16px; margin-top:14px;
  font-size:.97rem;
}

.back-actions .btn{ display:inline-flex; align-items:center; justify-content:center; }

/* Legal / Terms page helpers */
.legal-section{ padding:28px 0 70px; }
.legal-section .container{ max-width:980px; }
.legal-meta{ color:#64748b; }

.btn-outline{
  background:transparent;
  color:var(--text);
  border:1px solid var(--ring);
}
.btn-outline:hover{
  background:#f3f4f6;
  color:var(--text);
}
/* Force light cards on Terms page (mobile only) */
@media (max-width: 820px) {
  .legal-section{
    --panel:#fff;
    --ring:#e5e7eb;
    --text:#0f172a;
    --muted:#475569;
    background:#fff;
  }
  .legal-section .card{
    background:#fff !important;
    border:1px solid var(--ring);
  }
}

/* Privacy page helpers */
.privacy-section{ padding:28px 0 70px; }
.privacy-section .container{ max-width:980px; }
.legal-meta{ color:#64748b; }
/* Research Use Only page */
.research-section{ padding:28px 0 70px; }
.research-section .container{ max-width:980px; }
.bullet{ margin:0; padding-left:22px; line-height:1.9; }
/* Disclaimer page helpers */
.disclaimer-section{ padding:28px 0 70px; }
.disclaimer-section .container{ max-width:980px; }
/* 404 page helpers */
.notfound-section{ padding:26px 0 70px; }
.notfound-section .container{ max-width:880px; }

.code-badge{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:900; font-size:clamp(2.2rem,6vw,3rem);
  color:#1e293b; background:#eef2ff; border:1px solid #c7d2fe;
  padding:8px 16px; border-radius:16px; gap:10px;
}
/* Success page helpers */
.success-section{ padding:28px 0 70px; }
.success-section .container{ max-width:820px; }
.lead{ opacity:.9; }
.sep{ border:none; border-top:1px solid var(--ring); }

/* ===== A15 page (scoped) ===== */
.page-product-a15 .a15-hero {
  background:#f8fafc;          /* світлий фон секції, хедер добре читається */
  padding:52px 0 38px;
  position:relative;
}
.page-product-a15 .a15-hero::before { display:none; }

.page-product-a15 .a15-hero-grid{
  display:grid;
  grid-template-columns:1.12fr 1fr;
  gap:48px;
  align-items:center;
}

/* left visual */
.page-product-a15 .a15-visual{
  background:#fff;                 /* чисто білий блок під PNG формули */
  border:1px solid var(--ring);
  border-radius:20px;
  padding:22px;
  box-shadow:var(--shadow);
}
.page-product-a15 .formula{ margin:0; text-align:center; }
.page-product-a15 .formula-img{
  max-width:100%; height:auto; display:block; margin:0 auto 10px;
  filter:drop-shadow(0 8px 24px rgba(2,6,23,.08));
}
.page-product-a15 .mini-stats{ display:flex; gap:28px; justify-content:center; margin-top:10px; }
.page-product-a15 .mini-stats .num{ font-size:1.25rem; font-weight:800; color:#1e40af; text-align:center; }
.page-product-a15 .mini-stats .cap{ font-size:.85rem; color:#64748b; text-align:center; }

/* right copy */
.page-product-a15 .row{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.page-product-a15 .pill.in-stock{
  background:#dcfdf7; color:#059669; border:1px solid #10b981;
  padding:4px 10px; border-radius:999px; font-weight:700; font-size:.8rem;
}
.page-product-a15 .a15-title{
  font-size:clamp(2rem,4.2vw,3rem); font-weight:900; color:#1e293b; margin:6px 0;
}
.page-product-a15 .a15-chem.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#1e40af; font-weight:700; margin-bottom:12px;
}
.page-product-a15 .a15-lead{ font-size:1.05rem; color:var(--muted-strong); }

/* order section (just after hero) */
.page-product-a15 .order-section{ background:#f8fafc; padding:52px 0; }
.page-product-a15 .product-card--order{ cursor:default; }
.page-product-a15 .order-section .order-perks{
  margin-top:16px; padding-left:22px; line-height:1.9; color:var(--muted);
}

/* science block */
.page-product-a15 .science-section{ background:#fff; padding:64px 0; }
.page-product-a15 .science-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; margin-bottom:44px;
}
.page-product-a15 .science-card{
  background:#f8fafc; border:1px solid var(--ring); border-radius:15px; padding:22px; text-align:center;
}
.page-product-a15 .science-card .icon{ font-size:2rem; margin-bottom:10px; }
.page-product-a15 .how-works{
  background:linear-gradient(135deg,#f8fafc,#e2e8f0); border-radius:18px; padding:28px;
}
.page-product-a15 .how-works h3{ text-align:center; margin-bottom:18px; color:#1e293b; }
.page-product-a15 .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.page-product-a15 .step{ text-align:center; padding:10px; }
.page-product-a15 .bubble{
  width:70px; height:70px; border-radius:50%;
  background:linear-gradient(135deg,#dc2626,#ef4444); color:#fff;
  margin:0 auto 12px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.2rem;
}

/* responsive */
@media (max-width:900px){
  .page-product-a15 .a15-hero-grid{ grid-template-columns:1fr; gap:28px; }

  /* ➜ Порядок на мобільному:
     1) .a15-copy (бейджі, заголовок, формула, опис)
     2) .cta-buttons (усередині .a15-copy, тому йдуть відразу після опису)
     3) .a15-visual (картинка) */
  .page-product-a15 .a15-copy{ grid-row: 1; }     /* Текстовий блок першим */
  .page-product-a15 .a15-visual{ grid-row: 2; }   /* Картинка після тексту */

  .page-product-a15 .science-grid{ grid-template-columns:1fr; gap:28px; }
  .page-product-a15 .steps{ grid-template-columns:1fr; }
}

.product-card{ position:relative; }
.stretched-link{
  position:absolute; inset:0; z-index:1;
}
/* Щоб кнопки/селектори в картці продовжували працювати: */
.product-card .quantity-row,
.product-card .product-footer,
.product-card .quantity-option,
.product-card .add-to-cart{
  position:relative; z-index:2;
}
/* Products: make whole-card link sit behind controls */
.product-card { position: relative; }
.product-card .stretched-link{
  position: absolute; inset: 0;
  z-index: 0;
  /* без outline/фонів — лише «клікабельний» шар */
}
.product-card .price-line,
.product-card .quantity-wrap,
.product-card .product-footer,
.product-card .quantity-option,
.product-card .add-to-cart{
  position: relative;
  z-index: 2;      /* керування завжди вище за stretched-link */
}

/* ---- ISRIB page aliases reusing A15 hero grid ---- */
.isrib-hero{ background: linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%); padding: 52px 0 38px; position:relative; }
.isrib-hero::before{ content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 18% 82%, rgba(30,64,175,.10) 0%, transparent 50%),
              radial-gradient(circle at 84% 18%, rgba(14,165,233,.10) 0%, transparent 50%);
}
/* використовуємо ті ж самі блоки, що на A15 */
.page-product-isrib .a15-hero-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center; }
.page-product-isrib .a15-visual .formula-img{ display:block; border-radius:16px; }
.page-product-isrib .mini-stats{ display:flex; gap:30px; margin-top:10px; justify-content:center; }
.page-product-isrib .mini-stats .num{ font-size:1.8rem; font-weight:800; color:#1e40af; text-align:center; }
.page-product-isrib .mini-stats .cap{ font-size:.85rem; color:#64748b; text-align:center; }
.page-product-isrib .a15-copy .a15-title{ font-size: clamp(2.2rem,4.6vw,3.2rem); font-weight:900; color:#1e293b; margin-bottom:10px; }
.page-product-isrib .a15-copy .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --- Force A15 hero visual card exactly the same on ISRIB page --- */
.page-product-a15 .a15-visual .formula{ 
  display:block; margin:0; padding:26px; 
  background:#fff; border-radius:24px; 
  box-shadow:0 20px 50px rgba(2,6,23,.08);
}
.page-product-a15 .a15-visual .formula-img{
  display:block; width:100%; height:auto; /* не розтягуємо по висоті */
  object-fit:contain; max-width:820px;
}
.page-product-a15 .a15-visual .formula-cap{ 
  margin-top:12px; text-align:center; 
}
/* Canonical formula card (applies on both product pages, both use page-product-a15 layout) */
.page-product-a15 .a15-visual .formula{
  display:block; margin:0; padding:26px;
  background:#fff; border-radius:24px;
  box-shadow:0 20px 50px rgba(2,6,23,.08);
}
.page-product-a15 .a15-visual .formula-img{
  display:block; width:100%; height:auto; object-fit:contain; max-width:820px;
}
.page-product-a15 .a15-visual .formula-cap{ margin-top:12px; text-align:center; }

/* Safety reset: прибираємо тіні/паддинги у будь-яких ВНУТРІШНІХ обгорток, якщо вони випадково лишилися */
.page-product-a15 .a15-visual .formula .formula,
.page-product-a15 .a15-visual .formula > .card,
.page-product-a15 .a15-visual .formula > .box {
  background:none !important; box-shadow:none !important; padding:0 !important; border-radius:0 !important;
}
/* Hero: вирівнюємо контент по ВЕРХУ замість по центру */
.page-product-a15 .a15-hero-grid{
  align-items: start;            /* було center */
}

/* Праву колонку фіксуємо зверху на випадок індивідуальних стилів */
.page-product-a15 .a15-copy{
  align-self: start;
  padding-top: 0;                /* без додаткового відступу зверху */
}

/* Формула: захист від розтягування та зайвих внутрішніх “карток” */
.page-product-a15 .a15-visual .formula{ 
  display:block; margin:0; padding:26px;
  background:#fff; border-radius:24px;
  box-shadow:0 20px 50px rgba(2,6,23,.08);
}
.page-product-a15 .a15-visual .formula-img{
  display:block; width:100%; height:auto; object-fit:contain; max-width:820px;
}
.page-product-a15 .a15-visual .formula-cap{ margin-top:12px; text-align:center; }

/* Safety reset: якщо десь лишилась внутрішня обгортка у figure – прибираємо їй “карткові” стилі */
.page-product-a15 .a15-visual .formula .formula,
.page-product-a15 .a15-visual .formula > .card,
.page-product-a15 .a15-visual .formula > .box {
  background:none !important; box-shadow:none !important; padding:0 !important; border-radius:0 !important;
}

/* Вирівнюємо hero-пару зверху */
.page-product-a15 .a15-hero-grid{
  align-items: start;         /* було center */
}
.page-product-a15 .a15-copy{
  align-self: start;
  padding-top: 0;
}

/* Картка з формулою (і на ISRIB, і на A15 однаково) */
.page-product-a15 .a15-visual .formula{
  display:block; margin:0; padding:26px;
  background:#fff; border-radius:24px;
  box-shadow:0 20px 50px rgba(2,6,23,.08);
}
.page-product-a15 .a15-visual .formula-img{
  display:block; width:100%; height:auto; object-fit:contain; max-width:820px;
}
.page-product-a15 .a15-visual .formula-cap{ margin-top:12px; text-align:center; }

/* Safety reset проти «внутрішніх карток» */
.page-product-a15 .a15-visual .formula .formula,
.page-product-a15 .a15-visual .formula > .card,
.page-product-a15 .a15-visual .formula > .box{
  background:none !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
/* ========== LEFT HERO COLUMN — KEEP ONLY ONE CARD ========== */
/* 0) скидаємо тіні/фони/рамки у всієї лівої колонки */
.page-product-a15 .a15-visual{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* 1) глушимо ВСІ внутрішні обгортки, крім самої figure.formula і mini-stats */
.page-product-a15 .a15-visual > *:not(.formula):not(.mini-stats),
.page-product-a15 .a15-visual > *:not(.formula):not(.mini-stats) *,
.page-product-a15 .a15-visual .formula > *:not(img):not(figcaption){
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  filter: none !important;
}

/* 2) єдина "картка" — це figure.formula */
.page-product-a15 .a15-visual .formula{
  display:block; margin:0; padding:26px !important;
  background:#fff !important; border-radius:24px !important;
  box-shadow:0 20px 50px rgba(2,6,23,.08) !important;
}

/* 3) саме зображення: не тягнемо по висоті */
.page-product-a15 .a15-visual .formula-img{
  display:block; width:100%; height:auto; object-fit:contain; max-width:820px;
}

/* 4) підпис під формулою */
.page-product-a15 .a15-visual .formula-cap{ margin-top:12px; text-align:center; }

/* 5) права колонка — з верху (не посередині) */
.page-product-a15 .a15-hero-grid{ align-items: start; }
.page-product-a15 .a15-copy{ align-self: start; padding-top: 0; }
/* Hide $/mg everywhere */
.price-per-mg { display: none !important; }

/* tighten the price line spacing when $/mg is hidden */
.price-line { gap: 0; }
.price-line .current-price { margin-right: 0; }
.view-cart {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #f3f4f6; /* light gray */
  color: #1e40af;            /* blue-900 */
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.view-cart:hover {
  background-color: #e0e7ff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.product-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-footer .top-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-footer .view-product {
  font-size: 0.9rem;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #1e40af;
  transition: 0.2s ease;
}

.product-footer .view-product:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
}
/* Product footer layout: кнопки зверху, "View Details" зліва знизу */
.product-footer{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.product-footer .top-buttons{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* Примусово лишаємо "View Details" зліва */
.product-footer .view-product{
  align-self:flex-start;
  margin-left:0 !important;   /* знімає старе margin-left:auto */
  text-align:left !important;
}

/* На випадок старих правил, що міняли порядок або розкидали елементи */
.product-footer { justify-content:flex-start !important; }
.product-footer .add-to-cart{ order:1 !important; }
.product-footer .view-cart  { order:2 !important; }
.product-footer .view-product{ order:3 !important; }

/* HERO фон для ZZL-7 (аналог a15-hero) */
.zzl-hero { position: relative; padding: 52px 0 38px; }
.zzl-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 82%, rgba(139,92,246,.10) 0%, transparent 50%),
    radial-gradient(circle at 84% 18%, rgba(168,85,247,.10) 0%, transparent 50%);
}

/* === FAQ accordion (стабільний) === */
.faq-button{
  box-sizing: border-box;                 /* не ширше 100% колонки */
  display:flex; align-items:center; justify-content:space-between;
  width:100%; padding:20px 24px; cursor:pointer;
  background: transparent;                /* прозора всередині картки */
  border-radius: inherit;                 /* бере скруглення картки */
}


.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer[hidden] {
  display: none !important;
}
.faq-item.open .faq-answer {
  display: block;
}

.faq-item {
  position: relative;
  margin: 0;
}

/* === FAQ grid layout (чіткий) === */


@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}
@media (max-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
.quantity-option {
  flex: 1;
  min-width: 64px;
  padding: 8px 6px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: .3s;
  text-align: center;
  font-size: 0.85rem;
}

.quantity-option .tag {
  font-size: 0.8rem;
  font-weight: 600;
}

.quantity-option .price {
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 700;
}

/* ======== FORCE LIGHT THEME ON MOBILE ======== */

/* Білий хедер на мобілках (і загалом) */
.header-slim,
.site-header {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}

/* Мобільне меню теж світле */
.mobile-menu {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb;
}

/* Логотип без затемнення */
.logo-image-slim {
  filter: none !important;
}

/* HERO: прибираємо затемнюючі накладки та робимо тексти як на ПК */
@media (max-width: 768px) {
  .hero::before,
  .hero::after {
    display: none !important; /* якщо були напівпрозорі оверлеї */
  }

  /* заголовок/підзаголовок — світлі, як на десктопі */
  .hero .page-title,
  .hero h1,
  .hero .hero-title {
    color: #0f172a !important;
  }

  .hero .hero-subtext,
  .hero p {
    color: #334155 !important; /* slate-600 */
  }
}

/* ====== Burger (оновлений стиль + SVG) ====== */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: #0f172a; /* для currentColor у SVG */
}
@media (max-width: 768px) {
  .burger {
    display: inline-flex;
  }
}
.burger:hover {
  background: #f8fafc;
}
.burger-icon {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.burger.open .burger-icon {
  transform: rotate(90deg);
  color: #1d4ed8;
}

/* ====== Mobile menu visibility ====== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px;
}
.mobile-menu.open {
  display: grid;
  gap: 12px;
}
.mobile-menu .mm-link,
.mobile-menu .mm-cart {
  color: #0f172a !important;
}

/* ====== Хедер на мобілках — білий фон, чорний текст ====== */
@media (max-width: 768px) {
  .header-slim,
  .site-header {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .logo-image-slim {
    filter: none !important;
  }

  .nav-slim a,
  .cart-btn-slim,
  .mobile-menu .mm-link,
  .mobile-menu .mm-cart {
    color: #0f172a !important;
    opacity: 1 !important;
  }

  .mobile-menu {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
  }
}

/* ====== FAQ на мобілках — чорний текст, світлі блоки ====== */
@media (max-width: 768px) {
  .faq-section {
    background: #ffffff !important;
  }
   .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-button,
  .faq-item,
  .faq-button .faq-title,
  .faq-icon {
    color: #0f172a !important;
    background: #f8fafc !important;
  }

  .faq-answer,
  .faq-answer *,
  .faq-answer .muted {
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    opacity: 1 !important;
  }
.faq-item, .faq-button, .faq-question, .faq-answer { min-width:0; }
.faq-question, .faq-answer { overflow-wrap:anywhere; }
}

/* Примусово залишаємо світлу тему */
:root {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body,
  .header-slim,
  .mobile-menu,
  .hero,
  .faq-section,
  .faq,
  .faq-item,
  .faq-button,
  .faq-answer {
    background-color: initial;
    color: initial;
  }
}
/* Lock FAQ to light look on all devices */
.faq-section{ background:#fff !important; }
.faq-item{ background:#f8fafc !important; border-color:#e2e8f0 !important; }
.faq-question{ color:#0f172a !important; }       /* чіткий чорний текст запитання */
.faq-answer{ color:#334155 !important; }         /* читабельна відповідь */

@media (prefers-color-scheme: dark){
  .faq-section{ background:#fff !important; }
  .faq-item{ background:#f8fafc !important; border-color:#e2e8f0 !important; }
  .faq-question{ color:#0f172a !important; }
  .faq-answer{ color:#334155 !important; }
}


/* FAQ grid — єдина версія (постав внизу styles.css) */
.faq-grid{
  display:grid;
  gap:32px;
  align-items:start;
  max-width:1100px;
  margin:0 auto;
  grid-template-columns:repeat(3, minmax(280px,1fr));
}
@media (max-width:1024px){
  .faq-grid{ grid-template-columns:repeat(2, minmax(280px,1fr)); }
}
@media (max-width:640px){
  .faq-grid{ grid-template-columns:1fr !important; }
}
/* Щоб нічого не розпирало ширину колонки */
.faq-grid > .faq-item,
.faq-button,
.faq-question,
.faq-answer { min-width:0; }
.faq-question, .faq-answer { overflow-wrap:anywhere; }

/* Checkout: force light scheme (mobile & desktop) */
.checkout-wrap{
  --bg:#ffffff;
  --text:#0f172a;
  --muted-strong:#334155;
  --panel:#ffffff;      /* панелі й картки */
  --bg-soft:#f8fafc;    /* світлий фон елементів списків */
  --ring:#e5e7eb;
}
.checkout-wrap .card{ background:#ffffff !important; } /* підстраховка */

/* Checkout: wrap long legal line next to checkbox */
.checkout-form .agree-row{
  align-items: flex-start; /* текст починається зверху, поруч із чекбоксом */
  flex-wrap: wrap;         /* дозволяємо перенос */
}
.checkout-form .agree-row .muted{
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;  /* підстраховка для довгих фраз/посилань */
  line-height: 1.6;
}
.checkout-form .agree-row input[type="checkbox"]{ flex:0 0 auto; }
/* Success + 404: робимо картки білими на мобільних */
@media (max-width: 820px){
  .success-section,
  .notfound-section{
    --panel:#ffffff;       /* фон для .card */
    --ring:#e5e7eb;
    --text:#0f172a;
    --muted:#475569;
    background:#ffffff;
  }
  .success-section .card,
  .notfound-section .card{
    background:#ffffff !important;
    border:1px solid var(--ring);
    color:var(--text);
  }
}
/* підстраховка від системної темної теми */
@media (prefers-color-scheme: dark){
  .success-section, .notfound-section{ --panel:#ffffff; }
}

/* === A15 • Mobile fix: 1 колонка + правильний порядок === */
@media (max-width: 900px){
  /* одна колонка, нормальний потік зверху вниз */
  .page-product-a15 .a15-hero-grid{
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  /* 1) увесь текстовий блок (.a15-copy: бейджі, заголовок, формула, опис, КНОПКИ) — першим */
  .page-product-a15 .a15-copy{ grid-row: 1; }

  /* 2) картинка з формулою — після тексту й кнопок */
  .page-product-a15 .a15-visual{ grid-row: 2; }

  /* центримо кнопки, але НЕ задаємо їм grid-row */
  page-product-a15 .cta-buttons{
    display: none !important;
  }

  /* щоб бейджі не налазили */
  .page-product-a15 .row{ flex-wrap: wrap; }

  /* дрібна типографіка */
  .page-product-a15 .a15-title{ line-height: 1.1; margin-top: 6px; }
  .page-product-a15 .a15-chem.mono{ margin: 6px 0 12px; }
}


/* === A15 • Comparison table fits mobile width === */
.a15-compare table{ width:100%; table-layout: fixed; }
.a15-compare th, .a15-compare td{ padding:18px; }

@media (max-width: 768px){
  .a15-compare{ padding:24px !important; }
  .a15-compare th, .a15-compare td{ padding:12px; font-size:.95rem; }
  .a15-compare th:nth-child(1),
  .a15-compare td:nth-child(1){ width:44%; }   /* «Feature» ширше */
  .a15-compare th:nth-child(2),
  .a15-compare td:nth-child(2),
  .a15-compare th:nth-child(3),
  .a15-compare td:nth-child(3){ width:28%; }   /* обидві праві колонки */
  .a15-compare th, .a15-compare td{ white-space:normal; word-wrap:break-word; }
}

/* === A15 | mobile: hide CTA buttons below the hero === */
@media (max-width: 900px){
  body.page-product-a15 .a15-copy .cta-buttons{ 
    display: none !important;   /* перекриває глобальні .cta-buttons */
  }
}

/* === A15 | mobile: darker lead text === */
@media (max-width: 900px){
  body.page-product-a15 .a15-lead{
    color: #334155;  /* slate-700 — краще читається на світлому градієнті */
  }
}

/* ZZL-7: акуратна колонка кнопок на мобільних */
@media (max-width: 560px){
  .product-footer .action-buttons{
    display:flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .product-footer .action-buttons .add-to-cart,
  .product-footer .action-buttons .view-cart{
    width: 100%;
  }
}

/* Ховаємо інформаційний блок Rapid Action на мобільних */
@media (max-width: 600px){
  .rapid-card{ display:none !important; }
}

/* Базова сітка для МОА */
.moa-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Мобільний вигляд — одна колонка */
@media (max-width: 700px){
  .moa-grid{ grid-template-columns: 1fr; row-gap: 20px; }
}
/* Таблиця порівняння — адаптація під мобільні */
@media (max-width: 700px){
  .zzl-compare table{
    table-layout: fixed;
    width: 100%;
  }
  .zzl-compare th,
  .zzl-compare td{
    padding: 12px 8px;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-align: left; /* щоб не розпирало по центру на довгих рядках */
  }
  .zzl-compare thead th{ font-size: 0.9rem; }
}

/* Products → hero subtitle: на телефонах робимо чорним */
@media (max-width: 540px){
  .products-hero .muted{
    color: #0f172a;  /* такий самий тон, як на ПК */
  }
}
@media (max-width: 400px){
  .product-formula img{ max-height: 160px; }
}
@media (max-width: 560px){
  .product-footer{ flex-direction: column; align-items: stretch; }
  .product-footer .add-to-cart,
  .product-footer .view-cart,
  .product-footer .view-product{ width: 100%; text-align: center; }
}
/* Глобально: акуратні перенесення заголовків */
.products-hero h1,
.product-title{
  text-wrap: balance;
}

/* Тільки мобілка: підрізаємо горизонтальний скрол у гріді */
@media (max-width: 560px){
  .products-grid{
    overflow-x: hidden;
  }
}

#formNote {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

#formNote.success {
  color: #16a34a; /* зелений */
}

#formNote.error {
  color: #dc2626; /* червоний */
}

.form-status { margin-left: 12px; font-weight: 500; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

.sum-line{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:6px 0; }
.sum-line.grand {
  border-top: 1px solid var(--ring);
  padding-top: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.sum-note {
  font-size: .92rem;
  color: var(--muted);
}

.checkout-form .form-two .form-group.full {
  grid-column: 1 / -1;
}

/* Make "View Details" identical to "View Cart" */
.product-footer .view-cart,
.product-footer .view-product {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #f3f4f6;   /* same as View Cart */
  color: #1e40af;              /* blue text */
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 0;                   /* override previous border */
}

.product-footer .view-cart:hover,
.product-footer .view-product:hover {
  background-color: #e0e7ff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Центруємо текст у обох кнопках і розтягуємо на всю ширину */
.product-footer .view-cart,
.product-footer .view-product {
  display: flex;              /* дає ідеальне центрування */
  align-items: center;        /* по вертикалі */
  justify-content: center;    /* по горизонталі */
  width: 100%;
  text-align: center;
}

/* На випадок, якщо десь успадковується інший відступ/вирівнювання */
.product-footer .view-product {
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* Out-of-stock badge / button */
.pill { display:inline-block; padding:6px 12px; border-radius:9999px; font-weight:700; }
.pill.out-of-stock { background:#fee2e2; color:#b91c1c; }
.pill.in-stock { background:#ecfdf5; color:#059669; } /* (опційно для узгодженості) */

.add-to-cart[disabled], .btn[disabled]{
  opacity:.55; cursor:not-allowed; pointer-events:none; filter:grayscale(.2);
}

/* Якщо хочеш помітку на самій картці в каталозі */
.product-card.out-of-stock::after{
  content:"Out of stock";
  position:absolute; top:10px; right:12px;
  background:#fee2e2; color:#b91c1c; font-weight:700;
  padding:6px 10px; border-radius:10px;
}
.product-card.out-of-stock .add-to-cart{ pointer-events:none; }

/* Однаковий «широкий» стиль для View Cart
   і для View Details ТІЛЬКИ якщо у неї теж є клас .view-cart */
.product-footer .view-cart,
.product-footer .view-product.view-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #f3f4f6;
  color: #1e40af;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 0;
  text-align: center;
}

.product-footer .view-cart:hover,
.product-footer .view-product.view-cart:hover {
  background-color: #e0e7ff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Якщо десь лишається старий «чіп»-стиль для View Details — 
   нехай він працює тільки коли НЕНАВМИСНЕ не додали .view-cart */
.product-footer .view-product:not(.view-cart) {
  /* тут можуть лишитися твої попередні легкі стилі «чіпа», або прибери блок зовсім */
  /* приклад:
  background: transparent;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 6px; */
}
.product-footer .view-product:not(.view-cart):hover {
  /* ховер для «чіпа», якщо потрібен */
}

/* Mobile: make Add to Cart full-width like View Cart/Details */
@media (max-width: 560px){
  .product-footer { flex-wrap: wrap; }         /* дозволяємо перенос рядків */
  .product-footer .top-buttons { width: 100%; } /* контейнер з кнопкою — на всю ширину */
  .product-footer .add-to-cart {
    flex: 0 0 100%;   /* ключове: займає весь ряд */
    width: 100%;
    justify-content: center;
    min-width: 0;
  }
}

/* Mobile: make Add to Cart full-width (як View Cart/Details) */
@media (max-width: 560px){
  /* замість рядка робимо стовпчик з повною шириною */
  .product-footer .top-buttons{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  /* усі елементи в .top-buttons на 100% */
  .product-footer .top-buttons > *{
    width: 100%;
  }

  /* саме для кнопки — гарантія 100% ширини */
  .product-footer .add-to-cart{
    display: flex;
    justify-content: center;
    flex: 1 0 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Free shipping banner */
.free-shipping-banner{
  display: inline-flex;          /* <-- ключ до «не на всю ширину» */
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0 24px;
  box-shadow: 0 8px 20px rgba(16,185,129,.25);
}
.free-shipping-banner .emoji{ font-size: 1.4rem; }
.free-shipping-banner span{ font-weight: 400; font-size: .95rem; }

@media (max-width:768px){
  .free-shipping-banner{ flex-direction: column; text-align: center; gap: 6px; }
}

/* Забороняємо «зовнішню смугу» */
.free-shipping-banner-container{ background: transparent !important; padding: 0 !important; border: 0 !important; }

/* ============================================
   BUNDLE WIDGET (Frequently Bought Together)
   ============================================ */

.bundle-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bundle-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.bundle-header {
  text-align: center;
  margin-bottom: 36px;
}

.bundle-title {
  font-size: 26px;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 8px;
}

.bundle-subtitle {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}

.bundle-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.bundle-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 160px;
  position: relative;
  transition: all 0.3s ease;
}

.bundle-item.current {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.bundle-item.upsell:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ============================================
   CUSTOM CHECKBOX (Beautiful Design)
   ============================================ */

.bundle-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ховаємо стандартний checkbox */
.bundle-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

/* Іконка галочки (з'являється при checked) */
.bundle-check::after {
  content: '✓';
  font-size: 16px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Стан checked через JS клас */
.bundle-check.checked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bundle-check.checked::after {
  opacity: 1;
  transform: scale(1);
}

/* Hover ефект */
.bundle-check:hover {
  border-color: #10b981;
  transform: scale(1.08);
}

/* Current item (завжди checked, без interaction) */
.bundle-item.current .bundle-check {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: #0ea5e9;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.bundle-item.current .bundle-check::after {
  opacity: 1;
  transform: scale(1);
}

/* Анімація при кліку */
.bundle-check:active {
  transform: scale(0.95);
}

/* Focus visible для accessibility */
.bundle-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 50%;
}

/* ============================================
   BUNDLE CONTENT
   ============================================ */

.bundle-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}

.bundle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-info strong {
  font-size: 15px;
  color: #1e293b;
  font-weight: 700;
}

.bundle-qty {
  font-size: 13px;
  color: #64748b;
}

.bundle-price {
  font-size: 16px;
  color: #0ea5e9;
  font-weight: 600;
  margin-top: 4px;
}

.bundle-plus,
.bundle-equals {
  font-size: 24px;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 8px;
}

.bundle-total {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 160px;
}

.bundle-total-original {
  font-size: 13px;
  color: #92400e;
  margin-bottom: 4px;
}

.bundle-total-original .strike {
  text-decoration: line-through;
  opacity: 0.7;
}

.bundle-total-discounted {
  font-size: 18px;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 6px;
}

.bundle-total-discounted strong {
  font-size: 24px;
  display: block;
  margin-top: 4px;
}

.bundle-savings {
  background: #10b981;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 8px;
}

.bundle-actions {
  text-align: center;
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
}

.bundle-note {
  color: #64748b;
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .bundle-card {
    padding: 24px;
  }
  
  .bundle-grid {
    flex-direction: column;
  }
  
  .bundle-plus,
  .bundle-equals {
    transform: rotate(90deg);
  }
  
  .bundle-item {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   STATIC CHECKMARK (для current item)
   ============================================ */

.bundle-check-static {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: 2px solid #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  pointer-events: none; /* не можна клікати */
}

/* ============================================
   INTERACTIVE CHECKBOX (для upsell item)
   ============================================ */

.bundle-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ховаємо стандартний checkbox */
.bundle-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

/* Іконка галочки (з'являється при checked) */
.bundle-check::after {
  content: '✓';
  font-size: 16px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Стан checked */
.bundle-check.checked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bundle-check.checked::after {
  opacity: 1;
  transform: scale(1);
}

/* Hover ефект */
.bundle-check:hover {
  border-color: #10b981;
  transform: scale(1.08);
}

/* Анімація при кліку */
.bundle-check:active {
  transform: scale(0.95);
}

/* Focus visible для accessibility */
.bundle-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 50%;
}

/* Прибираємо старі стилі для .bundle-item.current .bundle-check */
.bundle-item.current .bundle-check {
  display: none !important; /* повністю ховаємо, якщо десь лишився */
}
/* ============================================
   CHECKOUT UPSELL WIDGET
   ============================================ */

.upsell-widget {
  margin-top: 20px;
  border: 2px dashed #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
}

.upsell-title {
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px;
}

.upsell-subtitle {
  font-size: 13px;
  color: #92400e;
  margin: 0 0 16px;
  opacity: 0.8;
}

.upsell-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upsell-item:last-child {
  margin-bottom: 0;
}

.upsell-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.upsell-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.upsell-content {
  flex: 1;
}

.upsell-name {
  font-size: 15px;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.upsell-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.4;
}

.upsell-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upsell-price {
  font-size: 18px;
  font-weight: 700;
  color: #0ea5e9;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.add-upsell {
  font-weight: 600;
}

.upsell-item.added {
  opacity: 0.6;
  pointer-events: none;
}

.upsell-item.added .add-upsell {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.upsell-item.added .add-upsell::before {
  content: '✓ ';
}


/* ============================================
   POST-ADD UPSELL POPUP
   ============================================ */

.upsell-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upsell-popup.show {
  opacity: 1;
}

.upsell-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.upsell-popup-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideUp 0.3s ease;
}

@keyframes popupSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.upsell-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.upsell-popup-close:hover {
  color: #1e293b;
}

.upsell-popup-content h3 {
  font-size: 24px;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 8px;
  text-align: center;
}

.upsell-popup-reason {
  color: #64748b;
  font-size: 15px;
  text-align: center;
  margin: 0 0 24px;
}

.upsell-popup-product {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.upsell-popup-product strong {
  display: block;
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 4px;
}

.upsell-popup-product span {
  color: #0ea5e9;
  font-size: 16px;
  font-weight: 600;
}

.upsell-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upsell-popup-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Upsell pricing with discount */
.upsell-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.upsell-price-original {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 14px;
}

.upsell-price {
  color: #10b981;
  font-weight: 800;
  font-size: 18px;
}

.upsell-savings {
  background: #dcfdf7;
  color: #059669;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.upsell-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .upsell-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .upsell-pricing {
    justify-content: center;
  }
  
  .add-upsell {
    width: 100%;
  }
}

/* === Checkout mobile: Order Summary перед формою === */
@media (max-width: 980px) {
  .checkout-grid {
    display: flex;
    flex-direction: column;
  }
  
  /* Order card (summary) — першим */
  .order-card {
    order: 1;
  }
  
  /* Checkout form — другим */
  .checkout-form {
    order: 2;
  }
}
