@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

.cart-page {
  background: #f3f3f3;
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* Header */
.cart-header {
  background: #ffffff;
  padding: 2rem 0;
  border-bottom: 1px solid #d5d9d9;
}

.cart-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f1111;
  margin: 0;
}

/* Content */
.cart-content {
  padding: 2rem 0 4rem;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

/* Cart Items */
.cart-items-section {
  background: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 0.4rem;
  padding: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e3e6e6;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 160px;
  background: #f7f7f7;
  border: 1px solid #e3e6e6;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1111;
  margin: 0;
  line-height: 1.4;
}

.cart-item-author {
  font-size: 0.9rem;
  color: #565959;
  margin: 0;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1111;
  margin: 0.5rem 0 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-quantity label {
  font-size: 0.9rem;
  color: #0f1111;
  font-weight: 600;
  margin: 0;
}

.cart-qty-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d5d9d9;
  border-radius: 0.4rem;
  background: #f0f2f2;
  font-size: 0.9rem;
  color: #0f1111;
  cursor: pointer;
}

.cart-qty-select:focus {
  outline: none;
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.cart-item-subtotal {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1111;
  text-align: right;
  min-width: 100px;
}

/* Cart Summary */
.cart-summary-section {
  position: sticky;
  top: 2rem;
}

.cart-summary {
  background: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 0.4rem;
  padding: 1.5rem;
}

.cart-summary h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f1111;
  margin-bottom: 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #0f1111;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #d5d9d9;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b12704;
}

.cart-checkout-btn {
  width: 100%;
  background: #f0c14b;
  color: #111111;
  border: 1px solid #a88734;
  border-radius: 0.4rem;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease;
}

.cart-checkout-btn:hover {
  background: #e3b73e;
  color: #111111;
}

.cart-continue-link {
  width: 100%;
  background: #ffffff;
  color: #0f1111;
  border: 1px solid #d5d9d9;
  border-radius: 0.4rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
}

.cart-continue-link:hover {
  background: #f7f7f7;
  color: #0f1111;
}

/* Empty Cart */
.cart-empty {
  background: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 0.4rem;
  padding: 4rem 2rem;
  text-align: center;
}

.cart-empty-content {
  max-width: 500px;
  margin: 0 auto;
}

.cart-empty i {
  font-size: 4rem;
  color: #d5d9d9;
  margin-bottom: 1.5rem;
}

.cart-empty h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f1111;
  margin-bottom: 0.75rem;
}

.cart-empty p {
  font-size: 1rem;
  color: #565959;
  margin-bottom: 2rem;
}

.cart-continue-btn {
  background: #f0c14b;
  color: #111111;
  border: 1px solid #a88734;
  border-radius: 0.4rem;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.cart-continue-btn:hover {
  background: #e3b73e;
  color: #111111;
}

/* Responsive */
@media (max-width: 991.98px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-summary-section {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .cart-header {
    padding: 1.5rem 0;
  }
  
  .cart-header h1 {
    font-size: 1.5rem;
  }
  
  .cart-content {
    padding: 1.5rem 0 3rem;
  }
  
  .cart-items-section {
    padding: 1rem;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  
  .cart-item-image {
    width: 80px;
    height: 110px;
  }
  
  .cart-item-quantity,
  .cart-item-subtotal {
    grid-column: 2;
  }
  
  .cart-item-quantity {
    margin-top: 0.5rem;
  }
  
  .cart-item-subtotal {
    text-align: left;
    margin-top: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .cart-header h1 {
    font-size: 1.25rem;
  }
  
  .cart-items-section,
  .cart-summary {
    padding: 0.75rem;
  }
  
  .cart-empty {
    padding: 3rem 1rem;
  }
  
  .cart-empty i {
    font-size: 3rem;
  }
  
  .cart-empty h2 {
    font-size: 1.25rem;
  }
}
