/* GreenBox — тема витрины. Цвета и размеры сняты с действующего сайта. */
:root {
  --gb-text: #1f2421;
  --gb-muted: #5f6763;
  --gb-bg: #f5f5f5;
  --gb-soft: #eef1ec;
  --gb-card: #f8f8f8;
  --gb-line: #d9ddd8;
  --gb-green: #a9d86e;
  --gb-green-dark: #8fc552;
  --gb-green-soft: #edf6e1;
  --gb-green-text: #44760f; /* GB-071: контраст 4,91:1 на #edf6e1 (было #5d9a1f, 3,09:1) */
  --gb-mint: #c3ebe3;
  --gb-link: #22706a;
  --gb-link-line: #bfe8e0;
  --bs-body-font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: #1f2421;
  --bs-body-bg: #f5f5f5;
  --bs-link-color: #22706a;
  --bs-link-hover-color: #1a5752;
  --bs-primary: #a9d86e;
}

body.gb {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--gb-text);
  background: var(--gb-bg);
  -webkit-font-smoothing: antialiased;
}
.gb a { color: inherit; text-decoration: none; }
.gb img { max-width: 100%; height: auto; }
.gb svg { width: 18px; height: 18px; flex: none; }
.gb-wrap { width: 100%; padding: 0 20px; box-sizing: border-box; }
.gb-main { min-height: 50vh; padding-bottom: 40px; }

/* ---------- верхняя полоса ---------- */
.gb-top { background: var(--gb-soft); font-size: 13px; }
.gb-top__row { display: flex; justify-content: space-between; align-items: center; min-height: 30px; gap: 16px; }
.gb-top__links, .gb-top__user { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.gb-top a:hover { color: var(--gb-link); }
.gb-top__user a { display: inline-flex; align-items: center; gap: 6px; }
.gb-lang { display: inline-flex; gap: 8px; margin-left: 4px; }
.gb-lang a { color: var(--gb-muted); } /* GB-067: контраст 5,11:1 на #eef1ec (было #8a918c, 2,83:1) */
.gb-lang__current { color: var(--gb-text); }
.gb-cart { color: var(--gb-link) !important; } /* GB-067: контраст 5,13:1 на #eef1ec (было зелёный #5d9a1f, 3,02:1) */
.gb-cart svg { color: var(--gb-text); }
.gb-cart__icon { position: relative; display: inline-flex; }
.gb-cart__count { position: absolute; left: 9px; top: -5px; background: var(--gb-green); color: var(--gb-text); border-radius: 9px; min-width: 15px; padding: 0 3px; font-size: 10px; line-height: 15px; text-align: center; font-weight: 400; }

/* ---------- шапка ---------- */
.gb-header__row { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.gb-logo { flex: none; line-height: 0; }
.gb-nav { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 17px; }
.gb-nav a { padding: 3px 0; border-bottom: 2px solid transparent; }
.gb-nav a:hover, .gb-nav a.is-active { border-bottom-color: var(--gb-green); }
.gb-nav__main { font-weight: 700; }
.gb-nav__sep { width: 1px; height: 22px; background: var(--gb-line); margin: 0 4px; }
.gb-header__right { display: flex; align-items: center; gap: 28px; flex: none; }
.gb-search svg { width: 22px; height: 22px; }
.gb-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.gb-phone svg { width: 22px; height: 22px; }

/* ---------- типографика ---------- */
.gb-h1 { font-size: 32px; font-weight: 400; line-height: 1.2; margin: 0 0 22px; }
.gb-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0 12px; padding: 0; font-size: 12px; color: var(--gb-muted); }
.gb-crumbs li + li::before { content: "›"; margin: 0 9px; color: #8a918c; }
.gb-crumbs a:hover { color: var(--gb-link); }
.gb-text { font-size: 14.5px; line-height: 1.55; }
.gb .gb-text h1 { font-size: 20px; font-weight: 700; margin: 0 0 22px; }
.gb-text h2 { font-size: 21px; font-weight: 700; margin: 22px 0 12px; }
.gb-text h3 { font-size: 17px; font-weight: 700; margin: 18px 0 10px; }
.gb-text p { margin: 0 0 9px; }
.gb-text ul, .gb-text ol { margin: 0 0 12px; padding-left: 26px; }
.gb-text li { margin-bottom: 8px; }
.gb-text a { color: var(--gb-link); border-bottom: 2px solid var(--gb-link-line); }
.gb-text a:hover { border-bottom-color: var(--gb-link); }
.gb-text table { border-collapse: collapse; margin: 0 0 14px; width: 100%; }
.gb-text td, .gb-text th { border-bottom: 1px solid var(--gb-line); padding: 7px 10px 7px 0; text-align: left; vertical-align: top; }
.gb-text--home { max-width: 790px; margin: 0 auto; }
.gb-text--home h1 { text-align: center; }
.gb-text--category { max-width: 900px; margin-top: 40px; }

/* ---------- главная ---------- */
.gb-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 78px; }
.gb-tile { display: flex; flex-direction: column; align-items: center; gap: 22px; font-size: 16px; font-weight: 700; }
.gb-tile img { width: 96px; height: 110px; object-fit: contain; transition: transform .2s; }
.gb-tile:hover img { transform: translateY(-3px); }
.gb-blog { margin-top: 64px; }
.gb-blog__title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.gb-blog__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 259px)); gap: 30px; }
.gb-blog__item { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; }
.gb-blog__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.gb-blog__item time { font-size: 12px; color: var(--gb-muted); margin-bottom: 4px; }
.gb-blog__item:hover span { color: var(--gb-link); }

