/* ==================
   CART PAGE STYLES
   ================== */

.page-header {
  background: linear-gradient(135deg, #0a1128, #1c2541);
  color: white;
  text-align: center;
  padding: 50px 20px 30px 20px;
}

.page-header h1 {
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 16px;
  color: #d4a373;
}

/* ==================
   CART SECTION
   ================== */

.cart-section {
  padding: 40px 0;
  background: #faf9fa;
  min-height: 500px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

/* ==================
   CART ITEMS
   ================== */

.cart-items {
  background: white;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.empty-state {
  text-align: center;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 28px;
  color: #0a1128;
  margin-bottom: 10px;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 25px;
  font-size: 16px;
}

/* ==================
   CART ITEM ROW
   ================== */

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 100px 80px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ededed;
  transition: background 0.3s;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: #f9f9f9;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3e8ff;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h4 {
  font-size: 16px;
  color: #0a1128;
  margin-bottom: 5px;
}

.cart-item-details p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 600;
  color: #d4a373;
  font-size: 16px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ededed;
  border-radius: 6px;
  overflow: hidden;
}

.cart-item-quantity button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f3e8ff;
  color: #0a1128;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.cart-item-quantity button:hover {
  background: #e5d4ff;
}

.cart-item-quantity input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  padding: 0;
}

.cart-item-quantity input::-webkit-outer-spin-button,
.cart-item-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-remove {
  width: 80px;
  text-align: right;
}

.remove-btn {
  background: none;
  border: none;
  color: #d3664c;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

.remove-btn:hover {
  color: #e63946;
}

/* ==================
   CART SUMMARY
   ================== */

.cart-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-card {
  background: white;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-card h3 {
  font-size: 20px;
  color: #0a1128;
  margin-bottom: 20px;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 12px;
}

.summary-row span:last-child {
  font-weight: 600;
  color: #0a1128;
}

.summary-row.discount span:last-child {
  color: #22c55e;
}

.summary-divider {
  height: 1px;
  background: #ededed;
  margin: 15px 0;
}

.summary-row.total {
  font-size: 18px;
  color: #0a1128;
  margin-bottom: 20px;
}

.summary-row.total span:last-child {
  font-weight: 700;
  color: #d4a373;
  font-size: 20px;
}

.coupon-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ededed;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.coupon-input:focus {
  outline: none;
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.coupon-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 15px;
}

.continue-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* ==================
   BUTTON STYLES
   ================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a373, #e8b4b8);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #0a1128;
  border: 2px solid #0a1128;
}

.btn-secondary:hover {
  background: #0a1128;
  color: white;
}

/* ==================
   RESPONSIVE
   ================== */

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  
  .cart-item-quantity {
    grid-column: 2;
  }
  
  .cart-item-remove {
    grid-column: 2;
    width: 100%;
    text-align: left;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .cart-items {
    padding: 15px;
  }
  
  .cart-item {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .cart-item-image {
    width: 50px;
    height: 50px;
  }
  
  .cart-item-details h4 {
    font-size: 14px;
  }
  
  .cart-item-details p {
    font-size: 12px;
  }
  
  .summary-card {
    padding: 15px;
  }
}
