/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9f9f9;
  color: #222;
  line-height: 1.5;
}

/* ===== Header ===== */
.header {
  background: black;
  padding: 1rem;
  text-align: center;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
}
.logo-link {
  text-decoration: none;
}

/* ===== Layout ===== */
.cart-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
@media (max-width: 900px) {
  .cart-main {
    grid-template-columns: 1fr;
  }
}

/* ===== Cart Items ===== */
.cart-items {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.cart-items h2 {
  margin-bottom: 1rem;
}
.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 1rem;
}
.cart-item-details {
  flex: 1;
}
.cart-item-name {
  font-weight: 600;
}
.cart-item-price {
  font-size: 0.9rem;
  color: #666;
}
.cart-item-controls {
  margin-top: 0.5rem;
}
.qty-input {
  width: 60px;
  padding: 0.3rem;
  margin: 0 0.5rem;
}
.remove-btn {
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.remove-btn:hover {
  background: #d93636;
}
.cart-item-total {
  font-weight: 600;
  margin-left: 1rem;
}

/* ===== Order Summary ===== */
.cart-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.cart-summary h2 {
  margin-bottom: 1rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.summary-line.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 2px solid #eee;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
}

/* ===== Shipping Section ===== */
.shipping-wrapper {
  margin-top: 1rem;
}
.shipping-address-inputs label,
.shipping-field label {
  font-size: 0.85rem;
  font-weight: 600;
}
.shipping-address-inputs input,
.shipping-field select {
  width: 100%;
  padding: 0.5rem;
  margin: 0.3rem 0 0.8rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.shipping-field {
  margin-bottom: 1rem;
}

/* ===== Terms & Checkout ===== */
.terms-container {
  margin: 1rem 0;
  font-size: 0.85rem;
}
.terms-container a {
  color: #0077cc;
  text-decoration: underline;
}
.btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-black {
  background: black;
  color: white;
}
.btn-black:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.btn-black:hover:not(:disabled) {
  background: #333;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #bbb;
  margin-top: 3rem;
}
html, body {
  overflow-x: hidden;
}
