/* ==========================================================================
   pclive.kz — Modern theme overlay (2026)
   Грузится ПОСЛЕ stylesheet.css и critical-fixes.css.
   Откат: удалить <link> на этот файл из header.twig.
   ==========================================================================
   Структура:
   1. Дизайн-токены (CSS-переменные)
   2. Базовая типографика (Inter)
   3. Глобальные исправления (overflow, focus-visible, motion)
   4. Кнопки и формы
   5. Top-bar и promo-strip
   6. Sticky-шапка с blur
   7. Поиск
   8. Mini-cart и иконки шапки
   9. Mega-menu
   10. Home: hero, категории, Kaspi, бренды, ленты
   11. Карточки товара (grid)
   12. Страница товара
   13. Страница категории (фильтры, сортировка)
   14. Checkout
   15. Футер
   16. Floating WhatsApp
   17. Mobile bottom nav
   18. Утилиты
   ========================================================================== */

/* ==========================================================================
   1. Дизайн-токены
   ========================================================================== */
:root {
  /* Brand */
  --pc-primary:        #0084ff;
  --pc-primary-dark:   #006fde;
  --pc-primary-darker: #0058b3;
  --pc-primary-soft:   #e6f2ff;
  --pc-accent:         #23a1d1;
  --pc-accent-dark:    #1f90bb;

  /* Surfaces */
  --pc-bg:        #ffffff;
  --pc-bg-soft:   #f5f7fb;
  --pc-bg-muted:  #f1f5f9;

  /* Text */
  --pc-text:      #0f172a;
  --pc-text-2:    #334155;
  --pc-muted:     #64748b;
  --pc-muted-2:   #94a3b8;

  /* Lines */
  --pc-border:    #e2e8f0;
  --pc-border-2:  #edf2f7;
  --pc-border-3:  #cbd5e1;

  /* Status */
  --pc-success:   #16a34a;
  --pc-success-soft: #dcfce7;
  --pc-warning:   #f59e0b;
  --pc-warning-soft: #fef3c7;
  --pc-danger:    #dc2626;
  --pc-danger-soft:  #fee2e2;

  /* Effects */
  --pc-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --pc-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --pc-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --pc-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --pc-shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16);
  --pc-shadow-cta: 0 8px 18px rgba(0, 132, 255, 0.35);

  /* Radius */
  --pc-r-xs: 6px;
  --pc-r-sm: 10px;
  --pc-r-md: 14px;
  --pc-r-lg: 20px;
  --pc-r-xl: 28px;
  --pc-r-pill: 999px;

  /* Spacing scale (4px base) */
  --pc-s-1: 4px;
  --pc-s-2: 8px;
  --pc-s-3: 12px;
  --pc-s-4: 16px;
  --pc-s-5: 20px;
  --pc-s-6: 24px;
  --pc-s-7: 32px;
  --pc-s-8: 40px;
  --pc-s-9: 48px;
  --pc-s-10: 64px;

  /* Transitions */
  --pc-t-fast: 0.15s ease;
  --pc-t:      0.25s ease;
  --pc-t-slow: 0.4s ease;

  /* z-index — header выше menu, чтобы dropdown корзины не обрезался */
  --pc-z-bottomnav: 1050;
  --pc-z-sticky:   1100;
  --pc-z-mega:     1080;   /* sticky-бар меню — НИЖЕ header'а */
  --pc-z-header:   1110;
  --pc-z-cartdrop: 1300;   /* dropdown корзины — выше меню, ниже модалок */
  --pc-z-drawer:   1500;   /* открытый mega-drawer — выше всего */
  --pc-z-modal:    1900;
  --pc-z-toast:    2200;

  /* Layout */
  --pc-bottombar-h: 64px;
  --pc-header-h: 72px;
}

/* ==========================================================================
   2. Базовая типографика — переключаем на Inter (уже подгружен в header)
   ========================================================================== */
body,
.pc-header,
.pc-footer,
.product-thumb,
#cart .pc-cart-dropdown,
.pc-mega,
.modal,
.dropdown-menu,
input,
button,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

body {
  color: var(--pc-text);
  background: var(--pc-bg-soft);
  font-size: clamp(14px, 0.875rem + 0.1vw, 15px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.pc-section-title,
.pc-product-title {
  color: var(--pc-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(24px, 1.4rem + 1vw, 36px); line-height: 1.2; }
h2 { font-size: clamp(20px, 1.2rem + 0.7vw, 28px); line-height: 1.25; }
h3 { font-size: clamp(18px, 1.05rem + 0.4vw, 22px); line-height: 1.3; }
h4 { font-size: clamp(15px, 0.95rem + 0.1vw, 16px); }

a {
  color: var(--pc-primary);
  transition: color var(--pc-t-fast);
}
a:hover {
  color: var(--pc-primary-dark);
  text-decoration: none;
}

.pc-section-title {
  text-align: center;
  margin: 36px 0 22px;
  font-size: clamp(20px, 1.2rem + 0.7vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 10px;
}
.pc-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-accent));
}

/* ==========================================================================
   3. Глобальные исправления
   ========================================================================== */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Универсальные :focus-visible (по WCAG) */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--pc-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.25);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--pc-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12) !important;
  outline: none;
}

/* Skip-link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--pc-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--pc-r-sm) 0;
  font-weight: 600;
  transition: top var(--pc-t);
}
.skip-to-content:focus,
.skip-to-content:focus-visible { top: 0; color: #fff; }

/* Container на узких экранах */
@media (max-width: 478px) {
  .container, .container-fluid {
    width: 100% !important;
    min-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Картинки — лениво, плавно */
img { max-width: 100%; height: auto; }

/* ==========================================================================
   4. Кнопки и формы
   ========================================================================== */
.btn {
  border-radius: var(--pc-r-pill);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: none;
  transition: all var(--pc-t-fast);
  background-image: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
  box-shadow: var(--pc-shadow-cta);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--pc-primary-dark);
  border-color: var(--pc-primary-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 132, 255, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-default {
  background-color: #fff;
  border-color: var(--pc-border);
  color: var(--pc-text);
  background-image: none;
}
.btn-default:hover,
.btn-default:focus {
  background-color: var(--pc-bg-muted);
  border-color: var(--pc-border-3);
  color: var(--pc-text);
}

.btn-success {
  background-color: var(--pc-success);
  border-color: var(--pc-success);
  color: #fff;
}
.btn-success:hover { background-color: #15803d; border-color: #15803d; color: #fff; }

.btn-danger { background-color: var(--pc-danger); border-color: var(--pc-danger); }
.btn-warning { background-color: var(--pc-warning); border-color: var(--pc-warning); color: #fff; }

.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
  min-height: 48px;
}
.btn-sm { padding: 6px 14px; min-height: 36px; }
.btn-xs { padding: 4px 10px; min-height: 28px; border-radius: var(--pc-r-sm); }

/* Формы */
.form-control {
  border-radius: var(--pc-r-sm);
  border: 1px solid var(--pc-border);
  padding: 10px 14px;
  font-size: 14px;
  height: auto;
  min-height: 42px;
  background-color: #fff;
  box-shadow: none;
  transition: border-color var(--pc-t-fast), box-shadow var(--pc-t-fast);
}
.form-control:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}
.form-group { margin-bottom: 16px; }

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--pc-primary);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   5. Top-bar и promo-strip
   ========================================================================== */
#top {
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
  border-bottom: 1px solid var(--pc-border);
  font-size: 13px;
}
#top a {
  color: var(--pc-text-2);
  font-weight: 500;
}
#top a:hover { color: var(--pc-primary); }

.pc-promo-strip {
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-accent) 100%);
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
}
.pc-promo-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.pc-promo-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pc-promo-strip i { font-size: 14px; opacity: 0.9; }

@media (max-width: 991px) {
  .pc-promo-strip { padding: 8px 0; font-size: 12.5px; }
  .pc-promo-strip-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pc-promo-strip-inner::-webkit-scrollbar { display: none; }
  .pc-promo-strip span {
    flex-shrink: 0;
    width: auto !important;
    text-indent: 0 !important;
  }
  .pc-promo-strip span i {
    width: auto !important;
    text-indent: 0 !important;
    float: none !important;
  }
}
@media (max-width: 575px) {
  .pc-promo-strip { font-size: 12px; }
  .pc-promo-strip-inner { gap: 14px; }
}

/* ==========================================================================
   6. Sticky-шапка
   ========================================================================== */
header.pc-header {
  position: sticky;
  top: 0;
  z-index: var(--pc-z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--pc-border);
  box-shadow: var(--pc-shadow-xs);
  padding: 14px 0 12px;
  transition: padding var(--pc-t), box-shadow var(--pc-t);
}
.pc-header.is-scrolled {
  padding: 8px 0 6px;
  box-shadow: var(--pc-shadow-sm);
}

.pc-header-row { align-items: center; }
.pc-header-search { padding-top: 0; }
.pc-header-actions {
  gap: 10px;
  padding-top: 0;
}

#logo img {
  max-height: 56px;
  width: auto;
  transition: max-height var(--pc-t);
}
.pc-header.is-scrolled #logo img { max-height: 40px; }

