/* =========================
   CART PAGE
========================= */
.cart-main{
  padding: 100px 20px 60px;
}

.cart-page{
  max-width: 1100px;
  margin: 0 auto;
}

.cart-page h1{
  text-align: center;
  margin-bottom: 28px;
  font-size: 32px;
  letter-spacing: 2px;
}

.cart-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.cart-container{
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.cart-item{
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.cart-item-image{
  flex-shrink: 0;
}

.cart-item-image img{
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.cart-item-details{
  flex: 1;
  min-width: 0;
}

.cart-item-details h4{
  margin-bottom: 8px;
  font-size: 18px;
}

.cart-item-details p{
  margin-bottom: 10px;
  color: #d4af37;
  font-weight: bold;
}

.quantity-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-btn{
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.qty-btn:hover{
  background: #d4af37;
  color: #111;
}

.qty-count{
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

.remove-btn{
  border: none;
  background: crimson;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.remove-btn:hover{
  background: darkred;
}

.order-summary{
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.order-summary h3{
  margin-bottom: 12px;
}

.order-summary p{
  margin-bottom: 8px;
  color: #666;
}

.order-summary h2{
  color: #d4af37;
}

.cart-actions{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PREMIUM CHECKOUT OPTIONS */
.cart-actions{
  position: relative;
}

.checkout-btn{
  box-shadow: 0 10px 20px rgba(212,175,55,0.18);
}

.checkout-options{
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(145deg, #ffffff, #f7f7f7);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  animation: checkoutFade 0.28s ease;
}

.checkout-options.show{
  display: flex;
}

.checkout-option-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  color: #111;
  cursor: pointer;
  text-align: left;
  transition: 0.3s ease;
}

.checkout-option-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: rgba(212,175,55,0.45);
}

.option-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  background: #111;
  color: #fff;
}

.option-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.option-text strong{
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.option-text small{
  font-size: 12px;
  color: #666;
}

.shipping-fields{
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.shipping-fields input,
.shipping-fields textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}

.shipping-fields textarea{
  min-height: 90px;
  resize: vertical;
}

.whatsapp-option .option-icon{
  background: #25D366;
  color: #fff;
}

.paystack-option .option-icon{
  background: #0BA4DB;
  color: #fff;
}

.clear-btn{
  box-shadow: none;
}

@keyframes checkoutFade{
  from{
    opacity: 0;
    transform: translateY(-8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}


.checkout-btn,
.checkout-option-btn{
  
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.checkout-btn{
  background: #d4af37;
  color: #fff;
}

.checkout-btn:hover{
  background: #111;
}

.clear-btn{
  background: #eee;
  color: #111;
}

.clear-btn:hover{
  background: #ddd;
}

.checkout-options{
  display: none;
  flex-direction: column;
  gap: 10px;
}

.checkout-options.show{
  display: flex;
}

.checkout-option-btn{
  background: #111;
  color: #fff;
}

.checkout-option-btn:hover{
  background: #d4af37;
  color: #111;
}

.cart-note{
  margin-top: 18px;
  color: #777;
  font-size: 14px;
}

.empty{
  text-align: center;
  padding: 40px;
  color: #888;
}

@media (max-width: 992px){
  .cart-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .cart-main{
    padding: 100px 16px 50px;
  }

  .cart-item{
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-image img{
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .cart-item-details{
    width: 100%;
  }

  .remove-btn{
    width: 60%;
    margin-top: 10px;
  }

  .order-summary{
    padding: 16px;
  }

  .checkout-btn,
  .checkout-option-btn{
    font-size: 13px;
    padding: 11px 12px;
  }
}

@media (max-width: 480px){
  .cart-main{
    padding: 95px 12px 40px;
  }

  .cart-container,
  .order-summary{
    padding: 14px;
  }

  .cart-item{
    padding: 15px;
  }

  .checkout-btn,
  .checkout-option-btn{
    font-size: 12px;
    padding: 10px;
  }

  .remove-btn{
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px){
  .cart-actions{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .cart-actions .checkout-btn,
  .cart-actions .checkout-option-btn,
  .cart-actions #clearBtn{
    width: 85%;
    max-width: 260px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 8px;
    margin: 0 auto;
  }
}

@media (max-width: 480px){
  .cart-actions .checkout-btn,
  .cart-actions .checkout-option-btn,
  .cart-actions #clearBtn{
    width: 80%;
    max-width: 220px;
    font-size: 12px;
    padding: 9px 10px;
  }
}

@media (max-width: 768px){
  .checkout-options{
    padding: 12px;
    gap: 10px;
  }

  .checkout-option-btn{
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .option-icon{
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .option-text strong{
    font-size: 13px;
  }

  .option-text small{
    font-size: 11px;
  }
}

@media (max-width: 480px){
  .checkout-option-btn{
    width: 80%;
    max-width: 240px;
    margin: 0 auto;
  }

  .checkout-options{
    align-items: center;
  }
}