/* ====== ПАЛИТРА ====== */
:root {
  --accent: #F5C400;
  --accent-hover: #E0B200;

  --text-main: #1A1A1A;
  --text-muted: #555555;

  --border: #E5E5E5;
  --bg-soft: #F7F7F7;
  --bg-white: #FFFFFF;
}

/* ====== БАЗА ====== */
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--text-main);
}
a:hover {
  color: var(--accent);
}

/* ====== ВЕРХНЯЯ ПОЛОСА ====== */
#top {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

/* ====== КНОПКИ ====== */
.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000;
}

/* ====== КАРТОЧКИ ТОВАРОВ ====== */
.product-thumb {
  border: 1px solid var(--border);
  border-radius: 6px;
}

.product-thumb .caption {
  padding: 12px;
}

.product-thumb .price {
  font-weight: 600;
  color: var(--text-main);
}

.product-thumb .button-group {
  background: var(--bg-soft);
}
/* ====== FIX BOOTSTRAP NAVBAR ====== */

/* фон меню */
.navbar.navbar-default,
#menu.navbar-default {
  background-color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

/* пункты меню */
.navbar-default .navbar-nav > li > a {
  color: #1a1a1a !important;
  background-color: transparent !important;
  font-weight: 500;
}

/* hover */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.open > a {
  background-color: #f7f7f7 !important;
  color: #1a1a1a !important;
}

/* активный пункт */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
  background-color: #ffffff !important;
  border-bottom: 2px solid #F5C400;
  color: #1a1a1a !important;
}
/* ====== FIX OPENCART DEFAULT MENU ====== */

/* фон меню */
#menu {
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

/* пункты меню */
#menu .nav > li > a {
  color: #1a1a1a !important;
  font-weight: 500;
  text-shadow: none !important;
}

/* hover */
#menu .nav > li > a:hover,
#menu .nav > li.open > a {
  background: #f7f7f7 !important;
  color: #1a1a1a !important;
}

/* активный пункт */
#menu .nav > li.active > a {
  background: #ffffff !important;
  border-bottom: 2px solid #F5C400;
}
/* ====== АКЦЕНТЫ (ЖЁЛТЫЙ ИЗ ЛОГО) ====== */

/* hover пунктов меню */
#menu .nav > li > a:hover {
  background-color: #fff6cc !important;
}

/* активная категория */
#menu .nav > li.active > a {
  border-bottom: 3px solid #F5C400;
  font-weight: 600;
}

/* кнопки */
.btn-primary {
  background-color: #F5C400;
  border-color: #F5C400;
  color: #000;
}

.btn-primary:hover {
  background-color: #E0B200;
  border-color: #E0B200;
}

/* цены */
.price,
.product-thumb .price {
  color: #1a1a1a;
  font-weight: 700;
}
/* жёлтая линия при наведении */
#menu .nav > li > a:hover {
  border-bottom: 3px solid #F5C400;
}

/* ======================================================
   CATEGORY BAR — FINAL (CLEAN, PRODUCTION-READY)
   ====================================================== */

/* Базовые переменные (на будущее) */
:root {
  --brand-yellow: #F2C200;
  --text-dark: #111;
}

/* ------------------------------------------------------
   ОСНОВА ПОЛОСЫ МЕНЮ
   ------------------------------------------------------ */

.category-bar {
  position: relative;
  background: var(--brand-yellow);
  border-top: 1px solid rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

/* ------------------------------------------------------
   ВНУТРЕННИЙ SCROLL-КОНТЕЙНЕР
   ------------------------------------------------------ */

.category-bar__inner {
  display: flex;
  justify-content: center;
  gap: 28px;

  padding: 14px 20px 16px;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: none;          /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.category-bar__inner::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

/* ------------------------------------------------------
   FADE-ИНДИКАТОРЫ ПРОКРУТКИ
   ------------------------------------------------------ */

.category-bar::before,
.category-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 32px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.category-bar::before {
  left: 0;
  background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
}

.category-bar::after {
  right: 0;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* ------------------------------------------------------
   ПУНКТ КАТЕГОРИИ
   ------------------------------------------------------ */

.category-bar__item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 88px;
  padding: 8px 12px;
  border-radius: 12px;

  text-align: center;
  text-decoration: none;

  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* ------------------------------------------------------
   HOVER / ACTIVE (перебиваем глобальный a:hover)
   ------------------------------------------------------ */

.category-bar__item:hover,
.category-bar__item:focus {
  color: #000 !important;
  background: rgba(255,255,255,0.28);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.category-bar__item.active {
  color: #000 !important;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}


/* Placeholder под иконку (временно) */
.category-bar__item::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-bottom: 6px;

  background-color: rgba(0,0,0,0.15);
  border-radius: 6px;
}

/* HOVER */
.category-bar__item:hover {
  background: rgba(255,255,255,0.32);
  color: #000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
}

/* ACTIVE */
.category-bar__item.active {
  background: rgba(255,255,255,0.6);
  color: #000;
  box-shadow: 0 6px 14px rgba(0,0,0,0.24);
  transform: translateY(-1px);
}

/* ------------------------------------------------------
   СКРЫВАЕМ СТАНДАРТНОЕ МЕНЮ OPENCART
   (осознанно, см. архитектурное решение)
   ------------------------------------------------------ */

#menu {
  display: none !important;
}

/* ------------------------------------------------------
   MOBILE FIX: не центрируем scroll-меню
   ------------------------------------------------------ */

@media (max-width: 768px) {
  .category-bar__inner {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }
}