/* Иконки шапки — современные кнопки-таблетки */
.pc-header-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-bg-muted);
  color: var(--pc-text-2);
  border: 1px solid transparent;
  transition: all var(--pc-t-fast);
}
.pc-header-icon:hover {
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
  border-color: rgba(0, 132, 255, 0.2);
  transform: translateY(-1px);
}
.pc-header-icon i { font-size: 18px; }
.pc-header-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* Бейдж счётчика */
.pc-header-icon .pc-badge-count,
.pc-cart-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Кнопка корзины в шапке — крупнее */
.pc-header-cart #cart > .btn {
  border-radius: var(--pc-r-pill);
  padding: 11px 20px;
  font-weight: 600;
  background-color: var(--pc-primary);
  border: none;
  color: #fff;
  box-shadow: var(--pc-shadow-cta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.pc-header-cart #cart > .btn:hover {
  background-color: var(--pc-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 132, 255, 0.4);
}
.pc-header-cart #cart > .btn .fa,
.pc-header-cart #cart > .btn svg {
  font-size: 16px;
  width: 18px;
  height: 18px;
}

@media (max-width: 991px) {
  .pc-header-cart #cart > .btn span#cart-total { display: none; }
  .pc-header-cart #cart > .btn { padding: 11px 14px; }
}

/* На мобильных: компактная шапка — логотип + иконки в одной строке, поиск во второй */
@media (max-width: 767px) {
  header.pc-header { padding: 8px 0; }
  .pc-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }
  .pc-header-row > [class^="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    width: auto;
    flex: 0 1 auto;
  }
  .pc-header-row > .col-sm-3 {
    flex: 1 1 auto;
    min-width: 0;
  }
  .pc-header-search {
    order: 3;
    flex: 1 0 100% !important;
    width: 100% !important;
    padding-top: 4px;
  }
  .pc-header-actions { justify-content: flex-end; }
  .pc-header-icons { gap: 6px; }
  #logo { margin: 0; }
  #logo img { max-height: 36px; }
  .pc-header-icon { width: 40px; height: 40px; }
  .pc-header-icon svg { width: 18px; height: 18px; }
}
@media (max-width: 374px) {
  #logo img { max-height: 32px; }
  .pc-header-icon { width: 38px; height: 38px; }
}

/* ==========================================================================
   7. Поиск
   ========================================================================== */
#search {
  position: relative;
  margin-bottom: 0;
}
#search .input-lg {
  height: 48px;
  border-radius: var(--pc-r-pill);
  border: 1px solid var(--pc-border);
  background: var(--pc-bg-soft);
  padding: 0 56px 0 48px;
  font-size: 14.5px;
  box-shadow: none;
  transition: all var(--pc-t-fast);
}
#search .input-lg:focus {
  background: #fff;
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.12);
}
#search .input-group-btn { display: none; }

/* Поисковая лупа слева через before на input-group */
#search::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 4;
}

/* Кнопка поиска справа */
#search > .input-group-btn,
#search .pc-search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: block;
}
#search .input-group-btn .btn,
#search .pc-search-submit {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--pc-r-pill);
  background: var(--pc-primary);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#search .input-group-btn .btn:hover,
#search .pc-search-submit:hover {
  background: var(--pc-primary-dark);
  color: #fff;
}
#search .input-group-btn .btn i { font-size: 14px; }

/* ==========================================================================
   8. Mini-cart (dropdown)
   ========================================================================== */
#cart .pc-cart-dropdown,
#cart .dropdown-menu {
  width: min(420px, 96vw);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  box-shadow: var(--pc-shadow-lg);
  margin-top: 12px;
  padding: 8px;
  background: #ffffff !important;
  z-index: var(--pc-z-cartdrop) !important;
}
/* Корзина и шапка — поверх меню в нормальном состоянии */
.pc-header-cart,
.pc-header-cart #cart { position: relative; z-index: 2; }
#cart .pc-cart-list { max-height: min(420px, 60vh); }
#cart .pc-cart-item {
  border: 1px solid var(--pc-border-2);
  border-radius: var(--pc-r-sm);
  padding: 10px 12px;
}
#cart .pc-cart-item-thumb .img-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: var(--pc-r-sm);
  border: 1px solid var(--pc-border);
}
#cart .pc-cart-item-name {
  font-weight: 600;
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#cart .pc-cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text);
}
#cart .pc-cart-item-remove .btn {
  width: 36px;
  height: 36px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  border: none;
  box-shadow: none;
}
#cart .pc-cart-item-remove .btn:hover {
  background: var(--pc-danger);
  color: #fff;
}
#cart .pc-cart-summary {
  border-top: 1px solid var(--pc-border-2);
  margin-top: 8px;
  padding: 12px;
}
#cart .pc-cart-totals { border: none; margin-bottom: 12px; }
#cart .pc-cart-totals td { border: none; padding: 4px 0; font-size: 13px; }
#cart .pc-cart-totals tr:last-child td {
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-text);
  padding-top: 8px;
  border-top: 1px dashed var(--pc-border);
}
#cart .pc-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#cart .pc-cart-actions .btn {
  border-radius: var(--pc-r-sm);
  padding: 10px 12px;
  min-height: 42px;
  font-weight: 600;
}
#cart .pc-cart-empty {
  padding: 36px 16px;
  color: var(--pc-muted);
  font-size: 14px;
}
#cart .pc-cart-empty i {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--pc-muted-2);
}

/* ==========================================================================
   9. Mega-menu
   ========================================================================== */
#menu.pc-main-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--pc-border);
  position: sticky;
  top: var(--pc-header-h);
  z-index: var(--pc-z-mega);
}
/* Когда мега-меню (drawer) открыто — поднимаем над всем */
body.pc-menu-open #menu.pc-main-nav { z-index: var(--pc-z-drawer); }
@media (max-width: 991px) {
  #menu.pc-main-nav { position: static; }
}

.pc-main-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.pc-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--pc-r-pill);
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  box-shadow: var(--pc-shadow-cta);
  transition: all var(--pc-t-fast);
  min-height: 44px;
}
.pc-catalog-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 132, 255, 0.45);
  color: #fff;
}
.pc-catalog-btn i { font-size: 16px; }

.pc-main-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.pc-main-quick::-webkit-scrollbar { height: 4px; }
.pc-main-quick::-webkit-scrollbar-thumb { background: var(--pc-border-3); border-radius: 2px; }
.pc-main-quick-item {
  padding: 8px 14px;
  border-radius: var(--pc-r-pill);
  background: transparent;
  color: var(--pc-text-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all var(--pc-t-fast);
}
.pc-main-quick-item:hover {
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
}

/* Mega dialog */
.pc-mega-dialog { border-radius: 0 0 var(--pc-r-lg) var(--pc-r-lg); box-shadow: var(--pc-shadow-xl); }
.pc-mega-head { padding: 18px 20px; border-bottom: 1px solid var(--pc-border); }
.pc-mega-head strong { font-size: 18px; font-weight: 700; }
.pc-mega-close {
  width: 40px;
  height: 40px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-bg-muted);
  border: none;
  color: var(--pc-text-2);
  transition: all var(--pc-t-fast);
}
.pc-mega-close:hover { background: var(--pc-danger-soft); color: var(--pc-danger); }

