/* ==========================================================================
   SAAMBROS - Cart, Checkout & EasyPaisa Payment Flow Styles (100% Mobile Proof)
   ========================================================================== */

/* Universal Box-Sizing & Overflow Protection */
.checkout-container,
.checkout-container *,
.cart-layout-grid,
.cart-layout-grid *,
.checkout-grid,
.checkout-card,
.easypaisa-box,
.order-summary-sidebar,
.whatsapp-notice-banner,
.form-group,
.form-row,
.form-control,
.cart-page-item {
  box-sizing: border-box;
  max-width: 100%;
}

.checkout-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  overflow-x: hidden;
}

/* ==========================================
   SHOPPING CART PAGE STYLES
   ========================================== */
.cart-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

.cart-items-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.cart-page-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f1f5f9;
  width: 100%;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--brand-border);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  word-break: break-word;
}

.cart-item-title a {
  color: inherit;
  transition: color 0.2s;
}

.cart-item-title a:hover {
  color: var(--primary-orange);
}

.cart-item-unit-price {
  font-size: 0.88rem;
  color: var(--primary-orange);
  font-weight: 800;
}

.cart-item-bottom-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px;
}

.cart-item-stepper button {
  width: 30px;
  height: 30px;
  border: none;
  background: white;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-stepper button:hover {
  background: var(--primary-orange);
  color: white;
}

.cart-item-stepper span {
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  color: var(--brand-navy);
}

.cart-item-subtotal {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand-navy);
  min-width: 100px;
  text-align: right;
  font-family: var(--font-heading);
}

.btn-cart-remove {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}

.btn-cart-remove:hover {
  color: var(--danger-red);
}

.cart-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  width: 100%;
}

/* ==========================================
   CHECKOUT PAGE GRID & CARDS
   ========================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  width: 100%;
  min-width: 0;
}

.checkout-grid > div {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.checkout-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: var(--primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.checkout-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0;
}

/* Form Controls */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
}

.form-label span.req {
  color: var(--danger-red);
}

.form-control {
  background: #f8fafc;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--brand-navy);
  width: 100%;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background: var(--brand-white);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--primary-orange-glow);
}

/* EASYPAISA PAYMENT CARD (STANDOUT DESIGN) */
.easypaisa-box {
  background: linear-gradient(145deg, #007a3c 0%, #00a651 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 166, 81, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 100%;
}

.easypaisa-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.easypaisa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.easypaisa-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  min-width: 0;
}

.easypaisa-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  width: 100%;
}

.account-info-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-info-label {
  font-size: 0.75rem;
  color: #a7f3d0;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.account-info-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
  word-break: break-word;
}

/* 1-Click Copy Button */
.btn-copy-account {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.4rem;
  width: fit-content;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-copy-account:hover {
  background: white;
  color: #007a3c;
}

/* Advance Summary Callout inside Payment Box */
.advance-calc-callout {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.calc-callout-title {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.calc-callout-amount {
  font-size: 1.35rem;
  color: #00a651;
  font-weight: 900;
  font-family: var(--font-heading);
}

/* Mandatory WhatsApp Notice Banner */
.whatsapp-notice-banner {
  background-color: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 5px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  width: 100%;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400e;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.notice-text {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

/* Order Summary Box */
.order-summary-sidebar {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.35rem;
  width: 100%;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.summary-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--brand-border);
  flex-shrink: 0;
}

.summary-item-info {
  flex: 1;
  min-width: 0;
}

.summary-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-item-qty {
  font-size: 0.75rem;
  color: var(--brand-muted);
}

.summary-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  flex-shrink: 0;
}

.summary-divider {
  height: 1px;
  background: var(--brand-border);
  margin: 1rem 0;
  width: 100%;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--brand-slate);
  margin-bottom: 0.65rem;
  width: 100%;
}

.summary-line.total-line {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  border-top: 1px dashed var(--brand-border);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.summary-line.advance-highlight {
  background: #ecfdf5;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-weight: 800;
}

/* ==========================================
   COUPON & PROMO CODE 3D COMPONENT STYLES
   ========================================== */
.coupon-box-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1.5px dashed #c084fc;
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px -3px rgba(147, 51, 234, 0.08);
  transition: all 0.3s ease;
}

.coupon-box-card:hover {
  box-shadow: 0 8px 25px -5px rgba(147, 51, 234, 0.15);
  border-color: #a855f7;
}

.coupon-header-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #6b21a8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coupon-pills-wrap {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.coupon-pills-wrap::-webkit-scrollbar {
  display: none;
}

.coupon-pill-btn {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #7e22ce;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(147, 51, 234, 0.08);
  flex-shrink: 0;
}

.coupon-pill-btn:hover {
  background: #7e22ce;
  color: #ffffff;
  border-color: #7e22ce;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.coupon-input-group input {
  background: #ffffff;
  border: 1.5px solid #d8b4fe;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #581c87;
  flex: 1;
  min-width: 0;
  transition: all 0.2s;
}

.coupon-input-group input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
  background: #ffffff;
}

