/* ================================================
   БРАЙЛЬ ПРИНТ — Main Stylesheet
   Цвета: #FEC800 (жёлтый), #6B6A6A (серый), #3D3D3D (тёмный)
   ================================================ */

/* === CSS Variables === */
:root {
  --yellow:        #FEC800;
  --yellow-hover:  #E5B400;
  --yellow-light:  #FFF9E0;
  --gray-dark:     #3D3D3D;
  --gray-mid:      #6B6A6A;
  --gray-border:   #DEDEDE;
  --gray-bg:       #F5F5F5;
  --white:         #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 3px 14px rgba(0,0,0,0.10);
  --shadow-lg:     0 6px 28px rgba(0,0,0,0.13);
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --tr:            0.2s ease;
  --container:     1200px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* === Layout === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--gray { background: var(--gray-bg); }
.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 40px;
  text-align: center;
}
.section__title span { color: var(--yellow); }

/* === Header === */
.header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.header__logo img { height: 48px; width: auto; }

.nav__list { display: flex; gap: 30px; }
.nav__list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-mid);
  transition: color var(--tr);
  white-space: nowrap;
}
.nav__list a:hover,
.nav__list a.active { color: var(--gray-dark); }

/* Cart button */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-btn:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254,200,0,0.35);
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  background: var(--gray-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: var(--tr);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 16px 20px 24px;
  z-index: 199;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; display: block; }
.mobile-nav .nav__list { flex-direction: column; gap: 0; }
.mobile-nav .nav__list a {
  display: block;
  padding: 13px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-border);
}
.mobile-nav .nav__list li:last-child a { border-bottom: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--tr);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--yellow);
  color: var(--gray-dark);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(254,200,0,0.4);
}
.btn--outline {
  background: transparent;
  color: var(--gray-dark);
  border-color: var(--gray-dark);
}
.btn--outline:hover {
  background: var(--gray-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* === Hero === */
.hero {
  background: linear-gradient(140deg, #FFF9E0 0%, #FFFDF5 60%, #F7F7F7 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(254,200,0,0.12) 0%, transparent 68%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 550px;
  gap: 60px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-light);
  border: 1px solid rgba(254,200,0,0.4);
  color: var(--gray-mid);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-dark);
  margin-bottom: 20px;
}
.hero__title span { color: var(--yellow); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--gray-mid);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 500px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero__logo-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 12px 48px rgba(254,200,0,0.18), 0 2px 12px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 340px;
}
.hero__logo-wrap img { width: 100%; }
.hero__braille-dots {
  position: absolute;
  top: -20px;
  right: -20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0.5;
}
.hero__braille-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero__braille-dot.empty { background: var(--gray-border); }

/* === Categories === */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 20px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1.5px solid #EFEFEF;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 6px 24px rgba(0,0,0,0.11);
  transform: translateY(-4px);
}
.category-card__icon {
  width: 130px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.category-card__icon svg { width: 100%; height: 100%; }
.category-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}
.category-card__subtitle {
  font-size: 0.82rem;
  color: var(--gray-mid);
  line-height: 1.4;
  flex: 1;
  margin-bottom: 16px;
}
.category-card__btn {
  width: 100%;
  padding: 10px 0;
  background: #F2F2F2;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-dark);
  transition: background var(--tr);
}
.category-card:hover .category-card__btn {
  background: var(--yellow);
}