.pc-mega-nav-item {
  border-radius: var(--pc-r-sm);
  margin-bottom: 2px;
  transition: background var(--pc-t-fast);
}
.pc-mega-nav-item.active,
.pc-mega-nav-item:hover {
  background: var(--pc-primary-soft);
}
.pc-mega-nav-item.active a { color: var(--pc-primary); }
.pc-mega-nav-item a { padding: 12px 16px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

.pc-mega-sale {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--pc-r-md);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  display: block;
  border: 1px solid #fcd34d;
  transition: transform var(--pc-t-fast);
}
.pc-mega-sale:hover { transform: translateY(-2px); color: #92400e; }
.pc-mega-sale i { font-size: 20px; margin-right: 8px; }

/* ==========================================================================
   10. Home — hero
   ========================================================================== */
.pc-hero {
  position: relative;
  margin: 24px 0 32px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  border-radius: var(--pc-r-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(35, 161, 209, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 5% 95%, rgba(0, 132, 255, 0.15) 0%, transparent 55%),
    linear-gradient(135deg, #0f1c3a 0%, #16284a 50%, #1f3a6f 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--pc-shadow-md);
}
.pc-hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 132, 255, 0.5) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.pc-hero::after {
  content: '';
  position: absolute;
  inset: auto auto -20% -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(35, 161, 209, 0.4) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.pc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.pc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pc-r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #cfe6ff;
}
.pc-hero-title {
  color: #fff;
  font-size: clamp(28px, 2rem + 1.5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pc-hero-title span {
  background: linear-gradient(90deg, #5ec5ff 0%, #b8e4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pc-hero-subtitle {
  font-size: clamp(15px, 0.9rem + 0.4vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
  max-width: 520px;
}
.pc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pc-hero-cta-primary,
.pc-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--pc-r-pill);
  font-weight: 700;
  font-size: 14.5px;
  min-height: 50px;
  transition: all var(--pc-t-fast);
}
.pc-hero-cta-primary {
  background: #fff;
  color: var(--pc-primary-darker);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.pc-hero-cta-primary:hover {
  transform: translateY(-2px);
  color: var(--pc-primary-darker);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
.pc-hero-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.pc-hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.pc-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.pc-hero-stat strong {
  display: block;
  font-size: clamp(20px, 1.2rem + 0.7vw, 28px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.pc-hero-stat span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero-визуал справа (декоративная карточка с гайтбюро/диагоналями) */
.pc-hero-visual {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: var(--pc-r-xl);
  background:
    linear-gradient(135deg, rgba(0, 132, 255, 0.4) 0%, rgba(35, 161, 209, 0.2) 100%),
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  z-index: 1;
}
.pc-hero-visual::before,
.pc-hero-visual::after {
  content: '';
  position: absolute;
  border-radius: var(--pc-r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.pc-hero-visual::before {
  inset: 18% 22% 50% 18%;
  transform: rotate(-6deg);
}
.pc-hero-visual::after {
  inset: 50% 18% 14% 22%;
  transform: rotate(4deg);
}
@media (max-width: 991px) { .pc-hero-visual { display: none; } }

@media (max-width: 575px) {
  .pc-hero {
    margin: 12px 0 20px;
    padding: 24px 18px;
  }
  .pc-hero-actions { gap: 8px; }
  .pc-hero-cta-primary,
  .pc-hero-cta-secondary {
    padding: 12px 18px;
    font-size: 13.5px;
    min-height: 46px;
    flex: 1 1 auto;
    justify-content: center;
  }
  .pc-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .pc-hero-stat strong { font-size: 18px; }
  .pc-hero-stat span { font-size: 11px; }
}

/* Старый pc-home-intro — превращаем в hero без правок шаблона: */
.pc-home-intro {
  margin: 16px 0 24px;
}
.pc-home-intro-head {
  text-align: center;
  margin-bottom: 20px;
}
.pc-home-intro-head h2 {
  font-size: clamp(22px, 1.4rem + 1vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pc-home-intro-head p {
  color: var(--pc-muted);
  font-size: clamp(14px, 0.85rem + 0.3vw, 16px);
  max-width: 700px;
  margin: 0 auto;
}
.pc-home-intro-cards {
  margin-top: 8px;
}
.pc-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pc-text);
  transition: all var(--pc-t);
}
.pc-intro-card:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-md);
  transform: translateY(-2px);
}
.pc-intro-card i {
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   11. Home — категории
   ========================================================================== */
.pc-home-categories { margin: 32px 0; }
.pc-home-categories-head {
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pc-home-categories-head h3 {
  font-size: clamp(22px, 1.3rem + 0.8vw, 30px);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 8px;
}
.pc-home-categories-head h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-accent));
}
.pc-home-categories-head p { margin: 0; color: var(--pc-muted); font-size: 14.5px; }
/* Отключаем Bootstrap 3 .row::before/::after, иначе они становятся CSS-Grid ячейками */
.pc-home-categories-grid::before,
.pc-home-categories-grid::after,
.pc-products-grid::before,
.pc-products-grid::after,
.pc-footer-benefits .container > .row::before,
.pc-footer-benefits .container > .row::after,
#pc-recently-viewed-list.row::before,
#pc-recently-viewed-list.row::after,
.pc-category-intro.row::before,
.pc-category-intro.row::after,
.pc-subcategory-wrap.row::before,
.pc-subcategory-wrap.row::after {
  content: none !important;
  display: none !important;
}

.pc-home-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-left: 0;
  margin-right: 0;
}
.pc-home-categories-grid > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}
@media (max-width: 767px) {
  .pc-home-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .pc-home-categories-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pc-home-category-card {
  position: relative;
  display: block;
  border-radius: var(--pc-r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pc-border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--pc-shadow-xs);
  transition: all var(--pc-t);
}
.pc-home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow-lg);
  border-color: rgba(0, 132, 255, 0.3);
  text-decoration: none;
}
.pc-home-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pc-t-slow);
}
.pc-home-category-card:hover img { transform: scale(1.06); }

.pc-home-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}
.pc-home-category-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pc-home-category-title::after {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: var(--pc-r-pill);
  background-color: var(--pc-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 32px;
  transition: transform var(--pc-t);
}
.pc-home-category-card:hover .pc-home-category-title::after { transform: translateX(4px); }

@media (max-width: 575px) {
  .pc-home-category-card { aspect-ratio: 16 / 10; }
  .pc-home-category-title { font-size: 14px; left: 12px; right: 12px; bottom: 12px; }
}

/* ==========================================================================
   12. Kaspi блок (исправляем серверную/JS-разметку)
   ========================================================================== */
.pc-kaspi-offers {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #fef3f3 0%, #fff5f0 100%);
  border-radius: var(--pc-r-lg);
  border: 1px solid #fde2e2;
  position: relative;
  overflow: hidden;
}
.pc-kaspi-offers::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.pc-kaspi-title {
  font-size: clamp(22px, 1.3rem + 0.8vw, 28px);
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  position: relative;
}
.pc-kaspi-subtitle {
  color: var(--pc-text-2);
  font-size: 15px;
  margin: 0 0 22px;
  position: relative;
}
.pc-kaspi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  position: relative;
}
.pc-kaspi-card {
  background: #fff;
  border-radius: var(--pc-r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #fde2e2;
  transition: all var(--pc-t);
  position: relative;
  overflow: hidden;
}
.pc-kaspi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-lg);
}
.pc-kaspi-card-installment { border-color: #fed7aa; }
.pc-kaspi-card-red { border-color: #fecaca; }
.pc-kaspi-card-gold { border-color: #fde68a; }

.pc-kaspi-media {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pc-kaspi-media img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.pc-kaspi-media-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--pc-r-pill);
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pc-kaspi-card-red .pc-kaspi-media-badge { background: #dc2626; }
.pc-kaspi-card-gold .pc-kaspi-media-badge { background: #f59e0b; color: #fff; }
.pc-kaspi-card-installment .pc-kaspi-media-badge { background: #16a34a; }
.pc-kaspi-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-text);
  margin: 0;
}
.pc-kaspi-card-text {
  color: var(--pc-text-2);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ==========================================================================
   13. Home — бренды
   ========================================================================== */
.pc-suppliers-hero {
  margin: 32px 0;
  text-align: center;
}
.pc-suppliers-title {
  font-size: clamp(20px, 1.2rem + 0.7vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--pc-text);
}
.pc-suppliers-subtitle {
  color: var(--pc-muted);
  font-size: 14.5px;
  margin: 0 0 8px;
}
.pc-suppliers-accent {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-accent));
  margin: 0 auto 18px;
}
.pc-home-brands {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-lg);
  padding: 24px;
  box-shadow: var(--pc-shadow-xs);
}
.pc-home-brands .swiper-slide img,
.pc-home-brands img {
  filter: grayscale(100%) opacity(0.65);
  transition: filter var(--pc-t);
  max-height: 60px;
  width: auto;
}
.pc-home-brands .swiper-slide:hover img,
.pc-home-brands img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   14. Карточки товара (grid)
   ========================================================================== */
.product-thumb {
  position: relative;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  margin-bottom: 24px;
  background: #fff;
  box-shadow: var(--pc-shadow-xs);
  transition: all var(--pc-t);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow-lg);
  border-color: rgba(0, 132, 255, 0.25);
}

.product-thumb .image {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
@media (max-width: 575px) {
  .product-thumb .image { padding: 6px; }
}
.product-thumb .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.product-thumb .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  transition: transform var(--pc-t-slow);
}
.product-thumb:hover .image img { transform: scale(1.04); }

/* Бейджи */
.pc-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  pointer-events: none;
}
.pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--pc-r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
}
.pc-badge-sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.pc-badge-hit {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}
.pc-badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

/* Floating buttons (избранное/сравнение) поверх изображения */
.product-thumb .image .pc-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--pc-t);
}
.product-thumb:hover .image .pc-card-actions,
.product-thumb:focus-within .image .pc-card-actions {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 991px) {
  .product-thumb .image .pc-card-actions { opacity: 1; transform: none; }
}
.pc-card-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--pc-r-pill);
  background: #fff;
  color: var(--pc-text-2);
  border: 1px solid var(--pc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all var(--pc-t-fast);
}
.pc-card-action-btn:hover {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
}

