/* --- БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
  --primary-color: #1e293b;
  /* Темно-синий/серый */
  --accent-color: #f97316;
  /* Оранжевый акцент */
  --bg-light: #f8fafc;
  /* Светлый фон */
  --text-dark: #0f172a;
  /* Темный текст */
  --text-light: #64748b;
  /* Серый текст */
  --white: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
/* --- ГЛАВНЫЙ ЭКРАН И ФИЛЬТР (HERO) --- */
.hero {
  background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1486006920555-c77dce18193b?auto=format&fit=crop&q=80&w=1200') no-repeat center center / cover;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.hero p {
  color: #cbd5e1;
  margin-bottom: 30px;
  font-size: 18px;
}
.filter-container {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
}
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}
.tab {
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
}
.tab.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: -12px;
}
.filter-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.filter-form select,
.filter-form input {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
  font-size: 15px;
  width: 100%;
}
.filter-btn {
  grid-column: span 4;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-btn:hover {
  background-color: #ea580c;
}
/* --- СЕКЦИИ СЕТОК (БРЕНДЫ И КАТЕГОРИИ) --- */
section {
  padding: 50px 0;
}
.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}
/* Популярные марки */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}
.brand-card {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}
.brand-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
/* Категории */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background-color: var(--white);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
}
.category-icon {
  font-size: 28px;
  background-color: #ffedd5;
  padding: 10px;
  border-radius: 6px;
}
.category-info h3 {
  font-size: 16px;
  margin-bottom: 2px;
}
.category-info p {
  font-size: 13px;
  color: var(--text-light);
}
/* --- АДАПТИВНОСТЬ (MEDIA QUERIES) --- */
@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
  .filter-form {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    grid-column: span 1;
  }
  .hero h1 {
    font-size: 28px;
  }
}
/* --- ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS) --- */
.breadcrumbs {
  padding: 15px 0;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumbs a:hover {
  color: var(--accent-color);
}
.breadcrumbs span {
  margin: 0 5px;
}
/* --- СТРУКТУРА КОРЗИНЫ --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  margin-bottom: 50px;
}
/* Предупреждение о резерве (UX триггер) */
.reservation-notice {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Список товаров */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cart-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 100px 1fr 120px 120px auto;
  align-items: center;
  gap: 20px;
}
.item-img {
  width: 100px;
  height: 80px;
  background-color: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--primary-color);
}
.item-details h3:hover {
  color: var(--accent-color);
}
.item-meta {
  font-size: 13px;
  color: var(--text-light);
}
.item-meta span {
  font-weight: 600;
  color: var(--text-dark);
}
.item-qty {
  font-size: 14px;
  color: var(--text-light);
  background-color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}
.item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}
.btn-delete {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  transition: color 0.2s;
}
.btn-delete:hover {
  color: var(--danger-color);
}
/* --- ПРАВАЯ КОЛОНКА: ИТОГО --- */
.summary-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: #334155;
}
.summary-line.total {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}
.btn-checkout {
  display: block;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover {
  background-color: var(--accent-hover);
}
.delivery-info-mini {
  background-color: var(--success-bg);
  color: var(--success-text);
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
}
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }
  .item-qty {
    grid-column: span 2;
    text-align: left;
    background: none;
    padding: 0;
  }
  .item-price {
    text-align: left;
    grid-column: 1 / span 2;
    font-size: 20px;
  }
  .btn-delete {
    position: absolute;
    right: 20px;
    margin-top: -40px;
  }
  .cart-item {
    position: relative;
  }
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
}
/* --- ПОДВАЛ (FOOTER) --- */
footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 50px 0 20px 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  border-bottom: 1px solid #334155;
  padding-bottom: 30px;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}
