:root{
  --text:#000;
  --bg:#f4f4f4;
  --white:#fff;
  --radius:15px;
  --shadow:0 1px 4px rgba(0,0,0,.06);
  --border:#dee2e6;
  --accent:#0d6efd;
}

html {
  overflow-y: scroll;
}
::-webkit-scrollbar {
  width: 8px; /* стандарт ~16px */
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}


.grecaptcha-badge { visibility: hidden; }

body{
  min-height:100vh; display:flex; flex-direction:column; margin: 0;
  background:var(--bg); color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.layout{display:flex; flex-direction:column; min-height:100vh; overflow: visible;}
.page-wrapper{flex:1 0 auto;}

/* ===== Header ===== */
.header{position:sticky; top:0; z-index:100; background:var(--white);}
.header__bar{border-bottom:1px solid var(--border); background:var(--white); height:64px}
.header__inner{
  max-width:1200px; margin:0 auto; padding:0 16px; height: 100%;
  display:flex; align-items:center; gap:16px; justify-content:space-between;
}
.logo{color:#000; text-decoration:none; font-weight:600; font: 700 24px/1.2 'Comfortaa', system-ui, sans-serif;}
.logo:hover{opacity:.7;}

.header__search{
  flex: 1 1 0;
  min-width: 0;
  max-width: 520px;
}
.search{display:flex; align-items:center; min-width: 0;}
.search__input{
  flex: 1 1 auto; width: 100%; min-width: 0; background:#f5f5f6; border:none; border-radius:10px 0 0 10px;
  padding:10px 12px; font-size:16px; outline:none; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search__btn{
  flex: 0 0 44px; width:44px; height:40px; border:none; border-radius:0 10px 10px 0;
  background:#e9ecef; display:grid; place-items:center; cursor:pointer;
  padding: 0; overflow:hidden; 
}
.search__btn:hover{background:#dde1e5;}

.header__menu{display:none; gap:40px; align-items:center;}
.menuitem{display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:#000; font-size:12px;}
.menuitem:hover{opacity:.8;}
.menuitem__icon{position:relative; display:inline-block;}

.cart-count{
  position:absolute; top:-6px; right:-8px;
  background:#ff3b30; color:#fff; border-radius:999px; padding:0 6px;
  font-size:11px; line-height:18px; min-width:18px; text-align:center;
}

/* Категории под шапкой */
.header__nav{
  display:none; gap:50px; justify-content:center; align-items:center;
  height:34px; background:var(--white);
  border-bottom: 1px solid var(--border);
  font: 700 22px/1.2 'Comfortaa', system-ui, sans-serif;
}
.navlink{font-size:15px; text-decoration:none; color:#000; font-weight:600;}
.navlink:hover{opacity:.7;}

/* Desktop breakpoint */
@media (min-width: 630px){
  .header__menu{display:flex;}
  .header__nav{display:flex;}
}




/* ===== Footer ======================================================================================= */
.footer {
  margin-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.footer__grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__title {
  font-weight: 600;
  margin: 0 0 6px;
}

.footer__link {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
}

.footer__link:hover {
  color: #000;
}

.footer__text {
  color: #6c757d;
  margin: 0;
  font-size: 14px;
}

/* копирайт */
.footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #dee2e6;
  padding-top: 12px;
  text-align: center;
}

.footer__copy {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.footer__brand {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.footer__brand:hover {
  color: #000;
}

@media (max-width: 600px) {
  .footer__grid { display: none; }
  .page-wrapper { padding-bottom: 70px; }
}

/* ===== Footerbar (моб) ===== */
.footerbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 9999;
}

.footerbar__btn {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #000;
  font-size: 11px;
}

.footerbar__btn:focus {
  background: #777f92;
  color: #fff;
}

.footerbar__icon {
  position: relative;
  display: inline-block;
}

.footerbar__btn.is-active {
  color: #007bff;
  font-weight: 600;
}

.footerbar__btn.is-active img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(92%) 
          saturate(1400%) hue-rotate(200deg) brightness(95%) contrast(98%);
}

@media (min-width: 601px) {
  .footerbar { display: none; }
}


/* ===== Helpers ================================================================================================ */
.hover-shadow{ box-shadow: var(--shadow); }
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }



.breadcrumbs {
  margin: 16px auto;
  font-size: 18px;
  font-weight: 500;
  color: #555;
}

.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";   /* можно заменить на SVG */
  margin: 0 8px;
  color: #aaa;
  font-size: 18px;
}

.breadcrumbs__link {
  text-decoration: none;
  color: #393D46;
  transition: color .2s;
}

.breadcrumbs__link:hover {
  color: #393D46;
}

.breadcrumbs__current {
  color: #222;
  font-weight: 600;
}

.section__header {
  margin-bottom: 12px;
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 24px/1.2 'Comfortaa', system-ui, sans-serif;
  color: var(--text, #000);
  margin: 0;
}

.section__title .icon-link {
  width: 1em;
  height: 1em;
  opacity: 0.7;
}