/* Внутренняя обёртка (caption + button-group) — растягиваем на оставшуюся высоту */
.product-thumb > div:not(.image) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* Caption */
.product-thumb .caption {
  padding: 12px 12px 8px;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Button-group всегда внизу карточки */
.product-thumb .button-group {
  margin-top: auto;
}
.product-thumb h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-thumb h4 a { color: var(--pc-text); }
.product-thumb h4 a:hover { color: var(--pc-primary); }
.product-thumb .caption p:not(.price) {
  font-size: 12px;
  color: var(--pc-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb .rating {
  padding: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.product-thumb .rating .fa-stack { font-size: 7px; }
.product-thumb .rating .fa-star { color: #f59e0b; }
.product-thumb .rating .fa-star-o { color: #cbd5e1; }

.product-thumb .price {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.product-thumb .price-new {
  color: var(--pc-primary);
  font-size: 17px;
  font-weight: 800;
}
.product-thumb .price-old {
  color: var(--pc-muted-2);
  font-size: 12.5px;
  text-decoration: line-through;
  margin-left: 0;
  font-weight: 500;
}
.product-thumb .price-tax {
  font-size: 11px;
  color: var(--pc-muted);
  flex: 0 0 100%;
  font-weight: 400;
}

/* Button group в карточке: единая кнопка "В корзину" */
.product-thumb .button-group {
  border-top: none;
  background: transparent;
  padding: 0 12px 12px;
  display: flex;
  gap: 6px;
}
.product-thumb .button-group button {
  flex: 1;
  width: auto;
  border: 1.5px solid var(--pc-primary);
  background: #fff;
  color: var(--pc-primary);
  border-radius: var(--pc-r-sm);
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  transition: all var(--pc-t-fast);
  cursor: pointer;
}
.product-thumb .button-group button:hover {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 132, 255, 0.25);
}
.product-thumb .button-group button + button {
  flex: 0 0 44px;
  width: 44px;
  border-left: none;
  padding: 10px;
}
.product-thumb .button-group button .fa { font-size: 14px; }
.product-thumb .button-group button + button span { display: none; }

@media (max-width: 1200px) {
  .product-thumb .button-group button,
  .product-thumb .button-group button + button { width: auto; }
  .product-thumb .button-group button + button { flex: 0 0 44px; }
}

/* Продуктовая сетка - выравнивание */
.pc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 16px;
  margin-left: 0;
  margin-right: 0;
}
.pc-products-grid > [class*="col-"] {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.pc-products-grid > .clearfix { display: none; }
.pc-products-grid .product-thumb { margin-bottom: 0; height: 100%; }

@media (max-width: 575px) {
  .pc-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-thumb h4 { font-size: 13px; min-height: 2.4em; }
  .product-thumb .caption { padding: 10px 10px 8px; }
  .product-thumb .button-group { padding: 8px 10px 10px; }
  .product-thumb .button-group button { font-size: 12.5px; padding: 8px 10px; min-height: 40px; }
  .product-thumb .price-new,
  .product-thumb .price { font-size: 16px; }
}

/* ==========================================================================
   15. Страница товара
   ========================================================================== */
.pc-product-main { gap: 24px 0; }

/* Галерея */
.pc-product-gallery .thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.pc-product-gallery .thumbnails > li {
  margin: 0;
  flex: 1 1 100%;
  max-width: 100%;
}
.pc-product-gallery .thumbnails > li.image-additional {
  flex: 0 0 calc(20% - 8px);
  max-width: calc(20% - 8px);
}
.pc-product-gallery .thumbnails .thumbnail {
  display: block;
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfd, #f5f7fb);
  padding: 16px;
  transition: all var(--pc-t-fast);
}
.pc-product-gallery .thumbnails .thumbnail:hover {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}
.pc-product-gallery .thumbnails .thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.pc-product-gallery .thumbnails > li:first-child .thumbnail { padding: 28px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pc-product-gallery .thumbnails > li:first-child img { max-height: 100%; max-width: 100%; height: auto; width: auto; }

@media (max-width: 575px) {
  .pc-product-gallery .thumbnails > li.image-additional {
    flex: 0 0 calc(25% - 8px);
    max-width: calc(25% - 8px);
  }
}

/* Табы */
.pc-product-tabs.nav-tabs {
  border-bottom: 1px solid var(--pc-border);
  margin: 24px 0 0;
}
.pc-product-tabs.nav-tabs > li > a {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--pc-muted);
  font-weight: 600;
  padding: 14px 4px;
  margin: 0 18px 0 0;
  background: transparent;
}
.pc-product-tabs.nav-tabs > li.active > a,
.pc-product-tabs.nav-tabs > li > a:hover {
  color: var(--pc-primary);
  border-bottom-color: var(--pc-primary);
  background: transparent;
}
.tab-content {
  padding: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--pc-text-2);
}
.tab-content table { border-radius: var(--pc-r-sm); overflow: hidden; }
.tab-content table tr td { padding: 10px 14px !important; }

/* Buybox */
.pc-product-buybox-wrap { padding-left: 8px; }
.pc-product-actions-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pc-product-actions-top .btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--pc-r-pill);
  background: var(--pc-bg-muted);
  color: var(--pc-text-2);
  border: 1px solid transparent;
}
.pc-product-actions-top .btn:hover {
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
}
.pc-product-title {
  font-size: clamp(20px, 1.1rem + 1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--pc-text);
}
.pc-product-meta {
  margin: 0 0 16px;
  padding: 0;
  font-size: 13px;
  color: var(--pc-muted);
}
.pc-product-meta li {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.pc-product-meta li a { color: var(--pc-primary); }

.pc-product-pricing {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--pc-r-md);
  padding: 16px 20px;
  margin: 0 0 16px;
}
.pc-product-pricing li { padding: 4px 0; }
.pc-product-pricing h2 {
  margin: 0;
  font-size: clamp(26px, 1.5rem + 1vw, 36px);
  font-weight: 800;
  color: var(--pc-primary-darker);
  letter-spacing: -0.02em;
}
.pc-product-pricing li span {
  display: inline-block;
  color: var(--pc-muted-2);
  font-size: 14px;
}

.pc-price-validity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--pc-warning-soft);
  color: #92400e;
  border-radius: var(--pc-r-pill);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pc-product-trust {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--pc-bg-soft);
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
}
.pc-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--pc-text-2);
  font-weight: 500;
}
.pc-trust-item i {
  width: 32px;
  height: 32px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.pc-product-buybox { margin-top: 8px; }
.pc-buybox-qty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.pc-buybox-qty .control-label { font-weight: 600; font-size: 13px; color: var(--pc-text-2); margin: 0; }
.pc-buybox-qty input[name="quantity"] {
  width: 100px;
  text-align: center;
  font-weight: 700;
}
.pc-buybox-qty br { display: none; }
.pc-buybox-qty #button-cart {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--pc-r-pill);
  min-height: 52px;
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-dark) 100%);
  border: none;
  box-shadow: 0 12px 24px rgba(0, 132, 255, 0.35);
}
.pc-whatsapp-buy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid #25d366;
  background: #fff;
  color: #128c7e !important;
  border-radius: var(--pc-r-pill);
  font-weight: 600;
  min-height: 48px;
}
.pc-whatsapp-buy:hover {
  background: #25d366;
  color: #fff !important;
  border-color: #25d366;
}
.pc-whatsapp-buy i { font-size: 20px; color: #25d366; }
.pc-whatsapp-buy:hover i { color: #fff; }

/* Mobile buybar (плавающая внизу) */
.pc-mobile-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--pc-z-sticky);
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--pc-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}
@media (max-width: 991px) {
  .pc-mobile-buybar { display: flex; }
  body { padding-bottom: 72px; }
}
.pc-mobile-buybar-price { flex: 1; min-width: 0; line-height: 1.2; }
.pc-mobile-buybar-price span { font-size: 18px; font-weight: 800; color: var(--pc-primary-darker); display: block; }
.pc-mobile-buybar-price small { font-size: 12px; color: var(--pc-muted); text-decoration: line-through; }
.pc-mobile-buybar-cart {
  flex: 0 0 auto;
  padding: 12px 22px;
  min-height: 48px;
  background: var(--pc-primary);
  color: #fff;
  border-radius: var(--pc-r-pill);
  border: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--pc-shadow-cta);
}
.pc-mobile-buybar-wa {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--pc-r-pill);
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pc-mobile-buybar-wa i { font-size: 22px; }
.pc-mobile-buybar-wa:hover { color: #fff; }

/* Recently viewed */
.pc-recently-viewed { margin: 32px 0; }
.pc-recent-card {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
  transition: all var(--pc-t-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.pc-recent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: rgba(0, 132, 255, 0.3);
}
.pc-recent-card-image { display: block; aspect-ratio: 1; }
.pc-recent-card-image img { width: 100%; height: 100%; object-fit: contain; }
.pc-recent-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-recent-card-price { font-size: 14px; font-weight: 700; color: var(--pc-primary); margin-top: auto; }

/* ==========================================================================
   16. Категория — toolbar, фильтры, чипсы
   ========================================================================== */
.breadcrumb {
  background: transparent;
  padding: 14px 0;
  margin-bottom: 8px;
  font-size: 13px;
}
.breadcrumb > li + li::before { color: var(--pc-muted-2); content: "›"; padding: 0 8px; }
.breadcrumb a { color: var(--pc-muted); }
.breadcrumb a:hover { color: var(--pc-primary); }
.breadcrumb > .active { color: var(--pc-text); }

.pc-category-intro {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  padding: 18px;
  margin: 0 0 20px;
  align-items: center;
}
.pc-category-intro img.img-thumbnail {
  border-radius: var(--pc-r-sm);
  border: 1px solid var(--pc-border-2);
  padding: 8px;
}

.pc-subcategory-wrap {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  padding: 14px 18px;
  margin: 0 0 16px;
}
.pc-subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pc-subcategory-list li {
  display: inline-flex;
}
.pc-subcategory-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-bg-muted);
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--pc-t-fast);
}
.pc-subcategory-list a:hover {
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
}

.pc-toolbar {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-md);
  padding: 10px 14px;
  margin: 12px 0 16px !important;
  /* Не используем flex здесь, чтобы Bootstrap 3 .row работал штатно */
}
.pc-toolbar::before,
.pc-toolbar::after { content: " "; display: table; }
.pc-toolbar::after { clear: both; }
.pc-toolbar .pc-toolbar-item {
  padding-top: 4px;
  padding-bottom: 4px;
}
.pc-toolbar .form-group { margin: 0; }
.pc-toolbar .input-group {
  width: 100%;
  display: flex;
  align-items: stretch;
}
.pc-toolbar .input-group-addon {
  background: transparent;
  border: none;
  padding: 8px 10px 8px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: auto;
}
.pc-toolbar select.form-control {
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-sm) !important;
  font-size: 13.5px;
  font-weight: 500;
  height: 40px;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 767px) {
  .pc-toolbar .pc-toolbar-item { padding-top: 6px; padding-bottom: 6px; }
}

.js-pc-open-filters,
.pc-mobile-filter-toggle-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
  border: 1px solid transparent;
  font-weight: 600;
  min-height: 44px;
}
.js-pc-open-filters:hover {
  background: var(--pc-primary);
  color: #fff;
}