/* === Features === */
.features-section {background: #fffae9}
.features-section__head { text-align: center; margin-bottom: 44px; }
.features-section__sub {
  color: var(--gray-mid);
  font-size: 0.97rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 26px 26px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1.5px solid #EFEFEF;
  position: relative;
  overflow: hidden;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.feature-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  border-radius: 18px 18px 0 0;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.11);
  border-color: var(--yellow);
}
.feature-item__num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(242,183,5,0.12);
  pointer-events: none;
  user-select: none;
}
.feature-item__icon {
  width: 54px;
  height: 54px;
  background: #FFF8D6;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-item__icon svg { width: 24px; height: 24px; color: #B8860B; stroke: #B8860B; }
.feature-item__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-dark); }
.feature-item__text { font-size: 0.87rem; color: var(--gray-mid); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.feature-item__tag {
  display: inline-block;
  background: #F5F5F5;
  color: var(--gray-mid);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

/* === Product Card === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 7px;
  line-height: 1.4;
  color: var(--gray-dark);
  transition: color var(--tr);
}
.product-card__name:hover { color: var(--gray-mid); }
.product-card__desc {
  font-size: 0.82rem;
  color: var(--gray-mid);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.product-card__footer .btn {
  width: 100%;
}
.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.product-card__sku {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-mid);
  margin-top: 2px;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--gray-mid);
  padding: 14px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-mid); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--gray-dark); }
.breadcrumb__sep { color: var(--gray-border); user-select: none; }

/* === Catalog Page === */
.catalog-page-header {
  background: var(--gray-bg);
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-border);
}
.catalog-page-header h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 6px; }
.catalog-page-header p { color: var(--gray-mid); font-size: 0.95rem; }

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 36px 0 60px;
}

/* Sidebar */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar__section { margin-bottom: 24px; }
.sidebar__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-mid);
  margin-bottom: 10px;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--tr);
  font-size: 0.9rem;
  user-select: none;
}
.filter-item:hover { background: var(--gray-bg); }
.filter-item.active {
  background: var(--yellow-light);
  font-weight: 600;
  color: var(--gray-dark);
}
.filter-item__count {
  background: var(--gray-border);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 20px;
  color: var(--gray-mid);
  flex-shrink: 0;
}
.filter-item.active .filter-item__count {
  background: rgba(254,200,0,0.4);
  color: var(--gray-dark);
}

/* Catalog toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-count { color: var(--gray-mid); font-size: 0.88rem; }

/* Mobile filter bar */
.mobile-filter-bar {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 20px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--gray-border);
}
.mobile-filter-bar::-webkit-scrollbar { display: none; }
.mobile-filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tr);
  background: var(--white);
  color: var(--gray-mid);
}
.mobile-filter-chip.active {
  border-color: var(--yellow);
  background: var(--yellow-light);
  color: var(--gray-dark);
  font-weight: 600;
}

/* === Form === */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-dark);
}
.form-label .req { color: #E53935; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color var(--tr);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--yellow); }
.form-textarea { height: 90px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: #AAAAAA; }

.order-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--gray-border); }
.order-form__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }

/* === Product Detail === */
.product-detail { padding: 36px 0 64px; }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-detail__gallery { position: sticky; top: 90px; }
.product-detail__main-img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  text-align: center;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  background: var(--gray-bg);
}
.product-detail__category {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.product-detail__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-detail__sku {
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin-bottom: 12px;
}
.product-detail__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 22px;
}
.product-detail__desc {
  color: var(--gray-mid);
  line-height: 1.72;
  font-size: 0.96rem;
  margin-bottom: 28px;
}
.product-detail__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px;
  height: 42px;
  font-size: 1.2rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--tr);
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--gray-bg); }
.qty-input {
  width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-left: 2px solid var(--gray-border);
  border-right: 2px solid var(--gray-border);
  height: 42px;
  outline: none;
  color: var(--gray-dark);
}
.product-detail__meta {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.7;
}
.product-detail__meta strong { color: var(--gray-dark); }

