/* Modern, Sleek Cart Styles */
.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FAF8F5;
}

body {
  background: #FAF8F5;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8DFD4;
}

.cart-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #3A3032;
  margin: 0;
  letter-spacing: 0.02em;
}

.btn-ghost {
  color: #3A3032;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border: 1px solid #3A3032;
  border-radius: 2px;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  background: #3A3032;
  color: #FAF8F5;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-items {
  background: transparent;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #E8DFD4;
  align-items: start;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #F5F2ED;
  object-fit: cover;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-details h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #3A3032;
  margin: 0;
  letter-spacing: 0.01em;
}

.item-variant {
  font-size: 0.8125rem;
  color: #6B6B6B;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.item-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  border: 1px solid;
}

.item-status.in-stock {
  background: transparent;
  color: #059669;
  border-color: #059669;
}

.item-status.preorder {
  background: transparent;
  color: #D97706;
  border-color: #D97706;
}

.item-status.low-stock {
  background: transparent;
  color: #DC2626;
  border-color: #DC2626;
}

.item-status.out-of-stock {
  background: transparent;
  color: #DC2626;
  border-color: #DC2626;
}

.item-status.backorder {
  background: transparent;
  color: #D97706;
  border-color: #D97706;
}

.item-status.coming-soon {
  background: transparent;
  color: #7C3AED;
  border-color: #7C3AED;
}

.item-status.discontinued {
  background: transparent;
  color: #737373;
  border-color: #737373;
}

.item-price {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3A3032;
  margin-top: 6px;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #E8DFD4;
  border-radius: 2px;
  background: #FFFFFF;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  color: #3A3032;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  font-weight: 300;
}

.qty-btn:hover {
  background: #F5F2ED;
}

.qty-input {
  width: 40px;
  height: 28px;
  text-align: center;
  border: none;
  border-left: 1px solid #E8DFD4;
  border-right: 1px solid #E8DFD4;
  font-size: 0.8125rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #3A3032;
  background: #FFFFFF;
}

.qty-input:focus {
  outline: none;
  background: #F5F2ED;
}

.remove-btn {
  font-size: 0.75rem;
  color: #999999;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #DC2626;
}

.update-cart-btn {
  margin-top: 16px;
  text-align: right;
}

.update-cart-btn .btn-ghost {
  padding: 10px 28px;
  font-size: 0.75rem;
}

.cart-summary {
  background: #FFFFFF;
  border: 1px solid #E8DFD4;
  border-radius: 2px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: #3A3032;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.preorder-badge {
  background: #FFF9E6;
  border: 1px solid #FFC107;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8B6914;
  font-weight: 400;
}

.discount-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8DFD4;
}

.discount-form-wrapper {
  width: 100%;
}

.discount-applied {
  background: #F0F9FF;
  border: 1px solid #0EA5E9;
  border-radius: 2px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.discount-applied-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #075985;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.discount-remove-btn {
  background: transparent;
  border: none;
  color: #0EA5E9;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.discount-remove-btn:hover {
  color: #0284C7;
}

.discount-form {
  display: flex;
  gap: 8px;
}

.discount-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E8DFD4;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-family: 'Inter', sans-serif;
  color: #3A3032;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  background: #FFFFFF;
}

.discount-input:focus {
  outline: none;
  border-color: #B8956A;
}

.discount-input::placeholder {
  color: #9D8B7A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 400;
}

.discount-btn {
  padding: 10px 20px;
  background: #3A3032;
  color: #FFFFFF;
  border: none;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.discount-btn:hover {
  background: #2A2022;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #6B6B6B;
  font-size: 0.875rem;
  font-weight: 400;
}

.summary-row span:last-child {
  color: #3A3032;
  font-weight: 500;
}

.summary-row.discount {
  color: #059669;
}

.summary-row.discount span:last-child {
  color: #059669;
}

.summary-row.total {
  border-top: 1px solid #E8DFD4;
  margin-top: 12px;
  padding-top: 16px;
  font-size: 1.125rem;
  font-weight: 500;
  color: #3A3032;
}

.summary-row.total span:last-child {
  font-weight: 600;
}

.shipping-note {
  background: #FFF9E6;
  border: 1px solid #FFC107;
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 0.75rem;
  color: #8B6914;
  margin: 12px 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #3A3032;
  color: #FFFFFF;
  border: none;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2A2022;
}

.checkout-btn {
  width: 100%;
  padding: 14px 32px;
  margin-top: 20px;
}

.secure-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.6875rem;
  color: #999999;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.empty-cart {
  text-align: center;
  padding: 80px 40px;
  background: #FFFFFF;
  border: 1px solid #E8DFD4;
  border-radius: 2px;
}

.empty-cart-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-cart h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #3A3032;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.empty-cart p {
  font-size: 0.9375rem;
  color: #6B6B6B;
  margin-bottom: 28px;
  font-weight: 400;
}

.empty-cart .btn-primary {
  display: inline-block;
  padding: 12px 32px;
}

.alert {
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  border: 1px solid;
}

.alert-success {
  background: #F0FDF4;
  border-color: #22C55E;
  color: #166534;
}

.alert-error {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

@media (max-width: 1024px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 32px 20px 60px;
  }

  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cart-header h1 {
    font-size: 1.75rem;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }

  .item-image {
    width: 70px;
    height: 70px;
  }

  .item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .item-details h3 {
    font-size: 1rem;
  }

  .discount-form {
    flex-direction: column;
  }

  .discount-btn {
    width: 100%;
  }
}
