/* ===== СТРАНИЦА КОРЗИНЫ ===== */

.cart-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  min-height: 60vh;
}

/* Пустая корзина */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 400px;
}

.cart-empty-state h1 {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}

.cart-empty-state p {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 16px;
  color: #666;
  margin: 0 0 32px;
}

.cart-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #a06d5c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.cart-back-btn:hover {
  background: #8a5d4d;
}

/* Корзина с товарами */
.cart-content h1 {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 32px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 60px;
}

/* Список товаров */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-color {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #a06d5c;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item-quantity .qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-item-quantity .qty-btn:hover {
  background: #f5f5f5;
}

.cart-item-quantity span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

.cart-item-price {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  min-width: 100px;
  text-align: right;
}

/* Детали заказа */
.cart-summary {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h3 {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 14px;
  color: #666;
}

.cart-summary-row span:last-child {
  font-weight: 600;
  color: #111;
}

.cart-summary-note {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 12px;
  color: #999;
  margin: 16px 0;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  line-height: 1.4;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-family: "Manrope", Helvetica, sans-serif;
}

.cart-summary-total span:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.cart-summary-total span:last-child {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  background: #a06d5c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-checkout-btn:hover {
  background: #8a5d4d;
}

/* Хит товары */
.cart-hit-products {
  margin-top: 60px;
}

.cart-hit-products h2 {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cart-page {
    padding: 24px 16px 40px;
  }
  
  .cart-empty-state {
    padding: 60px 16px;
    min-height: 300px;
  }
  
  .cart-empty-state h1 {
    font-size: 26px;
  }
  
  .cart-content h1 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cart-summary {
    position: static;
    order: 1;
  }
  
  .cart-items-list {
    order: 0;
  }
  
  .cart-item-card {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  
  .cart-item-image {
    width: 70px;
    height: 70px;
  }
  
  .cart-item-details {
    flex: 1 1 calc(100% - 90px);
  }
  
  .cart-item-quantity {
    order: 3;
  }
  
  .cart-item-price {
    order: 4;
    min-width: auto;
    font-size: 16px;
  }
  
  .cart-hit-products h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .cart-empty-state h1 {
    font-size: 22px;
  }
  
  .cart-back-btn {
    width: 100%;
    padding: 14px 24px;
  }
  
  .cart-item-name {
    font-size: 14px;
  }
  
  .cart-item-price {
    font-size: 15px;
  }
  
  .cart-summary-total span:last-child {
    font-size: 20px;
  }
}