/* === Cart === */
.cart-page { padding: 36px 0 80px; }
.cart-page h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 32px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: box-shadow var(--tr);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item__img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  display: block;
  flex-shrink: 0;
}
.cart-item__info { min-width: 0; }
.cart-item__name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
  line-height: 1.4;
}
.cart-item__sku { color: var(--gray-mid); font-size: 0.78rem; margin-top: 2px; }
.cart-item__unit-price { color: var(--gray-mid); font-size: 0.82rem; margin-bottom: 10px; }
.cart-item__controls { display: flex; align-items: center; gap: 8px; }
.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr);
  color: var(--gray-dark);
  background: none;
}
.cart-item__qty-btn:hover { background: var(--gray-bg); }
.cart-item__qty { font-weight: 600; min-width: 24px; text-align: center; font-size: 0.92rem; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__total { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-mid);
  transition: color var(--tr);
  padding: 2px;
  display: flex;
  align-items: center;
}
.cart-item__remove:hover { color: #E53935; }
.cart-item__remove svg { width: 18px; height: 18px; }

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-mid);
  grid-column: 1 / -1;
}
.cart-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  opacity: 0.25;
  color: var(--gray-dark);
}
.cart-empty h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--gray-dark); }
.cart-empty p { margin-bottom: 24px; font-size: 0.95rem; }

/* Order summary */
.order-summary {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 90px;
}
.order-summary__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.order-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.92rem;
  color: var(--gray-mid);
}
.order-summary__row strong { color: var(--gray-dark); }
.order-summary__divider {
  border: none;
  border-top: 2px solid var(--gray-border);
  margin: 14px 0;
}
.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* === Info Pages (Delivery, Contacts) === */
.info-page { padding: 40px 0 80px; }
.info-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.info-card__icon {
  width: 48px;
  height: 48px;
  background: var(--yellow-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.info-card__icon svg { width: 22px; height: 22px; color: var(--gray-dark); }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 9px; }
.info-card p { color: var(--gray-mid); font-size: 0.91rem; line-height: 1.65; }
.info-card p + p { margin-top: 6px; }

/* Contacts */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--gray-dark); }
.contact-item__label { font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item__value { font-weight: 600; font-size: 1rem; }
.contact-item__value a { color: var(--gray-dark); transition: color var(--tr); }
.contact-item__value a:hover { color: var(--yellow-hover); }

.messengers-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--tr);
  border: 1.5px solid var(--gray-border);
  color: var(--gray-dark);
}
.messenger-btn:hover { border-color: var(--yellow); background: var(--yellow-light); transform: translateY(-1px); }
.messenger-btn svg { width: 18px; height: 18px; }

/* === Footer === */
.footer { background: var(--gray-dark); color: var(--white); }
.footer__top { padding: 48px 0 36px; }
.footer__inner {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.footer__logo-text span { color: var(--yellow); }
.footer__tagline { font-size: 0.82rem; color: #AAA; line-height: 1.55; margin-bottom: 18px; }
.footer__contacts-mini a {
  display: block;
  color: #CCC;
  font-size: 0.88rem;
  margin-bottom: 4px;
  transition: color var(--tr);
}
.footer__contacts-mini a:hover { color: var(--yellow); }
.footer__section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #AAA;
  margin-bottom: 14px;
}
.footer__nav-list { display: flex; flex-direction: column; gap: 8px; }
.footer__nav-list a { font-size: 0.88rem; color: #CCC; transition: color var(--tr); }
.footer__nav-list a:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 28px;
  right: 24px;
  background: var(--gray-dark);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { border-left: 4px solid #4CAF50; }
.toast--error { border-left: 4px solid #E53935; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* === Utility === */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1100px) {
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__inner { grid-template-columns: 1fr 340px; gap: 40px; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__actions { justify-content: flex-start; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-filter-bar { display: flex; }
  .product-detail__grid { grid-template-columns: 1fr; gap: 30px; }
  .product-detail__gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .contacts-layout { grid-template-columns: 1fr; gap: 30px; }
  .info-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__inner { height: 60px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 9px 12px; }
  .section { padding: 44px 0; }
  .section__title { font-size: 1.65rem; }
  .hero { padding: 52px 0 48px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .catalog-page-header h1 { font-size: 1.55rem; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .product-detail__actions { flex-direction: column; align-items: stretch; }
  .product-detail__actions .qty-control { justify-content: center; }
  .catalog-layout { padding: 24px 0 48px; }
}

/* === Header Topbar === */
.header-topbar {
  background: var(--gray-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 16px;
}
.header-topbar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-topbar__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--tr);
  white-space: nowrap;
}
.header-topbar__contact:hover { color: var(--white); }
.header-topbar__contact svg { width: 13px; height: 13px; flex-shrink: 0; }
.header-topbar__callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--gray-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-topbar__callback:hover {
  background: var(--yellow-hover);
  box-shadow: 0 2px 10px rgba(254,200,0,0.45);
}
.header-topbar__callback svg { width: 12px; height: 12px; }

@media (max-width: 768px) {
  .header-topbar { display: none; }
}

/* === Callback Modal === */
.callback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.callback-modal.open { display: flex; }
.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(2px);
}
.callback-modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  z-index: 1;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.callback-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  color: var(--gray-mid);
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color var(--tr);
}
.callback-modal__close:hover { color: var(--gray-dark); }
.callback-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.callback-modal__subtitle {
  font-size: 0.88rem;
  color: var(--gray-mid);
  margin-bottom: 22px;
}

/* ========== PRODUCT VARIANTS ========== */
.product-variants { margin: 16px 0; }
.product-variants__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-mid);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-variants__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
  user-select: none;
}
.variant-option input[type="radio"] { display: none; }
.variant-option:hover { border-color: var(--accent); }
.variant-option--active {
  border-color: var(--accent);
  background: #FFFBEA;
}
.variant-option__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-dark);
}
.variant-option__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark, #B8960A);
}