.btn-apply-coupon {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.btn-apply-coupon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.35);
  color: #ffffff;
}

/* Applied Coupon Active Card */
.applied-coupon-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
  100% { box-shadow: 0 0 15px 2px rgba(34, 197, 94, 0.25); }
}

.applied-coupon-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.applied-coupon-badge {
  background: #16a34a;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.applied-coupon-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #14532d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-coupon {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-remove-coupon:hover {
  background: #fee2e2;
}

/* Discount Summary Line */
.summary-line.discount-line {
  color: #15803d;
  font-weight: 800;
  background: #f0fdf4;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  border: 1px dashed #86efac;
}

/* 3D Glassmorphic Login Required Modal */
.coupon-login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.3s ease;
}

.coupon-login-modal-overlay.active {
  display: flex;
}

.coupon-login-modal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.coupon-modal-icon-wrap {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: var(--primary-orange);
  border: 2px solid #fdba74;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 10px 20px -5px rgba(255, 102, 0, 0.3);
}

.coupon-modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.coupon-modal-desc {
  font-size: 0.92rem;
  color: var(--brand-slate);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.coupon-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.coupon-modal-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.coupon-modal-close-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--brand-muted);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.coupon-modal-close-link:hover {
  color: var(--brand-navy);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 992px) {
  .cart-layout-grid,
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .order-summary-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Cart Mobile View */
  .cart-items-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: 14px !important;
  }

  .cart-page-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
    align-items: start;
  }

  .cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }

  .cart-item-title {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
  }

  .cart-item-unit-price {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
  }

  .cart-item-bottom-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    width: 100%;
    margin-top: 0.25rem;
  }

  .cart-item-stepper button {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .cart-item-stepper span {
    font-size: 0.85rem;
    min-width: 22px;
  }

  .cart-item-subtotal {
    font-size: 1rem;
    min-width: auto;
  }

  .btn-cart-remove {
    font-size: 1rem;
    padding: 0.25rem;
  }

  .cart-actions-bar {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .cart-actions-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Checkout Mobile View */
  .checkout-grid {
    gap: 1rem;
    margin-top: 0.85rem;
    margin-bottom: 2rem;
  }

  .checkout-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    margin-bottom: 1rem !important;
  }

  .checkout-card-header {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.65rem !important;
  }

  .checkout-card-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }

  .step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }

  .form-group {
    margin-bottom: 0.85rem !important;
  }

  .form-control {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
  }

  .easypaisa-box {
    padding: 1.15rem 0.85rem !important;
    border-radius: 14px !important;
  }

  .easypaisa-account-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
  }

  .easypaisa-brand {
    font-size: 1.05rem !important;
  }

  .advance-calc-callout {
    padding: 0.75rem 0.85rem !important;
  }

  .calc-callout-amount {
    font-size: 1.2rem !important;
  }

  .order-summary-sidebar {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }

  .summary-line.total-line {
    font-size: 1.1rem !important;
  }

  #btn-place-order {
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
  }

  .coupon-box-card {
    padding: 1rem 0.85rem !important;
    border-radius: 14px !important;
    margin: 1rem 0 !important;
  }

  .coupon-pills-wrap {
    gap: 0.4rem !important;
    padding-bottom: 0.35rem !important;
    margin-bottom: 0.65rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .coupon-pill-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
  }

  .coupon-pill-btn:active {
    transform: scale(0.95) !important;
  }

  .coupon-input-group {
    gap: 0.35rem !important;
  }

  .coupon-input-group input {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.85rem !important;
  }

  .btn-apply-coupon {
    padding: 0.6rem 0.95rem !important;
    font-size: 0.82rem !important;
  }
}

/* ==========================================================================
   SAAMBROS - ORDER SUCCESS / THANK YOU PAGE (100% Mobile & Desktop Optimized)
   ========================================================================== */

.thankyou-page-container {
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 4rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.thankyou-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: 0 12px 40px -10px rgba(15, 23, 42, 0.08);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative Top Gradient Accent Bar */
.thankyou-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #ff6600 100%);
}

/* Celebration Icon Badge */
.celebrate-icon-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
  position: relative;
  animation: celebratePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebratePop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.celebrate-icon-box::after {
  content: '';
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 2px dashed rgba(34, 197, 94, 0.4);
  animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.thankyou-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.thankyou-subtitle {
  font-size: 1.05rem;
  color: var(--brand-slate);
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

/* Order ID Display with 1-Click Copy */
.order-id-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1.5px solid var(--brand-border);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  flex-wrap: wrap;
  justify-content: center;
}

.order-id-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-id-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-orange);
  letter-spacing: 0.04em;
}

