/*
 * Kent & Hudson Frontend - Cart Page Styles
 */

/* ========== Cart Main ========== */
.cart-main {
  padding: 40px 0 80px;
}

.cart-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-align: center;
}

.cart-subtitle {
  font-size: 14px;
  color: var(--style-muted);
  margin-bottom: 50px;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ========== Items ========== */
.cart-items {
  width: 100%;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--style-border);
  align-items: start;
}

.cart-item:first-child {
  border-top: 1px solid var(--style-border);
}

.cart-item-img {
  aspect-ratio: 3/4;
  background: #f5f5f5;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-brand {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--style-muted);
  margin-bottom: 6px;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.cart-item-name a { color: inherit; }
.cart-item-name a:hover { color: var(--style-muted); }

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--style-muted);
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--style-border);
}

.cart-qty button {
  width: 32px;
  height: 32px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
}

.cart-qty button:hover { background: #f5f5f5; }

.cart-qty input {
  width: 40px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-family: inherit;
  border-left: 1px solid var(--style-border);
  border-right: 1px solid var(--style-border);
  -moz-appearance: textfield;
}

.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--style-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: color 0.25s;
}

.cart-item-btn i { margin-right: 4px; }
.cart-item-btn:hover { color: var(--style-color); }

.cart-item-price {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-align: right;
}

.cart-actions-bottom {
  margin-top: 30px;
}

.cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--style-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.cart-continue:hover { color: var(--style-color); }

/* ========== Summary ========== */
.cart-summary {
  background: #fafafa;
  padding: 30px;
  align-self: start;
  position: sticky;
  top: 130px;
}

.cart-summary-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--style-border);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: #555;
}

.cart-summary-row span:last-child {
  font-weight: 500;
  color: #1a1a1a;
}

.cart-summary-promo {
  display: flex;
  margin: 20px 0;
  border: 1px solid var(--style-border);
}

.cart-promo-input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
  outline: none;
}

.cart-promo-btn {
  padding: 10px 18px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s;
}

.cart-promo-btn:hover { background: #333; }

.cart-summary-divider {
  height: 1px;
  background: var(--style-border);
  margin: 16px 0;
}

.cart-summary-total {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a !important;
}

.cart-summary-total span {
  color: #1a1a1a !important;
}

.cart-summary-total .cart-total {
  font-size: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.btn-cart-checkout {
  display: block;
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

.cart-trust {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--style-border);
  display: grid;
  gap: 10px;
}

.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--style-muted);
}

.cart-trust-item i {
  color: var(--style-color);
  font-size: 14px;
}

.cart-payments {
  margin-top: 24px;
  text-align: center;
}

.cart-payments p {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--style-muted);
  margin-bottom: 8px;
}

.cart-payment-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cart-payment-icons i {
  font-size: 24px;
  color: #555;
}

/* ========== Empty State ========== */
.cart-empty {
  padding: 100px 0;
  text-align: center;
}

.cart-empty i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.cart-empty h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.cart-empty p {
  font-size: 14px;
  color: var(--style-muted);
  margin-bottom: 30px;
}

/* ========== 响应式 ========== */
@media (min-width: 992px) {
  .cart-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
  }

  .cart-item {
    grid-template-columns: 140px 1fr auto;
    gap: 30px;
  }

  .cart-item-price {
    min-width: 130px;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .cart-title { font-size: 28px; }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
  .cart-item-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cart-summary { padding: 24px; }
}
