/* =========================================================
   СяйДім — stylesheet
   Tokens: primary teal (clean/fresh), coral accent (CTA pop)
   ========================================================= */

:root{
  /* Color tokens */
  --primary: #0E7C66;
  --primary-dark: #0A5C4C;
  --primary-100: #E2F2EC;
  --accent: #FF6F59;
  --accent-dark: #E55641;
  --bg: #F6FAF8;
  --surface: #FFFFFF;
  --text: #16241F;
  --muted: #5C7268;
  --border: #E1ECE6;

  /* Type */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadow / radius */
  --shadow-sm: 0 2px 8px rgba(16,40,32,0.06);
  --shadow-md: 0 8px 24px rgba(16,40,32,0.10);
  --shadow-lg: 0 20px 45px rgba(16,40,32,0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --header-h: 140px;
}

html[data-theme="dark"]{
  --primary: #2BBF9E;
  --primary-dark: #19604F;
  --primary-100: #15302A;
  --accent: #FF8567;
  --accent-dark: #FF6F4D;
  --bg: #0F1714;
  --surface: #17221E;
  --text: #EAF3EF;
  --muted: #93A9A0;
  --border: #243832;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.40);
  --shadow-lg: 0 20px 45px rgba(0,0,0,0.55);
}

html[data-theme="dark"] .navbar__search button{ color:#fff; }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .contact{ background: #0B1714; }
html[data-theme="dark"] .footer{ background: #070C0A; }
html[data-theme="dark"] .hero{ background: linear-gradient(180deg, var(--primary-100) 0%, var(--bg) 100%); }
html[data-theme="dark"] .fav-btn{ background: rgba(23,34,30,.85); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{
    scroll-padding-top: 90px;
}
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--header-h);
  transition: background-color .3s ease, color .3s ease;
}
body, .navbar, .product-card, .product-card__media, .chip, .cart-drawer, .checkout-content,
.navbar__search, .fav-btn, .contact__card, .qty-control, .qty-control button,
.checkout-content input, .checkout-content select{
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; color: var(--text); }
p{ margin:0; line-height:1.6; color: var(--muted); }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor: pointer; border:none; background:none; color:inherit; }

.container{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head{ text-align:center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2{ font-size: clamp(28px,4vw,38px); margin-top: 6px; }
.section-head--light .eyebrow{ background: rgba(255,255,255,0.14); color: #DFF5EC; }
.section-head--light h2{ color: #fff; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--accent{ background: var(--accent); color:#fff; box-shadow: var(--shadow-md); }
.btn--accent:hover{ background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost{ background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover{ border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--full{ width:100%; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
    background: var(--primary-dark);
    color: #DFF5EC;
    font-size: 13px;

    transition: all .35s ease;

    overflow: hidden;
    overflow-anchor: none;

    max-height: 60px;
}
.topbar.hide{
    max-height:0;
    padding-top:0;
    padding-bottom:0;
    opacity:0;
}
.topbar__inner{ display:flex; justify-content: space-between; align-items:center; padding: 9px 24px; gap: 16px; flex-wrap: wrap; }
.topbar__info{ display:flex; gap: 18px; flex-wrap: wrap; }
.topbar__info a{ opacity: .9; transition: opacity .2s; }
.topbar__info a:hover{ opacity: 1; text-decoration: underline; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.navbar__inner{
    display:flex;
    align-items:center;
    padding:16px 24px;
}

.logo{
    margin-right:40px;
}

.nav-links{
    flex:1;
    display:flex;
    justify-content:center;
    gap:40px;
}

.nav-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:14px;
}
.logo{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-size:21px; font-weight:500; color: var(--text); flex-shrink:0; }
.logo b{ color: var(--primary); font-weight:800; }
.logo--footer{ color:#fff; }
.logo--footer b{ color: var(--accent); }

.nav-links{ display:flex; gap: 22px; flex: 1; }
.nav-links a{
  font-weight:600; font-size: 15px; color: var(--text);
  padding: 8px 2px; position: relative; transition: color .2s;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover{ color: var(--primary); }
.nav-links a:hover::after{ width:100%; }

.navbar__search{
  display:flex; align-items:center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 6px 4px 16px;
  flex: 1; max-width: 360px;
}
.navbar__search input{
  border:none; background:transparent; outline:none; flex:1;
  font-size: 14px; padding: 8px 4px; font-family: var(--font-body); color: var(--text);
}
.navbar__search button{
  width:34px; height:34px; border-radius:50%; background: var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: background .2s;
}
.navbar__search button:hover{ background: var(--primary-dark); }

.cart-toggle{ position: relative; flex-shrink:0; padding: 8px; color: var(--text); transition: color .2s; }
.cart-toggle:hover{ color: var(--primary); }
.cart-toggle__badge{
  position:absolute; top:0; right:0; background: var(--accent); color:#fff;
  font-size: 11px; font-weight:700; min-width: 18px; height:18px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; padding: 0 4px;
  box-shadow: 0 0 0 2px var(--surface);
}

.fav-toggle{ position: relative; flex-shrink:0; padding: 8px; color: var(--text); transition: color .2s; }
.fav-toggle:hover{ color: var(--accent); }
.fav-toggle__badge{
  position:absolute; top:0; right:0; background: var(--accent); color:#fff;
  font-size: 11px; font-weight:700; min-width: 18px; height:18px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; padding: 0 4px;
  box-shadow: 0 0 0 2px var(--surface);
}
.fav-toggle__badge:empty,
.fav-toggle__badge[data-zero]{ opacity:.45; }

.theme-toggle{ position:relative; flex-shrink:0; padding: 8px; color: var(--text); transition: color .2s, transform .3s ease; display:flex; align-items:center; justify-content:center; }
.theme-toggle:hover{ color: var(--accent); transform: rotate(12deg); }
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

/* =========================================================
   HERO
   ========================================================= */
.hero{ overflow:hidden; background: linear-gradient(180deg, var(--primary-100) 0%, var(--bg) 100%); position: relative; }
.hero__inner{
  display:grid; grid-template-columns: 1.1fr 0.9fr; align-items:center; gap: 40px;
  padding: 64px 24px 80px;
}
.hero__content h1{
  font-size: clamp(32px, 4.4vw, 52px); line-height:1.12; margin: 4px 0 18px; letter-spacing: -0.01em;
}
.hero__content h1 span{ color: var(--primary); }
.hero__content p{ font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.hero__actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats{ display:flex; gap: 36px; flex-wrap:wrap; }
.hero__stats strong{ display:block; font-family: var(--font-display); font-size: 22px; color: var(--primary-dark); }
.hero__stats span{ font-size: 13px; color: var(--muted); }

.hero__visual{ position: relative; display:flex; justify-content:center; align-items:center; height: 100%; min-height: 360px; }
.wipe-card{
  position: relative; width: 260px; overflow:hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); animation: floatY 5s ease-in-out infinite;
}
.wipe-card__shine{
  position:absolute; top:0; left:-60%; width:40%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg); animation: shineSweep 3.2s ease-in-out infinite;
}
@keyframes shineSweep{ 0%{ left:-60%; } 55%{ left:120%; } 100%{ left:120%; } }
@keyframes floatY{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

.bubble{ position:absolute; border-radius:50%; background: var(--primary); opacity:.18; animation: floatY 6s ease-in-out infinite; }
.bubble--1{ width: 70px; height:70px; top: 6%; right: 8%; animation-duration: 7s; }
.bubble--2{ width: 36px; height:36px; bottom: 12%; left: 4%; background: var(--accent); opacity:.22; animation-duration: 5s; }
.bubble--3{ width: 22px; height:22px; bottom: 30%; right: 0; animation-duration: 4.2s; }

/* =========================================================
   CATEGORY CHIPS
   ========================================================= */
.chips-section{ background: var(--bg); padding: 28px 0 4px; }
.chips{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:visible;
    padding:8px 0 12px;
    scrollbar-width:none;
}
.chips::-webkit-scrollbar{ display:none; }
.chip{
    min-width: 130px;
justify-content: center;
display: flex;
align-items: center;
  flex-shrink:0; font-family: var(--font-display); font-weight:600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); transition: all .25s ease;
}
.chip:hover{ border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.chip.is-active{ background: var(--primary); border-color: var(--primary); color:#fff; box-shadow: var(--shadow-sm); }

/* =========================================================
   CATALOG / PRODUCT CARDS
   ========================================================= */
.catalog{ padding: 56px 0 80px; }
#catalog{
    scroll-margin-top: 200px;
}
.product-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.empty-state{ text-align:center; padding: 40px 0; font-size: 16px; }

.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pagination__btn{
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.pagination__btn:hover:not(:disabled):not(.is-active){
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination__btn.is-active{
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination__btn:disabled{
    opacity: .35;
    cursor: default;
}

.pagination__dots{
    color: var(--muted);
    padding: 0 4px;
    font-weight: 600;
}

.product-card{
  background: var(--surface); border-radius: var(--radius-md); overflow:hidden;
  box-shadow: var(--shadow-sm); display:flex; flex-direction:column;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: cardIn .5s ease both;
}
@keyframes cardIn{ from{ opacity:0; transform: translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card__media{
  position: relative; aspect-ratio: 1/0.85; background: var(--primary-100);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.product-card__media svg{ width: 56%; height: 56%; transition: transform .4s ease; }
.product-card:hover .product-card__media svg{ transform: scale(1.08) rotate(-2deg); }
.product-card__shine{
  position:absolute; top:0; left:-75%; width:50%; height:100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left .65s ease;
}
.product-card:hover .product-card__shine{ left: 120%; }
.product-card__badge{
  position:absolute; top:12px; left:12px; background: var(--accent); color:#fff;
  font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; letter-spacing:.02em;
}
.fav-btn{
  position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%;
  background: rgba(255,255,255,.92); color: var(--muted); display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-sm); transition: color .2s ease, transform .2s ease; z-index:2;
}
.fav-btn:hover{ transform: scale(1.12); color: var(--accent); }
.fav-btn.is-active{ color: var(--accent); }
.fav-btn.is-active svg path{ fill: currentColor; }
.product-card__body{ padding: 18px 18px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card__cat{ font-size: 12px; color: var(--primary); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.product-card__title{ font-family: var(--font-display); font-size: 16px; font-weight:600; line-height:1.3; min-height: 42px; }
.product-card__vol{ font-size: 13px; color: var(--muted); }
.product-card__footer{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top: 10px; }
.product-card__price{ font-family: var(--font-display); font-size: 19px; font-weight:700; color: var(--text); }
.product-card__price small{ font-size:12px; color: var(--muted); font-weight:500; text-decoration: line-through; margin-right:6px; }
.add-btn{
  display:flex; align-items:center; gap:6px; background: var(--primary); color:#fff;
  font-weight:600; font-size: 13px; padding: 9px 14px; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.add-btn:hover{ background: var(--primary-dark); transform: scale(1.04); }
.add-btn.is-added{ background: var(--accent); }

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding: 80px 0; background: var(--surface); }
.about__inner{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items:center; }
.about__media{
    width:100%;
}
.about__content h2{ font-size: clamp(26px,3.4vw,34px); margin: 8px 0 18px; }
.about__content .eyebrow{
    position: relative;
    top: -100px;
}
.about__content > p{ margin-bottom: 22px; font-size: 16px; }
.about__list{ display:flex; flex-direction:column; gap: 14px; }
.about__list li{ list-style:none; padding-left: 28px; position:relative; color: var(--muted); }
.about__list li::before{
  content:'✓'; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%;
  background: var(--primary-100); color: var(--primary); font-size:12px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.about__list strong{ color: var(--text); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding: 80px 0; background: var(--primary-dark); color:#fff; }
.contact__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.contact__grid{
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.contact__card{
  flex: 0 1 320px;
  max-width: 320px;
  width: 100%;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .25s ease, background .25s ease;
  text-align: center;
}
.contact__card:hover{ transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.contact__icon{
    display:flex;
    justify-content:center;
    align-items:center;

    font-size:28px;
}
.contact__card h3{ color:#fff; font-size:16px; margin-bottom: 8px; }
.contact__card p{ color: #C9E6DB; font-size: 14px; }
.contact__card a{ color:#C9E6DB; transition: color .2s; }
.contact__card a:hover{ color:#fff; text-decoration:underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ background: #0B2620; color: #9FC2B5; padding: 56px 0 0; }
.footer__inner{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__col{ display:flex; flex-direction:column; gap: 12px; }
.footer__col h4{ color:#fff; font-size:15px; margin-bottom:4px; }
.footer__col p{ color:#84A99A; font-size: 14px; }
.footer__col a{ color: #9FC2B5; font-size: 14px; transition: color .2s; }
.footer__col a:hover{ color:#fff; }
.footer__bottom{ border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; text-align:center; font-size: 13px; color: #6E9486; }

/* =========================================================
   CART DRAWER
   ========================================================= */
.overlay{
  position: fixed; inset:0; background: rgba(10,30,24,0.45); opacity:0; visibility:hidden;
  transition: opacity .3s ease, visibility .3s ease; z-index: 10050;
}
.overlay.is-active{ opacity:1; visibility:visible; }

.cart-drawer{
  position: fixed; top:0; right:0; height:100%; width: 400px; max-width: 92vw;
  background: var(--surface); z-index: 10060; box-shadow: var(--shadow-lg);
  display:flex; flex-direction:column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.is-open{ transform: translateX(0); }
.cart-drawer__head{ display:flex; align-items:center; justify-content:space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-close{ font-size: 18px; padding: 6px; color: var(--muted); transition: color .2s; }
.cart-close:hover{ color: var(--accent); }
.cart-drawer__body{ flex:1; overflow-y:auto; padding: 12px 18px; display:flex; flex-direction:column; gap: 14px; scrollbar-width: none; -ms-overflow-style: none; }
.cart-drawer__body::-webkit-scrollbar{ display: none; }
.cart-empty{ text-align:center; color: var(--muted); padding: 60px 20px; font-size: 14px; }

.cart-item{ display:grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 6px; align-items:center; padding: 10px 0; border-bottom: 1px solid var(--border); animation: cardIn .3s ease both; }
.cart-item__media{ width:84px; height:84px; border-radius: 10px; background: var(--primary-100); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cart-item__media svg{ width: 60%; height:60%; }
.cart-item__media img{ width:100%; height:100%; object-fit:contain; }
.cart-item__info{ min-width:0; }
.cart-item__title{ font-size: 15.5px; font-weight:600; line-height:1.3; margin-bottom:4px; }
.cart-item__price{ font-size: 14.5px; color: var(--primary); font-weight:700; }
.cart-item__controls{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.qty-control{ display:flex; align-items:center; gap:8px; background: #E2F2EC; border-radius: 999px; padding: 4px; }
.qty-control button{ width:22px; height:22px; border-radius:50%; background: var(--surface); box-shadow: var(--shadow-sm); font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; transition: background .2s; }
.qty-control button:hover{ background: var(--primary-100); color: var(--primary); }
.qty-control span{ min-width: 16px; text-align:center; font-size: 13px; font-weight:600; }
.remove-btn{ font-size: 12px; color: var(--accent); font-weight:600; transition: background .2s, opacity .2s; background: #F6FAF8; box-shadow: var(--shadow-sm); border-radius: 999px; width: 84px; height: 30px; padding: 0; display:inline-flex; align-items:center; justify-content:center; box-sizing: border-box; }
.remove-btn:hover{ opacity:.85; background: var(--primary-100); }

.cart-drawer__footer{ padding: 18px 22px 22px; border-top: 1px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.cart-total{ display:flex; justify-content:space-between; align-items:center; font-family: var(--font-display); font-size: 17px; margin-bottom:4px; }
.cart-total strong{ color: var(--primary-dark); font-size: 22px; }

/* ---------- favorites drawer ---------- */
.fav-empty{ text-align:center; color: var(--muted); padding: 60px 20px; font-size: 14px; }
.fav-item__controls{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.fav-add-btn{ font-size: 12px; font-weight:700; color: var(--primary); transition: opacity .2s; }
.fav-add-btn:hover{ opacity:.7; text-decoration:underline; }
.fav-remove-btn{ font-size: 12px; color: var(--accent); font-weight:600; transition: opacity .2s; }
.fav-remove-btn:hover{ opacity:.7; text-decoration:underline; }

/* =========================================================
   TOAST
   ========================================================= */
.toast{
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight:600; box-shadow: var(--shadow-lg);
  opacity:0; pointer-events:none; transition: opacity .3s ease, transform .3s ease; z-index: 10070;
}
.toast.is-active{ opacity:1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
  .contact__grid{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px){
.nav-links{
    display:none;
}
  .navbar__search{ display:none; }
  .navbar__inner{ justify-content: space-between; }
  .nav-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    max-width: 100%;
}
  .header{
    overflow: hidden;
}

.topbar,
.topbar.hide{
    display: none !important;
    max-height: 0;
    overflow: hidden;
}

.navbar__inner{
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
}

.logo{
    flex-shrink: 0;
}

.nav-actions{
    margin-left: auto;
}

.navbar{
    overflow: hidden;
    max-width: 100%;
}
  .hero__inner{ grid-template-columns: 1fr; text-align:center; padding: 48px 24px 24px; }
  .hero__actions{ margin-bottom: 0; }
  .hero__content p{ margin: 0 auto 28px; }
  .hero__actions{ justify-content:center; }
  .hero__stats{ justify-content:center; }
  .hero__visual{ display: none; }
  .about__inner{ grid-template-columns: 1fr; text-align:center; }
  .about__list li{ text-align:left; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }

  /* mobile dropdown nav */
  .nav-links{
    display:flex; flex-direction:column; position:absolute; top: var(--header-h); left:0; right:0;
    background: var(--surface); padding: 10px 24px 18px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity:0; visibility:hidden; transition: all .25s ease;
  }
  .nav-links.is-open{ transform: translateY(0); opacity:1; visibility:visible; }
  .navbar__search{
    display:flex; position:absolute; top:calc(var(--header-h) + 1px); left:0; right:0;
    max-width:none; margin:0; padding: 12px 24px; border-radius:0; background: var(--surface);
    border:none; border-bottom: 1px solid var(--border); opacity:0; visibility:hidden; transform: translateY(-8px); transition: all .25s ease;
  }
  .navbar__search.is-open{ opacity:1; visibility:visible; transform: translateY(0); }
  .catalog-toolbar{
    display:flex;
    flex-direction:column;
}

.catalog-search{
    order:-1;
    width:100%;
}

.catalog-search input{
    width:100%;
}

.chips{
    width:100%;
    justify-content:center;
}
.about__inner{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__media{
    order: 2;
}

.about__content{
    display: contents;
}

.about__content .eyebrow{
    order: 1;
}

.about__content h2{
    order: 3;
}

.about__content > p{
    order: 4;
}

.about__content .about__list{
    order: 5;
}
}

@media (max-width: 680px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .catalog{ padding: 24px 0 60px; }
  .contact__grid{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; text-align:center; }
  .about{ padding: 40px 0; }
  .about__inner{ gap: 14px; }
  .about__media img{ max-width: 220px; }
  .about__content h2{ margin: 0 0 8px; }
  .about__content > p{ margin-bottom: 8px; }
  .about__list{ gap: 10px; }
  .about__list li{ text-align:center; padding-left:0; }
  .about__list li::before{ position:static; display:inline-flex; margin-right:8px; vertical-align:middle; }
  .topbar__inner{ justify-content:center; text-align:center; }
  .topbar__info{ justify-content:center; width:100%; }
  .cart-item{ grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; }
  .cart-item__media{ width:84px; height:84px; }
  .cart-item__media svg{ width: 60%; height:60%; }
  .cart-item__controls,
  .fav-item__controls{
    grid-column: 1 / -1;
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
  }
}

@media (max-width: 420px){
  .product-grid{ grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__title{ font-size: 14px; min-height: 36px; }
  .hero__content h1{ font-size: 28px; }
}
/* ===== ОФОРМЛЕННЯ ЗАМОВЛЕННЯ ===== */

.checkout-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    justify-content:center;
    align-items:center;
    z-index:10080;
}

.checkout-content{
    position: relative;

    background: var(--surface);
    width: 90%;
    max-width: 560px;

    max-height: 95vh;
    overflow-y: auto;

    scrollbar-width: none;
-ms-overflow-style: none;

    padding: 22px 26px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);

    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkout-content::-webkit-scrollbar{
    display: none;
}
.checkout-content h2{
    text-align:center;
    color:var(--primary);
    margin-bottom:10px;
}

.checkout-content input,
.checkout-content select{
    padding:15px;
    border:1px solid var(--border);
    border-radius:12px;
    font-size:16px;
    outline:none;
    background: var(--surface);
    color: var(--text);
}

.checkout-content input:focus,
.checkout-content select:focus{
    border-color:var(--primary);
}

#confirmOrderBtn{
    background:var(--accent);
    color:white;
    padding:15px;
    border:none;
    border-radius:15px;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

#confirmOrderBtn:hover{
    background:var(--accent-dark);
}
#closeDeliveryBtn{
    position:absolute;
    top:15px;
    right:15px;
    font-size:24px;
    background:none;
    border:none;
    cursor:pointer;
    color:#888;
}

.checkout-content{
    position:relative;
}
.product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:15px;
}
.cart-image{
    width:100%;
    height:100%;
    object-fit:contain;
}
html,
body{
    overflow-x: clip;
    overflow-anchor: none;
}
.nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
    position: relative;
}
.footer-policy-btn{
    display:inline-block;
    margin-top:18px;
    padding:12px 24px;

    background:var(--primary);
    color:#fff;

    border-radius:12px;
    font-weight:600;

    transition:.25s;
}

.footer-policy-btn:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}#closeDeliveryBtn{
    position:absolute;
    top:15px;
    right:15px;
    font-size:24px;
    background:none;
    border:none;
    cursor:pointer;
    color:#888;
}

#closeDeliveryBtn:hover{
    color:var(--primary);
}
.checkout-content textarea{
    width:100%;
    min-height:90px;
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:16px;
    font-size:15px;
    font-family:inherit;
    resize:vertical;
    outline:none;
    background:#fff;
    margin-bottom:16px;
    transition:.25s;
}

.checkout-content textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(18,129,109,.12);
}
.checkout-wrapper{
display:grid;
grid-template-columns:1fr 420px;
gap:40px;
padding:40px 0;
align-items:start;
}

.checkout-form,
.checkout-summary{
background:#fff;
border-radius:20px;
padding:30px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea{
width:100%;
margin-bottom:16px;
padding:15px 18px;
border:1px solid #d8e3de;
border-radius:14px;
font-size:16px;
}

.checkout-form textarea{
height: 54px;
min-height: 54px;
resize: none;
overflow: auto;
transition: height .15s ease;
scrollbar-width: none;
-ms-overflow-style: none;
}

.checkout-form textarea::-webkit-scrollbar{
display: none;
}

.checkout-total{
    margin-top:25px;
    padding:20px;
    background:#ff6b57;
    border-radius:18px;
}

@media(max-width:900px){
.checkout-wrapper{
grid-template-columns:1fr;
}
}
.checkout-item{

display:flex;

align-items:center;

justify-content:space-between;

gap:15px;

padding:15px 0;

border-bottom:1px solid #eee;

}

.checkout-image{

width:60px;

height:60px;

object-fit:contain;

}

.checkout-info{

flex:1;

}

.checkout-info h4{

margin-bottom:5px;

font-size:16px;

}

.checkout-info p{

color:#666;

font-size:14px;

}
.checkout-item{
display:flex;
align-items:center;
gap:15px;
padding:18px 0;
border-bottom:1px solid #ececec;
}

.checkout-image{
width:70px;
height:70px;
object-fit:contain;
border-radius:12px;
background:#f8f8f8;
padding:6px;
}

.checkout-info{
flex:1;
}

.checkout-info h4{
margin:0 0 6px;
font-size:17px;
}

.checkout-qty{
color:#666;
font-size:15px;
}

.checkout-line-price{
font-size:18px;
font-weight:700;
color:#0E7C66;
}

.checkout-total{
margin-top:25px;
}

.total-row{
display:flex;
justify-content:space-between;
margin:12px 0;
font-size:18px;
}

.total-price{
font-size:24px;
font-weight:700;
color:#FFFFFF;
}
.checkout-form h1{
    margin-bottom: 30px;
}
.checkout-form h1,
.checkout-summary h2{
    text-align: center;
    margin-bottom: 30px;
}
.checkout-total span{
    color: #fff !important;
}
.checkout-total{
    margin-top:25px;
    padding:20px;
    background: var(--accent);
    border-radius:18px;
    transition:.25s;
    box-shadow: var(--shadow-md);
    cursor: default;
}

.checkout-total:hover{
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.error{
    border:2px solid #e74c3c !important;
    background:#fff5f5;
}
.checkout-top-buttons{
    display:flex;
    gap:15px;
    align-items:center;
}

.navbar--checkout .navbar__inner{
    justify-content:space-between;
}

.navbar--checkout .logo{
    margin-right:0;
}

.btn--icon{
    width:44px;
    height:44px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    flex-shrink:0;
}

.btn--delivery{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background: var(--primary-100);
    color: var(--primary);
    border: 1.5px solid transparent;
    font-weight:600;
    padding: 11px 20px;
    border-radius: 999px;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.btn--delivery:hover{
    background: var(--primary);
    color:#fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14,124,102,.25);
}

@media (max-width: 900px){
    .navbar--checkout .navbar__inner{
        justify-content:center;
    }
    .navbar--checkout .checkout-top-buttons{
        width:100%;
        justify-content:center;
    }
}

@media (max-width: 480px){
    .btn--delivery span{ display:none; }
    .btn--delivery{
        width:44px;
        height:44px;
        padding:0;
        border-radius:50%;
        justify-content:center;
    }
}
.checkout-modal.active{
    display: flex;
}
/* ===== DARK THEME - CHECKOUT ===== */

[data-theme="dark"] .checkout-form,
[data-theme="dark"] .checkout-summary,
[data-theme="dark"] .checkout-content{
    background: #1b2421;
    color: #fff;
}

[data-theme="dark"] .checkout-form h1,
[data-theme="dark"] .checkout-summary h2,
[data-theme="dark"] .checkout-content h2,
[data-theme="dark"] .checkout-content h3{
    color:#fff;
}

[data-theme="dark"] .checkout-form input,
[data-theme="dark"] .checkout-form textarea,
[data-theme="dark"] .checkout-form select{
    background:#111816;
    color:#fff;
    border:1px solid #2b3a35;
}

[data-theme="dark"] .checkout-form input::placeholder,
[data-theme="dark"] .checkout-form textarea::placeholder{
    color:#8b9893;
}

[data-theme="dark"] .checkout-item{
    border-color:#2b3a35;
}

[data-theme="dark"] .checkout-item-title,
[data-theme="dark"] .checkout-item-price,
[data-theme="dark"] .checkout-item-qty,
[data-theme="dark"] .total-row{
    color:#fff;
}
[data-theme="dark"] .checkout-item{
    border-bottom:1px solid #2d3b36;
}

[data-theme="dark"] .checkout-image{
    background: transparent;
}
.auth-switch{
    display:flex;
    align-items:center;
    background:#fff;
    border:2px solid #dfe6e9;
    border-radius:40px;
    padding:4px;
    width:max-content;
}

.auth-switch a{
    text-decoration:none;
    color:#555;
    font-weight:700;
    padding:10px 28px;
    border-radius:30px;
    transition:.25s;
}

.auth-switch a.active{
    background:#0A5C4C;
    color:#fff;
    
}

.auth-switch a:hover:not(.active){
    color:#0A5C4C;
}

.profile-btn:hover{
    background:#0c705c;
    transform:scale(1.05);
}
.profile-btn:hover{
    transform:scale(1.05);
}
.profile{

display:flex;

gap:30px;

margin-top:40px;

}

.profile-content{

flex:1;

background:var(--surface);

padding:35px;

border-radius:20px;

box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.menu-btn{

padding:14px;

border:none;

border-radius:12px;

cursor:pointer;

font-size:16px;

background:#eee;

transition:.3s;

}

.menu-btn.active{

background:var(--accent);

color:#fff;

}

.menu-btn.danger{

background:#e74c3c;

color:#fff;

}

.profile-card{

margin-top:20px;

display:flex;

flex-direction:column;

gap:10px;

}
.user-menu{
    position:relative;
}
.toast{
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(100px);

    background: #111;
    color: #fff;

    padding: 14px 26px;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    box-shadow: 0 10px 25px rgba(0,0,0,.25);

    opacity: 0;
    visibility: hidden;

    transition: .35s;

    z-index: 9999;
}

.toast.is-active{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast.show{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.catalog-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
}

.catalog-toolbar .chips{
    flex:1;
    display:flex;
    flex-wrap:wrap;
    gap:12px;

    overflow: visible;
    position: relative;
}

.catalog-search{
    display:flex;
    align-items:center;
    width:290px; /* або 300px */

    flex-shrink:0;

    background:var(--bg);
    border:1px solid var(--border);
    border-radius:999px;

    padding:4px 6px 4px 16px;

    margin-left:auto;

    position:static; /* або просто видали position */
}

.catalog-search input{
    flex:1;
    border:none;
    outline:none;
    background:transparent;
    color:var(--text);
    padding:8px 4px;
}

.catalog-search button{
    width:36px;
    height:36px;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
}

.catalog-search button:hover{
    background:var(--primary-dark);
}

@media(max-width:900px){
    .catalog-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .catalog-search{
        width:100%;
    }
}
.checkout-content h3{
    display:flex;
    align-items:center;
    gap:16px;
    margin:30px 0 18px;
    font-size:24px;
    font-weight:700;
    color:var(--text);
}

.section-icon{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#E8F7F1;
    border-radius:14px;

    color:#0E7C66;

    flex-shrink:0;
}

.section-icon svg{
    width:24px;
    height:24px;
}
.profile-btn{
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
}

.profile-btn:hover{
    background: rgba(0,0,0,.08);
}

.profile-btn i{
    font-size: 24px;
    line-height: 1;
}

.profile-menu{
    position:absolute;
    top:calc(100% + 8px);
    right:0;

    width:140px;

    background:#fff;
    border-radius:12px;

    display:none;

    z-index:9999;
}

.profile-menu.show{
    display:block;
}
#logoutBtn{
    width:100%;
    height:42px;

    border:none;
    border-radius:8px;
    background:transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;
    padding:0;
    margin:0;

    color:#e53935;
    font-size:15px;
    font-weight:600;

    cursor:pointer;
}
#logoutBtn:hover{
    background: #fff2f2;
}
.profile-wrapper{
    position: relative;
}
.topbar-icon{
    font-size:16px;
    color:#fff;
    margin-right:8px;
    vertical-align:middle;
}
.category-item{
    position:relative;
}

.subcategories{
    position:absolute;
    top:100%;
    left:50%;
    transform: translate(-50%, 10px);

    display:flex;
    flex-direction:column;
    gap:6px;

    min-width:220px;
    padding:8px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;

    transition:.25s;

    z-index:9999;
}

.category-item:hover .subcategories{
    opacity:1;
    visibility:visible;
    transform:translate(-50%, 0);
}

.subcategories button{
    width:100%;
    padding:12px 16px;

    background:transparent;
    border:none;
    border-radius:10px;

    text-align:left;
    color:var(--text);

    transition:.2s;
}

.subcategories button:hover{
    background:var(--primary);
    color:#fff;
}
.about__media{
    display:flex;
    justify-content:center;
    align-items:center;
}

.about__media img{
    width:100%;
    max-width:520px;
    display:block;
    margin:0 auto;
    border-radius:24px;
}
.hero .eyebrow{
    word-spacing: 8px;
}
@media (max-width: 900px){

    .cart-drawer{
        width:100%;
        max-width:100%;
    }

}
@media (max-width: 407px){

    .navbar__inner{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        height:auto;
        padding:12px 16px;
        gap:10px;
    }

    .logo{
        margin:0;
    }

    .nav-actions{
        width:100%;
        margin:0;
        justify-content:center;
        gap:10px;
    }

}
@media (max-width:550px){

    .product-card__footer{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .product-card__price{
        text-align:center;
    }

    .add-btn{
        width:100%;
        justify-content:center;
    }

}
@media (max-width:550px){

    .product-card__footer{
        display:flex !important;
        flex-direction:column !important;
        gap:12px !important;
    }

    .product-card__price{
        width:100%;
        text-align:center;
    }

    .add-btn{
        width:100%;
        height:48px;
        justify-content:center;
        border-radius:14px;
        font-size:14px;
    }

}
@media (max-width: 900px) and (min-width: 408px){
    .navbar__inner{
        height: 78px;
    }
    .navbar--checkout .navbar__inner{
        height: auto;
        flex-direction: column;
        padding: 14px 16px;
        gap: 10px;
    }
}