/* ---------- каталог ---------- */
.gb-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.gb-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #c9cdc8; border-radius: 16px; overflow: hidden; background: #fff; }
.gb-seg a { padding: 5px 10px; border-left: 1px solid #c9cdc8; }
.gb-seg a:first-child { border-left: 0; }
.gb-seg a.is-active { background: var(--gb-green-soft); box-shadow: inset 0 0 0 1px var(--gb-text); border-radius: 16px; }
.gb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 28px; }
.gb-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gb-card__image { position: relative; display: block; width: 100%; aspect-ratio: 1; background: var(--gb-card); }
.gb-card__image img { width: 100%; height: 100%; object-fit: contain; }
.gb-card__name { font-size: 15px; margin: 14px 0 12px; }
.gb-card__name:hover { color: var(--gb-link); }
.gb-card__buy { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; }
.gb-card__price { font-size: 15px; font-weight: 700; margin-right: 8px; white-space: nowrap; }
.gb-card__price s, .gb-product__price s { font-weight: 400; color: var(--gb-muted); font-size: .8em; }
.gb-card__stock { color: var(--gb-muted); font-size: 13px; }
.gb-card__cart { width: 36px; height: 26px; border: 0; border-radius: 9px; background: var(--gb-green); color: var(--gb-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gb-card__cart:hover { background: var(--gb-green-dark); }
.gb-card__cart svg { width: 16px; height: 16px; }
.gb-sticker { position: absolute; left: 0; top: 4px; z-index: 1; background: var(--gb-mint); padding: 4px 10px; font-size: 13px; line-height: 1.3; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.gb-qty { display: inline-flex; align-items: center; border: 1px solid #8a918c; border-radius: 20px; height: 38px; background: #fff; overflow: hidden; }
.gb-qty button { width: 32px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--gb-text); cursor: pointer; padding: 0; }
.gb-qty button:hover { background: var(--gb-green-soft); }
.gb-qty input { width: 28px; border: 0; background: none; text-align: center; font: inherit; font-size: 15px; padding: 0; outline: none; }
.gb-qty--sm { height: 24px; border-radius: 12px; }
.gb-qty--sm button { width: 22px; font-size: 16px; }
.gb-qty--sm input { width: 24px; font-size: 13px; }
.gb-empty { color: var(--gb-muted); }
.gb-pagination { margin-top: 40px; }
.gb-pagination .pagination { justify-content: center; gap: 6px; }
.gb-pagination .page-link { border-radius: 16px; border-color: #c9cdc8; color: var(--gb-text); background: #fff; }
.gb-pagination .active .page-link { background: var(--gb-green-soft); border-color: var(--gb-text); color: var(--gb-text); }

/* подборки по сложности над списком товаров */
.gb-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 14px; }
.gb-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid #8a918c; border-radius: 16px; background: #fff; }
.gb-chips a.is-active { background: var(--gb-green-soft); box-shadow: inset 0 0 0 1px var(--gb-text); border-color: var(--gb-text); }
.gb-level { display: inline-flex; gap: 3px; }
.gb-level b { width: 9px; height: 10px; background: #fff; box-shadow: inset 0 0 0 1px #8a918c; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.gb-level--1 b:nth-child(-n+1), .gb-level--2 b:nth-child(-n+2), .gb-level--3 b:nth-child(-n+3) { background: #7fcdbb; box-shadow: none; }

/* текстовые страницы и статьи */
.gb-page { max-width: 820px; }
.gb-page__date { display: block; font-size: 12px; color: var(--gb-muted); margin: -12px 0 20px; }

/* ---------- товар ---------- */
.gb-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; padding-top: 30px; align-items: start; }
.gb-product__photo { position: relative; background: var(--gb-card); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.gb-product__photo img { width: 100%; height: 100%; object-fit: contain; }
.gb-product__photo .gb-sticker { top: 6px; }
.gb-product__right .gb-crumbs { margin-top: 0; }
.gb-product__title { font-size: 20px; font-weight: 400; margin: 0 0 12px; }
.gb-product__meta { font-size: 12px; color: var(--gb-muted); margin-bottom: 22px; }
.gb-product__price { font-size: 28px; margin-bottom: 26px; white-space: nowrap; }
.gb-product__short { font-size: 14.5px; line-height: 1.55; margin: 28px 0 0; }
.gb-product__stock { color: var(--gb-muted); font-size: 16px; }
.gb-product__h2 { font-size: 16px; font-weight: 700; margin: 28px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--gb-line); }
.gb-mods { margin-bottom: 36px; }
.gb-mods__title { font-size: 16px; margin-bottom: 10px; }
.gb-mods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 360px; }
.gb-mods__list a { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; text-align: center; padding: 6px 14px; border: 1px solid #8a918c; border-radius: 18px; background: #fff; }
.gb-mods__list a:hover { background: var(--gb-green-soft); }
.gb-mods__list a.is-active { background: var(--gb-green-soft); box-shadow: inset 0 0 0 1px var(--gb-text); border-color: var(--gb-text); }
.gb-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.gb-btn { border: 0; border-radius: 20px; height: 38px; padding: 0 16px; font: inherit; font-size: 18px; cursor: pointer; }
.gb-btn--buy { background: var(--gb-green); color: var(--gb-text); }
.gb-btn--buy:hover { background: var(--gb-green-dark); }
.gb-specs { display: grid; grid-template-columns: 183px 1fr; gap: 9px 0; margin: 22px 0 0; font-size: 13.5px; }
.gb-specs dt { font-weight: 400; color: var(--gb-muted); padding-right: 12px; }
.gb-specs dd { margin: 0; }
.gb-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--gb-line); margin: 28px 0 22px; font-size: 16px; }
.gb-tabs span { padding-bottom: 9px; font-weight: 700; color: var(--gb-muted); }
.gb-tabs span.is-active { color: var(--gb-text); box-shadow: 0 1px 0 var(--gb-text); }

/* кнопки и блоки карточки */
.gb-product__unit { font-size: 14px; font-weight: 400; color: var(--gb-muted); }
.gb-product__pricerow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.gb-product__pricerow .gb-product__price { margin: 0; }
.gb-product__actions { display: flex; gap: 20px; }
.gb-product__actions button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--gb-text); cursor: pointer; padding: 0; }
.gb-product__actions i { width: 36px; height: 36px; border: 1px solid #8a918c; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.gb-product__actions i svg { width: 22px; height: 22px; }
.gb-product__actions button:hover i, .gb-product__actions button.is-active i { background: var(--gb-green-soft); border-color: var(--gb-text); }
.gb-btn--line { background: #fff; border: 1px solid #8a918c; color: var(--gb-text); }
.gb-btn--line:hover { background: var(--gb-green-soft); }
.gb-btn[disabled] { opacity: .5; cursor: default; }
.gb-tabs span[data-tab] { cursor: pointer; }
.gb-mini { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 20px; overflow-x: auto; padding: 22px 0 12px; scrollbar-width: thin; }
.gb-mini__item { display: flex; flex-direction: column; gap: 4px; font-size: 12.500px; }
.gb-mini__item img { width: 150px; height: 150px; object-fit: contain; background: var(--gb-card); margin-bottom: 10px; }
.gb-mini__item b { font-weight: 400; }
.gb-mini__item:hover span { color: var(--gb-link); }

/* окно «Параметри для досвідчених фермерів» в описании товара */
.gb-modal { display: none; position: fixed; inset: 0; z-index: 1090; background: rgba(31, 36, 33, .5); align-items: center; justify-content: center; padding: 16px; }
.gb-modal:target { display: flex; }
.gb-modal__box { position: relative; background: #fff; border-radius: 14px; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 28px; box-sizing: border-box; }
.gb-text .gb-modal__close { position: absolute; right: 14px; top: 8px; font-size: 28px; line-height: 1; border: 0; color: var(--gb-text); }
.gb-modal__title { font-size: 18px; font-weight: 700; margin: 0 30px 14px 0; }

/* боковой фильтр раздела (GB-063, как на Хорошопе): «Вага», «Складність для новачка», «Ціна від–до»; 5 колонок на широком экране */
.gb-catlayout.has-side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.gb-grid--cat, .gb-catlayout.has-side .gb-grid--cat { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 50px 22px; }
.gb-side__toggle { display: none; }
.gb-side__group { margin: 0 0 22px; }
.gb-side b { display: block; font-size: 14px; margin: 0 0 8px; }
.gb-side ul { list-style: none; margin: 0; padding: 0 0 0 8px; }
.gb-side li { margin-bottom: 5px; }
.gb-side a { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; }
.gb-side a i { width: 14px; height: 14px; border: 1px solid #8a918c; border-radius: 50%; background: #fff; box-sizing: border-box; flex: none; }
.gb-side a.is-active i { border: 4px solid var(--gb-green-dark); }
.gb-side a.is-active { font-weight: 700; }
.gb-side a:hover { color: var(--gb-link); }
.gb-side sup { font-size: 10px; color: var(--gb-muted); top: -.4em; margin-left: 3px; font-weight: 400; }
.gb-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 8px; }
.gb-price input[type=number] { width: 64px; height: 32px; box-sizing: border-box; border: 1px solid #8a918c; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 14px; background: #fff; color: var(--gb-text); -moz-appearance: textfield; }
.gb-price input[type=number]::-webkit-inner-spin-button, .gb-price input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gb-price i { width: 8px; height: 1px; background: #8a918c; }
.gb-price button { height: 32px; border: 0; border-radius: 16px; background: var(--gb-green); color: var(--gb-text); font: inherit; font-size: 14px; padding: 0 12px; cursor: pointer; }
.gb-side__reset { flex-basis: 100%; font-size: 13px; color: var(--gb-link); }
.gb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.gb-pagination .pagination { margin: 0; }
.gb-pagination__all { padding: 6px 14px; border: 1px solid #c9cdc8; border-radius: 16px; background: #fff; }
.gb-pagination__all:hover { border-color: var(--gb-text); }
/* SEO-текст раздела свёрнут: начало с затуханием и «Розгорнути» */
.gb-clip.is-clipped .gb-clip__body { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.gb-clip__more { min-height: 24px; margin-top: 8px; border: 0; background: none; padding: 0; font: inherit; color: var(--gb-link); border-bottom: 1px dashed currentColor; cursor: pointer; }
@media (max-width: 1279px) {
  .gb-catlayout.has-side .gb-grid--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .gb-catlayout.has-side .gb-grid--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gb-grid--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* подсказки у характеристик */
.gb-tip { position: relative; display: inline-flex; margin-left: 6px; vertical-align: -3px; }
.gb-tip button { border: 0; background: none; padding: 0; line-height: 0; color: var(--gb-text); cursor: pointer; }
.gb-tip button svg { width: 15px; height: 15px; }
.gb-tip__text { display: none; position: absolute; left: -10px; bottom: 24px; z-index: 30; width: 280px; background: #fff; color: var(--gb-text); border: 1px solid var(--gb-text); border-radius: 10px; padding: 10px 12px; font-size: 12.500px; line-height: 1.45; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.gb-tip.is-open .gb-tip__text { display: block; }

/* отзывы и форма обратного звонка */
.gb-review { font-size: 14px; }
.gb-review h2 { font-size: 17px; font-weight: 700; margin: 18px 0 12px; }
.gb-review .form-control { border-color: var(--gb-text); }
.gb-modal.is-open { display: flex; }
.gb-cb { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gb-cb label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; margin: 0; }
.gb-cb input[type=text] { height: 36px; border: 1px solid var(--gb-text); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 15px; }
.gb-cb .gb-phonebox input { flex: 1; border: 0; font: inherit; font-size: 15px; background: none; min-width: 0; }
.gb-cb__close { position: absolute; right: 12px; top: 6px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--gb-text); }
.gb-cb__msg { font-style: normal; font-size: 13px; color: #c0392b; }
.gb-cb__msg:empty { display: none; }
.gb-cb__msg.is-ok { color: var(--gb-link); }
.gb-footer__cb { align-self: flex-start; font-size: 12px; margin-left: 26px; }

/* всплывающее сообщение */
.gb-toast { background: #fff; border: 1px solid var(--gb-text); border-radius: 14px; padding: 12px 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); font-size: 14px; }
.gb-toast a { color: var(--gb-link); border-bottom: 2px solid var(--gb-link-line); }
.gb-toast--bad { border-color: #c0392b; color: #c0392b; }

/* поиск */
.gb-searchform { display: inline-flex; align-items: center; gap: 6px; }
.gb-searchform input[type=search]:focus-visible { outline: 2px solid var(--gb-green); outline-offset: 2px; }
.gb-searchform input[type=search] { width: 0; padding: 0; border: 0; background: none; font: inherit; outline: none; transition: width .2s; border-bottom: 1px solid transparent; }
.gb-searchform:focus-within input[type=search], .gb-searchform input[type=search]:not(:placeholder-shown) { width: 170px; padding: 4px 2px; border-bottom-color: var(--gb-text); }
.gb-searchform .gb-search { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; color: var(--gb-text); }
.gb-searchpage { display: flex; gap: 12px; margin-bottom: 30px; max-width: 560px; }
.gb-searchpage input[type=search] { flex: 1; height: 38px; border: 1px solid var(--gb-text); border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; }

/* ---------- оформление заказа ---------- */
.gb-header--min .gb-header__row { padding-top: 34px; padding-bottom: 34px; }
.gb-header--min .gb-logo img { width: 96px; height: auto; }
.gb-back { flex: 1; margin-left: 100px; font-size: 15px; }
.gb-back:hover { color: var(--gb-link); }
.gb-co .gb-h1 { margin-top: 26px; }
.gb-co__done { font-size: 16px; margin-bottom: 24px; }
.gb-co a.gb-btn { display: inline-flex; align-items: center; }
.gb-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; align-items: start; }
.gb-co__tabs { display: flex; margin-bottom: -1px; position: relative; z-index: 1; }
.gb-co__tabs button, .gb-co__tabs a { border: 1px solid var(--gb-line); border-left-width: 0; background: var(--gb-bg); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; max-width: 165px; text-align: left; cursor: pointer; color: var(--gb-text); }
.gb-co__tablist { display: contents; }
.gb-co__tabs [data-co-tab="new"] { order: 1; border-left-width: 1px; border-top-left-radius: 8px; }
.gb-co__tabs > a { order: 2; }
.gb-co__tabs [data-co-tab="quick"] { order: 3; border-top-right-radius: 8px; }
.gb-co__tabs .is-active { border-bottom-color: var(--gb-bg); }
.gb-co__form { border: 1px solid var(--gb-line); border-radius: 0 8px 8px 8px; }
.gb-co__form section { padding: 20px 30px; border-top: 1px solid var(--gb-line); display: flex; flex-direction: column; }
.gb-co__form section:first-of-type { border-top: 0; }
.gb-co__form section[hidden], .gb-field[hidden] { display: none; }
.gb-co__form h2 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.gb-field { display: grid; grid-template-columns: 150px minmax(0, 360px); align-items: start; margin: 0 0 20px; }
.gb-field:last-child { margin-bottom: 0; }
.gb-field > span { padding-top: 8px; font-size: 14px; }
.gb-field--head > span { font-size: 17px; font-weight: 700; padding-top: 6px; }
.gb-field input[type=text], .gb-field input[type=email], .gb-field input[type=tel], .gb-field select, .gb-field textarea { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid var(--gb-text); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; color: var(--gb-text); }
.gb-field textarea { height: auto; padding: 8px 10px; margin-top: 4px; }
.gb-field input:focus, .gb-field select:focus, .gb-field textarea:focus, .gb-phonebox:focus-within { outline: 2px solid var(--gb-green); outline-offset: 1px; }
.gb-phonebox { display: flex; align-items: center; border: 1px solid var(--gb-text); border-radius: 6px; background: #fff; height: 36px; padding-left: 10px; }
.gb-phonebox i { font-style: normal; font-size: 15px; margin-right: 6px; }
.gb-phonebox input[type=tel] { border: 0; height: 34px; padding-left: 0; outline: none !important; }
.gb-field .gb-phonebox { display: flex; width: 100%; box-sizing: border-box; }
.gb-field .gb-phonebox input[type=tel] { flex: 1; min-width: 0; }
.gb-field em { display: block; font-style: normal; color: #c0392b; font-size: 12.500px; margin-top: 4px; }
.gb-field em:empty { display: none; }
.gb-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; }
.gb-check input { width: 18px; height: 18px; accent-color: var(--gb-green-dark); margin: 0; flex: none; }
.gb-link { border: 0; background: none; padding: 0; font: inherit; color: var(--gb-text); cursor: pointer; border-bottom: 1px dashed #8a918c; }
.gb-co__go { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.gb-co__min { color: #c0392b !important; margin: 0 !important; }
.gb-co__side { border: 1px solid var(--gb-line); border-radius: 8px; }
.gb-co__side h2 { font-size: 17px; font-weight: 700; margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--gb-line); }
.gb-co__item { display: grid; grid-template-columns: 80px 1fr auto; gap: 4px 10px; padding: 16px 20px; border-bottom: 1px solid var(--gb-line); align-items: start; }
.gb-co__item img { width: 80px; height: 80px; object-fit: contain; }
.gb-co__info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gb-co__item > b { grid-column: 3; align-self: end; white-space: nowrap; }
.gb-co__remove { grid-column: 3; justify-self: end; border: 0; background: none; padding: 0; color: #5f6763; cursor: pointer; line-height: 0; }
.gb-co__remove:hover { color: #c0392b; }
.gb-co__row, .gb-co__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px; }
.gb-co__coupon { border-bottom: 1px solid var(--gb-line); flex-wrap: wrap; gap: 8px; }
.gb-co__couponform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gb-co__couponform[hidden] { display: none; }
.gb-co__couponform input { height: 34px; width: 150px; border: 1px solid var(--gb-text); border-radius: 6px; padding: 0 10px; font: inherit; }
.gb-co__couponform .gb-btn { height: 34px; font-size: 14px; }
.gb-co__couponform em { flex-basis: 100%; font-style: normal; font-size: 12.500px; color: #c0392b; }
.gb-co__couponnote { flex-basis: 100%; font-style: normal; font-size: 12.500px; color: var(--gb-muted); }
.gb-co__hint { margin: 0; padding: 0 20px 16px; font-size: 12.500px; color: var(--gb-muted); }
.gb-co__total { border-top: 1px solid var(--gb-line); justify-content: flex-end; gap: 14px; font-size: 12px; }
.gb-co__total b { font-size: 18px; }

/* ---------- подвал ---------- */
.gb-footer { background: var(--gb-soft); color: var(--gb-muted); font-size: 13px; margin-top: 40px; }
.gb-footer__row { display: grid; grid-template-columns: 190px 225px repeat(3, 185px); gap: 20px 0; padding-top: 30px; padding-bottom: 40px; }
.gb-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--gb-text); }
.gb-footer__col b { font-size: 14px; margin-bottom: 6px; }
.gb-footer__col a:hover { color: var(--gb-link); }
.gb-footer__ico { display: inline-flex; align-items: center; gap: 8px; }
.gb-footer__ico svg { color: #8a918c; }
.gb-totop { position: fixed; right: 20px; bottom: 20px; width: 36px; height: 36px; border: 1px solid var(--gb-text); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 20; }
.gb-totop svg { transform: rotate(180deg); }
.gb-alerts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1080; width: min(520px, calc(100% - 24px)); }
.gb-alerts .alert { box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.gb-alerts .alert a { color: var(--gb-link); text-decoration: underline; }

/* ---------- штатные страницы OpenCart (корзина, оформление, кабинет) ---------- */
/* те же поля, крошки и заголовок, что у страниц магазина (gb-wrap, gb-crumbs, gb-h1) */
.gb .gb-main > .container, .gb #container { max-width: none; padding-left: 20px; padding-right: 20px; }
.gb .breadcrumb { --bs-breadcrumb-divider: '›'; font-size: 12px; margin: 24px 0 12px; background: none; padding: 0; color: var(--gb-muted); }
.gb .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.gb .breadcrumb-item + .breadcrumb-item::before { color: #8a918c; padding: 0 9px; }
.gb .breadcrumb a { color: var(--gb-muted); text-decoration: none; }
.gb .breadcrumb a:hover { color: var(--gb-link); }
.gb .breadcrumb-item:first-child i { display: none; }
.gb .breadcrumb-item:first-child a:has(i)::before { content: "Головна"; }
html[lang^="ru"] .gb .breadcrumb-item:first-child a:has(i)::before { content: "Главная"; }
.gb .gb-main > .container h1 { font-size: 32px; font-weight: 400; line-height: 1.2; margin: 0 0 22px; }
.gb .gb-main > .container .text-end { text-align: left !important; }
.gb .btn-primary { background: var(--gb-green); border-color: var(--gb-green); color: var(--gb-text); border-radius: 20px; }
.gb .btn-primary:hover, .gb .btn-primary:focus { background: var(--gb-green-dark); border-color: var(--gb-green-dark); color: var(--gb-text); }
.gb .btn-light, .gb .btn-secondary { border-radius: 20px; }
.gb .form-control:focus, .gb .form-select:focus { border-color: var(--gb-green-dark); box-shadow: 0 0 0 .2rem rgba(169, 216, 110, .3); }
.gb h1 { font-weight: 400; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 991px) {
  .gb-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .gb-header__row { flex-wrap: wrap; }
  .gb-nav { order: 3; flex-basis: 100%; }
  .gb-footer__row { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .gb-footer__copy { grid-column: 1 / -1; }
  /* планшет: верхняя полоса в одну строку (кабинет и корзина — значками), оформление заказа — в одну колонку */
  .gb-top__user a { font-size: 0; gap: 0; }
  .gb-top__user a svg { width: 20px; height: 20px; }
  .gb-top__user .gb-cart { font-size: 13px; gap: 6px; }
  .gb-co__grid { grid-template-columns: 1fr; }
  .gb-co__side { order: -1; }
}
@media (max-width: 700px) {
  .gb-wrap, .gb .gb-main > .container, .gb #container { padding-left: 16px; padding-right: 16px; }
  .gb .gb-main > .container h1 { font-size: 24px; }
  .gb-top__links > a { display: none; }
  .gb-top__user a { font-size: 0; gap: 0; }
  .gb-top__user a svg { width: 20px; height: 20px; }
  .gb-top__user .gb-cart { font-size: 13px; gap: 6px; }
  .gb-logo img { width: 140px; height: auto; }
  .gb-phone { font-size: 15px; gap: 6px; }
  .gb-phone svg { width: 18px; height: 18px; }
  .gb-header__row { gap: 12px; padding-top: 12px; padding-bottom: 14px; }
  .gb-header__right { gap: 16px; margin-left: auto; }
  .gb-searchform:focus-within input[type=search], .gb-searchform input[type=search]:not(:placeholder-shown) { width: 120px; }
  .gb-nav { font-size: 15px; gap: 8px 14px; }
  .gb-tiles { grid-template-columns: repeat(2, 1fr); padding-bottom: 40px; gap: 28px 16px; }
  .gb-h1 { font-size: 24px; }
  .gb-grid, .gb-grid--cat, .gb-catlayout.has-side .gb-grid--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .gb-catlayout.has-side { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* фильтры на телефоне — под кнопкой «Фільтри» */
  .gb-side__toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 16px; border: 1px solid #8a918c; border-radius: 18px; background: #fff; font: inherit; color: var(--gb-text); cursor: pointer; }
  .gb-side__toggle::after { content: ""; width: 7px; height: 7px; margin-left: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
  .gb-side.is-open .gb-side__toggle::after { transform: translateY(2px) rotate(-135deg); }
  .gb-side.has-active .gb-side__toggle { background: var(--gb-green-soft); border-color: var(--gb-text); }
  .gb-side__body { display: none; padding: 14px 0 0; }
  .gb-side.is-open .gb-side__body { display: block; }
  .gb-side__group { margin-bottom: 14px; }
  .gb-side ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
  .gb-side li { margin: 0; }
  .gb-side ul a { padding: 4px 12px; border: 1px solid #c9cdc8; border-radius: 16px; background: #fff; }
  .gb-side ul a i { display: none; }
  .gb-side ul a.is-active { background: var(--gb-green-soft); border-color: var(--gb-text); }
  .gb-price { padding-left: 0; }
  .gb-tip__text { width: 220px; }
  /* сортировка на телефоне: отдельные «таблетки», как подборки, — без обрезанной рамки при переносе */
  .gb-toolbar { gap: 8px; }
  .gb-toolbar__label { flex-basis: 100%; }
  .gb-seg { gap: 6px; border: 0; border-radius: 0; overflow: visible; background: none; }
  .gb-seg a, .gb-seg a:first-child { border: 1px solid #c9cdc8; border-radius: 16px; background: #fff; padding: 4px 12px; }
  .gb-seg a.is-active { background: var(--gb-green-soft); border-color: var(--gb-text); }
  .gb-product { grid-template-columns: 1fr; }
  .gb-co__grid { grid-template-columns: minmax(0, 1fr); }
  .gb-co__side { order: -1; }
  /* GB-065: вкладки оформления делят ширину экрана поровну и переносят текст, страница не шире 375 px */
  .gb-co__main { min-width: 0; }
  .gb-co__tabs button, .gb-co__tabs a { flex: 1 1 auto; min-width: min-content; max-width: none; padding: 10px 6px; font-size: 12px; line-height: 1.25; }
  .gb-field { grid-template-columns: 1fr; }
  .gb-co__form section { padding: 16px; }
  .gb-back { margin-left: 16px; font-size: 13px; }
  .gb-header--min .gb-phone { display: none; }
  .gb-product__pricerow { flex-wrap: wrap; }
  .gb-product__right { order: -1; margin-bottom: 24px; }
  .gb-product__left { display: contents; }
  .gb-product__photo { order: -2; margin-bottom: 20px; }
  .gb-blog__list { grid-template-columns: 1fr; }
  .gb-footer__row { grid-template-columns: 1fr 1fr; }
  .gb-specs { grid-template-columns: 130px 1fr; }
}

/* набор на странице товара */
.gb-bundle{margin:28px 0;padding:18px;border:1px solid #e3eadf;border-radius:12px;background:#fbfdf9}
.gb-bundle .gb-product__h2{margin-top:0}
.gb-bundle__badge{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:10px;background:#e53935;color:#fff;font-size:13px;vertical-align:middle}
.gb-bundle__items{display:flex;align-items:flex-start;gap:6px;overflow-x:auto;padding-bottom:4px}
.gb-bundle__items .gb-mini__item{flex:0 0 112px;width:112px}
.gb-bundle__items .gb-mini__item img{width:112px;height:112px}
.gb-bundle__plus{flex:0 0 auto;align-self:center;margin-top:-40px;font-size:24px;color:#8aa37b}
.gb-bundle__buy{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:14px;padding-top:14px;border-top:1px solid #e3eadf}
.gb-bundle__buy s{color:#888}
.gb-bundle__buy b{font-size:22px}
.gb-bundle__buy small{color:#3b8a2e}
.gb-bundle__buy button{margin-left:auto}
@media (max-width:600px){.gb-bundle__buy button{margin-left:0;width:100%}}
.gb-product > *{min-width:0}
.gb-stockleft{margin:-6px 0 20px;color:#c62828;font-size:14px}
.gb-co__limited{background:#fff4e5;border:1px solid #f5c58a;border-radius:8px;padding:10px 14px;margin-bottom:12px;font-size:14px}.gb-co__limited p{margin:0}
/* кабинет покупателя */
.gb-cab h1{margin:0 0 16px}
.gb-cab__logout{color:#666}
.gb-cab__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-bottom:40px}
.gb-cab__card{border:1px solid #e3eadf;border-radius:12px;padding:18px 20px;background:#fff}
.gb-cab__card h2{font-size:20px;margin:0 0 10px}
.gb-cab__big{font-size:40px;font-weight:600;color:#3b8a2e;margin:0 0 6px;line-height:1}
.gb-cab__bar{height:8px;border-radius:4px;background:#eef3ea;overflow:hidden;margin:6px 0 10px}
.gb-cab__bar span{display:block;height:100%;background:#8fc552}
.gb-cab__muted{color:#777;font-size:14px}
.gb-cab__orders{width:100%;margin-bottom:10px;font-size:15px}
.gb-cab__orders td{padding:6px 4px;border-bottom:1px solid #eef3ea;vertical-align:top}
.gb-cab__orders small{color:#777}
.gb-cab__links{list-style:none;padding:0;margin:0}
.gb-cab__links li{padding:6px 0;border-bottom:1px solid #eef3ea}
.gb-otp-wrap{max-width:520px;margin:10px auto 40px}

/* ---------- условия корзины: «до безкоштовного пакування залишилось …» */
.gb-rules { display: grid; gap: 8px; margin-bottom: 14px; }
.gb-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--gb-green-soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.gb-rule span { flex: 1 1 auto; }
.gb-rule.is-done { color: var(--gb-green-text); font-weight: 600; }
.gb-rule.is-done svg { width: 16px; height: 16px; }
.gb-rule__bar { flex: 1 0 100%; height: 6px; border-radius: 3px; background: #fff; overflow: hidden; }
.gb-rule__bar b { display: block; height: 100%; background: var(--gb-green-dark); border-radius: 3px; }
.gb-toast__rule { display: block; margin-top: 6px; color: var(--gb-green-text); font-weight: 600; }

/* ---------- «Оформити через Prom» и экран ожидания */
.gb-prom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 4px; }
.gb-prom__or { color: var(--gb-muted, #888); font-size: 14px; }
.gb-prom p { flex: 1 0 100%; margin: 0; font-size: 13px; color: var(--gb-muted, #777); max-width: 520px; }
.gb-prom em { flex: 1 0 100%; color: #d2321e; font-style: normal; font-size: 13px; }
.gb-prom em:empty { display: none; }
.gb-btn--prom { display: inline-flex; align-items: center; gap: 10px; background: #7b17e5; color: #fff; border: 0; border-radius: 10px; font-weight: 600; padding: 12px 22px; }
.gb-btn--prom:hover { background: #6611c4; color: #fff; }
.gb-btn--prom__logo { height: 22px !important; width: auto !important; max-width: 110px; display: block; }
.gb-btn--prom:disabled { opacity: .6; }
.gb-prom-wait { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 24, 20, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gb-prom-wait__card { background: #fff; border-radius: 12px; padding: 28px 24px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.gb-prom-wait__card p { margin: 6px 0; font-size: 14px; color: #555; }
.gb-prom-wait__card .gb-btn { margin-top: 14px; }
.gb-prom-wait__title { font-size: 17px !important; font-weight: 600; color: #222 !important; }
.gb-prom-wait__spin { display: inline-block; width: 40px; height: 40px; border: 4px solid #eadcfb; border-top-color: #7b17e5; border-radius: 50%; animation: gb-spin 0.9s linear infinite; margin-bottom: 8px; }
.gb-prom-wait__bar { display: block; height: 4px; background: #f0eaf8; border-radius: 2px; overflow: hidden; margin-top: 14px; }
.gb-prom-wait__bar b { display: block; height: 100%; width: 0; background: #7b17e5; transition: width 1.8s linear; }
@keyframes gb-spin { to { transform: rotate(360deg); } }
.gb-co__side .gb-rules { margin: 16px 20px 0; }
.gb-card__tray { font-size: 12px; color: var(--gb-muted); margin: -4px 0 6px; text-align: center; }

/* ---------- фасовки на карточке в списке (как на прежнем сайте: при наведении карточка «поднимается») */
.gb-card { position: relative; }
.gb-card__min { font-size: 12px; color: var(--gb-muted); margin-top: 6px; }
.gb-card__mods { width: 100%; margin-top: 10px; }
.gb-card__modname { display: block; font-size: 13px; color: var(--gb-muted); margin-bottom: 6px; }
.gb-card__mods div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gb-card__mods button { border: 1px solid #8a918c; border-radius: 16px; background: #fff; padding: 3px 12px; font: inherit; font-size: 13px; line-height: 1.4; color: var(--gb-text); cursor: pointer; }
.gb-card__mods button:hover { border-color: var(--gb-text); }
.gb-card__mods button.is-active { background: var(--gb-green-soft); border-color: var(--gb-text); box-shadow: inset 0 0 0 1px var(--gb-text); }
@media (hover: hover) and (pointer: fine) {
  .gb-card { padding: 10px; margin: -10px; border-radius: 12px; transition: box-shadow .15s, background .15s; }
  .gb-card:hover { background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); z-index: 6; }
  .gb-card.has-mods:hover { border-radius: 12px 12px 0 0; }
  .gb-card__mods { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 4px 10px 14px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 14px 24px rgba(0, 0, 0, .12); clip-path: inset(0 -30px -30px -30px); }
  .gb-card:hover .gb-card__mods { display: block; }
}

/* ---------- переключатель «плитка / список» в разделе (выбор хранится в localStorage gb_view) */
.gb-view { display: inline-flex; gap: 4px; margin-left: auto; }
.gb-view button { width: 32px; height: 30px; border: 1px solid #c9cdc8; border-radius: 8px; background: #fff; color: #8a918c; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.gb-view button svg { width: 16px; height: 16px; fill: currentColor; }
.gb-view button:hover, .gb-view button.is-active { color: var(--gb-text); border-color: var(--gb-text); }
.gb-view button.is-active { background: var(--gb-green-soft); }
.gb-grid.gb-grid--list, .gb-catlayout.has-side .gb-grid.gb-grid--list { grid-template-columns: 1fr; gap: 0; }
.gb-grid--list .gb-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; grid-template-areas: "img name buy" "img tray min" "img mods mods"; align-items: center; align-content: center; column-gap: 24px; text-align: left; padding: 16px 0; margin: 0; border-bottom: 1px solid #e3e6e2; border-radius: 0; }
.gb-grid--list .gb-card__image { grid-area: img; align-self: start; }
.gb-grid--list .gb-card__name { grid-area: name; margin: 0; font-size: 16px; }
.gb-grid--list .gb-card__tray { grid-area: tray; text-align: left; margin: 4px 0 0; }
.gb-grid--list .gb-card__buy { grid-area: buy; justify-content: flex-end; flex-wrap: nowrap; }
.gb-grid--list .gb-card__min { grid-area: min; text-align: right; margin: 4px 0 0; }
.gb-grid--list .gb-card__mods { grid-area: mods; display: block; position: static; padding: 0; margin-top: 10px; box-shadow: none; clip-path: none; background: none; }
.gb-grid--list .gb-card__modname { display: inline; margin: 0 8px 0 0; }
.gb-grid--list .gb-card__mods div { display: inline-flex; justify-content: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .gb-grid--list .gb-card, .gb-grid--list .gb-card.has-mods:hover { padding: 16px 0; margin: 0; border-radius: 0; }
  .gb-grid--list .gb-card:hover { background: none; box-shadow: none; }
  .gb-grid--list .gb-card:hover .gb-card__name { color: var(--gb-link); }
}
@media (max-width: 600px) {
  .gb-grid--list .gb-card { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "img name" "img tray" "img buy" "img min" "mods mods"; column-gap: 14px; }
  .gb-grid--list .gb-card__name { font-size: 15px; }
  .gb-grid--list .gb-card__buy { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; }
  .gb-grid--list .gb-card__min { text-align: left; }
}

/* как на прежнем сайте: «Написати відгук» у артикула, подсказка о накопительной скидке, телефон с выпадающим «Передзвонити вам?» */
.gb-product__review { margin-left: 14px; color: inherit; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.gb-product__review:hover { color: var(--gb-link); }
.gb-product__loyalty { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; margin: -12px 0 20px; color: var(--gb-text); }
.gb-product__loyalty i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gb-green); font-style: normal; font-weight: 700; font-size: 11px; }
.gb-product__loyalty:hover { color: var(--gb-link); }
.gb-phonebox { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.gb-phonebox__toggle { border: 0; background: none; padding: 4px; line-height: 0; cursor: pointer; color: var(--gb-text); }
.gb-phonebox__toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.gb-phonebox.is-open .gb-phonebox__toggle svg { transform: rotate(180deg); }
.gb-phonebox__drop { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); padding: 12px 18px; white-space: nowrap; z-index: 40; font-size: 13px; }
.gb-phonebox.is-open .gb-phonebox__drop { display: block; }
.gb-phonebox__drop button { border: 0; background: none; padding: 0; font: inherit; color: var(--gb-text); cursor: pointer; }
.gb-phonebox__drop button:hover { color: var(--gb-link); }

/* GB-027: старый зелёный и серый, вшитые в тексты товаров и страниц (inline style), → цвета брендбука; как на прежнем сайте (client.css) */
[style*="color:#5da928"] { color: #1f2421 !important; }
a[style*="color:#5da928"] { color: #22706a !important; }
[style*="solid #bfe3a2"] { border-bottom: 2px solid #bfe8e0 !important; }
[style*="border-bottom:2px solid #5da928"] { border-bottom-color: #bfe8e0 !important; }
[style*="border:1px solid #5da928"] { border-color: #7c827e !important; background: #eef7df !important; color: #1f2421 !important; }
a[style*="border:1px solid #5da928"] { color: #1f2421 !important; }
[style*="color:#666"] { color: #5f6763 !important; }
/* GB-027: как на прежнем сайте — салатовое выделение текста и белый фон автозаполненных полей */
::selection { background: #b5e36e; }
::-moz-selection { background: #b5e36e; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important; -webkit-text-fill-color: #1f2421 !important; }

/* GB-010: ссылка «Перейти до основного контенту» — видна только при переходе с клавиатуры (как на Хорошопе) */
.gb-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 8px 14px; background: #fff; border: 1px solid var(--gb-line, #dfe2dc); border-radius: 8px; color: inherit; }
.gb-skip:focus { top: 8px; }
.gb-blog__title a { color: inherit; text-decoration: none; }
.gb-blog__title a:hover { color: var(--gb-link); }

/* GB-010: инфостраницы — меню слева, как на Хорошопе */
.gb-info { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.gb-info__nav { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.gb-info__nav a { font-size: 17px; color: inherit; text-decoration: none; padding: 2px 4px; border-radius: 4px; width: fit-content; }
.gb-info__nav a:hover { color: var(--gb-link); }
.gb-info__nav a.is-active { background: #eef7df; }
.gb-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-left: 20px; font-size: 17px; }
.gb-contacts a { color: inherit; text-decoration: none; }
.gb-contacts a:hover { color: var(--gb-link); }
@media (max-width: 900px) {
  .gb-info { grid-template-columns: 1fr; gap: 0; }
  .gb-info__nav { order: 2; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--gb-line); }
  .gb-contacts { padding-left: 0; }
}
/* GB-010: на телефоне разделитель меню оставался одиноким в конце первой строки */
@media (max-width: 600px) { .gb-nav__sep { display: none; } }

/* GB-066: телефон (до 600 px) — цели касания 44 px, поля ≥16 px (iOS не приближает страницу), подсказка прокрутки рядов, «Нагору» не на вкладках.
   Вид на компьютере не меняется: всё внутри media. */
@media (max-width: 600px) {
  /* верхняя полоса: «Укр/Рус», значки, корзина */
  .gb-top__row { min-height: 44px; }
  .gb-top__links, .gb-top__user { gap: 0; }
  .gb-top a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; }
  .gb-top__links > a { display: none; }
  .gb-lang { margin-left: 0; gap: 0; }
  .gb-lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; }
  .gb-top .gb-cart { min-width: 44px; padding: 0 4px; }
  .gb-cart__count { font-size: 12px; line-height: 16px; min-width: 16px; }
  /* шапка: поиск, телефон и «Передзвонити» */
  .gb-searchform .gb-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -11px; }
  .gb-header__right { gap: 4px; }
  .gb-phone { min-height: 44px; }
  .gb-phonebox__toggle { padding: 16px; margin: -16px -12px -16px -12px; }
  /* подвал */
  .gb-footer__col { gap: 0; }
  .gb-footer__col a, .gb-footer__ico, .gb-footer__cb { display: flex; align-items: center; min-height: 44px; }
  .gb-footer__cb { margin-left: 26px; padding: 0; text-align: left; }
  /* степпер «−/+» и количество (карточки, товар, оформление) */
  .gb-qty { height: 46px; border-radius: 22px; box-sizing: border-box; }
  .gb-qty button { width: 44px; }
  .gb-qty input { width: 36px; }
  .gb-qty--sm { height: 46px; border-radius: 22px; box-sizing: border-box; }
  .gb-qty--sm button { width: 44px; font-size: 20px; }
  .gb-qty--sm input { width: 36px; }
  .gb-card__cart { min-width: 44px; min-height: 44px; }
  /* названия в карточках, кнопки и ссылки товара */
  .gb-card__name { display: inline-block; padding: 2px 0; }
  .gb-link, .gb-product__review, .gb-product__loyalty { display: inline-flex; align-items: center; min-height: 44px; }
  .gb-product__loyalty { margin: -12px 0 8px; }
  .gb-product__actions button { min-height: 44px; }
  /* оформление: чекбоксы, «удалить», «назад» */
  .gb-check { align-items: center; gap: 4px; margin-top: 0; }
  .gb-check input { width: 24px; height: 24px; margin: 10px; }
  .gb-check label { padding: 10px 0; }
  .gb-co__remove { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: -12px; }
  .gb-back { display: inline-flex; align-items: center; min-height: 44px; }
  /* фильтры раздела и страницы (GB-063) */
  .gb-side__toggle { min-height: 44px; }
  .gb-side ul a { min-height: 44px; box-sizing: border-box; }
  .gb-price input[type=number], .gb-price button { height: 44px; }
  .gb-side__reset { display: inline-flex; align-items: center; min-height: 44px; }
  .gb-pagination .page-link, .gb-pagination__all { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .gb-clip__more { min-height: 44px; border-bottom: 0; text-decoration: underline dashed; }
  /* поля ввода — 16 px, чтобы iOS не приближал страницу при фокусе */
  .gb input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .gb select, .gb textarea { font-size: 16px; }
  .gb-field input[type=text], .gb-field input[type=email], .gb-field input[type=tel], .gb-field select, .gb-field textarea { height: 44px; }
  .gb-phonebox { height: 44px; }
  .gb-phonebox input[type=tel] { height: 42px; }
  .gb-phonebox i { font-size: 16px; }
  /* крошки, метки-ссылки, подсказка «?», название в корзине оформления: не меньше 24 px */
  .gb-crumbs a, .gb .breadcrumb a, .gb-rel a, .gb-co__info a { display: inline-block; padding: 5px 0; }
  .gb-crumbs, .gb .breadcrumb { margin: 19px 0 7px; }
  .gb-product__right .gb-crumbs { margin-top: 0; }
  .gb-tip button { padding: 5px; margin: -5px; }
  .gb-qty input { height: 100%; }
  /* ряды «Схожі товари» / «Аксесуари»: затухание у правого края — видно, что ряд прокручивается */
  .gb-mini { padding-right: 36px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  /* «Нагору»: крупнее, ближе к краю; на оформлении скрыта (не ложится на вкладки и форму) */
  .gb-totop { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  body:has(.gb-co) .gb-totop { display: none; }
}

/* GB-068: уведомление на телефоне — внизу экрана, не закрывает шапку, цену и «Купити» */
@media (max-width: 600px) {
  .gb-alerts { top: auto; bottom: 68px; }
}

/* GB-071: самые узкие телефоны (320 px) — строка товара в оформлении не шире экрана */
@media (max-width: 360px) {
  .gb-co__item { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 16px 12px; }
  .gb-co__item img { width: 64px; height: 64px; }
}

/* GB-079 (D-042): мини-корзина в шапке */
.gb-cartwrap { position: relative; display: inline-flex; }
.gb-mc[hidden] { display: none; }
.gb-mc__back { position: fixed; inset: 0; z-index: 1040; }
.gb-mc__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1050; width: 380px; max-width: calc(100vw - 24px); max-height: min(80vh, 640px); overflow-y: auto; background: #fff; color: var(--gb-text); border: 1px solid var(--gb-text); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); font-size: 14px; outline: none; }
.gb-mc__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.gb-mc__head h2 { margin: 0; font-size: 18px; }
.gb-mc__close { border: 0; background: none; padding: 6px; color: var(--gb-text); cursor: pointer; line-height: 0; border-radius: 8px; }
.gb-mc__close svg { width: 16px; height: 16px; }
.gb-mc__close:hover { background: var(--gb-green-soft); }
.gb-mc .gb-co__limited { margin: 6px 16px; font-size: 13px; }
.gb-mc__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--gb-line); align-items: start; }
.gb-mc__img img { width: 64px; height: 64px; object-fit: contain; display: block; }
.gb-mc__info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.gb-mc__info > a { color: var(--gb-text); text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.gb-mc__info > a:hover { color: var(--gb-link); }
.gb-mc__price { color: #5f6763; font-size: 13px; }
.gb-mc__item .gb-co__remove { grid-column: 3; grid-row: 1; }
.gb-mc__sum { grid-column: 3; grid-row: 2; align-self: end; white-space: nowrap; }
.gb-mc__foot .gb-co__row, .gb-mc__foot .gb-co__total { padding: 8px 16px; }
.gb-mc__foot .gb-co__total { font-size: 14px; }
.gb-mc__min { margin: 0; padding: 0 16px 8px; font-size: 13px; color: #8a5a00; }
.gb-mc__actions { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 8px 16px 16px; }
.gb-mc__actions .gb-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; box-sizing: border-box; }
.gb-mc__empty { padding: 8px 16px 18px; text-align: center; }
.gb-mc__empty p { margin: 0 0 10px; }
/* ссылки панели лежат внутри .gb-top__user: на телефоне там font-size: 0 и размеры касания верхней полосы — сбросить */
.gb-top__user .gb-mc a { font-size: 14px; gap: 0; display: inline; min-width: 0; min-height: 0; justify-content: flex-start; }
.gb-top__user .gb-mc a.gb-mc__img { display: block; }
.gb-top__user .gb-mc a.gb-btn { display: inline-flex; justify-content: center; font-size: 18px; color: var(--gb-text); }
.gb-mc :focus-visible { outline: 2px solid var(--gb-link); outline-offset: 2px; }
@media (max-width: 600px) {
  .gb-cartwrap { position: static; }
  .gb-mc__back { background: rgba(31, 36, 33, .5); }
  .gb-mc__panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 85vh; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  .gb-mc__close { padding: 14px; margin: -8px -6px; }
  .gb-mc__actions .gb-btn { height: 46px; }
}