.order-id-copy-btn {
  background: white;
  border: 1px solid var(--brand-border);
  color: var(--brand-slate);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.order-id-copy-btn:hover {
  background: #f1f5f9;
  color: var(--brand-navy);
  border-color: #cbd5e1;
}

/* ==========================================================================
   EASYPAISA ADVANCE & WHATSAPP VERIFICATION BOX (CRITICAL PROMINENCE)
   ========================================================================== */

.easypaisa-success-alert {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.08);
}

.easypaisa-alert-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #166534;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #bbf7d0;
  padding-bottom: 0.75rem;
}

.easypaisa-alert-head i {
  font-size: 1.6rem;
  color: #16a34a;
}

.easypaisa-instruction-text {
  font-size: 0.95rem;
  color: #15803d;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* 2 Column Details: Account on Left, WhatsApp Action on Right */
.easypaisa-flow-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.easypaisa-account-card {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #dcfce7;
  font-size: 0.9rem;
}

.ep-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ep-lbl {
  color: #166534;
  font-weight: 600;
}

.ep-val {
  color: #0f172a;
  font-weight: 800;
}

.ep-number-highlight {
  font-size: 1.15rem;
  font-weight: 900;
  color: #007a3c;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-copy-mini-btn {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ep-copy-mini-btn:hover {
  background: #22c55e;
  color: white;
}

.whatsapp-action-card {
  background: #ffffff;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.wa-instruction-steps {
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.6;
}

.wa-instruction-steps ol {
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

.wa-instruction-steps li {
  margin-bottom: 0.25rem;
}

.btn-whatsapp-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #25D366;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-whatsapp-confirm:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   RECEIPT DOWNLOAD QUICK CARD & ACTIONS BAR
   ========================================================================== */

.receipt-download-banner {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  flex-wrap: wrap;
}

.receipt-banner-info {
  flex: 1;
  min-width: 260px;
}

.receipt-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.receipt-banner-desc {
  font-size: 0.88rem;
  color: #7c2d12;
  line-height: 1.5;
}

.receipt-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-receipt-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--primary-orange);
  color: white;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-receipt-download:hover {
  background: #e05500;
  transform: translateY(-2px);
  color: white;
}

.btn-receipt-print {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: white;
  border: 1.5px solid #fed7aa;
  color: #9a3412;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-receipt-print:hover {
  background: #fff;
  border-color: #ea580c;
  color: #c2410c;
}

/* ==========================================================================
   ORDER SUMMARY ACCORDION & ITEM DETAILS
   ========================================================================== */

.success-order-summary-box {
  background: #f8fafc;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  margin-bottom: 2rem;
}

.summary-card-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-shipping-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.meta-item-lbl {
  color: var(--brand-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  display: block;
}

.meta-item-val {
  color: var(--brand-navy);
  font-weight: 700;
  word-break: break-word;
}

/* Purchased Items List */
.purchased-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.purchased-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.purchased-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.purchased-item-info {
  flex: 1;
  min-width: 0;
}

.purchased-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.purchased-item-qty {
  font-size: 0.82rem;
  color: var(--brand-slate);
}

.purchased-item-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-align: right;
  flex-shrink: 0;
}

/* Financial Rows in Summary Box */
.success-finance-breakdown {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.finance-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--brand-slate);
}

.finance-line strong {
  color: var(--brand-navy);
}

.finance-line.total-highlight {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand-navy);
  border-top: 2px solid #f1f5f9;
  padding-top: 0.75rem;
}

.finance-line.advance-highlight {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #166534;
}

.finance-line.cod-highlight {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #c2410c;
}

/* Bottom Action Buttons */
.thankyou-nav-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thankyou-nav-actions .btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (THANK YOU SCREEN)
   ========================================================================== */

@media (max-width: 768px) {
  .thankyou-page-container {
    margin: 1.25rem auto 3rem auto;
    padding: 0 0.85rem;
  }

  .thankyou-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .celebrate-icon-box {
    width: 72px;
    height: 72px;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
  }

  .celebrate-icon-box::after {
    width: 94px;
    height: 94px;
  }

  .thankyou-title {
    font-size: 1.65rem;
  }

  .thankyou-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .order-id-badge-wrap {
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .order-id-value {
    font-size: 1.05rem;
  }

  .easypaisa-success-alert {
    padding: 1.25rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }

  .easypaisa-alert-head {
    font-size: 1.1rem;
  }

  .easypaisa-flow-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .easypaisa-account-card,
  .whatsapp-action-card {
    padding: 1rem;
  }

  .ep-number-highlight {
    font-size: 1rem;
  }

  .btn-whatsapp-confirm {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }

  .receipt-download-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .receipt-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-receipt-download,
  .btn-receipt-print {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .success-order-summary-box {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .order-shipping-meta-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.85rem;
  }

  .purchased-item-row {
    padding: 0.75rem;
  }

  .purchased-item-thumb {
    width: 44px;
    height: 44px;
  }

  .thankyou-nav-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .thankyou-nav-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