/* ========== CART ITEM VARIANT ========== */
.cart-item__variant {
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin-bottom: 2px;
}

/* ========== SEARCH BUTTON ========== */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--gray-dark);
  transition: background var(--tr), color var(--tr);
  padding: 0;
}
.search-btn svg { width: 20px; height: 20px; }
.search-btn:hover { background: #F5F5F5; }

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
}

.search-overlay__box {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.2s;
}
.search-overlay.open .search-overlay__box { transform: translateY(0); }

.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #F0F0F0;
}
.search-overlay__icon { width: 20px; height: 20px; color: #AAA; flex-shrink: 0; }
.search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--gray-dark);
  background: transparent;
}
.search-overlay__input::placeholder { color: #BEBEBE; }
.search-overlay__close {
  width: 32px; height: 32px;
  border: none; background: transparent;
  cursor: pointer; color: #AAA;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  transition: background var(--tr), color var(--tr);
}
.search-overlay__close svg { width: 18px; height: 18px; }
.search-overlay__close:hover { background: #F5F5F5; color: var(--gray-dark); }

.search-overlay__results { max-height: 420px; overflow-y: auto; }
.search-overlay__empty { padding: 24px 20px; color: #AAA; font-size: 0.92rem; text-align: center; }
.search-overlay__all {
  display: block;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark, #B8960A);
  text-decoration: none;
  border-top: 1px solid #F5F5F5;
  transition: background var(--tr);
}
.search-overlay__all:hover { background: #FFFBEA; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid #F8F8F8;
  transition: background var(--tr);
}
.search-result-item:hover { background: #FAFAFA; }
.search-result-item__img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #F0F0F0;
  flex-shrink: 0;
}
.search-result-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.search-result-item__name {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--gray-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item__cat {
  font-size: 0.78rem;
  color: #AAA;
}
.search-result-item__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-dark);
  flex-shrink: 0;
}

/* ========== CATALOG SEARCH ========== */
.catalog-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  padding: 6px 12px;
  background: #fff;
  transition: border-color var(--tr);
}
.catalog-search-form:focus-within { border-color: var(--accent); }
.catalog-search-form svg { width: 16px; height: 16px; color: #AAA; flex-shrink: 0; }
.catalog-search-input {
  border: none; outline: none;
  font-size: 0.88rem;
  width: 180px;
  background: transparent;
  color: var(--gray-dark);
}
.catalog-search-input::placeholder { color: #BEBEBE; }