.footer-col ul flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}
/* --- ШАПКА САЙТА (HEADER) --- */
header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #334155;
  font-size: 14px;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  /* Включаем флексбокс */
  align-items: center;
  /* Выравниваем иконку и текст по центру по вертикали */
  gap: 10px;
  /* Расстояние между иконкой и текстом */
}
.logo span {
  color: var(--accent-color);
}
/* Стили для иконки внутри логотипа */
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  /* Запрещаем иконке сжиматься на мобильных */
  /*box-shadow:0 0 10px -4px white;*/
  background: radial-gradient(white, transparent 80%);
}
.search-bar {
  flex-grow: 1;
  max-width: 500px;
  display: flex;
}
.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.search-bar button {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.search-bar button:hover {
  background-color: #ea580c;
}
.header-actions {
  display: flex;
  gap: 20px;
}
.action-item {
  cursor: pointer;
  position: relative;
}
.img-viewer {
  background: red;
}
/* --- ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS) --- */
.breadcrumbs {
  padding: 15px 0;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumbs a:hover {
  color: var(--accent-color);
}
.breadcrumbs span {
  margin: 0 5px;
}
/* --- КАРТОЧКА ТОВАРA (ОСНОВНОЙ БЛОК) --- */
.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
/* Галерея изображений */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.main-image {
  width: 100%;
  height: 400px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.thumb {
  height: 80px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.thumb:hover,
.thumb.active {
  border-color: var(--accent-color);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Информация о товаре */
.product-info h1 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.meta-line {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.status-badge {
  color: var(--success-color);
  font-weight: 600;
}
.price-box {
  background-color: #f1f5f9;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
}
.price-current {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}
.price-currency {
  font-size: 18px;
  color: var(--text-light);
  font-weight: normal;
}
/* Кнопки действия */
.actions-btn-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}
.btn-cart {
  flex: 2;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.btn-cart:hover {
  background-color: var(--accent-hover);
}
.btn-one-click {
  flex: 1;
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid #cbd5e1;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-one-click:hover {
  border-color: var(--text-dark);
  background-color: #f8fafc;
}
/* Таблица характеристик */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.specs-table tr {
  border-bottom: 1px solid #e2e8f0;
}
.specs-table td {
  padding: 10px 0;
}
.specs-table td.label {
  color: var(--text-light);
  width: 45%;
}
.specs-table td.value {
  font-weight: 600;
}
/* --- БЛОК ДОПОЛНИТЕЛЬНОЙ ИНФОРМАЦИИ (ТАБЫ) --- */
.product-extra {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}
.tabs-header {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.tab-title {
  padding-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
}
.tab-title.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: -2px;
}
.tab-content h3 {
  margin-bottom: 15px;
  font-size: 18px;
}
.tab-content p {
  margin-bottom: 15px;
  color: #334155;
}
/* --- ПОДВАЛ (FOOTER) --- */
footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 50px 0 20px 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  border-bottom: 1px solid #334155;
  padding-bottom: 30px;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }
  .main-image {
    height: 280px;
  }
  .actions-btn-group {
    flex-direction: column;
  }
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
}
/* --- СТРУКТУРА КАТАЛОГА (ДВЕ КОЛОНКИ) --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 50px;
}
/* --- ЛЕВАЯ КОЛОНКА: ФИЛЬТРЫ --- */
.filter-sidebar {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  align-self: start;
}
.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-dark);
}
.filter-sidebar select,
.filter-sidebar input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
}
.price-inputs {
  display: flex;
  gap: 10px;
}
.price-inputs input {
  width: 50%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  cursor: pointer;
}
.checkbox-label input {
  cursor: pointer;
}
.submit-filter-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-filter-btn:hover {
  background-color: #334155;
}
.reset-filter-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
}
.reset-filter-link:hover {
  color: var(--accent-color);
}
/* --- ПРАВАЯ КОЛОНКА: ВЫДАЧА И СОРТИРОВКА --- */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Панель сортировки */
.toolbar {
  background-color: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.sort-select {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
}
/* Список товаров (Строчный дизайн деталей) */
.parts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.part-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  gap: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.part-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}
.part-img {
  width: 100%;
  height: 140px;
  background-color: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.part-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.part-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-color);
}
.part-details h3:hover {
  color: var(--accent-color);
}
.part-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 14px;
  color: #334155;
}
.part-meta-grid span {
  color: var(--text-light);
}
.part-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 10px;
}
.badge-success {
  background-color: #dcfce7;
  color: #16a34a;
}
.badge-warning {
  background-color: #fef3c7;
  color: #d97706;
}
/* Блок цены в карточке */
.part-price-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
}
.part-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}
.part-price span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: normal;
  display: block;
}
.btn-view {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  transition: background 0.2s;
}
.btn-view:hover {
  background-color: var(--accent-hover);
}
/* --- ПАГИНАЦИЯ (PAGINATION) --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.page-link {
  padding: 8px 14px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.page-link.active {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}
.page-link:hover:not(.active) {
  border-color: var(--text-dark);
}
/* --- ПОДВАЛ (FOOTER) --- */
footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 50px 0 20px 0;
  font-size: 15px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  border-bottom: 1px solid #334155;
  padding-bottom: 30px;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: relative;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .part-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .part-img {
    height: 180px;
  }
  .part-price-box {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
    gap: 15px;
  }
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
}