/* Reset & Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --spec-yellow: #ffc502;
  --spec-black: #000000;
  --spec-gray: #333333;
  --spec-dark: #000000;
  --spec-dark-text: #1a1a1a;
  --spec-gray-light: #555555;
  --spec-gray-bg: #f8f9fa;
  --spec-white: #ffffff;
  --spec-yellow-dark: #e6b002;
  --spec-yellow-light: #ffd84d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --military-font: 'Russo One', sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--spec-gray-bg);
  color: var(--spec-dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header */
.header {
  background: var(--spec-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header__container { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; }
.header__row { display: flex; align-items: center; gap: 24px; padding: 20px 0; }
.header__logo { display: flex; align-items: center; }
.header__logo .logo-image { height: 50px; width: auto; }
.header__logo .logo-text { font-family: var(--military-font); font-size: 24px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }

.header__catalog_btn {
  background: var(--spec-yellow);
  color: var(--spec-black);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: var(--military-font);
  text-transform: uppercase;
}

.header__catalog_btn:hover { background: var(--spec-yellow-dark); transform: translateY(-2px); }

.catalog-icon { display: flex; flex-direction: column; gap: 3px; }
.catalog-icon span { display: block; width: 20px; height: 2px; background: var(--spec-black); }

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--spec-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: var(--spec-white);
  z-index: 1100;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav__header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--spec-yellow);
}

.mobile-nav__title {
  font-family: var(--military-font);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-nav__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spec-black);
}

.mobile-nav__content {
  padding: 0;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item {
  border-bottom: 1px solid #eee;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--spec-dark);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  position: relative;
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
  background: var(--spec-gray-bg);
}

.mobile-nav__link .icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.mobile-nav__link .arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mobile-nav__item.has-children > .mobile-nav__link .arrow {
  display: block;
}

.mobile-nav__submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav__item.open > .mobile-nav__submenu {
  max-height: 1000px;
}

.mobile-nav__item.open > .mobile-nav__link .arrow {
  transform: rotate(180deg);
}

.mobile-nav__submenu .mobile-nav__link {
  padding-left: 56px;
  font-size: 14px;
  font-weight: 400;
}

/* Second level submenu */
.mobile-nav__submenu--level2 {
  background: #e9ecef;
}

.mobile-nav__submenu--level2 .mobile-nav__link {
  padding-left: 72px;
  font-size: 13px;
}

.mobile-nav__footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: var(--spec-gray-bg);
}

.mobile-nav__footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav__footer-link {
  font-size: 14px;
  color: #666;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.header__search_block { flex: 1; }
.header__search_form { display: flex; gap: 8px; }
.header__search_input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.3s;
}
.header__search_input:focus { outline: none; border-color: var(--spec-yellow); }
.header__search_btn {
  background: var(--spec-yellow);
  color: var(--spec-black);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--military-font);
}

.header__actions { display: flex; gap: 16px; }
.header__action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background 0.3s;
  font-size: 14px;
}
.header__action:hover { background: var(--spec-gray-bg); }
.header__action svg { flex-shrink: 0; }

/* Catalog Menu */
.catalog-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--spec-white);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: opacity 0.3s, visibility 0.3s;
}
.catalog-menu--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.catalog-menu__container { max-width: 1400px; margin: 0 auto; padding: 16px 24px; }
.catalog-menu__content { display: flex; gap: 32px; }
.catalog-menu__main { min-width: 220px; border-right: 1px solid var(--spec-gray-bg); padding-right: 16px; }
.catalog-menu__list { list-style: none; }
.catalog-menu__item { padding: 2px 0; }
.catalog-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.catalog-menu__link:hover, .catalog-menu__item--active .catalog-menu__link {
  background: var(--spec-gray-bg);
  color: var(--spec-yellow-dark);
}
.catalog-menu__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spec-gray-bg);
  border-radius: 4px;
  overflow: hidden;
}
.catalog-menu__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-menu__sub { flex: 1; }
.catalog-menu__sub-list { list-style: none; column-count: 3; column-gap: 24px; }
.catalog-menu__sub-item { break-inside: avoid; margin-bottom: 12px; }
.catalog-menu__sub-link { font-weight: 600; display: block; margin-bottom: 6px; font-size: 13px; }
.catalog-menu__sub-link:hover { color: var(--spec-yellow-dark); }
.catalog-menu__sub-2-list { list-style: none; padding-left: 0; }
.catalog-menu__sub-2-item { padding: 2px 0; }
.catalog-menu__sub-2-link { color: var(--spec-gray-light); font-size: 12px; line-height: 1.4; }
.catalog-menu__sub-2-link:hover { color: var(--spec-yellow-dark); }

