/*
Theme Name: meditech-shop
Version: 1.0
*/

:root{
  --bg:#0f1115;
  --panel:#171a21;
  --panel2:#1f2430;
  --text:#0c0d10;
  --muted:#6b7280;
  --light:#f7f8fb;
  --line:rgba(255,255,255,.08);
  --accent:#ff3b30;
  --accent2:#ff5b52;
  --radius:18px;
  --shadow:0 18px 60px rgba(0,0,0,.35);
  --shadow2:0 10px 30px rgba(0,0,0,.18);
  --container:1200px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: relative;
  z-index: 20;
}

.topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  background-color: #10131a;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
}
.topbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 0;
  font-size: 13px;
}
.topbar__left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.topbar__right{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.topbar__muted{ color: rgba(255,255,255,.7); }
.topbar__link{ color: rgba(255,255,255,.9); }
.topbar__link:hover{ color: #fff; }

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.headbar{
  background: rgba(18,22,30,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.headbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.brand__mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.brand__txt{ display:flex; flex-direction:column; line-height:1.15; }
.brand__name{ color:#fff; font-weight:700; font-size:14px; }
.brand__sub{ color: rgba(255,255,255,.65); font-size:12px; }

.nav__list{
  list-style:none;
  display:flex;
  gap:18px;
  padding:0;
  margin:0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.nav__list a{ color: rgba(255,255,255,.82); }
.nav__list a:hover{ color: #fff; }

.headbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  flex: 1;
}

.search .woocommerce-product-search{
  display:flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
}

.search .search-field{
  border:0;
  outline:none;
  background: transparent;
  color:#fff;
  width: 240px;
}
.search .search-field::placeholder{ color: rgba(255,255,255,.55); }

/* ЛУПА вместо кнопки */
.search .search-btn{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(255,59,48,.25);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.search .search-btn:hover{
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(255,59,48,.33);
}
.search .search-btn:active{
  transform: translateY(1px);
}

.search .search-btn .search-icon{
  display:block;
  fill: currentColor;
}

/* кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255,59,48,.25);
}
.btn--primary:hover{ filter: brightness(1.02); }
.btn--ghost{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.btn--ghost:hover{ background: rgba(255,255,255,.10); }

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  line-height: 1;
}

/* адаптив */
@media (max-width: 1100px){
  .nav{ display:none; }
  .search .search-field{ width: 160px; }
}
@media (max-width: 900px){
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .topbar__row{ flex-direction:column; align-items:flex-start; }
  .headbar__row{ flex-direction:column; align-items:flex-start; }
  .headbar__actions{ width:100%; justify-content:flex-start; flex-wrap:wrap; }
  .search .search-field{ width: 100%; min-width: 160px; }
  .footer__grid{ grid-template-columns: 1fr; }
}

/* FOOTER */
.site-footer{
  margin-top: 80px;
  background: radial-gradient(1200px 800px at 20% -20%, rgba(255,59,48,.18), transparent 60%),
              radial-gradient(900px 700px at 90% 0%, rgba(255,255,255,.08), transparent 55%),
              #0f1219;
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 44px 0;
}
.footer__title{
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 12px;
  color: #fff;
}
.footer__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.footer__list a{ color: rgba(255,255,255,.78); }
.footer__list a:hover{ color:#fff; }

.footer__brand{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.brand__mark--footer{
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.footer__brandname{
  font-weight: 900;
  color:#fff;
  font-size: 16px;
}
.footer__branddesc{
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.45;
}

.footer__meta{
  margin-top: 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}
.footer__small{
  margin-top: 10px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
}

.footer__contacts{
  display:grid;
  gap:10px;
}
.footer__contacts a{ color: rgba(255,255,255,.86); }
.footer__contacts a:hover{ color:#fff; }

.footer__chips{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__bottomrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.footer__bottomlinks{
  display:flex;
  gap: 14px;
}
.footer__bottomlinks a{ color: rgba(255,255,255,.62); }
.footer__bottomlinks a:hover{ color:#fff; }