.pc-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--pc-primary-soft);
  border-radius: var(--pc-r-md);
}
.pc-active-filters-title {
  font-size: 12.5px;
  color: var(--pc-text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.pc-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: #fff;
  color: var(--pc-text);
  border: 1px solid #bfdbfe;
  border-radius: var(--pc-r-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--pc-t-fast);
}
.pc-filter-chip:hover {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
}
.pc-filter-chip i { font-size: 11px; opacity: 0.8; }
.pc-filter-chip-reset {
  background: transparent;
  border-color: var(--pc-danger);
  color: var(--pc-danger);
  margin-left: auto;
}
.pc-filter-chip-reset:hover {
  background: var(--pc-danger);
  color: #fff;
}

/* Sidebar (column-left) */
#column-left {
  background: #fff;
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
  padding: 16px;
}
#column-left .panel {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 16px;
}
#column-left .panel-heading {
  background: transparent;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--pc-border);
  margin-bottom: 12px;
}
#column-left .panel-title { font-size: 14px; font-weight: 700; color: var(--pc-text); }
#column-left .panel-body { padding: 0; }
#column-left .checkbox label,
#column-left .radio label {
  font-size: 13.5px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Mobile filters off-canvas */
@media (max-width: 991px) {
  .pc-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: var(--pc-z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: all var(--pc-t);
  }
  body.pc-filters-open .pc-filter-backdrop { opacity: 1; visibility: visible; }
  body.pc-filters-open #column-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 90vw);
    max-height: 100vh;
    overflow-y: auto;
    z-index: calc(var(--pc-z-drawer) + 1);
    border-radius: 0;
    transform: translateX(0);
    transition: transform var(--pc-t);
    box-shadow: var(--pc-shadow-xl);
  }
  body:not(.pc-filters-open) #column-left { transform: translateX(-100%); }
  #column-left .pc-filter-close {
    display: inline-flex !important;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: var(--pc-r-pill);
    background: var(--pc-bg-muted);
    border: none;
    align-items: center;
    justify-content: center;
  }
}

/* Pagination */
.pagination {
  border-radius: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pagination > li > a,
.pagination > li > span {
  border-radius: var(--pc-r-sm) !important;
  border: 1px solid var(--pc-border);
  margin: 0 !important;
  color: var(--pc-text-2);
  min-width: 40px;
  text-align: center;
  font-weight: 500;
  padding: 8px 12px;
}
.pagination > li.active > a,
.pagination > li.active > span,
.pagination > li > a:hover {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

/* ==========================================================================
   17. Checkout
   ========================================================================== */
.pc-checkout-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px;
  background: #fff;
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pc-checkout-steps::-webkit-scrollbar { display: none; }

.pc-checkout-step {
  flex: 1 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-bg-soft);
  color: var(--pc-muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--pc-t);
  position: relative;
}
.pc-checkout-step::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--pc-border);
  margin-left: 4px;
  flex-shrink: 0;
}
.pc-checkout-step:last-child::after { display: none; }

.pc-checkout-step-num {
  width: 26px;
  height: 26px;
  border-radius: var(--pc-r-pill);
  background: #fff;
  color: var(--pc-muted);
  border: 1.5px solid var(--pc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.pc-checkout-step.is-current {
  background: var(--pc-primary-soft);
  color: var(--pc-primary-darker);
}
.pc-checkout-step.is-current .pc-checkout-step-num {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.18);
}

.pc-checkout-step.is-done {
  background: var(--pc-success-soft);
  color: #166534;
}
.pc-checkout-step.is-done .pc-checkout-step-num {
  background: var(--pc-success);
  border-color: var(--pc-success);
  color: #fff;
  font-size: 0;
  position: relative;
}
.pc-checkout-step.is-done .pc-checkout-step-num::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 575px) {
  .pc-checkout-steps { padding: 12px; }
  .pc-checkout-step { padding: 8px 10px; font-size: 12.5px; gap: 8px; }
  .pc-checkout-step-label { display: none; }
  .pc-checkout-step.is-current .pc-checkout-step-label { display: inline; }
  .pc-checkout-step::after { width: 12px; }
}


#checkout-cart .table {
  background: #fff;
  border-radius: var(--pc-r-md);
  overflow: hidden;
  border: 1px solid var(--pc-border);
}
#checkout-cart .table > thead > tr > td {
  background: var(--pc-bg-soft);
  font-weight: 600;
  color: var(--pc-text);
  border: none;
  padding: 14px 16px;
}
#checkout-cart .table > tbody > tr > td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--pc-border-2);
}

.panel-heading.panel-title {
  background: var(--pc-bg-soft);
}

#checkout-checkout .panel,
#checkout-cart .panel {
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
  box-shadow: var(--pc-shadow-xs);
  margin-bottom: 14px;
  background: #fff;
}
#checkout-checkout .panel-heading,
#checkout-cart .panel-heading {
  background: var(--pc-bg-soft);
  border-bottom: 1px solid var(--pc-border);
  padding: 14px 18px;
  border-radius: var(--pc-r-md) var(--pc-r-md) 0 0;
}
#checkout-checkout .panel-title,
#checkout-cart .panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pc-text);
}
#checkout-checkout .panel-body,
#checkout-cart .panel-body { padding: 18px; }

#checkout-checkout #checkout-total td,
#checkout-cart .table.table-bordered:last-of-type td {
  background: var(--pc-bg-soft);
  font-weight: 600;
}

/* Login/Register on checkout */
#collapse-checkout-option .form-group .radio label {
  font-weight: 600;
  font-size: 14px;
}

/* ==========================================================================
   18. Футер
   ========================================================================== */
.pc-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  margin-top: 48px;
  padding: 0 0 32px;
  border-top: 1px solid var(--pc-border);
}

.pc-footer-benefits {
  background: #fff;
  border-bottom: 1px solid var(--pc-border);
  padding: 24px 0;
  margin-bottom: 32px;
}
.pc-footer-benefits .container > .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 0 !important;
  align-items: stretch;
}
.pc-footer-benefits .container > .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}
@media (max-width: 1199px) {
  .pc-footer-benefits .container > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .pc-footer-benefits .container > .row { grid-template-columns: 1fr; gap: 4px; }
  .pc-benefit-item { padding: 6px 0; }
}
.pc-benefit-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
}
.pc-benefit-item i {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--pc-r-md);
  background: linear-gradient(135deg, var(--pc-primary-soft) 0%, #cfe6ff 100%);
  color: var(--pc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pc-benefit-item div { display: flex; flex-direction: column; gap: 2px; }
.pc-benefit-item strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text);
  letter-spacing: -0.005em;
}
.pc-benefit-item span {
  font-size: 12.5px;
  color: var(--pc-muted);
}

.pc-footer-main h5 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pc-muted);
  margin: 0 0 14px;
}
.pc-footer-main ul.list-unstyled li {
  padding: 4px 0;
}
.pc-footer-main ul.list-unstyled a {
  color: var(--pc-text-2);
  font-size: 14px;
}
.pc-footer-main ul.list-unstyled a:hover { color: var(--pc-primary); }

.pc-footer-contacts li {
  padding: 6px 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pc-text-2);
}
.pc-footer-contacts li i {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--pc-r-pill);
  background: var(--pc-primary-soft);
  color: var(--pc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.pc-footer-contacts a {
  font-weight: 600;
  color: var(--pc-text);
}
.pc-footer-contacts a:hover { color: var(--pc-primary); }
.pc-footer-contact-sub {
  font-size: 12.5px !important;
  color: var(--pc-muted) !important;
  padding-left: 42px !important;
}

.pc-footer-copy {
  text-align: center;
  font-size: 12.5px;
  color: var(--pc-muted-2);
  margin: 18px 0 0;
}

.pc-footer hr { border-color: var(--pc-border); margin: 24px 0; }

/* Аккордеон футера на мобильных */
@media (max-width: 767px) {
  .pc-footer-main .row > .col-sm-3 { margin-bottom: 4px; }
  .pc-footer-main h5 {
    cursor: pointer;
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }
  .pc-footer-main h5::after {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--pc-t);
  }
  .pc-footer-main .col-sm-3.is-open h5::after { transform: rotate(180deg); }
  .pc-footer-main ul.list-unstyled,
  .pc-footer-main .pc-footer-contacts {
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height var(--pc-t), padding var(--pc-t);
  }
  .pc-footer-main .col-sm-3.is-open ul.list-unstyled,
  .pc-footer-main .col-sm-3.is-open .pc-footer-contacts {
    max-height: 800px;
    padding-bottom: 8px;
  }
}

/* ==========================================================================
   19. Floating WhatsApp
   ========================================================================== */
.pc-float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: var(--pc-r-pill);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.45);
  z-index: var(--pc-z-sticky);
  transition: all var(--pc-t);
}
.pc-float-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: pcPulse 2.5s ease-in-out infinite;
}
@keyframes pcPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pc-float-whatsapp i { font-size: 28px; }
.pc-float-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff !important;
}
@media (max-width: 991px) {
  .pc-float-whatsapp { bottom: calc(var(--pc-bottombar-h) + 14px); }
}
body.pc-product-page-mobile .pc-float-whatsapp { display: none; }

/* ==========================================================================
   20. Mobile bottom navigation
   ========================================================================== */
.pc-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--pc-z-bottomnav);
  display: none;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--pc-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
  height: var(--pc-bottombar-h);
}
@media (max-width: 991px) {
  .pc-bottom-nav { display: flex; }
  body { padding-bottom: var(--pc-bottombar-h); }
}
/* На странице товара, где есть свой buybar, скрываем bottom-nav */
@media (max-width: 991px) {
  body.pc-has-buybar .pc-bottom-nav { display: none; }
  body.pc-has-buybar { padding-bottom: 72px; }
}

.pc-bottom-nav-item {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 8px 4px;
  min-height: var(--pc-bottombar-h);
  transition: color var(--pc-t-fast);
}
.pc-bottom-nav-item:hover,
.pc-bottom-nav-item.is-active {
  color: var(--pc-primary);
}
.pc-bottom-nav-item svg,
.pc-bottom-nav-item i {
  width: 22px;
  height: 22px;
  font-size: 22px;
  display: block;
}
.pc-bottom-nav-item .pc-bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: 22%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ==========================================================================
   21. Утилиты
   ========================================================================== */