/* Footer */
.footer { background: var(--spec-gray); color: var(--spec-white); margin-top: 60px; }
.footer__content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 60px 0; }
.footer__title { font-family: var(--military-font); font-size: 16px; margin-bottom: 20px; color: var(--spec-yellow); }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { color: #ccc; transition: color 0.2s; }
.footer__links a:hover { color: var(--spec-yellow); }
.footer__contact p { color: #ccc; margin-bottom: 8px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social-link { background: var(--spec-yellow); color: var(--spec-black); padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; }
.footer__bottom { border-top: 1px solid #444; padding: 24px 0; text-align: center; color: #888; }

/* Buttons */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  background: var(--spec-yellow);
  color: var(--spec-black);
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: var(--military-font);
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--spec-yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--spec-yellow); color: var(--spec-black); }
.btn-secondary { background: transparent; border: 2px solid var(--spec-gray); color: var(--spec-gray); }
.btn-secondary:hover { background: var(--spec-gray); color: var(--spec-white); }
.btn-large { padding: 18px 48px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-reset { font-size: 12px; padding: 10px 16px; margin-top: 16px; }

/* Hero Slider */
.hero-slider { position: relative; height: 500px; overflow: hidden; }
.hero-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-slider__slide--active { opacity: 1; }
.hero-slider__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-slider__content { position: relative; z-index: 2; height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-slider__title { font-family: var(--military-font); font-size: 48px; color: var(--spec-white); margin-bottom: 24px; }
.hero-slider__btn { margin-top: 16px; }
.hero-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.hero-slider__nav:hover { background: var(--spec-yellow); }
.hero-slider__nav--prev { left: 24px; }
.hero-slider__nav--next { right: 24px; }
.hero-slider__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.hero-slider__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--spec-white); background: transparent; cursor: pointer; }
.hero-slider__dot--active { background: var(--spec-yellow); border-color: var(--spec-yellow); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.featured-products { padding: 60px 0; }
.featured-products__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-title { font-family: var(--military-font); font-size: 28px; }
.section-link { color: var(--spec-yellow-dark); font-weight: 600; }

/* Product Card - New Style */
.cardblock { background: var(--spec-white); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; display: flex; flex-direction: column; height: 100%; }
.cardblock:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cardblock__top { position: relative; }
.cardblock__topbox { position: absolute; top: 12px; right: 12px; z-index: 10; }
.cardblock__favorite { background: var(--spec-white); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all 0.2s; color: #999; }
.cardblock__favorite:hover { background: var(--spec-yellow); color: var(--spec-dark); }
.cardblock__favorite--active { color: #e53935; }
.cardblock__favorite--active:hover { color: #c62828; }

/* Image Slider */
.cardblock__slider { position: relative; aspect-ratio: 1; overflow: hidden; background: #ffffff; }
.cardblock__images { display: flex; width: 100%; height: 100%; }
.cardblock__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s ease; padding: 16px; }
.cardblock__image--active { opacity: 1; }
.cardblock__no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 14px; }
.cardblock__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.cardblock__dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; transition: all 0.2s; }
.cardblock__dot--active { background: var(--spec-yellow); width: 18px; border-radius: 3px; }
.cardblock__sectors { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; z-index: 2; }
.cardblock__sector { flex: 1; }

/* Card Name */
.cardblock__name { padding: 16px 16px 12px; }
.cardblock__category { display: block; font-size: 12px; color: #888; margin-bottom: 6px; }
.cardblock__category a { color: #888; transition: color 0.2s; }
.cardblock__category a:hover { color: var(--spec-yellow-dark); }
.cardblock__title { display: block; font-size: 14px; font-weight: 600; color: var(--spec-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.cardblock__title:hover { color: var(--spec-yellow-dark); }

/* Card Bottom */
.cardblock__bottom { padding: 0 16px 16px; margin-top: auto; }
.cardblock__status-row { margin-bottom: 10px; }
.cardblock__status { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cardblock__status-icon { width: 6px; height: 6px; border-radius: 50%; }
.cardblock__status--in { color: #2e7d32; }
.cardblock__status--in .cardblock__status-icon { background: #4caf50; }
.cardblock__status--out { color: #9e9e9e; }
.cardblock__status--out .cardblock__status-icon { background: #bdbdbd; }
.cardblock__price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.cardblock__price { font-size: 18px; font-weight: 700; color: var(--spec-dark); }
.cardblock__old-price { font-size: 13px; color: #999; text-decoration: line-through; margin-bottom: 2px; }
.cardblock__article { font-size: 11px; color: #aaa; }

/* Cart Row */
.cardblock__cart-row { display: flex; gap: 8px; }
.cardblock__form { display: flex; gap: 8px; width: 100%; }
.cardblock__counter-container { display: flex; width: 100%; gap: 8px; align-items: center; }
.cardblock__counter { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cardblock__counter-btn { width: 28px; height: 28px; border: 1px solid #e0e0e0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; color: #666; }
.cardblock__counter-btn:hover { background: var(--spec-yellow); border-color: var(--spec-yellow); color: var(--spec-dark); }
.cardblock__counter-input { width: 32px; height: 28px; border: none; background: transparent; text-align: center; font-size: 14px; font-weight: 600; }
.cardblock__counter-input::-webkit-outer-spin-button,
.cardblock__counter-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to cart button (not in cart) */
.cardblock__btn--add { width: 100%; background: var(--spec-yellow); border: none; border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; color: var(--spec-dark); }
.cardblock__btn--add:hover { background: var(--spec-yellow-dark); }
.cardblock__btn--add .cardblock__btn-icon-always { display: block; flex-shrink: 0; }
.cardblock__btn--add .cardblock__btn-text { display: none; }
.cardblock__btn--add .cardblock__btn-text-short { display: block; }

/* In cart button (with counter) */
.cardblock__btn--in-cart { flex: 1; background: #4caf50; border: none; border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; color: white; }
.cardblock__btn--in-cart:hover { background: #43a047; }
.cardblock__btn--in-cart .cardblock__btn-icon { display: none; }
.cardblock__btn--in-cart .cardblock__btn-text { display: block; }

/* Legacy support */
.cardblock__btn { flex: 1; background: var(--spec-yellow); border: none; border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; color: var(--spec-dark); }
.cardblock__btn:hover { background: var(--spec-yellow-dark); }
.cardblock__btn-icon { display: none; }
.cardblock__btn-text { display: block; }

/* Old product card styles - keep for compatibility */
.product-card { background: var(--spec-white); border-radius: var(--radius-md); overflow: hidden; }
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; background: #f5f5f5; }
.product-info { padding: 16px; }
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-article { font-size: 12px; color: #999; margin-bottom: 4px; }
.product-brand { font-size: 12px; color: var(--spec-yellow-dark); font-weight: 500; margin-bottom: 8px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--spec-black); margin-top: 8px; }
.ruble-symbol { font-weight: 400; }

/* Desktop card styles */
@media (min-width: 769px) {
  .cardblock__btn--add .cardblock__btn-text { display: block; }
  .cardblock__btn--add .cardblock__btn-text-short { display: none; }
}

/* Mobile card styles */
@media (max-width: 768px) {
  .cardblock__btn--add .cardblock__btn-icon-always { display: block; }
  .cardblock__btn--add .cardblock__btn-text { display: none; }
  .cardblock__btn--add .cardblock__btn-text-short { display: block; }
  .cardblock__btn--in-cart .cardblock__btn-icon { display: block; }
  .cardblock__btn--in-cart .cardblock__btn-text { display: none; }
  .cardblock__counter { display: flex; }
}

@media (max-width: 480px) {
  .cardblock__counter { display: flex; }
  .cardblock__counter-container { flex-direction: column; gap: 6px; }
  .cardblock__btn--in-cart { width: 100%; }
  .cardblock__btn--in-cart .cardblock__btn-icon { display: block; }
}

/* Favorite Button */
.favorite-btn { position: absolute; top: 12px; right: 12px; background: var(--spec-white); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all 0.3s; z-index: 5; }
.favorite-btn:hover { background: var(--spec-yellow); }
.favorite-btn--active { color: #e53935; }
.favorite-btn--large { 
  position: static; 
  padding: 18px 48px;
  font-size: 16px;
  background: var(--spec-white);
  color: var(--spec-black);
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--military-font);
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
}
.favorite-btn--large:hover { 
  background: #f5f5f5;
  border-color: var(--spec-black);
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md); 
}
.favorite-btn--large.favorite-btn--active {
  border-color: #e53935;
  color: #e53935;
}
.favorite-btn--large.favorite-btn--active:hover {
  background: #ffebee;
}

/* Favorite button text and icon */
.favorite-btn__icon { display: block; flex-shrink: 0; }
.favorite-btn__text { display: none; }

/* Catalog Layout */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 32px; }
.catalog-sidebar { background: var(--spec-white); padding: 24px; border-radius: var(--radius-md); height: fit-content; }
.filter-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.filter-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.filter-checkbox input { width: 18px; height: 18px; accent-color: var(--spec-yellow); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-input { width: 100px; padding: 8px 12px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 14px; }
.price-hint { font-size: 12px; color: #999; margin-top: 8px; }

/* Mobile Filters Button */
.mobile-filters-btn {
  display: none;
  background: var(--spec-yellow);
  color: var(--spec-black);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--military-font);
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.mobile-filters-btn:hover {
  background: var(--spec-yellow-dark);
}

.mobile-filters-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Filters Panel */
.mobile-filters {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: var(--spec-white);
  z-index: 1100;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
}

.mobile-filters.active {
  right: 0;
}

.mobile-filters__header {
  padding: 20px;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--spec-yellow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-filters__title {
  font-family: var(--military-font);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-filters__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spec-black);
}

.mobile-filters__content {
  padding: 20px;
}

.mobile-filters__footer {
  padding: 16px 20px;
  border-top: 2px solid #eee;
  background: var(--spec-white);
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
}

.mobile-filters__apply {
  flex: 1;
  background: var(--spec-yellow);
  color: var(--spec-black);
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--military-font);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.mobile-filters__apply:hover {
  background: var(--spec-yellow-dark);
}

.mobile-filters__reset {
  background: transparent;
  color: var(--spec-gray);
  border: 2px solid var(--spec-gray);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--military-font);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.mobile-filters__reset:hover {
  background: var(--spec-gray);
  color: var(--spec-white);
}

/* Filters count badge */
.filters-count {
  display: inline-block;
  background: var(--spec-black);
  color: var(--spec-white);
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  line-height: 20px;
  text-align: center;
  margin-left: 8px;
}

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding: 16px; background: var(--spec-white); border-radius: var(--radius-md); }
.catalog-count { font-size: 14px; color: #666; }
.catalog-sort { display: flex; align-items: center; gap: 8px; }
.catalog-sort select { padding: 8px 12px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 14px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination__link { padding: 10px 16px; background: var(--spec-white); border-radius: var(--radius-sm); transition: all 0.2s; }
.pagination__link:hover { background: var(--spec-yellow); }
.pagination__link--current { background: var(--spec-yellow); font-weight: 600; }
.pagination__ellipsis { padding: 10px 8px; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 24px; font-size: 14px; color: #666; }
.breadcrumbs a:hover { color: var(--spec-yellow-dark); }
.breadcrumbs__separator { margin: 0 8px; }
.breadcrumbs__current { color: var(--spec-dark); }
.page-title { font-family: var(--military-font); font-size: 32px; margin-bottom: 24px; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.product-slider-container { display: flex; gap: 16px; }
.product-thumbnails-vertical { display: flex; flex-direction: column; gap: 8px; width: 80px; }
.product-thumbnail { width: 80px; height: 80px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.product-thumbnail--active { border-color: var(--spec-yellow); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-preview-wrapper { flex: 1; }
.product-main-image-wrapper { position: relative; aspect-ratio: 1; background: var(--spec-white); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-main-image-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info-section h1 { font-family: var(--military-font); font-size: 28px; margin-bottom: 16px; }
.product-variants { margin: 16px 0; }
.variant-label { font-size: 14px; color: #666; margin-bottom: 8px; display: block; }
.variant-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { padding: 8px 16px; border: 2px solid #ddd; background: var(--spec-white); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.variant-btn:hover { border-color: var(--spec-yellow); }
.variant-btn.active { background: var(--spec-yellow); border-color: var(--spec-black); }
.product-price-block { margin: 24px 0; }
.product-price-large { font-size: 32px; font-weight: 700; }
.product-old-price { font-size: 18px; color: #999; text-decoration: line-through; margin-right: 12px; }
.product-stock { margin: 16px 0; font-weight: 600; }
.product-stock--available { color: #4caf50; }
.product-stock--unavailable { color: #f44336; }
.product-actions { display: flex; gap: 16px; align-items: center; margin: 24px 0; }
.product-actions form { display: flex; gap: 16px; align-items: center; }
.quantity-selector { display: flex; align-items: center; border: 2px solid #ddd; border-radius: var(--radius-md); }
.quantity-btn { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; font-size: 20px; transition: background 0.2s; }
.quantity-btn:hover { background: #f5f5f5; }
.quantity-input { width: 60px; height: 44px; border: none; text-align: center; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Product cart container - when item is in cart */
.product-cart-container { display: flex; gap: 16px; align-items: center; width: 100%; }
.product-counter { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.product-counter .quantity-btn { width: 44px; height: 44px; border: 1px solid #e0e0e0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 20px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; color: #666; }
.product-counter .quantity-btn:hover { background: var(--spec-yellow); border-color: var(--spec-yellow); color: var(--spec-dark); }
.product-counter .quantity-input { width: 60px; height: 44px; border: none; background: transparent; text-align: center; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.product-counter .quantity-input::-webkit-outer-spin-button,
.product-counter .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-in-cart { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.btn-icon { flex-shrink: 0; }
.btn-icon-always { flex-shrink: 0; }
.product-description-full { margin-top: 32px; padding-top: 32px; border-top: 1px solid #eee; }
.product-description-full h3 { font-size: 18px; margin-bottom: 12px; }
.related-products { margin-top: 60px; }

/* Cart - New Style */
.basket-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.basket-items { background: var(--spec-white); border-radius: var(--radius-md); padding: 20px; }

/* Basket Item - стили как в референсе */
.basket__item { background: transparent; padding: 20px; margin-bottom: 0; border: none; }
.basket__item_img { width: 150px; flex-shrink: 0; margin-right: 20px; }
.basket__item_img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.basket__no-image { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; color: #999; font-size: 12px; border-radius: var(--radius-sm); }
.basket__item_right { flex: 1; display: flex; flex-direction: column; }
.basket__articul { font-size: 12px; color: #888; margin-bottom: 6px; }
.basket__product_name { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.basket__product_name a { color: #2B2D3A; text-decoration: none; transition: color 0.2s; }
.basket__product_name a:hover { color: var(--spec-yellow-dark); }
.basket__status { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.basket__status-icon { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.basket__status--in { color: #2e7d32; }
.basket__status--in .basket__status-icon { background: #4caf50; }
.basket__status--out { color: #c62828; }
.basket__status--out .basket__status-icon { background: #f44336; }
.basket__item_price_block { margin-top: auto; }
.basket__item_price_block .d-flex.aic { gap: 16px; }
.gray_standart_text { font-size: 13px; color: #888; display: block; margin-bottom: 8px; }

/* Counter */
.counter { display: flex; align-items: center; border: 1px solid #ddd; border-radius: var(--radius-sm); overflow: hidden; margin-right: 16px; }
.counter button { width: 36px; height: 36px; border: none; background: #f5f5f5; cursor: pointer; font-size: 18px; transition: background 0.2s; }
.counter button:hover { background: var(--spec-yellow); }
.counter input { width: 50px; height: 36px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price_for_one { font-size: 13px; color: #666; white-space: nowrap; }

/* Basket Prices */
.basket__prices { text-align: right; }
.basket__old_price { font-size: 14px; color: #999; text-decoration: line-through; margin-bottom: 4px; }
.basket__new_price { font-size: 20px; font-weight: 700; color: var(--spec-dark); }

/* Delete button */
.btn_delete_item { background: none; border: none; color: #888; font-size: 13px; cursor: pointer; padding: 0; transition: color 0.2s; text-decoration: none; }
.btn_delete_item:hover { color: #f44336; }

/* Utility classes */
.d-flex { display: flex; }
.jcsb { justify-content: space-between; }
.jcfe { justify-content: flex-end; }
.jcc { justify-content: center; }
.aic { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gray { color: #888; }

/* Divider */
.divider { height: 1px; background: #e5e5e5; margin: 16px 0; }

/* Basket Summary */
.basket-summary { position: sticky; top: 100px; align-self: flex-start; }
.basket-summary__block { background: var(--spec-white); border-radius: var(--radius-md); padding: 28px; }
.basket-summary__title { font-family: var(--military-font); font-size: 18px; margin-bottom: 20px; color: var(--spec-dark); }
.basket-summary__row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.basket-summary__label { color: #666; }
.basket-summary__value { font-weight: 500; }
.basket-summary__divider { height: 1px; background: #e5e5e5; margin: 16px 0; }
.basket-summary__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.basket-summary__total-label { font-size: 16px; font-weight: 600; }
.basket-summary__total-value { font-size: 24px; font-weight: 700; color: var(--spec-dark); }
.basket-summary__checkout { margin-bottom: 12px; }
.basket-empty-inline { padding: 40px; text-align: center; color: #888; }

/* Promo Code Section */
.promo-code-section { margin: 16px 0; padding: 16px 0; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.promo-code-input-group { display: flex; gap: 8px; }
.promo-code-input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 14px; text-transform: uppercase; }
.promo-code-input:focus { outline: none; border-color: var(--spec-black); }
.promo-code-message { margin-top: 8px; padding: 8px; border-radius: var(--radius-sm); font-size: 13px; display: none; }
.promo-code-message--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.promo-code-message--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.promo-code-applied { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #d4edda; border: 1px solid #c3e6cb; border-radius: var(--radius-sm); gap: 12px; }
.promo-code-info { display: flex; flex-direction: column; gap: 6px; color: #155724; flex: 1; }
.promo-code-header { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.promo-code-info svg { flex-shrink: 0; }
.promo-code-text { text-transform: uppercase; font-size: 14px; }
.promo-code-discount { font-size: 13px; color: #0f5132; font-weight: 500; }
.promo-code-remove { background: transparent; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #155724; padding: 0 4px; transition: all 0.2s; flex-shrink: 0; border-radius: 4px; }
.promo-code-remove:hover { color: #fff; background: #c3222c; }
.basket-summary__row--discount { color: #28a745; }
.basket-summary__value--discount { color: #28a745; font-weight: 600; }

/* Old cart styles - keep for compatibility */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.quantity-input-small { width: 50px; height: 36px; border: 1px solid #ddd; text-align: center; border-radius: var(--radius-sm); margin: 0 4px; }
.empty-cart, .empty-favorites { text-align: center; padding: 80px 20px; }
.empty-cart svg, .empty-favorites svg { color: #ccc; margin-bottom: 24px; }
.empty-cart h2, .empty-favorites h2 { margin-bottom: 12px; }
.empty-cart p, .empty-favorites p { color: #666; margin-bottom: 24px; }

/* Favorites Page - Grid Layout */
.favorites { padding: 20px 0; }
.favorites__section { margin-bottom: 40px; }
.favorites__container { max-width: 1400px; margin: 0 auto; }
.favorites__row { margin-bottom: 24px; }
.favorites__list { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.favorites__list .col-6 { padding: 0 12px; margin-bottom: 24px; box-sizing: border-box; }
.section__title { font-size: 24px; font-weight: 700; margin: 0; }

/* Grid columns */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-6 { width: 50%; padding: 0 12px; box-sizing: border-box; }
@media (min-width: 576px) { .col-sm-3 { width: 25%; } }
@media (min-width: 768px) { .col-md-3 { width: 25%; } }
.d-none { display: none; }
@media (min-width: 992px) { .d-lg-block { display: block !important; } }

/* Cardblock price block */
.cardblock__price_block { margin-top: 8px; }
.cardblock__old_price { font-size: 13px; color: #999; text-decoration: line-through; }
.cardblock__new_price { font-size: 18px; font-weight: 700; color: var(--spec-dark); }
.cardblock_articul { font-size: 12px; color: #888; }
.favorites-footer { margin-top: 24px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.out-of-stock { font-size: 13px; color: #999; }
.no-image-small { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f5f5f5; color: #999; font-size: 11px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }

/* Checkout Form */
.checkout-form { display: flex; flex-direction: column; gap: 24px; }
.checkout-section { background: var(--spec-white); padding: 28px; border-radius: var(--radius-md); }
.checkout-section__title { display: flex; align-items: center; gap: 12px; font-family: var(--military-font); font-size: 18px; margin: 0 0 20px; }
.checkout-section__num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--spec-yellow); border-radius: 50%; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.checkout-alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--radius-md); margin-bottom: 0; }
.checkout-alert--error { background: #fee; border: 1px solid #fcc; color: #c33; }
.checkout-alert p { margin: 0 0 4px; font-size: 14px; }
.checkout-alert p:last-child { margin-bottom: 0; }
.checkout-submit { width: 100%; padding: 16px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Form fields */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group--error .form-control { border-color: #dc3545; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.required { color: #dc3545; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); font-size: 15px; transition: border-color 0.2s; background: #fff; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--spec-yellow); }
.form-control--error { border-color: #dc3545 !important; }
textarea.form-control { resize: vertical; }
.form-error { display: block; color: #dc3545; font-size: 12px; margin-top: 4px; }
.form-hint { display: block; color: #999; font-size: 12px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Delivery options */
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.delivery-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.delivery-option input[type="radio"] { display: none; }
.delivery-option--active { border-color: var(--spec-yellow); background: #fffde7; }
.delivery-option__icon { color: #666; flex-shrink: 0; }
.delivery-option--active .delivery-option__icon { color: var(--spec-yellow-dark); }
.delivery-option__info { display: flex; flex-direction: column; gap: 2px; }
.delivery-option__name { font-size: 14px; font-weight: 600; }
.delivery-option__desc { font-size: 12px; color: #999; }

/* Delivery address fields */
.delivery-address-fields { margin-top: 16px; transition: all 0.3s; }
.delivery-address-fields--hidden { display: none; }

/* Pickup info */
.pickup-info { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 16px; background: #f0f7ff; border-radius: var(--radius-sm); border: 1px solid #cce5ff; color: #004085; }
.pickup-info--hidden { display: none; }
.pickup-info p { margin: 0 0 4px; font-size: 14px; }
.pickup-info p:last-child { margin-bottom: 0; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; position: relative; }
.payment-option input[type="radio"] { display: none; }
.payment-option--active { border-color: var(--spec-yellow); background: #fffde7; }
.payment-option__icon { color: #666; flex-shrink: 0; }
.payment-option--active .payment-option__icon { color: var(--spec-yellow-dark); }
.payment-option__info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.payment-option__name { font-size: 14px; font-weight: 600; }
.payment-option__desc { font-size: 12px; color: #999; }
.payment-option__badge { background: var(--spec-yellow); color: var(--spec-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* Checkout summary */
.checkout-summary { background: var(--spec-white); padding: 28px; border-radius: var(--radius-md); position: sticky; top: 20px; }
.checkout-summary__title { font-family: var(--military-font); font-size: 18px; margin: 0 0 20px; }
.checkout-items { margin-bottom: 20px; }
.checkout-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item__image { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.checkout-item__image img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item__info { flex: 1; min-width: 0; }
.checkout-item__name { font-size: 13px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-item__meta { font-size: 12px; color: #999; margin-bottom: 2px; }
.checkout-item__qty { font-size: 12px; color: #666; }
.checkout-item__price { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.checkout-totals { border-top: 2px solid #eee; padding-top: 16px; margin-bottom: 16px; }
.checkout-totals__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.checkout-totals__row--discount { color: #28a745; }
.checkout-totals__row--total { font-size: 18px; font-weight: 700; margin-bottom: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.checkout-agreement { font-size: 12px; color: #999; text-align: center; margin-top: 16px; }
.checkout-agreement a { color: #666; text-decoration: underline; }
.checkout-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; padding-top: 16px; }
.success-page { text-align: center; padding: 80px 20px; }
.success-icon { color: #4caf50; margin-bottom: 24px; }
.success-page h1 { margin-bottom: 16px; }
.success-page p { color: #666; margin-bottom: 12px; }
.success-page .btn { margin-top: 24px; }

/* Content Pages */
.content-page { max-width: 800px; }
.content-block { margin-bottom: 40px; }
.content-block h2 { font-family: var(--military-font); font-size: 22px; margin-bottom: 16px; }
.content-block p { margin-bottom: 12px; line-height: 1.8; }
.content-block ul, .content-block ol { margin-left: 24px; margin-bottom: 16px; }
.content-block li { margin-bottom: 8px; line-height: 1.6; }
.features-list { list-style: none; margin-left: 0; }
.features-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.legal-page { font-size: 15px; }
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-card { background: var(--spec-white); padding: 24px; border-radius: var(--radius-md); margin-bottom: 20px; }
.contact-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--spec-yellow-dark); }
.contact-card a { color: var(--spec-dark); font-weight: 500; }
.contact-note { font-size: 13px; color: #666; margin-top: 4px; }
.delivery-options { display: grid; gap: 20px; }
.delivery-option { background: var(--spec-white); padding: 24px; border-radius: var(--radius-md); }
.delivery-option h3 { margin-bottom: 12px; }
.payment-methods { margin-left: 0; list-style: none; }
.payment-methods li { padding: 12px 0; border-bottom: 1px solid #eee; }

/* Brands */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.brand-card { background: var(--spec-white); padding: 24px; border-radius: var(--radius-md); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-card__logo img { max-height: 60px; margin-bottom: 16px; }
.brand-card__name-large { font-family: var(--military-font); font-size: 24px; margin-bottom: 16px; color: var(--spec-yellow-dark); }
.brand-card__info h3 { font-size: 16px; margin-bottom: 4px; }
.brand-card__count { font-size: 13px; color: #666; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-showcase-card { position: relative; height: 200px; border-radius: var(--radius-md); overflow: hidden; }
.category-showcase-card__image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.category-showcase-card__image img { width: 100%; height: 100%; object-fit: contain; }
.category-showcase-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--spec-gray) 0%, var(--spec-gray-light) 100%); }
.category-showcase-card__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.category-showcase-card:hover .category-showcase-card__overlay { background: rgba(0,0,0,0.6); }
.category-showcase-card__overlay h3 { color: var(--spec-white); font-family: var(--military-font); font-size: 20px; }

/* Features Section */
.features-section { padding: 60px 0; background: var(--spec-white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card { text-align: center; padding: 32px; }
.feature-card__icon { color: var(--spec-yellow); margin-bottom: 16px; }
.feature-card h3 { font-family: var(--military-font); margin-bottom: 12px; }
.feature-card p { color: #666; font-size: 14px; }

/* CTA Section */
.cta-section { padding: 80px 0; background: var(--spec-gray); text-align: center; }
.cta-section h2 { font-family: var(--military-font); font-size: 36px; color: var(--spec-white); margin-bottom: 16px; }
.cta-section p { color: #ccc; margin-bottom: 32px; font-size: 18px; }

/* Scroll to Top */
.scroll-to-top { position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--spec-yellow); border: none; cursor: pointer; box-shadow: var(--shadow-md); z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.3s, opacity 0.3s; }
.scroll-to-top:hover { transform: translateY(-4px); }

/* Notifications */
.notification { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--spec-gray); color: var(--spec-white); padding: 16px 32px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1000; transition: transform 0.3s; }
.notification--show { transform: translateX(-50%) translateY(0); }

/* Alert */
.alert { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px; }
.alert-success { background: #e8f5e9; color: #2e7d32; }

/* ==========================================
   RESPONSIVE DESIGN
   Breakpoints: 
   - Mobile: 320-480px
   - Mobile Large: 481-768px  
   - Tablet: 769-1024px
   - Desktop: 1025px+
   ========================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 32px 20px;
  }
  
  /* Featured products - 3 columns */
  .featured-products__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  /* Catalog with smaller sidebar */
  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
  
  /* Product detail - single column */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-slider-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Cart and checkout - single column */
  .cart-layout, .checkout-layout, .basket-layout {
    grid-template-columns: 1fr;
  }
  
  .basket-summary {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Contacts layout */
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Hero slider */
  .hero-slider {
    height: 400px;
  }
  
  .hero-slider__content {
    height: 400px;
  }
  
  .hero-slider__title {
    font-size: 40px;
  }
  
  /* Brands grid */
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
  
  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* Mobile Large & Tablet (max-width: 768px) */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 24px 16px;
  }
  
  /* Header - wrap and reorder */
  .header__container {
    padding: 0 16px;
  }
  
  .header__row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
  }
  
  .header__logo .logo-image {
    height: 40px;
  }
  
  /* Show mobile menu button, hide desktop catalog button */
  .mobile-menu-btn {
    display: flex;
  }
  
  .header__catalog_btn {
    display: none;
  }
  
  /* Show mobile filters button, hide desktop sidebar */
  .mobile-filters-btn {
    display: flex;
  }
  
  .catalog-sidebar {
    display: none;
  }
  
  /* Search moves to full width bottom row */
  .header__search_block {
    order: 3;
    width: 100%;
  }
  
  .header__search_input {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .header__search_btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  /* Header actions - icons only */
  .header__actions {
    gap: 8px;
  }
  
  .header__action {
    padding: 8px;
    font-size: 0;
  }
  
  /* Favorite button mobile text variant */
  .favorite-btn--large {
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    padding: 18px 48px;
    gap: 8px;
    font-size: 16px;
  }
  
  .favorite-btn--large .favorite-btn__icon {
    display: none;
  }
  
  .favorite-btn--large .favorite-btn__text {
    display: block;
    font-size: 16px;
    font-weight: 600;
  }
  
  .header__action svg {
    width: 24px;
    height: 24px;
  }
  
  /* Show count in badge style */
  .header__action span {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    color: var(--spec-black);
    border-radius: 9px;
    line-height: 18px;
    text-align: center;
    margin-left: 4px;
  }
  
  /* Catalog Menu - mobile optimized */
  .catalog-menu__content {
    flex-direction: column;
    gap: 20px;
  }
  
  .catalog-menu__main {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--spec-gray-bg);
    padding-right: 0;
    padding-bottom: 16px;
  }
  
  .catalog-menu__link {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .catalog-menu__icon {
    width: 20px;
    height: 20px;
  }
  
  .catalog-menu__sub-list {
    column-count: 2;
    column-gap: 16px;
  }
  
  /* Hero slider */
  .hero-slider {
    height: 300px;
  }
  
  .hero-slider__content {
    height: 300px;
    padding: 0 16px;
  }
  
  .hero-slider__title {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .hero-slider__nav {
    width: 40px;
    height: 40px;
  }
  
  .hero-slider__nav--prev {
    left: 12px;
  }
  
  .hero-slider__nav--next {
    right: 12px;
  }
  
  /* Featured products - 2 columns */
  .featured-products {
    padding: 40px 0;
  }
  
  .featured-products__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  /* Catalog layout - single column with collapsible filters */
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .catalog-sidebar {
    position: static;
    padding: 20px;
  }
  
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  
  .catalog-sort {
    width: 100%;
    justify-content: space-between;
  }
  
  .catalog-sort select {
    flex: 1;
  }
  
  /* Products grid - 2 columns */
  /* Page title */
  .page-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  
  /* Breadcrumbs */
  .breadcrumbs {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  /* Product detail */
  .product-detail {
    gap: 32px;
    margin-top: 24px;
  }
  
  .product-slider-container {
    flex-direction: column-reverse;
    gap: 12px;
  }
  
  .product-thumbnails-vertical {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  
  .product-thumbnail {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }
  
  .product-info-section h1 {
    font-size: 24px;
  }
  
  .product-price-large {
    font-size: 28px;
  }
  
  .quantity-selector {
    width: 100%;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .product-actions form {
    width: 100%;
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .product-actions .favorite-btn--large {
    width: 100%;
  }
  
  /* Cart/Basket */
  .basket-layout {
    gap: 24px;
  }
  
  .basket__item {
    padding: 16px;
  }
  
  .basket__item_img {
    width: 100px;
    margin-right: 16px;
  }
  
  .basket__no-image {
    width: 100px;
    height: 100px;
  }
  
  .basket__product_name {
    font-size: 15px;
  }
  
  .counter {
    margin-right: 12px;
  }
  
  .counter button {
    width: 32px;
    height: 32px;
  }
  
  .counter input {
    width: 45px;
    height: 32px;
  }
  
  /* Checkout */
  .checkout-layout {
    gap: 24px;
  }
  
  .checkout-form {
    padding: 24px;
  }
  
  .checkout-summary {
    padding: 24px;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 40px 0;
  }
  
  /* Categories grid */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .features-section {
    padding: 40px 0;
  }
  
  /* Brands grid */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* CTA section */
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: 28px;
  }
  
  .cta-section p {
    font-size: 16px;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .btn-large {
    padding: 14px 32px;
    font-size: 14px;
  }
  
  .favorite-btn--large {
    padding: 14px 32px;
    font-size: 14px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 20px 12px;
  }
  
  /* Header */
  .header__container {
    padding: 0 12px;
  }
  
  .header__row {
    gap: 8px;
    padding: 12px 0;
  }
  
  .header__logo .logo-image {
    height: 36px;
  }
  
  .header__catalog_btn {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .catalog-icon span {
    width: 16px;
  }
  
  .header__actions {
    gap: 4px;
  }
  
  .header__action {
    padding: 6px;
  }
  
  .header__action .header__action-text {
    display: none !important;
  }
  
  .header__action span {
    margin-left: 0;
  }
  
  /* Catalog menu - single column */
  .catalog-menu__container {
    padding: 12px 16px;
  }
  
  .catalog-menu__sub-list {
    column-count: 1;
  }
  
  /* Hero slider */
  .hero-slider {
    height: 280px;
  }
  
  .hero-slider__content {
    height: 280px;
    padding: 0 12px;
  }
  
  .hero-slider__title {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .hero-slider__btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* Скрываем кнопки навигации на мобилке */
  .hero-slider__nav {
    display: none;
  }
  
  .hero-slider__dots {
    bottom: 12px;
    gap: 4px;
  }
  
  .hero-slider__dot {
    width: 4px !important;
    height: 4px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
  }
  
  .hero-slider__dot--active {
    background: var(--spec-yellow) !important;
  }
  
  /* Section titles */
  .section-title {
    font-size: 20px;
  }
  
  .page-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  /* Featured products - 2 columns on mobile */
  .featured-products {
    padding: 32px 0;
  }
  
  .featured-products__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Products grid - 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Catalog toolbar */
  .catalog-toolbar {
    padding: 12px;
  }
  
  .catalog-count {
    font-size: 13px;
  }
  
  /* Catalog sidebar */
  .catalog-sidebar {
    padding: 16px;
  }
  
  .filter-section h3 {
    font-size: 13px;
  }
  
  .filter-checkbox {
    font-size: 13px;
  }
  
  .price-range {
    flex-direction: column;
    gap: 8px;
  }
  
  .price-input {
    width: 100%;
  }
  
  /* Product card adjustments */
  .cardblock__name {
    padding: 12px 12px 10px;
  }
  
  .cardblock__title {
    font-size: 13px;
  }
  
  .cardblock__bottom {
    padding: 0 12px 12px;
  }
  
  .cardblock__price {
    font-size: 16px;
  }
  
  .cardblock__favorite {
    width: 32px;
    height: 32px;
  }
  
  /* Product detail */
  .product-detail {
    gap: 24px;
    margin-top: 20px;
  }
  
  .product-thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .product-info-section h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .product-price-large {
    font-size: 24px;
  }
  
  .product-old-price {
    font-size: 16px;
  }
  
  .variant-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .quantity-btn {
    width: 38px;
    height: 38px;
  }
  
  .quantity-input {
    width: 50px;
    height: 38px;
    font-size: 14px;
  }
  
  /* Cart/Basket - mobile layout */
  .basket-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .basket-items {
    background: var(--spec-white) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px !important;
    order: 1;
  }
  
  .basket-summary {
    position: static !important;
    order: 2;
  }
  
  .basket-summary__block {
    padding: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Promo code mobile styles */
  .promo-code-section {
    padding: 12px 0;
  }
  
  .promo-code-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .promo-code-input-group .btn {
    width: 100%;
  }
  
  .promo-code-applied {
    padding: 10px 12px;
  }
  
  .promo-code-info {
    gap: 4px;
  }
  
  .promo-code-text {
    font-size: 13px;
  }
  
  .promo-code-discount {
    font-size: 12px;
  }
  
  .promo-code-remove {
    font-size: 20px;
  }
  
  .basket__item {
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  
  .basket__item > .d-flex.jcsb {
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
  
  .basket__item_img {
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .basket__item_img a {
    display: block !important;
  }
  
  .basket__item_img img {
    width: 100% !important;
    height: 80px !important;
    max-width: 100% !important;
    max-height: 80px !important;
    object-fit: contain !important;
  }
  
  .basket__no-image {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    margin: 0 !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .basket__item_right {
    flex: 1 !important;
    width: auto !important;
  }
  
  .basket__articul {
    font-size: 11px !important;
    color: #888 !important;
    margin-bottom: 4px !important;
  }
  
  .basket__product_name {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }
  
  .basket__product_name a {
    color: var(--spec-dark) !important;
  }
  
  .basket__status {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  
  .basket__item_price_block {
    width: 100% !important;
    margin-top: 8px !important;
  }
  
  .basket__item_price_block > div:first-child {
    width: 100% !important;
  }
  
  .basket__item_price_block .d-flex.aic {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
  }
  
  .gray_standart_text {
    display: none !important;
  }
  
  .counter {
    width: auto !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .counter button {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  
  .counter input {
    width: 45px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  
  .price_for_one {
    display: none !important;
  }
  
  .basket__item_price_block .basket__prices {
    text-align: right !important;
    margin-top: 0 !important;
    flex: 1 !important;
  }
  
  .basket__new_price {
    font-size: 16px !important;
    font-weight: 700 !important;
  }
  
  .basket__old_price {
    font-size: 13px !important;
  }
  
  .basket__item .d-flex.jcfe {
    justify-content: flex-end !important;
    margin-top: 8px !important;
  }
  
  .btn_delete_item {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  
  .divider {
    margin: 0 !important;
    height: 1px !important;
    background: #e5e5e5 !important;
  }
  
  /* Basket summary */
  .basket-summary__block {
    padding: 20px;
  }
  
  .basket-summary__title {
    font-size: 16px;
  }
  
  .basket-summary__total-value {
    font-size: 20px;
  }
  
  /* Checkout */
  .checkout-form {
    padding: 20px;
  }
  
  .checkout-form h2 {
    font-size: 18px;
  }
  
  .checkout-summary {
    padding: 20px;
  }
  
  .checkout-item {
    gap: 8px;
  }
  
  .checkout-item__image {
    width: 50px;
    height: 50px;
  }
  
  .checkout-item__name {
    font-size: 13px;
  }
  
  .checkout-total {
    font-size: 18px;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }
  
  .footer__title {
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  .footer__links li {
    margin-bottom: 10px;
  }
  
  .footer__bottom {
    padding: 20px 0;
    font-size: 13px;
  }
  
  /* Categories grid */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-showcase-card {
    height: 150px;
  }
  
  .category-showcase-card__overlay h3 {
    font-size: 18px;
  }
  
  /* Brands grid - 2 columns on mobile */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .brand-card {
    padding: 20px;
  }
  
  .brand-card__name-large {
    font-size: 20px;
  }
  
  /* Content pages */
  .content-block h2 {
    font-size: 20px;
  }
  
  .content-block p {
    font-size: 14px;
  }
  
  /* Empty states */
  .empty-cart, .empty-favorites {
    padding: 60px 16px;
  }
  
  .empty-cart svg, .empty-favorites svg {
    width: 48px;
    height: 48px;
  }
  
  .empty-cart h2, .empty-favorites h2 {
    font-size: 20px;
  }
  
  /* Scroll to top button */
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
  
  /* Buttons */
  .btn {
    padding: 11px 20px;
    font-size: 12px;
  }
  
  .btn-large {
    padding: 13px 28px;
    font-size: 13px;
  }
  
  /* Favorite button on small mobile */
  .favorite-btn--large {
    padding: 13px 28px;
    font-size: 13px;
  }
  
  .favorite-btn--large .favorite-btn__text {
    font-size: 13px;
  }
  
  /* Pagination */
  .pagination {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .pagination__link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Extra small mobile (max-width: 360px) */
@media (max-width: 360px) {
  .header__catalog_btn span {
    display: none;
  }
  
  .hero-slider__title {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .page-title {
    font-size: 20px;
  }
}

/* ==========================================
   OPTIMISTIC UI ANIMATIONS
   ========================================== */

/* Heart pulse animation when adding to favorites */
@keyframes heartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.favorite-adding,
.cardblock__favorite.favorite-adding {
  animation: heartPulse 0.4s ease-out;
}

.favorite-adding svg,
.cardblock__favorite.favorite-adding svg {
  color: #e53935 !important;
}

/* Fade out animation when removing from favorites */
@keyframes favoriteRemove {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.favorite-removing {
  animation: favoriteRemove 0.3s ease-out;
}

/* Counter update pulse */
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); background: var(--spec-yellow); }
  100% { transform: scale(1); }
}

.count-updated {
  animation: countPulse 0.3s ease-out;
  display: inline-block;
}

/* Cart button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cart added success animation */
@keyframes cartAdded {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); background: var(--spec-yellow); }
  100% { transform: scale(1); }
}

.cart-added {
  animation: cartAdded 0.3s ease-out;
}

/* Smooth transitions for cart/favorites items */
.basket-item,
.cart-item,
.favorites-item,
.cardblock {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Button hover improvements */
.cardblock__btn--add {
  transition: all 0.15s ease;
}

.cardblock__btn--add:active {
  transform: scale(0.95);
}

.cardblock__favorite,
.favorite-btn {
  transition: all 0.15s ease;
}

.cardblock__favorite:active,
.favorite-btn:active {
  transform: scale(0.85);
}

/* Instant feedback colors */
.cardblock__favorite--active,
.favorite-btn--active {
  color: #e53935 !important;
}

.cardblock__favorite--active:hover,
.favorite-btn--active:hover {
  color: #c62828 !important;
  background: #ffebee;
}

/* Brands filter expand/collapse */
.brand-hidden {
    display: none;
}

.btn-expand-brands {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-expand-brands:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.btn-expand-brands:active {
    background: #eee;
}

/* ==========================================
   MOBILE ENHANCEMENTS
   ========================================== */

/* Better touch targets for mobile */
@media (max-width: 768px) {
  /* Minimum touch target size 44x44px */
  button, .btn, a.btn, .header__action, .favorite-btn, .cardblock__favorite {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Increase input touch targets */
  input, select, textarea {
    min-height: 44px;
  }
  
  /* Prevent double-tap zoom on buttons */
  button, .btn, a {
    touch-action: manipulation;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Better scrolling for catalog menu */
  .catalog-menu__content {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Hide catalog menu sub on mobile by default */
  .catalog-menu__sub {
    display: none !important;
  }
  
  /* Better overflow handling */
  body.menu-open,
  body.filters-open {
    overflow: hidden;
  }
  
  /* Prevent background scroll when menus are open */
  body.menu-open .header,
  body.filters-open .header {
    padding-right: 0;
  }
}

/* Improve form controls on mobile */
@media (max-width: 480px) {
  /* Larger form inputs */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  .header__search_input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better select styling on mobile */
  select {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  /* Sticky elements optimization */
  .header {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* ==========================================
   LOADING STATES & SKELETON SCREENS
   ========================================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: 60%;
}

.skeleton-card {
  background: var(--spec-white);
  border-radius: var(--radius-md);
  padding: 16px;
}

.skeleton-image {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--spec-yellow);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--spec-yellow);
  color: var(--spec-black);
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 600;
}

.skip-to-main:focus {
  top: 0;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  /* Hide non-essential elements */
  .header,
  .footer,
  .scroll-to-top,
  .catalog-sidebar,
  .catalog-toolbar,
  .product-actions,
  .basket-summary,
  .notification,
  button:not(.no-print) {
    display: none !important;
  }
  
  /* Reset colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Show links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  /* Page breaks */
  .product-detail,
  .basket__item,
  .checkout-item {
    page-break-inside: avoid;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* ==========================================
   PROGRESSIVE ENHANCEMENT
   ========================================== */

/* No-JS fallback */
.no-js .catalog-menu {
  position: static;
  opacity: 1;
  visibility: visible;
}

.no-js .hero-slider__nav,
.no-js .hero-slider__dots {
  display: none;
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
  :root {
    --spec-yellow: #ffdd00;
    --spec-gray-bg: #ffffff;
  }
  
  .btn,
  .header__catalog_btn,
  .cardblock__btn--add {
    border: 2px solid var(--spec-black);
  }
  
  .cardblock,
  .basket__item,
  .catalog-sidebar {
    border: 2px solid var(--spec-black);
  }
}

/* ==========================================
   DARK MODE SUPPORT (Future Enhancement)
   ========================================== */

@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
  :root {
    --spec-gray-bg: #1a1a1a;
    --spec-white: #2d2d2d;
    --spec-dark: #ffffff;
    --spec-dark-text: #e0e0e0;
  }
  
  body {
    background: var(--spec-gray-bg);
    color: var(--spec-dark);
  }
  
  .header {
    background: var(--spec-white);
    border-bottom-color: #444;
  }
  */
}

/* ==========================================
   LANDSCAPE ORIENTATION OPTIMIZATIONS
   ========================================== */

@media (max-width: 768px) and (orientation: landscape) {
  .hero-slider {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero-slider__content {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero-slider__title {
    font-size: 24px;
  }
  
  .catalog-menu__content {
    max-height: 70vh;
  }
}

/* ==========================================
   UTILITY CLASSES FOR RESPONSIVE
   ========================================== */

/* Display utilities */
.d-mobile-none { display: none; }
.d-tablet-none { display: initial; }
.d-desktop-none { display: initial; }

@media (min-width: 481px) {
  .d-mobile-none { display: initial; }
  .d-tablet-none { display: none; }
}

@media (min-width: 769px) {
  .d-tablet-none { display: initial; }
  .d-desktop-none { display: none; }
}

/* Text alignment responsive */
.text-center-mobile { text-align: center; }

@media (min-width: 769px) {
  .text-center-mobile { text-align: left; }
}

/* Spacing utilities for mobile */
@media (max-width: 480px) {
  .mb-mobile-lg { margin-bottom: 24px; }
  .mb-mobile-md { margin-bottom: 16px; }
  .mb-mobile-sm { margin-bottom: 8px; }
  
  .mt-mobile-lg { margin-top: 24px; }
  .mt-mobile-md { margin-top: 16px; }
  .mt-mobile-sm { margin-top: 8px; }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--spec-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--spec-yellow);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.cookie-consent__icon {
  width: 48px;
  height: 48px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-consent__icon svg {
  width: 28px;
  height: 28px;
  color: var(--spec-black);
}

.cookie-consent__text {
  line-height: 1.5;
}

.cookie-consent__text p {
  margin: 0 0 8px 0;
}

.cookie-consent__text p:last-child {
  margin-bottom: 0;
}

.cookie-consent__text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--spec-dark);
}

.cookie-consent__text a {
  color: var(--spec-dark);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent__text a:hover {
  color: var(--spec-yellow-dark);
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__actions .btn {
  white-space: nowrap;
  min-width: 120px;
}

.cookie-settings-btn {
  background: transparent;
  border: 2px solid var(--spec-gray);
  color: var(--spec-dark);
}

.cookie-settings-btn:hover {
  background: var(--spec-gray-bg);
  border-color: var(--spec-dark);
}

/* Cookie Consent - Responsive */
@media (max-width: 768px) {
  .cookie-consent__content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  
  .cookie-consent__icon {
    display: none;
  }
  
  .cookie-consent__text {
    text-align: left;
  }
  
  .cookie-consent__text strong {
    font-size: 15px;
  }
  
  .cookie-consent__text p {
    font-size: 14px;
  }
  
  .cookie-consent__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-consent__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent__content {
    padding: 16px 12px;
  }
  
  .cookie-consent__text strong {
    font-size: 14px;
  }
  
  .cookie-consent__text p {
    font-size: 13px;
  }
}

/* ==========================================
   CONTENT PAGES ENHANCEMENTS
   ========================================== */

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.mission-block {
  background: var(--spec-gray-bg);
  padding: 40px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--spec-yellow);
}

.mission-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.mission-icon {
  width: 64px;
  height: 64px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-icon svg {
  width: 32px;
  height: 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.value-card {
  background: var(--spec-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--spec-yellow);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--spec-dark);
}

.timeline {
  position: relative;
  padding-left: 120px;
  margin-top: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--spec-yellow);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -120px;
  top: 0;
  width: 100px;
  height: 40px;
  background: var(--spec-yellow);
  color: var(--spec-black);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(255, 197, 2, 0.3);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 12px;
  width: 20px;
  height: 20px;
  background: var(--spec-white);
  border: 4px solid var(--spec-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--spec-gray-bg);
  z-index: 1;
}

.timeline-content {
  background: var(--spec-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--spec-yellow);
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--spec-dark);
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.team-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.team-feature {
  background: var(--spec-gray-bg);
  padding: 24px;
  border-radius: var(--radius-md);
}

.team-feature h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--spec-dark);
}

/* Contacts page */
.contact-card {
  background: var(--spec-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #eee;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--spec-yellow);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--spec-black);
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--spec-dark);
}

.contact-value {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-value a {
  color: var(--spec-dark);
}

.contact-value a:hover {
  color: var(--spec-yellow-dark);
}

.contact-note {
  font-size: 14px;
  color: #666;
}

.contact-messengers,
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.messenger-link,
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--spec-gray-bg);
  border-radius: var(--radius-md);
  color: var(--spec-dark);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.messenger-link:hover,
.social-link:hover {
  background: var(--spec-yellow);
  color: var(--spec-black);
}

.messenger-link svg,
.social-link svg {
  width: 20px;
  height: 20px;
}

.company-details {
  background: var(--spec-gray-bg);
}

.details-list {
  display: grid;
  gap: 12px;
}

.details-list dt {
  font-weight: 600;
  color: var(--spec-dark);
  font-size: 14px;
}

.details-list dd {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
}

.form-description {
  color: #666;
  margin-bottom: 24px;
}

.map-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.map-container {
  margin: 24px 0;
}

.map-note {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-top: 16px;
}

/* Home page sections */
.about-section {
  padding: 80px 0;
  background: var(--spec-gray-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.about-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--spec-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-text .btn {
  margin-top: 16px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.advantages-section {
  padding: 80px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.advantage-card {
  text-align: center;
  padding: 32px 24px;
}

.advantage-icon {
  width: 64px;
  height: 64px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
  color: var(--spec-black);
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--spec-dark);
}

.advantage-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.cta-block {
  background: var(--spec-gray-bg);
  padding: 48px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid var(--spec-yellow);
}

.cta-block h2 {
  font-family: var(--military-font);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--spec-dark);
}

.cta-block p {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* Legal pages */
.legal-intro {
  background: var(--spec-gray-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border-left: 4px solid var(--spec-yellow);
}

.legal-footer {
  background: var(--spec-gray-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 40px;
  border-top: 3px solid var(--spec-yellow);
}

.text-muted {
  color: #999;
  font-size: 14px;
}

/* Form enhancements */
.required {
  color: #e53e3e;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-text {
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--spec-dark);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-text a:hover {
  color: var(--spec-yellow-dark);
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: start;
  gap: 12px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive for content pages */
@media (max-width: 1024px) {
  .about-content,
  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-section,
  .advantages-section {
    padding: 60px 0;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .team-features {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 0;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-year {
    position: static;
    width: auto;
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 16px;
    height: auto;
  }
  
  .timeline-item::before {
    left: 10px;
    top: 20px;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    padding-left: 0;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .timeline-year {
    position: static;
    margin-bottom: 16px;
    width: auto;
  }
  
  .mission-content {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* ==========================================
   404 ERROR PAGE
   ========================================== */

.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* Error Illustration */
.error-illustration {
  position: relative;
  margin-bottom: 40px;
}

.error-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 120px;
  font-weight: 900;
  font-family: var(--military-font);
  color: var(--spec-dark);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.error-digit {
  position: relative;
  animation: glitch 3s infinite;
}

.error-icon {
  width: 120px;
  height: 120px;
  background: var(--spec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(255, 197, 2, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.error-icon svg {
  width: 60px;
  height: 60px;
  color: var(--spec-black);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}

.error-stripes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.error-stripes span {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--spec-yellow);
  transform: skewX(-20deg);
}

.error-stripes span:nth-child(2) {
  background: var(--spec-dark);
}

/* Error Message */
.error-message {
  padding: 0 20px;
}

.error-title {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--military-font);
  color: var(--spec-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 16px;
  font-weight: 500;
}

.error-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px;
}

.error-code {
  display: inline-block;
  background: var(--spec-dark);
  color: var(--spec-yellow);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: monospace;
  margin-bottom: 32px;
}

/* Error Actions */
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.error-actions .btn svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--spec-gray);
  color: var(--spec-dark);
}

.btn-secondary:hover {
  background: var(--spec-gray);
  border-color: var(--spec-gray);
  color: var(--spec-white);
}

/* Quick Links */
.error-links {
  text-align: center;
  margin-bottom: 60px;
}

.error-links h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--spec-dark);
}

.error-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.error-link-card {
  background: var(--spec-white);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.error-link-card:hover {
  border-color: var(--spec-yellow);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.error-link-card svg {
  width: 32px;
  height: 32px;
  color: var(--spec-yellow-dark);
}

.error-link-card:hover svg {
  color: var(--spec-yellow);
}

.error-link-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--spec-dark);
}

/* Search */
.error-search {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.error-search h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--spec-dark);
}

.error-search-form {
  display: flex;
  gap: 12px;
  background: var(--spec-white);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all 0.3s ease;
}

.error-search-input:focus {
  outline: none;
  border-color: var(--spec-yellow);
  background: var(--spec-gray-bg);
}

.error-search-btn {
  padding: 14px 32px;
  background: var(--spec-yellow);
  color: var(--spec-black);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--military-font);
  text-transform: uppercase;
}

.error-search-btn:hover {
  background: var(--spec-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 197, 2, 0.4);
}

.error-search-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive for 404 page */
@media (max-width: 1024px) {
  .error-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .error-page {
    padding: 40px 0;
  }
  
  .error-number {
    font-size: 80px;
    gap: 12px;
  }
  
  .error-icon {
    width: 80px;
    height: 80px;
  }
  
  .error-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .error-title {
    font-size: 28px;
  }
  
  .error-subtitle {
    font-size: 18px;
  }
  
  .error-description {
    font-size: 14px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .error-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .error-search-form {
    flex-direction: column;
  }
  
  .error-search-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .error-number {
    font-size: 60px;
    gap: 8px;
  }
  
  .error-icon {
    width: 60px;
    height: 60px;
  }
  
  .error-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-subtitle {
    font-size: 16px;
  }
  
  .error-links h2,
  .error-search h2 {
    font-size: 20px;
  }
  
  .error-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .error-link-card {
    padding: 20px 12px;
  }
  
  .error-link-card svg {
    width: 28px;
    height: 28px;
  }
  
  .error-link-card span {
    font-size: 13px;
  }
  
  /* MOBILE OVERRIDES - MUST BE LAST */
  .header__action .header__action-text {
    display: none !important;
  }
  
  .basket-layout {
    grid-template-columns: 1fr !important;
  }
  
  .basket-items {
    background: var(--spec-white) !important;
    padding: 16px !important;
  }
  
  .basket-summary {
    position: static !important;
  }
  
  .basket__item > .d-flex.jcsb {
    flex-direction: row !important;
  }
  
  .basket__item_img {
    width: 80px !important;
    max-width: 80px !important;
  }
  
  .basket__item_img img {
    height: 80px !important;
  }
  
  .basket__no-image {
    width: 80px !important;
    height: 80px !important;
  }
  
  .counter button {
    width: 32px !important;
    height: 32px !important;
  }
  
  .counter input {
    width: 45px !important;
    height: 32px !important;
  }
}
