/* ===========================================
   CART PAGE STYLES
   =========================================== */

/* ---- Progress Steps ---- */
.cart-steps {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 14px 0;
}
.cart-steps-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 0;
}
.cart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #bbb;
  font-family: var(--font-heading);
  background: #fff;
  transition: all .2s;
}
.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #bbb;
  font-family: var(--font-heading);
}
.cart-step.active .step-num {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.cart-step.active .step-label { color: var(--black); }
.cart-step.done .step-num {
  background: #2a9d4f;
  border-color: #2a9d4f;
  color: #fff;
}
.cart-step-line {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
  margin: 0 8px;
  margin-bottom: 14px;
  min-width: 40px;
}

/* ---- Main Wrap ---- */
.cart-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ==========================
   LEFT COLUMN
   ========================== */
.cart-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Login nudge */
.cart-login-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
}
.cart-login-nudge i { font-size: 22px; color: #f4a261; flex-shrink: 0; }
.cart-login-nudge span { flex: 1; min-width: 160px; line-height: 1.4; }
.cart-login-btn {
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-heading);
  transition: background .2s;
  flex-shrink: 0;
}
.cart-login-btn:hover { background: #333; color: #fff; }

/* Offer banner */
.cart-offer-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fff4;
  border: 1px solid #b7ebc9;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #2a7a4f;
}
.cart-offer-banner i { color: #2a9d4f; font-size: 16px; flex-shrink: 0; }

/* Coupon box */
.cart-coupon-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
}
.cart-coupon-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
}
.cart-coupon-title i { color: var(--red); }
.cart-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.cart-coupon-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-main);
}
.cart-coupon-input:focus { border-color: var(--black); }
.cart-coupon-apply {
  height: 40px;
  padding: 0 18px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-heading);
  white-space: nowrap;
}
.cart-coupon-apply:hover { background: #333; }

/* Coupon applied bar */
.cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fff4;
  border: 1.5px solid #a3e6bc;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #1a5e35;
  gap: 8px;
}
.cart-coupon-applied span { flex: 1; }
.cart-coupon-remove {
  background: none;
  border: none;
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.cart-coupon-remove:hover { color: #c62828; }

.cart-coupon-result {
  font-size: 12px;
  font-weight: 600;
  min-height: 16px;
  margin-bottom: 8px;
  color: #2a9d4f;
}
.cart-coupon-result.error { color: var(--red); }
.cart-coupon-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.coupon-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px dashed #ccc;
  border-radius: 6px;
  padding: 5px 12px 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: var(--font-heading);
  letter-spacing: .3px;
}
.coupon-tag:hover { border-color: var(--black); color: var(--black); }

.coupon-tag-best {
  border: 1.5px solid #ff9800;
  background: linear-gradient(135deg, #fff8f0, #fff3e0);
}
.coupon-tag-best:hover { border-color: #e65100; background: #fff3e0; }

.ctag-best {
  position: absolute;
  top: -8px; left: 8px;
  background: #ff9800;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 1px 5px;
  border-radius: 2px;
}
.ctag-code {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--black);
}
.coupon-tag-best .ctag-code { color: #e65100; }
.ctag-disc {
  font-size: 10px;
  font-weight: 700;
  color: #2a7a3b;
  font-family: var(--font-heading);
}

/* Items header */
.cart-items-header {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  padding: 4px 0;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Single Cart Item */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: background .15s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafafa; }
.cart-item.removing {
  opacity: 0;
  transform: translateX(-10px);
  transition: all .25s ease;
}

/* Item image */
.cart-item-img {
  flex-shrink: 0;
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  position: relative;
}
.cart-item-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.cart-item-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .3px;
}

/* Item details */
.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.cart-item-brand {
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: var(--font-heading);
}
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.cart-item-name:hover { color: var(--red); }
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  margin-top: 5px;
}
.meta-dot { color: #ccc; }
.cart-item-color-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-item-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  display: inline-block;
  flex-shrink: 0;
}

/* Remove button */
.cart-item-remove {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cart-item-remove:hover { background: #fee; color: var(--red); }

/* Bottom row */
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Qty controls */
.cart-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  height: 36px;
}
.cart-qty-btn {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  font-size: 12px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.cart-qty-btn:hover { background: #e8e8e8; }
.cart-qty-btn.minus:disabled,
.cart-qty-btn.minus[disabled] { color: #ccc; cursor: not-allowed; }
.cart-qty-val {
  min-width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  padding: 0 4px;
  font-family: var(--font-heading);
}

/* Price */
.cart-item-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cart-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  font-family: var(--font-heading);
}
.cart-item-mrp {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}
.cart-item-off {
  font-size: 11px;
  font-weight: 700;
  color: #2a9d4f;
}

/* Delivery info */
.cart-item-delivery {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-item-delivery i { color: #2a9d4f; }

/* Move to wishlist */
.cart-move-wishlist {
  background: none;
  border: none;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color .2s;
  font-family: var(--font-main);
}
.cart-move-wishlist:hover { color: var(--red); }

/* Continue shopping */
.cart-continue {
  padding: 4px 0;
}
.cart-continue-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
  font-family: var(--font-heading);
}
.cart-continue-link:hover { color: var(--red); border-color: var(--red); }

/* Trust row */
.cart-trust-row {
  display: flex;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cart-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-right: 1px solid #e8e8e8;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-align: center;
  line-height: 1.3;
  font-family: var(--font-heading);
}
.cart-trust-item:last-child { border-right: none; }
.cart-trust-item i { font-size: 20px; color: var(--black); }

/* ==========================
   RIGHT COLUMN — SUMMARY
   ========================== */
.cart-right {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--navbar-h, 64px) + 16px);
}

.cart-summary {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
}
.cart-summary-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: .8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebebeb;
  font-family: var(--font-heading);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}
.cart-summary-row.total {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0;
  font-family: var(--font-heading);
}
.cart-summary-row.discount { }
.green { color: #2a9d4f; font-weight: 700; }

.cart-summary-divider {
  border: none;
  border-top: 1px dashed #e0e0e0;
  margin: 12px 0;
}

.cart-savings-msg {
  font-size: 12px;
  color: #2a9d4f;
  background: #f0fff4;
  border: 1px solid #b7ebc9;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 12px 0;
  line-height: 1.4;
}

.cart-checkout-btn {
  width: 100%;
  height: 50px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-heading);
  transition: background .2s, transform .1s;
}
.cart-checkout-btn:hover { background: #2a2a2a; }
.cart-checkout-btn:active { transform: scale(.98); }

.cart-payment-icons { margin-top: 16px; text-align: center; }
.cart-payment-label {
  font-size: 10px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.cart-payment-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.pay-icon {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  font-family: var(--font-heading);
  letter-spacing: .3px;
}

/* Mobile sticky bottom */
.cart-summary-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 10px 16px;
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.cart-summary-sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-total-label { font-size: 11px; color: #888; font-weight: 600; }
.sticky-total-val { font-size: 18px; font-weight: 800; color: var(--black); font-family: var(--font-heading); }
.sticky-btn {
  height: 44px;
  margin-top: 0;
  padding: 0 20px;
  width: auto;
  font-size: 12px;
}

/* Empty cart */
.cart-empty {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}
.cart-empty-icon { font-size: 72px; margin-bottom: 18px; }
.cart-empty h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.cart-empty p { font-size: 14px; color: #777; line-height: 1.6; margin-bottom: 24px; }
.cart-empty-btn {
  display: inline-block;
  background: var(--black);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: background .2s;
  margin-bottom: 24px;
}
.cart-empty-btn:hover { background: #333; color: #fff; }
.cart-empty-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cart-empty-links a {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.cart-empty-links a:hover { color: var(--red); }

/* ==========================
   RESPONSIVE — TABLET 768px
   ========================== */
@media (max-width: 900px) {
  .cart-wrap {
    flex-direction: column;
    padding: 16px 14px 100px;
    gap: 18px;
  }
  .cart-right {
    width: 100%;
    position: static;
  }
  .cart-summary { display: none; } /* hidden on mobile, sticky bar shown instead */
  .cart-summary-sticky { display: block; }

  .cart-item-img { width: 90px; height: 114px; }
  .cart-item-img-inner { font-size: 42px; }
  .cart-item-name { font-size: 13px; }
}

@media (max-width: 768px) {
  .cart-steps-inner { gap: 0; }
  .cart-step-line { min-width: 28px; }
  .cart-trust-item { padding: 12px 4px; font-size: 9px; }
  .cart-trust-item i { font-size: 18px; }
  .cart-login-nudge { gap: 8px; }
}

@media (max-width: 480px) {
  .cart-wrap { padding: 12px 12px 90px; gap: 12px; }
  .cart-item { gap: 10px; padding: 14px 12px; }
  .cart-item-img { width: 80px; height: 100px; }
  .cart-item-img-inner { font-size: 36px; }
  .cart-item-name { font-size: 12px; }
  .cart-item-price { font-size: 14px; }
  .cart-item-mrp { font-size: 11px; }
  .cart-qty-btn { width: 30px; height: 30px; }
  .cart-qty-val { min-width: 28px; font-size: 13px; }
  .cart-qty-wrap { height: 30px; }
  .cart-offer-banner { font-size: 12px; padding: 8px 12px; }
  .cart-coupon-apply { padding: 0 12px; font-size: 11px; }
  .cart-steps { padding: 10px 0; }
  .step-num { width: 26px; height: 26px; font-size: 11px; }
  .step-label { font-size: 9px; }
  .sticky-btn { padding: 0 14px; font-size: 11px; }
  .cart-empty h2 { font-size: 18px; }
  .cart-empty-icon { font-size: 56px; }
  .cart-trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .cart-trust-item:nth-child(2) { border-right: none; }
  .cart-trust-item:nth-child(1),
  .cart-trust-item:nth-child(2) { border-bottom: 1px solid #e8e8e8; }
}

@media (max-width: 360px) {
  .cart-item-img { width: 70px; height: 88px; }
  .cart-item-img-inner { font-size: 30px; }
  .coupon-tag { font-size: 11px; padding: 3px 9px; }
}
