/* ============================================================
   SHOPAALE CART REDESIGN (2026-10-04)
   Modern, clean shopping cart page.
   ============================================================ */

/* Page shell */
body.cart-page {
  background: #faf8fc;
  font-family: 'Poppins', 'Roboto', sans-serif;
}
.cart-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 120px;
}
.cart-page-title {
  font-size: 26px;
  font-weight: 700;
  color: #2d1b3d;
  margin: 8px 0 4px;
}
.cart-page-subtitle {
  font-size: 14px;
  color: #8a7a9a;
  margin-bottom: 20px;
}

/* Layout: items + summary */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

/* Cart item card */
.cart-item-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(110, 21, 151, 0.06);
  border: 1px solid #f0e8f5;
  transition: box-shadow 0.2s;
}
.cart-item-card:hover {
  box-shadow: 0 4px 20px rgba(110, 21, 151, 0.1);
}
.cart-item-img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
  background: #f5f0f8;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cart-item-brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9a8ab0;
}
.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #2d1b3d;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-meta {
  font-size: 12px;
  color: #8a7a9a;
  margin-bottom: 8px;
}
.cart-item-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: #2d1b3d;
}
.cart-item-mrp {
  font-size: 13px;
  color: #b0a0c0;
  text-decoration: line-through;
}
.cart-item-off {
  font-size: 12px;
  font-weight: 700;
  color: #0a9d4d;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e8ddf0;
  border-radius: 10px;
  overflow: hidden;
}
.qty-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: #faf6fd;
  color: #6e1597;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.qty-stepper button:hover {
  background: #f0e6f7;
}
.qty-stepper span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #2d1b3d;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #c0b0d0;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}
.cart-remove-btn:hover {
  color: #e04444;
  background: #fef0f0;
}

/* Summary card */
.cart-summary {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(110, 21, 151, 0.06);
  border: 1px solid #f0e8f5;
  position: sticky;
  top: 90px;
}
.cart-summary h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2d1b3d;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8f5;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #5a4a6a;
  margin-bottom: 10px;
}
.summary-row.discount {
  color: #0a9d4d;
  font-weight: 600;
}
.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: #2d1b3d;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed #e0d4ea;
}
.summary-savings {
  background: #eefbef;
  color: #0a9d4d;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
  text-align: center;
}

/* Gift card */
.gc-box {
  margin: 14px 0;
  padding: 14px;
  background: #faf6fd;
  border-radius: 12px;
  border: 1px dashed #d0b8e0;
}
.gc-box .gc-cart-row {
  padding: 0;
}
#giftCardMsgCart {
  margin: 8px 0 0;
}

/* Checkout button */
.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #6e1597, #9d2dc7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(110, 21, 150, 0.3);
}
.checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 21, 150, 0.4);
}
.continue-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #6e1597;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Trust badges */
.cart-trust {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0e8f5;
}
.cart-trust div {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #8a7a9a;
}
.cart-trust svg {
  width: 22px;
  height: 22px;
  color: #6e1597;
  margin-bottom: 4px;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0e8f5;
}
.cart-empty svg {
  width: 80px;
  height: 80px;
  color: #d0b8e0;
  margin-bottom: 16px;
}
.cart-empty h3 {
  font-size: 20px;
  color: #2d1b3d;
  margin-bottom: 8px;
}
.cart-empty p {
  color: #8a7a9a;
  margin-bottom: 20px;
}
.cart-empty .checkout-btn {
  width: auto;
  padding: 12px 32px;
  display: inline-flex;
}

/* Mobile */
@media (max-width: 820px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
    order: 2;
  }
  .cart-item-img {
    width: 90px;
    height: 110px;
  }
  .cart-page-wrap {
    padding: 16px 12px 140px;
  }
  /* Sticky bottom checkout bar */
  .cart-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
  }
  .cart-sticky-bar .total {
    font-size: 18px;
    font-weight: 700;
    color: #2d1b3d;
  }
  .cart-sticky-bar .checkout-btn {
    width: auto;
    margin: 0;
    padding: 12px 28px;
  }
}
