:root {
  --bg-main: #f4fbf5;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border-soft: #e5ece7;

  --text-main: #111827;
  --text-muted: #6b7280;

  --accent: #10b981;
  --accent-soft: #dcfce7;

  --tag-bg: #eef2ff;
  --tag-bg-green: #d1fae5;
  --tag-bg-yellow: #fef9c3;
  --tag-bg-red: #fee2e2;

  --radius-lg: 16px;
  --shadow-soft: 0 10px 30px rgba(15,23,42,0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* HEADER */

.gv-header {
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.gv-header-inner {
  max-width:1200px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.gv-logo a {
  font-weight:700;
  font-size:20px;
  text-decoration:none;
  color:inherit;
}

.gv-nav {
  display:flex;
  gap:24px;
}

.gv-nav-link {
  text-decoration:none;
  color:#4b5563;
  font-size:14px;
}

.gv-nav-link--active {
  color:var(--accent);
  font-weight:600;
}

/* LAYOUT */

.gv-main {
  padding:24px 0 40px;
}

.gv-main-inner {
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:24px;
}

/* FILTERS */

.gv-filters {
  background:var(--bg-sidebar);
  border-radius:var(--radius-lg);
  padding:20px 18px 24px;
  box-shadow:var(--shadow-soft);
}

.gv-filters-title {
  margin:0 0 16px;
  font-size:18px;
}

.gv-filter-block {
  margin-bottom:14px;
}

.gv-filter-block label {
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:var(--text-muted);
}

.gv-filter-input {
  width:100%;
  padding:8px 10px;
  font-size:14px;
  border:1px solid #ddd;
}

/* SELECT FILTER STYLE FIX */

select.gv-filter-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #f3f4f6;
  border-radius: 999px;
  border: none;

  padding: 10px 38px 10px 14px;

  font-size: 14px;
  color: #111827;
  background: #f3f4f6;
  background-image: none;
}

select.gv-filter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d1fae5;
}

.gv-filter-checkbox {
  background:#fdf2f7;
  padding:10px 12px;
  border-radius:12px;
}

.gv-filter-checkbox label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.gv-filter-checkbox input {
  width:16px;
  height:16px;
}

/* AUTOCOMPLETE */

.gv-filter-autocomplete {
  position:relative;
}

.gv-autocomplete-list {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-height:220px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(15,23,42,0.08);
  z-index:30;
  display:none;
}

.gv-autocomplete-item {
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
}

.gv-autocomplete-item:hover {
  background:#e0f2fe;
}

/* INPUT WITH ARROW */

.gv-input-wrapper {
  position:relative;
  width:100%;
}

.gv-input-wrapper .gv-filter-input {
  padding-right:32px;
}

.gv-dropdown-arrow {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  background:var(--accent-soft);
  border-radius:50%;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:700;
  color:var(--accent);
}

.gv-dropdown-arrow:hover {
  background:var(--accent);
  color:#fff;
}

/* CONTENT */

.gv-content-header {
  margin-bottom:16px;
}

.gv-content-title {
  font-size:24px;
  margin:0 0 4px;
}

.gv-content-title span {
  color:var(--accent);
}

.gv-content-subtitle {
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

/* PRODUCTS GRID */

.gv-products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px;
}

/* CARD */

.gv-card {
  background:var(--bg-card);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  transition:box-shadow .2s ease;
}

.gv-card:hover {
  box-shadow:0 10px 30px rgba(247,198,208,.25);
}

.gv-card-img-wrapper {
  position:relative;
  padding-top:66%;
}

.gv-card-img-wrapper img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.gv-card-body {
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.gv-card-brand {
  font-size:13px;
  color:#F284A2;
  font-weight:600;
}

.gv-card-title-link {
  color:#064e3b;
  font-weight:600;
  text-decoration:none;
}

.gv-card-title-link:hover {
  color:#047857;
  text-decoration:underline;
}

.gv-card-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}

.gv-card-footer {
  padding:0 16px 14px;
  font-size:12px;
  color:var(--text-muted);
}

/* TAGS */

.gv-tag {
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background:var(--tag-bg);
  color:#4b5563;
  position:relative;
}

.gv-tag--green {background:var(--tag-bg-green);color:#047857;}
.gv-tag--yellow {background:var(--tag-bg-yellow);color:#92400e;}
.gv-tag--red {background:var(--tag-bg-red);color:#b91c1c;}

.gv-tag--purple {background:#f3e8ff;color:#7e22ce;}
.gv-tag--gray {background:#f3f4f6;color:#4b5563;}
.gv-tag--blue {background:#dbeafe;color:#1e3a8a;}
.gv-tag--brown {background:#ede3d4;color:#7b3f00;}
.gv-tag--recheck {background:#f9dce7;color:#9b1c4a;}

.gv-tag:hover {
  background:#f9dce4;
  color:#b83259;
}

/* TOOLTIP */

.gv-tag[data-tooltip]:hover::after {
  content:attr(data-tooltip);
  position:absolute;
  bottom:125%;
  left:50%;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  font-size:12px;
  padding:4px 8px;
  border-radius:6px;
  white-space:nowrap;
  z-index:1000;
}

.gv-tag[data-tooltip]:hover::before {
  content:"";
  position:absolute;
  bottom:115%;
  left:50%;
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#111;
}

/* RESPONSIVE */

@media (max-width:900px) {
  .gv-main-inner {
    grid-template-columns:1fr;
  }
}

@media (max-width:600px) {
  .gv-header-inner {
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .gv-nav {
    gap:12px;
  }
}
.gv-checklist {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gv-checklist-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gv-checklist-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: white;
  flex-shrink: 0;
}

.gv-checklist-box--checked {
  border-color: #10b981;
  background: #10b981;
}

.gv-checklist-mark {
  color: white;
  line-height: 1;
  font-size: 9px;
}

.gv-checklist-label {
  font-size: 11px;
  color: #6b7280;
}

/* =========================
   BRANDS PAGE
========================= */

.gv-brands-page {
  display: block;
}

.gv-brands-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.gv-brands-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.gv-brands-alphabet-letter {
  border: none;
  background: #eef2f7;
  color: #4b5563;
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gv-brands-alphabet-letter:hover {
  background: #dff7ea;
  color: #059669;
}

.gv-brands-alphabet-letter.is-active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.22);
}

#brands-letter-title.gv-brands-letter-title {
  font-size: 24px;
  font-weight: 700;
  color: #10b981; /* тот же бирюзовый как у кнопки "Все" */
  margin: 0 0 18px;
}

.gv-brands-letter-block {
  margin-bottom: 28px;
}

.gv-brands-letter-block:last-child {
  margin-bottom: 0;
}

.gv-brands-letter-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #ec4899; /* розовый */
}

#brands-list.gv-brands-list {
  display: block;
}

.gv-brands-letter-block .gv-brands-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 28px;
}

.gv-brand-link {
  display: inline-block;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  line-height: 1.45;
  padding: 2px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.gv-brand-link:hover {
  color: #10b981;
  transform: translateX(2px);
}

@media (max-width: 1100px) {
  .gv-brands-letter-block .gv-brands-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 22px;
  }
}

@media (max-width: 760px) {
  .gv-brands-section {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }

  .gv-brands-alphabet {
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .gv-brands-alphabet-letter {
    min-width: 38px;
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  #brands-letter-title.gv-brands-letter-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .gv-brands-letter-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .gv-brands-letter-block .gv-brands-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .gv-brand-link {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .gv-brands-letter-block .gv-brands-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CATEGORIES PAGE
========================= */

.cat-main {
  padding: 24px 0 40px;
}

.cat-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cat-sidebar {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 14px 10px;
}

.cat-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  cursor: pointer;
  color: #4b5563;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cat-sidebar-item:hover {
  background: #f4f7fb;
  color: #111827;
}

.cat-sidebar-item--active {
  background: #f1f0fb;
  color: #2f855a;
  font-weight: 600;
}

.cat-sidebar-icon {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.cat-sidebar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-content {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 26px 28px 30px;
  min-height: 380px;
}

.cat-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
  color: #111827;
}

.cat-description {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7280;
}

.cat-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px;
}

.cat-section {
  min-width: 0;
}

.cat-section-title {
  margin: 0 0 10px;

  font-size: 18px;
  font-weight: 700;

  color: #111827;   /* почти чёрный */
}

.cat-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-item-link {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.cat-item-link:hover {
  color: #10b981;
  transform: translateX(2px);
}

.cat-empty {
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 980px) {
  .cat-main-inner {
    grid-template-columns: 1fr;
  }

  .cat-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cat-content {
    padding: 20px 18px 24px;
    border-radius: 18px;
  }

  .cat-sidebar {
    border-radius: 18px;
  }

  .cat-sections-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cat-title {
    font-size: 22px;
  }
}

#brands-letter-title.is-letter-view {
  color: #ec4899;
}

/* ===== SELECT ARROW FIX ===== */

.gv-select-wrapper {
  position: relative;
}

.gv-select-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
}

#Ingredients,
#testingMethod {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  padding: 10px 36px 10px 14px;

  border: none;
  border-radius: 999px;

  background: #f3f4f6;
  font-size: 14px;
  cursor: pointer;
}

/* =========================
   PRODUCT PAGE
========================= */

.gv-product-page {
  display: block;
}

.gv-product-container {
  max-width: 1100px;
  margin: 0 auto;
}

.gv-product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;

  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.gv-product-image {
  background: #f8faf8;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.gv-product-image img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gv-product-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gv-product-title {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
  color: #111827;
}

.gv-product-brand-row,
.gv-product-meta-row {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.gv-product-meta-label {
  font-weight: 700;
  color: #111827;
  margin-right: 4px;
}

.gv-product-meta-value {
  color: #374151;
}

.gv-link-brand {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gv-link-brand:hover {
  color: #6d28d9;
}

.gv-product-meta-block {
  margin-bottom: 18px;
}

.gv-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.gv-product-tags .gv-tag {
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}

.gv-product-main .gv-checklist {
  margin-top: 0;
  margin-bottom: 26px;
  gap: 8px;
}

.gv-product-main .gv-checklist-row {
  gap: 8px;
}

.gv-product-main .gv-checklist-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 11px;
}

.gv-product-main .gv-checklist-mark {
  font-size: 11px;
}

.gv-product-main .gv-checklist-label {
  font-size: 16px;
  color: #6b7280;
}

.gv-product-subtitle {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  color: #111827;
}

.gv-product-description {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
  max-width: 680px;
}

/* mobile */
@media (max-width: 900px) {
  .gv-product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
    border-radius: 20px;
  }

  .gv-product-image {
    min-height: 280px;
    padding: 18px;
  }

  .gv-product-image img {
    max-height: 280px;
  }

  .gv-product-title {
    font-size: 32px;
  }

  .gv-product-brand-row,
  .gv-product-meta-row {
    font-size: 16px;
  }

  .gv-product-main .gv-checklist-label,
  .gv-product-description {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .gv-product-layout {
    padding: 16px;
  }

  .gv-product-title {
    font-size: 28px;
  }

  .gv-product-tags .gv-tag {
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* ===== PRODUCT PAGE POLISH ===== */

.gv-product-brand-row {
  margin-bottom: 12px;
}

.gv-link-brand--hero {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ec4899;
  text-decoration: none;
}

.gv-link-brand--hero:hover {
  color: #db2777;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gv-product-checks-card {
  margin: 4px 0 28px;
  padding: 16px 18px;
  background: #f8faf8;
  border: 1px solid #e5ece7;
  border-radius: 18px;
}

.gv-product-checks-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.gv-checklist-row:last-child {
  margin-bottom: 0;
}

/* ===== PRODUCT PROOFS ===== */

.gv-product-proofs {
  margin-top: 20px;
}

.gv-product-proofs-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
}

.gv-product-proofs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.gv-product-proof-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5ece7;
  padding: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gv-product-proof-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gv-product-proof-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* подзаголовки */
.cat-subsection-title {
  margin-top: 14px;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4B7F6A;
  letter-spacing: 0.02em;
}

.cat-subsection-title:first-of-type {
  margin-top: 12px;
}

/* пагинация */
.gv-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.gv-pagination-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.gv-pagination-btn:hover:not(:disabled) {
  border-color: #10b981;
  color: #059669;
}

.gv-pagination-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.gv-pagination-btn--active {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* категории в карточке товара */
.gv-product-meta-value--categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gv-product-category-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf7f2;
  color: #4b7f6a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.gv-product-category-link:hover {
  background: #dff2e8;
  color: #059669;
  border-color: #b7e4cf;
}

.gv-brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 36px;
  margin-top: 12px;
}

.gv-brand-link {
  display: block;
  color: #374151;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.5;
}

.gv-brand-link:hover {
  color: #059669;
}

/*  стиль для ссылок */
.gv-product-description a {
  color: #4b7f6a;
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 127, 106, 0.35);
  transition: 0.2s ease;
}

.gv-product-description a:hover {
  color: #059669;
  border-bottom-color: #059669;
}

/* три точки внизу пагинации */
.gv-pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  color: #6b7280;
  font-size: 18px;
}

/* стили маркдауна */
.gv-product-description h1 {
  font-size: 22px;
  margin: 18px 0 10px;
  color: #374151;
}

.gv-product-description h2 {
  font-size: 18px;
  margin: 16px 0 8px;
  color: #4b7f6a;
}

.gv-product-description h3 {
  font-size: 16px;
  margin: 14px 0 6px;
  color: #6b7280;
}

.gv-product-description ul {
  margin: 10px 0 10px 18px;
}

.gv-product-description li {
  margin-bottom: 6px;
}

.gv-product-description strong {
  font-weight: 600;
}

.gv-product-description em {
  font-style: italic;
}