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

.cart-page {
  padding: 20px 0 40px;
  background: var(--bs-secondary-bg-subtle);
  min-height: 70vh;
}

.cart-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.cart-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  display: none;
}

.cart-items {
  background: var(--bs-bg-card);
  padding: 24px;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

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

.cart-item-image {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-bg-soft);
  cursor: pointer;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-details h3 {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  margin: 0;
}

.cart-item-details h3:hover {
  color: var(--bs-primary);
}

.cart-item-category {
  font-size: 0.85rem;
  color: var(--bs-text-muted);
  margin: 0;
}

.cart-item-stock {
  font-size: 0.8rem;
  color: var(--bs-success);
  margin: 4px 0 0 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bs-bg-soft);
  border-radius: var(--bs-border-radius-pill);
  padding: 4px 10px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--bs-body-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: var(--bs-primary);
}

.qty-input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px;
}

.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 1000;
  color: var(--bs-primary);
  align-self: center;
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  background: rgba(var(--bs-danger-rgb), 0.15);
  color: var(--bs-danger);
  border: none;
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
}

.cart-item-remove:hover {
  background: rgba(var(--bs-danger-rgb), 0.25);
  transform: scale(1.1);
}

.cart-summary {
  background: var(--bs-bg-card);
  padding: 24px;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  position: sticky;
  top: 110px;
  width: -webkit-fill-available;
  max-width: 400px;
}

.cart-summary h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-summary .gs-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Bundle Badge */

.bundle-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: var(--bs-border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Bundle Banner */

.bundle-banner {
  background: var(--bs-bg-card);
  padding: 20px;
  border-radius: var(--bs-border-radius);
  margin-bottom: 20px;
  border: 2px solid var(--bs-primary);
  animation: fadeIn 0.4s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bundle-banner.applied {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.bundle-banner.pending {
  background: var(--bs-bg-soft);
  border: 2px dashed var(--bs-primary);
}

.bundle-banner-icon {
  font-size: 2rem;
  line-height: 1;
}

.bundle-banner-content {
  flex: 1;
}

.bundle-banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bundle-banner-body {
  font-size: 0.9rem;
  line-height: 1.5;
}

.bundle-banner-body p {
  margin: 4px 0;
}

.bundle-banner-body strong {
  font-weight: 700;
}

.bundle-savings {
  margin-top: 8px;
  font-size: 1rem;
}

.bundle-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 8px 0;
}

.bundle-progress-bar {
  height: 100%;
  background: var(--bs-primary);
  transition: width 0.3s ease;
}

.bundle-progress-text {
  font-size: 0.85rem;
  color: var(--bs-text-muted);
  margin-bottom: 12px;
}

.bundle-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--bs-primary);
  color: white;
  border-radius: var(--bs-border-radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.bundle-cta:hover {
  opacity: 0.9;
  transform: translateX(4px);
}

/* Discount Amount */

.discount-amount {
  color: var(--bs-success);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .cart-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .cart-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .cart-item-image {
    width: 80px;
  }
}

@media (max-width: 600px) {
  .cart-item-details {
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 600px) {
  .cart-item-quantity {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cart-item-price {
    width: auto;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .cart-item-remove {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .bundle-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .bundle-banner-icon {
    font-size: 2.5rem;
  }
}

/* =============================================================================   CART PAGE - Shipping & Coupon CSS Additions   Add to your cart.css file   ============================================================================= */

/* ── Summary Divider ── */

.summary-divider {
  height: 1px;
  background: var(--bs-border-color, #e5e7eb);
  margin: 0.5rem 0;
}

/* ── Coupon Block ── */

.coupon-block {
  margin: 1rem 0 0.5rem;
}

.coupon-input-row {
  display: flex;
  gap: 0.4rem;
}

.coupon-input-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--bs-border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bs-secondary-bg-subtle);
  color: var(--bs-body-color, #111);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.2s;
}

.coupon-input-row input[type="text"]:focus {
  outline: none;
  border-color: var(--bs-primary, #000);
}

.coupon-input-row input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gs-btn-coupon {
  padding: 0.55rem 0.875rem;
  background: var(--bs-primary, #111);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.2s;
}

.gs-btn-coupon:hover {
  opacity: 0.82;
}

.gs-btn-coupon-remove {
  padding: 0.55rem 0.6rem;
  background: transparent;
  color: #999;
  border: 1.5px solid var(--bs-border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}

.gs-btn-coupon-remove:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.coupon-feedback {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  min-height: 1.1em;
}

.coupon-feedback.success {
  color: #10b981;
  font-weight: 600;
}

.coupon-feedback.error {
  color: #ef4444;
}

/* ── Coupon Row in Summary ── */

.coupon-row .discount-amount {
  color: #10b981;
  font-weight: 700;
}

/* ── Shipping Estimate Row ── */

.shipping-estimate-row {
  font-size: 0.9rem;
}

.shipping-estimate-row small {
  font-size: 0.78rem;
}

/* ── Shipping Note ── */

.shipping-note {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #888);
  margin: 0.5rem 0;
  text-align: center;
}

