/* Минималистичный дизайн корзины в стиле проекта */
.cart-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  font-family: "Open Sans", sans-serif;
}

/* Заголовок корзины */
.cart-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.cart-logo img {
  height: 40px;
  width: auto;
}

.cart-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

/* Сообщения об ошибках */
.cart-messages {
  margin-bottom: 20px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Контент корзины */
.cart-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Секции товаров */
.cart-section {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin: 0;
  background: #f8f9fa;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  border-bottom: 1px solid #e5e5e5;
}

/* Список товаров */
.cart-items {
  padding: 0;
}

/* Мотоциклы - с изображениями */
.cart-item.moto-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 15px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

/* Запчасти - без изображений */
.cart-item.part-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 15px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background-color: #fafafa;
}

/* Изображение товара */
.item-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f9fa;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ec1827;
}

.part-placeholder {
  background: #666;
}

/* Детали товара */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
  font-family: "Open Sans", sans-serif;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
}

.color-name {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

.item-type {
  background: #ec1827;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: "Open Sans", sans-serif;
}

/* Управление количеством */
.item-quantity {
  display: flex;
  justify-content: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 3px;
  border: 1px solid #e5e5e5;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
  background: #ec1827;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(236, 24, 39, 0.3);
}

.quantity-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.quantity-value {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

/* Цена */
.item-price {
  text-align: right;
}

.price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ec1827;
  font-family: "Open Sans", sans-serif;
}

/* Действия */
.item-actions {
  display: flex;
  gap: 6px;
}

.btn-details {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ec1827;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: "Open Sans", sans-serif;
}

.btn-details:hover {
  background: #c1101c;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-details svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-1px);
}

.btn-remove svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Итого */
.cart-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e5e5e5;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-item.total {
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  margin-top: 4px;
}

.summary-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

.summary-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

.summary-item.total .summary-value {
  font-weight: 700;
  color: #ec1827;
}

/* Кнопки действий */
.cart-actions {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.btn-checkout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ec1827;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(236, 24, 39, 0.2);
  font-family: "Open Sans", sans-serif;
}

.btn-checkout:hover {
  background: #c1101c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 24, 39, 0.3);
  color: white;
  text-decoration: none;
}

.btn-checkout svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Пустая корзина */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-empty h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-family: "Open Sans", sans-serif;
}

.cart-empty p {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
  font-family: "Open Sans", sans-serif;
}

/* Контейнер для кнопок каталогов */
.empty-cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Общие стили для кнопок каталогов */
.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: "Open Sans", sans-serif;
}

.btn-catalog:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.btn-catalog svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Стили для кнопки каталога запчастей */
.btn-parts-catalog {
  background: #666;
}

.btn-parts-catalog:hover {
  background: #555;
}

/* Стили для кнопки каталога мотоциклов */
.btn-moto-catalog {
  background: #ec1827;
}

.btn-moto-catalog:hover {
  background: #c1101c;
  box-shadow: 0 4px 12px rgba(236, 24, 39, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
  .cart-container {
    padding: 15px;
  }
  
  .cart-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .cart-title {
    font-size: 1.5rem;
  }
  
  /* Мотоциклы на мобильных */
  .cart-item.moto-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }
  
  /* Запчасти на мобильных */
  .cart-item.part-item {
    gap: 12px;
    padding: 15px;
  }
  
  .item-image {
    width: 100%;
    height: 120px;
    justify-self: center;
  }
  
  .item-quantity {
    justify-self: center;
  }
  
  .item-price {
    text-align: center;
  }
  
  .item-actions {
    justify-content: center;
  }
  
  .cart-summary {
    padding: 15px;
  }
  
  .btn-checkout {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cart-container {
    padding: 10px;
  }
  
  .cart-title {
    font-size: 1.3rem;
  }
  
  .section-title {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .cart-item {
    padding: 12px;
  }
  
  .item-image {
    height: 100px;
  }
  
  .quantity-controls {
    gap: 4px;
  }
  
  .quantity-btn {
    width: 24px;
    height: 24px;
  }
  
  .quantity-value {
    min-width: 24px;
    font-size: 13px;
  }
  
  .price-value {
    font-size: 1rem;
  }
  
  .btn-details {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .btn-remove {
    width: 24px;
    height: 24px;
  }
  
  .cart-empty {
    padding: 40px 15px;
  }
  
  .empty-icon {
    width: 60px;
    height: 60px;
  }
  
  .cart-empty h2 {
    font-size: 1.3rem;
  }
  
  .cart-empty p {
    font-size: 13px;
  }
  
  /* Адаптивность для кнопок каталогов */
  .empty-cart-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-catalog {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }
}

  /* Стили для иконок */
  .section-icon {
    width: 18px;
    height: 18px;
  }
  
  .placeholder-icon {
    width: 32px;
    height: 32px;
    opacity: 0.8;
  }
  
  .empty-icon-img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }