/* Cart Page Layout */
.cart-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}
.cart-title {
  text-align: center;
  font-family: 'Montagu Slab', serif;
  font-size: 3rem;
  margin-bottom: 32px;
  font-weight: 700;
}
.cart-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
}
.cart-items {
  flex: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 24px 24px 8px 24px;
}
.cart-items-header {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  font-weight: 600;
  font-size: 1.1rem;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.cart-item {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f2f2f2;
  padding: 18px 0;
  font-size: 1rem;
  position: relative;
}
.cart-product-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.cart-product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  cursor: pointer;
}
.cart-product-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  cursor: pointer;
}
.cart-product-name {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.cart-product-category {
  color: #888;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.cart-product-meta {
  display: none;
}
.cart-product-price,
.cart-product-total {
  font-weight: 600;
  color: #222;
  font-size: 1.08rem;
}
.cart-product-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #888;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 32px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  border: none;
  background: none;
  color: #444;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: #f5f5f5;
  color: #f58220;
}
.qty-input {
  width: 32px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: none;
  color: #222;
  padding: 0;
}
.qty-btn:first-child {
  border-right: 1px solid #eee;
}
.qty-btn:last-child {
  border-left: 1px solid #eee;
}
.cart-remove {
  background: none;
  border: none;
  color: #c00;
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: 8px;
  transition: color 0.15s;
}
.cart-remove:hover {
  color: #ff4d4d;
}

/* Order Summary */
.cart-summary {
  flex: 1;
  min-width: 300px;
  max-width: 370px;
}
.summary-box {
  background: #eeeeee;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.summary-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.08rem;
 
}
.summary-note {
  color: black;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0px 0 18px 0;
}
.summary-subtotal, .summary-row span{
  font-weight: 500;
}
/* Add dividers between summary sections */
.summary-box h2, .summary-note, .summary-total-row {
  position: relative;
}
.summary-box h2::after, .summary-note::after {
  content: "";
  display: block;
  height: 1px;
  background: black;
  width: 100%;
  margin-top: 10px;
}
.checkout-btn {
  width: 100%;
  background: #FED61D;
  color: #222;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.checkout-btn:hover {
  background: #000;
  color: #FED61D;
}
.summary-coupon {
  display: flex;
  gap: 8px;
}
.summary-coupon input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.coupon-btn {
  background: #f58220;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.coupon-btn:hover {
  background: #fed61d;
  color: #222;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .cart-content {
    flex-direction: column;
    gap: 24px;
  }
  .cart-items {
    width: 100%;
    max-width: 100%;
  }
  .cart-summary {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .summary-box {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
  }
}
@media (max-width: 660px) {
  .cart-items-header {
    display: none;
  }
  .cart-item {
    position: relative;
  }
  .cart-remove {
    position: absolute;
    top: 8px;
    right: 12px;
    margin: 0;
    z-index: 2;
  }
  .cart-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .cart-product-info {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .cart-product-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    background: #fafafa;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  }
  .cart-product-details {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .cart-product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .cart-product-category {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 2px;
  }
  .cart-product-price,
  .cart-product-total {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .cart-product-qty {
    justify-content: center;
    margin: 8px 0;
  }
  .qty-control {
    margin: 0 auto;
  }
  .cart-product-price::before {
    content: "Price: ";
    color: black;
    font-weight: 700;
    margin-right: 2px;
    font-size: 0.97em;
  }
  .cart-product-total::before {
    content: "Total: ";
    color: black;
    font-weight: 700;
    margin-right: 2px;
    font-size: 0.97em;
  }
}

  