.pc-skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: pcShimmer 1.4s ease infinite;
  border-radius: var(--pc-r-sm);
}
@keyframes pcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Alerts/notices */
.alert {
  border-radius: var(--pc-r-md);
  border: 1px solid transparent;
  padding: 14px 16px;
  font-size: 14px;
}
.alert-success { background: var(--pc-success-soft); border-color: #86efac; color: #14532d; }
.alert-info { background: var(--pc-primary-soft); border-color: #bfdbfe; color: var(--pc-primary-darker); }
.alert-warning { background: var(--pc-warning-soft); border-color: #fde68a; color: #78350f; }
.alert-danger { background: var(--pc-danger-soft); border-color: #fca5a5; color: #7f1d1d; }

/* ==========================================================================
   22. Бейдж счётчика корзины (вставляется JS-ом если нужно)
   ========================================================================== */
.pc-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: var(--pc-r-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
}

/* ==========================================================================
   23. Полировка существующих элементов
   ========================================================================== */
.dropdown-menu {
  border-radius: var(--pc-r-md);
  border: 1px solid var(--pc-border);
  box-shadow: var(--pc-shadow-lg);
  padding: 6px;
  margin-top: 8px;
}
.dropdown-menu > li > a {
  padding: 10px 14px;
  border-radius: var(--pc-r-sm);
  font-size: 14px;
  color: var(--pc-text-2);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--pc-primary-soft);
  background-image: none;
  color: var(--pc-primary);
}

.label, .badge {
  border-radius: var(--pc-r-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
}

hr { border-color: var(--pc-border); }

/* Глобально — лимит ширины для длинного текста */
.product-thumb h4,
.product-thumb h4 a,
.product-thumb .name {
  word-break: break-word;
  hyphens: auto;
}

/* Когда mega-menu открыто, body не скроллится */
body.pc-menu-open { overflow: hidden; }

/* Мелкие иконки внутри текста должны быть выровнены */
.btn .fa, .btn svg { vertical-align: middle; }

/* ==========================================================================
   24. Финальные точечные улучшения
   ========================================================================== */

/* Стрелка breadcrumb FA — заменяем на текстовую (>) для надёжности */
.breadcrumb > li + li::before {
  content: "›" !important;
  font-family: inherit !important;
  font-size: 16px;
  font-weight: 600;
}

/* Bootstrap close на alert */
.alert .close {
  position: relative;
  top: 0;
  right: 0;
  font-size: 22px;
  font-weight: 400;
  text-shadow: none;
  opacity: 0.5;
  margin-left: 8px;
}
.alert .close:hover { opacity: 1; }

/* Удобная подсказка для длинных названий товара в горизонтальной карточке */
.product-thumb h4 { word-break: break-word; }

/* Sticky-блок цены на странице товара (desktop) */
@media (min-width: 992px) {
  .pc-product-buybox-wrap {
    position: sticky;
    top: calc(var(--pc-header-h) + 16px);
    align-self: flex-start;
  }
}

/* Доступность: выделение для свайпа в horizontal scroll */
.pc-main-quick:focus-within {
  outline: 2px dashed var(--pc-primary);
  outline-offset: 4px;
  border-radius: var(--pc-r-md);
}

/* Доп. полировка mega-menu на мобильных: full-screen drawer */
@media (max-width: 991px) {
  .pc-mega.is-open .pc-mega-dialog {
    border-radius: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
  }
}

/* Tooltip-стрелка цены, когда hover на price */
.product-thumb .price-new {
  position: relative;
}

/* Убираем артефакт от старого CSS: лишний padding в product-thumb h4 на mobile */
@media (max-width: 575px) {
  .product-thumb h4 { font-weight: 600; }
}

/* Когда mega-menu открыто на десктопе, тонкая граница над */
.pc-mega.is-open + .pc-mega-overlay {
  display: block;
}

/* Полировка breadcrumb на узких экранах */
@media (max-width: 575px) {
  .breadcrumb {
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 8px 0;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb > li { display: inline-block; float: none; }
}

/* Полировка carousel брендов — лучше скейлинг */
.pc-home-brands .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

/* Полировка табов на мобилке — горизонтальный скролл */
@media (max-width: 575px) {
  .pc-product-tabs.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pc-product-tabs.nav-tabs::-webkit-scrollbar { display: none; }
  .pc-product-tabs.nav-tabs > li {
    flex-shrink: 0;
  }
}

/* OpenCart список thumbnails: убираем странный отрицательный margin */
.thumbnails {
  margin-left: 0 !important;
  margin-right: 0;
}
.thumbnails > li { margin-left: 0; }

/* В компактных колонках product-thumb пресекаем переполнение */
.product-thumb,
.pc-recent-card { min-width: 0; }

/* Скрываем "Powered by" мелким шрифтом */
.pc-footer-copy a { color: var(--pc-muted-2); }

/* Добавляем место под bottom-nav и WhatsApp одновременно */
@media (max-width: 991px) {
  body:not(.pc-has-buybar) {
    padding-bottom: var(--pc-bottombar-h);
  }
}

/* Убираем вспышку при загрузке (FOUC) для критических элементов */
.pc-bottom-nav,
.pc-mobile-buybar { will-change: transform; }

/* iPhone notch и safe-area для floating элементов */
.pc-float-whatsapp {
  bottom: max(18px, env(safe-area-inset-bottom));
}
@media (max-width: 991px) {
  .pc-float-whatsapp {
    bottom: calc(var(--pc-bottombar-h) + 14px + env(safe-area-inset-bottom, 0px));
  }
}

/* Для мобильных: убираем лишний горизонтальный padding в pc-products-grid */
@media (max-width: 575px) {
  .pc-products-grid {
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}

/* ==========================================================================
   25. Финальные правки выравнивания (после первого ревью)
   ========================================================================== */

/* Тулбар — корректное Bootstrap 3 поведение row + col */
.pc-toolbar.row {
  margin-left: 0;
  margin-right: 0;
}
.pc-toolbar.row > [class^="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}
@media (max-width: 767px) {
  .pc-toolbar.row { padding: 8px; }
  .pc-toolbar.row > .col-xs-6 { padding-left: 4px; padding-right: 4px; }
  .pc-toolbar.row > .col-xs-12 { margin-bottom: 4px; padding-left: 4px; padding-right: 4px; }
}

/* Active filters — компактнее на мобильных */
@media (max-width: 575px) {
  .pc-active-filters { padding: 10px 12px; gap: 6px; }
  .pc-filter-chip { padding: 4px 8px 4px 10px; font-size: 12px; }
  .pc-active-filters-title { display: none; }
}

/* Pagination — обёртка */
.row > .col-sm-6.text-left,
.row > .col-sm-6.text-right { padding-top: 8px; }

/* Карточки на странице товара (related) — добавим высоту */
.pc-related-grid { margin: 16px 0 0; }
.pc-related-grid .product-thumb { height: 100%; }

/* Recently viewed — Grid вместо Bootstrap row */
#pc-recently-viewed-list.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 0;
}
#pc-recently-viewed-list.row > [class*="col-"] {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}

/* Скрыть "иконки шапки" на самых узких xs (бургер, лого, кнопка корзины достаточно) */
@media (max-width: 374px) {
  .pc-header-icons > a.pc-header-icon[href*="wishlist"] { display: none; }
}

/* Mega-menu в открытом состоянии — на мобиле full-screen */
@media (max-width: 991px) {
  .pc-mega.is-open .pc-mega-dialog {
    width: 100%;
    max-width: 100%;
  }
  .pc-mega-wrapper { display: block !important; }
  .pc-mega-left { width: 100% !important; }
  .pc-mega-right { width: 100% !important; }
  .pc-mega-panel { display: none !important; }
  .pc-mega-panel.active { display: block !important; }
}

/* Кнопка mobile-buybar — корректный flex */
.pc-mobile-buybar { z-index: var(--pc-z-bottomnav); }

/* Hero на очень узких — только заголовок и одна кнопка */
@media (max-width: 360px) {
  .pc-hero-eyebrow { font-size: 10.5px; padding: 4px 10px; }
  .pc-hero-title { font-size: 24px; }
  .pc-hero-subtitle { font-size: 13.5px; }
  .pc-hero-cta-secondary { display: none; }
  .pc-hero-stats { display: none; }
}

/* Hero — z-index конфликта c sticky header */
.pc-hero { isolation: isolate; }

/* Категория — грид intro */
.pc-category-intro.row {
  margin-left: 0;
  margin-right: 0;
}
.pc-category-intro.row > [class^="col-"] { padding-left: 8px; padding-right: 8px; }
@media (max-width: 575px) {
  .pc-category-intro.row { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
  .pc-category-intro.row > [class^="col-"] { padding: 0; width: 100%; }
}

/* Sub-category list — равномерные колонки на десктопе */
.pc-subcategory-wrap.row {
  margin-left: 0;
  margin-right: 0;
}
.pc-subcategory-wrap.row > [class^="col-"] { padding-left: 8px; padding-right: 8px; }

/* Hero-visual не показываем на категориях, страницах товара и т.п. */
.pc-hero-visual { pointer-events: none; }

/* Логотип во flex-контейнере — без вертикального margin */
header.pc-header #logo {
  display: flex;
  align-items: center;
  margin: 0;
}
header.pc-header #logo a,
header.pc-header #logo > img { display: inline-flex; align-items: center; }

/* Тонкая линия между шапкой и mega-menu в sticky */
header.pc-header.is-scrolled + #menu.pc-main-nav {
  box-shadow: var(--pc-shadow-xs);
}

/* Не позволять кнопкам в кардах съезжать на ультра-узких экранах */
@media (max-width: 360px) {
  .product-thumb .button-group {
    padding: 8px 8px 10px;
  }
  .product-thumb .button-group button { font-size: 12px; padding: 8px; }
  .product-thumb .button-group button + button { flex: 0 0 38px; width: 38px; }
}

/* На самой узкой выкл. floating actions, чтобы не закрывали бейджи */
@media (max-width: 360px) {
  .pc-card-actions { display: none; }
}

/* ==========================================================================
   26. Скрытие пустых swiper-каруселей (старые баннеры OpenCart)
   ========================================================================== */

/* Если в swiper-wrapper нет слайдов — скрываем всю обёртку (current browsers ≥ Chrome 105 / Safari 15.4 / FF 121) */
.slideshow.swiper-viewport:has(> .swiper-container > .swiper-wrapper:empty),
.carousel.swiper-viewport:has(> .swiper-container > .swiper-wrapper:empty),
.swiper-viewport:has(> .swiper-container > .swiper-wrapper:empty) {
  display: none !important;
}

/* Fallback: пустой wrapper не растягиваем, скрываем стрелки если нет слайдов */
.swiper-wrapper:empty {
  min-height: 0 !important;
  height: 0 !important;
}
.swiper-wrapper:empty + .swiper-pagination,
.swiper-wrapper:empty ~ .swiper-pager {
  display: none !important;
}

/* JS-помеченные пустые swiper'ы */
.swiper-viewport.is-empty {
  display: none !important;
}

/* ==========================================================================
   27. Мобильные доводки
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero отступ от sticky-шапки */
  .pc-hero { margin-top: 12px; }

  /* Promo strip — компактнее */
  .pc-promo-strip { padding: 6px 0; }
  .pc-promo-strip-inner { gap: 14px; }
  .pc-promo-strip span { font-size: 11.5px; }

  /* Меню quick-links горизонтальный скролл */
  .pc-main-nav-row { padding: 6px 0; gap: 10px; }
  .pc-catalog-btn { padding: 9px 16px; font-size: 13px; min-height: 40px; }
  .pc-catalog-btn span { font-size: 13px; }

  /* Categories — контейнер на мобиле без горизонтальных отступов */
  .pc-home-categories,
  .pc-suppliers-hero,
  .pc-kaspi-offers,
  .pc-section-title { padding-left: 0; padding-right: 0; }

  /* Уменьшаем kaspi-padding */
  .pc-kaspi-offers { padding: 18px 14px; margin: 20px 0; }
  .pc-kaspi-cards-grid { grid-template-columns: 1fr; }

  /* Брендовая карусель — компактнее */
  .pc-home-brands { padding: 14px; }
  .pc-home-brands img { max-height: 40px; }

  /* Suppliers hero на мобиле — меньше padding */
  .pc-suppliers-hero { margin: 24px 0; }

  /* Random products grid — отступ */
  .pc-products-grid { gap: 10px; }

  /* Container мобильный padding */
  .container { padding-left: 12px !important; padding-right: 12px !important; }

  /* Footer — компактнее */
  .pc-footer { padding-bottom: 24px; margin-top: 32px; }
  .pc-footer-benefits { padding: 16px 0; margin-bottom: 20px; }
  .pc-footer-main { padding-top: 8px; }

  /* Recently viewed на мобиле */
  #pc-recently-viewed-list.row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Скрываем декоративный hero-visual элемент чтобы не занимал место */
  .pc-hero-visual { display: none; }

  /* Hero CTA — единая колонка на узких */
  .pc-hero-actions { width: 100%; }

  /* Mobile-friendly mega-menu — компактнее */
  .pc-mega-dialog { max-height: 100vh; }
}

/* На совсем узких экранах ещё компактнее */
@media (max-width: 480px) {
  .pc-hero { padding: 22px 16px; margin: 12px 0 18px; }
  .pc-hero-title { font-size: 24px; line-height: 1.15; }
  .pc-hero-subtitle { font-size: 14px; }
  .pc-hero-eyebrow { font-size: 11px; padding: 5px 10px; }
  .pc-hero-stats { gap: 6px; padding-top: 12px; margin-top: 14px; }
  .pc-hero-stat strong { font-size: 16px; }
  .pc-hero-stat span { font-size: 10.5px; letter-spacing: 0.02em; }

  /* Заголовки секций компактнее */
  .pc-section-title,
  .pc-home-categories-head h3 { font-size: 19px; }
  .pc-home-categories-head p { font-size: 13px; }
  .pc-suppliers-title { font-size: 19px; }
  .pc-suppliers-subtitle { font-size: 13px; }

  /* Шапка ещё компактнее */
  header.pc-header { padding: 6px 0; }
  #logo img { max-height: 32px; }
  .pc-header-icons { gap: 4px; }
  .pc-header-icon { width: 38px; height: 38px; }
  .pc-header-icon svg { width: 17px; height: 17px; }

  /* Кнопка корзины в шапке — только иконка */
  .pc-header-cart #cart > .btn {
    padding: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--pc-r-pill);
    justify-content: center;
  }
  .pc-header-cart #cart > .btn span#cart-total {
    display: none;
  }
}

/* Очень узкие < 360 */
@media (max-width: 359px) {
  .pc-promo-strip span { font-size: 10.5px; }
  .pc-hero { padding: 18px 14px; }
  .pc-hero-title { font-size: 22px; }
  .pc-hero-cta-primary,
  .pc-hero-cta-secondary { font-size: 12.5px; padding: 11px 14px; }
}

/* ==========================================================================
   28. App-like mobile polish (touch feedback, smooth UX)
   ========================================================================== */

/* Глобальная отмена tap-highlight у всего интерактивного — даём свои :active эффекты */
@media (hover: none) and (pointer: coarse) {
  a, button, [role="button"], .btn,
  .pc-bottom-nav-item,
  .pc-home-category-card,
  .product-thumb,
  .pc-card-action-btn,
  .pc-header-icon,
  .pc-main-quick-item,
  .pc-mega-nav-item,
  .pc-filter-chip,
  .pc-subcategory-list a,
  .pc-kaspi-card,
  .pc-intro-card {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  /* Убираем :hover-эффекты на тач-устройствах */
  .product-thumb:hover { transform: none; box-shadow: var(--pc-shadow-xs); }
  .pc-home-category-card:hover { transform: none; box-shadow: var(--pc-shadow-xs); }
  .pc-home-category-card:hover img { transform: none; }
  .product-thumb:hover .image img { transform: none; }
  .pc-kaspi-card:hover { transform: none; box-shadow: none; }
  .pc-recent-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .pc-catalog-btn:hover { transform: none; }
  .pc-hero-cta-primary:hover, .pc-hero-cta-secondary:hover { transform: none; }
  .pc-float-whatsapp:hover { transform: none; }

  /* Тач-фидбек — лёгкое сжатие при нажатии */
  a:active, button:active, .btn:active,
  .pc-home-category-card:active,
  .product-thumb:active,
  .pc-bottom-nav-item:active,
  .pc-card-action-btn:active,
  .pc-main-quick-item:active,
  .pc-mega-nav-item:active,
  .pc-intro-card:active,
  .pc-kaspi-card:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
  }
}

/* Убираем .transition класс OpenCart, он добавляет нежеланную анимацию */
.product-thumb.transition { transition: all var(--pc-t); }

/* ==========================================================================
   29. Mobile (≤767) — итоговая полировка
   ========================================================================== */
@media (max-width: 767px) {

  /* === Шапка === */
  /* Полностью убираем нижний border у sticky-шапки, делаем мягкое разделение через тень */
  header.pc-header {
    border-bottom: none;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
    padding: 8px 0;
  }
  /* Промо-полоска компактнее */
  .pc-promo-strip { display: none; }

  /* Top-nav (Акции/Отзывы/Помощь/Контакты + currency + blog + login) — скрыть на мобиле, всё доступно через bottom-nav и mega-menu */
  #top { display: none; }

  /* === Hero на мобиле — компактный, app-style === */
  .pc-hero {
    margin: 8px 12px 20px;
    padding: 22px 18px 24px;
    border-radius: 18px;
  }
  .pc-hero::before { width: 220px; height: 220px; inset: -8% -8% auto auto; }
  .pc-hero::after { display: none; }
  .pc-hero-content { max-width: 100%; }
  .pc-hero-eyebrow {
    font-size: 10.5px;
    padding: 4px 10px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
  }
  .pc-hero-title {
    font-size: 24px;
    line-height: 1.18;
    margin-bottom: 8px;
  }
  .pc-hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .pc-hero-cta-primary {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 18px;
    min-height: 46px;
    font-size: 14px;
  }
  .pc-hero-cta-secondary {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 18px;
    min-height: 46px;
    font-size: 13px;
  }
  .pc-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding-top: 14px;
    margin-top: 16px;
  }
  .pc-hero-stat strong { font-size: 16px; line-height: 1; }
  .pc-hero-stat span { font-size: 10px; letter-spacing: 0.02em; }

  /* === Категория-навбар === */
  #menu.pc-main-nav {
    background: #fff;
    border-bottom: 1px solid var(--pc-border);
    padding: 0;
  }
  .pc-main-nav-row {
    padding: 8px 12px;
    gap: 8px;
  }
  .pc-catalog-btn {
    padding: 9px 14px;
    font-size: 13px;
    min-height: 40px;
    flex-shrink: 0;
  }
  .pc-main-quick {
    gap: 4px;
    padding-right: 10px;
  }
  .pc-main-quick-item {
    padding: 6px 12px;
    font-size: 12.5px;
    background: var(--pc-bg-soft);
  }

  /* === Категории на главной === */
  .pc-home-categories {
    margin: 16px 0 24px;
    padding: 16px 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--pc-shadow-xs);
  }
  .pc-home-categories-head { margin-bottom: 16px; }
  .pc-home-categories-head h3 { font-size: 18px; padding-bottom: 6px; }
  .pc-home-categories-head h3::after { width: 36px; height: 2.5px; }
  .pc-home-categories-head p { font-size: 13px; margin-top: 4px; }

  .pc-home-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .pc-home-category-card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }
  .pc-home-category-title {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    gap: 4px;
  }
  .pc-home-category-title::after {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    background-size: 13px 13px;
  }

  /* === Поставщики и бренды === */
  .pc-suppliers-hero {
    margin: 20px 12px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--pc-shadow-xs);
  }
  .pc-suppliers-title { font-size: 16px; }
  .pc-suppliers-subtitle { font-size: 12.5px; }
  .pc-home-brands {
    margin: 0 12px;
    padding: 12px;
    border-radius: 14px;
  }
  .pc-home-brands img { max-height: 36px; }

  /* === Kaspi блок === */
  .pc-kaspi-offers {
    margin: 20px 12px;
    padding: 18px 16px;
    border-radius: 16px;
  }
  .pc-kaspi-title { font-size: 18px; }
  .pc-kaspi-subtitle { font-size: 13px; margin-bottom: 14px; }
  .pc-kaspi-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .pc-kaspi-card { padding: 14px; }
  .pc-kaspi-media { height: 44px; }
  .pc-kaspi-media img { height: 28px; }
  .pc-kaspi-card-title { font-size: 14.5px; }
  .pc-kaspi-card-text { font-size: 12.5px; }

  /* === Случайные товары / "С этим покупают" === */
  .pc-section-title { margin: 24px 0 14px; font-size: 18px; }

  /* === Карточки товара на мобиле === */
  .product-thumb {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }
  .product-thumb h4 { font-size: 12.5px; min-height: 2.4em; line-height: 1.3; }
  .product-thumb .price-new,
  .product-thumb .price { font-size: 15px; font-weight: 800; }
  .product-thumb .price-old { font-size: 11.5px; }
  .product-thumb .price-tax { display: none; }
  .product-thumb .caption p:not(.price) { display: none; }
  .product-thumb .caption { padding: 10px 10px 6px; gap: 4px; }
  .product-thumb .button-group { padding: 0 10px 10px; }
  .product-thumb .button-group button {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 38px;
    border-width: 1px;
  }
  .product-thumb .button-group button svg { width: 14px; height: 14px; }
  /* Скрываем floating actions на мобиле — достаточно тапнуть карточку */
  .product-thumb .image .pc-card-actions { display: none; }
  /* Бейджи компактнее */
  .pc-card-badges { gap: 4px; top: 8px; left: 8px; }
  .pc-badge { padding: 3px 8px; font-size: 9.5px; }

  /* === Bottom nav — улучшенное состояние === */
  .pc-bottom-nav {
    box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.98);
  }
  .pc-bottom-nav-item {
    font-size: 10.5px;
    font-weight: 600;
    gap: 3px;
  }
  .pc-bottom-nav-item span:not(.pc-bottom-nav-badge) {
    line-height: 1;
  }
  .pc-bottom-nav-item.is-active {
    color: var(--pc-primary);
  }
  .pc-bottom-nav-item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 2px 2px;
    background: var(--pc-primary);
  }
  .pc-bottom-nav-badge {
    top: 4px;
    right: calc(50% - 18px);
    box-shadow: 0 0 0 2px #fff;
  }

  /* === Floating WhatsApp — над bottom-nav === */
  .pc-float-whatsapp {
    width: 48px;
    height: 48px;
    bottom: calc(var(--pc-bottombar-h) + 12px);
    right: 12px;
  }
  .pc-float-whatsapp svg,
  .pc-float-whatsapp i { font-size: 22px; }

  /* === Mega-menu drawer на мобиле — fullscreen с close === */
  .pc-mega-dialog {
    border-radius: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-width: 100vw !important;
    box-shadow: none;
    border: 0;
  }
  .pc-mega-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pc-border);
  }
  .pc-mega-head strong { font-size: 17px; }
  .pc-mega-wrapper {
    display: block;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pc-mega-left { padding: 8px 0; }
  .pc-mega-nav { padding: 0 12px; }
  .pc-mega-nav-item { margin-bottom: 4px; }
  .pc-mega-nav-item a {
    padding: 14px 16px;
    font-size: 14px;
    min-height: 48px;
    border-radius: 10px;
  }
  .pc-mega-sale {
    margin: 12px;
    padding: 12px;
    font-size: 14px;
  }

  /* === Категория страница === */
  .pc-category-intro {
    padding: 14px;
    border-radius: 14px;
  }
  .pc-subcategory-wrap {
    padding: 12px 14px;
    border-radius: 14px;
  }
  .pc-subcategory-list { gap: 6px; }
  .pc-subcategory-list a {
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .pc-toolbar { padding: 10px 12px; border-radius: 12px; }
  .pc-toolbar select.form-control {
    height: 38px;
    font-size: 13px;
  }
  .pc-toolbar .input-group-addon {
    font-size: 10.5px;
    padding: 6px 6px 6px 0;
  }
  .js-pc-open-filters {
    min-height: 42px;
    font-size: 13.5px;
  }
  .pc-active-filters { padding: 8px 12px; gap: 6px; border-radius: 10px; }
  .pc-filter-chip {
    padding: 4px 8px 4px 10px;
    font-size: 12px;
    min-height: 30px;
  }

  /* Pagination на мобиле */
  .pagination > li > a,
  .pagination > li > span {
    min-width: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .row > .col-sm-6.text-left,
  .row > .col-sm-6.text-right {
    text-align: center !important;
    padding: 8px 0;
  }

  /* === Страница товара === */
  .pc-product-main {
    flex-direction: column;
    gap: 16px;
  }
  .pc-product-buybox-wrap {
    padding-left: 0;
    padding-right: 0;
  }
  .pc-product-actions-top {
    margin-bottom: 8px;
    justify-content: flex-end;
  }
  .pc-product-actions-top .btn {
    width: 40px;
    height: 40px;
  }
  .pc-product-pricing { padding: 14px 16px; }
  .pc-product-pricing h2 { font-size: 28px; }
  .pc-product-trust {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 8px;
  }
  .pc-trust-item { font-size: 13px; }
  .pc-product-tabs.nav-tabs > li > a {
    padding: 12px 4px;
    margin-right: 14px;
    font-size: 13.5px;
  }
  .tab-content { padding: 16px 0; font-size: 13.5px; }

  /* Галерея товара */
  .pc-product-gallery .thumbnails > li:first-child .thumbnail {
    padding: 16px;
  }
  .pc-product-gallery .thumbnails > li.image-additional {
    flex: 0 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
  }

  /* === Корзина checkout === */
  #checkout-cart .table { font-size: 12.5px; }
  #checkout-cart .table > tbody > tr > td { padding: 10px; }
  #checkout-cart .table img.img-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }
  #checkout-cart .table > thead { display: none; }
  #checkout-cart .table > tbody > tr {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 6px 10px;
    padding: 12px;
    border: 1px solid var(--pc-border);
    border-radius: 10px;
    margin-bottom: 8px;
  }
  #checkout-cart .table > tbody > tr > td {
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: top;
  }
  #checkout-cart .table > tbody > tr > td:first-child { grid-row: span 4; }

  /* === Footer === */
  .pc-footer { margin-top: 28px; padding-bottom: 20px; }
  .pc-footer-benefits { padding: 14px 0; margin-bottom: 14px; }
  .pc-benefit-item { padding: 4px 0; gap: 12px; }
  .pc-benefit-item i { width: 40px; height: 40px; }
  .pc-benefit-item strong { font-size: 13.5px; }
  .pc-benefit-item span { font-size: 12px; }
  .pc-footer-main h5 { font-size: 12px; }
  .pc-footer-main ul.list-unstyled a { font-size: 13px; }
  .pc-footer-contacts li { font-size: 13px; gap: 8px; }
  .pc-footer-contacts li i { width: 28px; height: 28px; font-size: 12px; }
  .pc-footer-contact-sub { padding-left: 36px !important; font-size: 12px !important; }
  .pc-footer-copy { font-size: 11px; }

  /* Контейнер padding единый */
  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* === Form controls === */
  .form-control { min-height: 44px; font-size: 14px; padding: 10px 12px; }
  .input-group .form-control { font-size: 14px; }

  /* Alerts на мобиле */
  .alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Breadcrumb на мобиле */
  .breadcrumb {
    font-size: 12px;
    padding: 10px 0;
    margin-bottom: 8px;
  }
}

/* === Touch devices: убираем :hover, оставляем :active === */
@media (hover: none) {
  .pc-home-category-card:hover { transform: none; box-shadow: var(--pc-shadow-xs); }
  .product-thumb:hover { transform: none; box-shadow: var(--pc-shadow-xs); }
  .product-thumb:hover .image img { transform: none; }
}

/* ==========================================================================
   30. Поддержка Dynamic Viewport на мобильных (для строки навбара браузера)
   ========================================================================== */
@supports (height: 100dvh) {
  .pc-mega-dialog { height: 100dvh; max-height: 100dvh; }
  body.pc-filters-open #column-left { max-height: 100dvh; }
}

