* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #111;
  min-height: 100vh;
}

.top-bar {
  background: linear-gradient(90deg, #131921 0%, #232f3e 100%);
  color: #fff;
  padding: 15px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar h1 {
  font-size: 24px;
  font-weight: 600;
}

.cart-page {
  max-width: 1200px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

/* Cart Items */
.cart-items {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cart-card {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 2px solid #f0f0f0;
  transition: transform 0.2s;
}

.cart-card:hover {
  transform: translateY(-2px);
}

.cart-card:last-child {
  border-bottom: none;
}

.product-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 10px;
}

.cart-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2d3748;
}

.cart-info p {
  font-size: 16px;
  font-weight: 700;
  color: #e53e3e;
  margin-bottom: 12px;
}

.cart-info .original-price {
  font-size: 14px;
  color: #718096;
  text-decoration: line-through;
  margin-right: 8px;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  padding: 6px 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.remove-btn {
  margin-left: 15px;
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.remove-btn:hover {
  background: #fff5f5;
}

/* Summary */
.cart-summary {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 30px;
}

.cart-summary h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #2d3748;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 16px;
  padding: 8px 0;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #e53e3e;
  border-top: 2px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 20px;
}

.btn-primary {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border-radius: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  width: 100%;
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.emi-text {
  margin-top: 20px;
  font-size: 14px;
  color: #38a169;
  text-align: center;
  font-weight: 600;
  padding: 10px;
  background: #f0fff4;
  border-radius: 8px;
}

/* Address & Payment */
#address-form,
#payment-method {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

#address-form h3,
#payment-method h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2d3748;
}

#address-form input {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-size: 15px;
  transition: border-color 0.2s;
}

#address-form input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.payment-option {
  background: #f8f9fa;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  border: 2px solid #e9ecef;
}

.payment-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.payment-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cart-card {
    grid-template-columns: 100px 1fr;
  }
  
  .cart-summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 12px 15px;
  }
  
  .top-bar h1 {
    font-size: 20px;
  }
  
  .cart-page {
    padding: 0 15px;
    margin: 15px auto;
  }
  
  .cart-items,
  .cart-summary {
    padding: 20px;
  }
  
  .cart-card {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }
  
  .product-img {
    height: 100px;
  }
}
/* Order Summary Styles */
.cart-summary {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 30px;
}

.cart-summary h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #2d3748;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-summary h2 i {
  color: #FFD700;
}

/* Summary Rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 16px;
  padding: 8px 0;
}

.summary-row.shipping {
  color: #38a169;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 15px;
}

.summary-row.charges {
  color: #666;
  font-size: 14px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #e53e3e;
  border-top: 2px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 10px;
}

/* Charges Note */
.charges-note {
  font-size: 12px;
  color: #666;
  margin: 5px 0 15px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #FFD700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.charges-note i {
  color: #FFD700;
}

/* Address Form */
#address-form input,
#address-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-size: 15px;
  transition: border-color 0.2s;
}

#address-form textarea {
  resize: vertical;
  min-height: 80px;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Payment Options */
.payment-option {
  background: #f8f9fa;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s;
}

.payment-option:hover {
  border-color: #FFD700;
  background: #fffdf6;
}

.payment-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.payment-details {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.payment-details i {
  font-size: 24px;
  color: #666;
  width: 30px;
}

.payment-details strong {
  display: block;
  font-size: 16px;
  color: #2d3748;
}

.payment-details small {
  font-size: 13px;
  color: #666;
}

.charges-badge {
  background: #fff3cd;
  color: #856404;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: auto;
  font-weight: 600;
}

/* Payment Summary in Payment Section */
.payment-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.payment-summary h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2d3748;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
}

.payment-summary-row.total {
  font-weight: 700;
  color: #e53e3e;
  font-size: 16px;
  border-top: 1px solid #dee2e6;
  padding-top: 10px;
  margin-top: 10px;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border-radius: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-secondary {
  width: 100%;
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Offers Section */
.offers-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.emi-text {
  color: #38a169;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  background: #f0fff4;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.emi-text i {
  color: #38a169;
}

.offers-text {
  font-size: 14px;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.offers-text a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.offers-text a:hover {
  text-decoration: underline;
}

#coupon-field {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

#coupon-field input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.btn-small {
  padding: 8px 15px;
  background: #FFD700;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Radio button styles */
.payment-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-summary {
    position: static;
  }
  
  .address-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cart-summary {
    padding: 20px;
  }
  
  .payment-details {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .charges-badge {
    margin-left: 0;
    margin-top: 5px;
  }
}