/* ============================================================
   PAKCCTV — Centralized Cart & Checkout Styles
   ============================================================ */

/* Navbar Cart Button & Responsive Touch Target */
.btn-cart-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--ink, #0F2A55);
  padding: 8px 15px;
  border-radius: 50px;
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  height: 38px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  line-height: 1;
}
.btn-cart-nav:hover {
  background: #E2E8F0;
  border-color: var(--blue, #0B2F74);
  color: var(--blue, #0B2F74);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(11, 47, 116, 0.12);
}
.btn-cart-nav svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.btn-cart-nav span:not(.cart-badge-count) {
  display: inline-block;
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}
.btn-cart-nav .cart-badge-count {
  position: static;
  background: var(--red, #E30613);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  box-shadow: 0 2px 5px rgba(227, 6, 19, 0.35);
  pointer-events: none !important;
  line-height: 1;
}
.btn-cart-nav * {
  pointer-events: none;
}

/* Standalone circular cart button fallback */
.cart-btn {
  position: relative;
  background: var(--white, #fff);
  border: 1.5px solid var(--ink, #0F2A55);
  color: var(--ink, #0F2A55);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all .18s ease;
  user-select: none;
}
.cart-btn:hover {
  background: var(--ink, #0F2A55);
  color: #fff;
}
.cart-btn .cart-badge,
.cart-btn .cart-badge-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--red, #E30613);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(227, 6, 19, 0.4);
  pointer-events: none !important;
}

@media (max-width: 992px) {
  .btn-cart-nav {
    min-width: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    position: relative !important;
    gap: 0 !important;
  }
  .btn-cart-nav span:not(.cart-badge-count) {
    display: none !important;
  }
  .btn-cart-nav svg {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
  }
  .btn-cart-nav .cart-badge-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 9.5px !important;
    margin-left: 0 !important;
  }
}
@media (max-width: 380px) {
  .btn-cart-nav {
    min-width: 34px !important;
    min-height: 34px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--ink, #0F2A55);
  color: #fff;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: all .25s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modals General Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 85, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open {
  display: flex;
}

/* Cart Modal Drawer / Box */
.cart-box {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 0;
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  margin: auto;
  border: 1px solid var(--line, #DCDAD5);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.cart-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line, #DCDAD5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.cart-header h3 {
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink, #0F2A55);
}
.cart-items {
  overflow-y: auto;
  padding: 10px 24px;
  flex: 1;
  max-height: 50vh;
}
.cart-empty {
  padding: 44px 0;
  text-align: center;
  color: var(--steel, #52525B);
  font-size: 14.5px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #DCDAD5);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #0F2A55);
  line-height: 1.35;
}
.cart-item-name small {
  display: block;
  color: var(--steel, #52525B);
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line, #DCDAD5);
  background: #fff;
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  background: var(--paper-dim, #F0EFEC);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink, #0F2A55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background .15s;
}
.qty-stepper button:hover {
  background: var(--line, #DCDAD5);
}
.qty-stepper span {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--steel, #52525B);
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
  line-height: 1;
}
.cart-remove:hover {
  color: var(--red, #E30613);
}
.cart-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line, #DCDAD5);
  background: var(--paper, #FAFAF9);
}
.cart-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
}

/* Order / Checkout Modal */
/* ============================================================
   ULTRA-PREMIUM CHECKOUT & ORDER MODAL (2026 State-of-the-Art)
   ============================================================ */

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.checkout-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.checkout-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(11, 25, 44, 0.32), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  position: relative;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  margin: auto;
}

.checkout-modal-backdrop.open .checkout-modal-box {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.checkout-modal-header {
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
}

.checkout-modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E30613 0%, #FF4D58 50%, #0F2A55 100%);
}

.checkout-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.checkout-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.08);
  color: #E30613;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0F2A55;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.checkout-subtitle {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
}

.checkout-modal-close {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box !important;
}

.checkout-modal-close:hover {
  background: #E30613;
  color: #ffffff;
  border-color: #E30613;
  transform: rotate(90deg);
}

/* Steps Progress Bar */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 22px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
}

.checkout-step.active {
  color: #0F2A55;
}

.checkout-step .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-step.active .step-num {
  background: #E30613;
  color: #ffffff;
}

.checkout-step-sep {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 10px;
  border-radius: 1px;
}

/* Scrollable Body */
.checkout-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Summary Card */
.checkout-summary-card {
  flex-shrink: 0;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
}

.checkout-section,
.checkout-notice-card,
.checkout-advance-box,
.checkout-form-grid,
.checkout-trust-row {
  flex-shrink: 0;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.checkout-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #0F2A55;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.checkout-card-title svg {
  color: #E30613;
}

.checkout-item-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 42, 85, 0.08);
  color: #0F2A55;
  padding: 2px 8px;
  border-radius: 12px;
}

.checkout-items-list {
  padding: 10px 12px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.checkout-item-row:hover {
  border-color: #CBD5E1;
}

.checkout-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

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

.checkout-item-brand {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #E30613;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.checkout-item-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F2A55;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  color: #64748B;
}

.checkout-item-qty {
  font-weight: 700;
  color: #0F2A55;
  background: #F1F5F9;
  padding: 1px 6px;
  border-radius: 4px;
}

.checkout-item-total {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F2A55;
  white-space: nowrap;
  text-align: right;
}

.checkout-subtotal-breakdown {
  padding: 9px 12px 10px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.delivery-free-badge {
  color: #059669;
  font-weight: 700;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
}

.breakdown-row.grand-total-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  font-size: 14px;
}

/* ============================================================
   DELIVERY OPTIONS SELECTOR (Checkout Modal & Cart Drawer)
   ============================================================ */

/* Checkout Modal Delivery Options */
.checkout-del-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.del-opt-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.del-opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.del-opt-card:hover {
  border-color: #CBD5E1;
  background: #FAFAFA;
}

.del-opt-card.active {
  border-color: #E30613;
  background: rgba(227, 6, 19, 0.025);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.del-opt-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.del-opt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.del-opt-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.del-opt-icon.bike-icon {
  background: #EFF6FF;
  color: #2563EB;
}

.del-opt-icon.truck-icon {
  background: #F0FDF4;
  color: #16A34A;
}

.del-opt-icon.express-icon {
  background: #FEF3C7;
  color: #D97706;
}

.del-opt-titles {
  display: flex;
  flex-direction: column;
}

.del-opt-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F2A55;
  line-height: 1.25;
}

.del-opt-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
}

.del-opt-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-right: 8px;
}

.del-opt-price {
  font-size: 14px;
  font-weight: 800;
  color: #E30613;
  letter-spacing: -0.2px;
}

.del-opt-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-lahore {
  background: #EFF6FF;
  color: #1D4ED8;
}

.tag-other {
  background: #F0FDF4;
  color: #15803D;
}

.tag-express {
  background: #FEF3C7;
  color: #B45309;
}

.tag-free {
  background: #DCFCE7 !important;
  color: #15803D !important;
  font-weight: 800 !important;
}

.del-opt-old-price {
  font-size: 11px;
  color: #94A3B8;
  text-decoration: line-through;
  margin-right: 4px;
}

.del-pill-amt.del-pill-free,
.del-opt-price.del-opt-free {
  color: #059669 !important;
  font-weight: 800 !important;
}

.del-opt-radio-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.del-opt-card.active .del-opt-radio-circle {
  border-color: #E30613;
  background: #E30613;
}

.del-opt-card.active .del-opt-radio-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Free Delivery Tier Progress Bar */
.cart-delivery-tier {
  padding: 10px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.cart-delivery-tier-msg {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.35;
  margin-bottom: 6px;
}

.cart-delivery-tier-msg.unlocked {
  color: #065F46;
  font-weight: 600;
  background: #ECFDF5;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #A7F3D0;
  margin-bottom: 0;
}

.cart-delivery-tier-msg b {
  color: #0F2A55;
}

.cart-delivery-tier-msg.unlocked b {
  color: #059669;
}

.cart-delivery-tier-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.cart-delivery-tier-fill {
  height: 100%;
  background: linear-gradient(90deg, #E30613 0%, #F59E0B 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cart Drawer Delivery Selector Box */
.cart-del-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.cart-del-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-del-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F2A55;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-del-hint {
  font-size: 11px;
  font-weight: 700;
  color: #E30613;
  background: #FEE2E2;
  padding: 1px 7px;
  border-radius: 12px;
}

.cart-del-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 6px;
}

.cart-del-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  background: #ffffff;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cart-del-pill:hover {
  border-color: #94A3B8;
  background: #FAFAFA;
}

.cart-del-pill.active {
  border-color: #E30613;
  background: #FFF5F5;
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.12);
}

.del-pill-name {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
  text-align: center;
}

.cart-del-pill.active .del-pill-name {
  color: #991B1B;
}

.del-pill-amt {
  font-size: 11.5px;
  font-weight: 800;
  color: #E30613;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .del-opt-card {
    padding: 10px 11px;
  }
  .del-opt-titles {
    max-width: 175px;
  }
  .cart-del-pills {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Payment Selector */
.checkout-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-section-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pay-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-opt-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pay-opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-opt-card:hover {
  border-color: #CBD5E1;
  background: #FAFAFA;
}

.pay-opt-card.active {
  border-color: #E30613;
  background: rgba(227, 6, 19, 0.02);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.pay-opt-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.pay-opt-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pay-opt-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-opt-icon.cod-icon {
  background: #ECFDF5;
  color: #059669;
}

.pay-opt-icon.bank-icon {
  background: #EFF6FF;
  color: #2563EB;
}

.pay-opt-titles {
  display: flex;
  flex-direction: column;
}

.pay-opt-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F2A55;
  line-height: 1.2;
}

.pay-opt-desc {
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.25;
}

.pay-opt-tag {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.tag-cod {
  background: #DCFCE7;
  color: #15803D;
}

.tag-cod-paused {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  font-weight: 700 !important;
}

.pay-opt-card.pay-opt-disabled {
  opacity: 0.65;
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.pay-opt-card.pay-opt-disabled:hover {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  transform: none !important;
}

.tag-adv {
  background: #DBEAFE;
  color: #1E40AF;
}

.pay-opt-radio-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.pay-opt-card.active .pay-opt-radio-circle {
  border-color: #E30613;
  background: #E30613;
}

.pay-opt-card.active .pay-opt-radio-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* COD Notice */
.checkout-notice-card {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.45;
}

.cod-notice {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.cod-notice .notice-icon {
  color: #15803D;
  flex-shrink: 0;
}

.notice-text strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
  color: #14532D;
}

/* Advance Accounts Box */
.checkout-advance-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.adv-box-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F2A55;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.adv-box-header svg {
  color: #2563EB;
}

.checkout-advance-note {
  font-size: 11.5px;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 7px 10px;
  border-radius: 7px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.adv-account-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.meezan-card { border-left: 4px solid #800020; }
.ubl-card, .hbl-card { border-left: 4px solid #005697; }
.wallet-card { border-left: 4px solid #E52D27; }

.adv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.adv-bank-badge {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meezan-badge { color: #800020; }
.ubl-badge, .hbl-badge { color: #005697; }
.wallet-badge { color: #E52D27; }

.adv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.adv-acc-title {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.adv-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-top: 5px;
  border-top: 1px dashed #F1F5F9;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}

.adv-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  flex-shrink: 0;
}

.adv-val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.adv-code {
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F2A55;
  background: #F8FAFC;
  padding: 2.5px 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  word-break: break-all;
  max-width: 100%;
  box-sizing: border-box;
}

.iban-code {
  font-size: 10px;
  letter-spacing: -0.2px;
}

.btn-copy-acc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copy-acc:hover {
  background: #0F2A55;
  color: #ffffff;
  border-color: #0F2A55;
}

.btn-copy-acc.copied {
  background: #10B981 !important;
  color: #ffffff !important;
  border-color: #10B981 !important;
}

/* Form Fields */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-input-group.full-width {
  grid-column: span 2;
}

.checkout-input-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.req-star {
  color: #E30613;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 11px;
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon input,
.input-with-icon textarea {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: #FAFAFA;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: #0F2A55;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
  background: #ffffff;
  border-color: #E30613;
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.input-with-icon input.is-invalid,
.input-with-icon textarea.is-invalid {
  border-color: #EF4444;
  background: #FEF2F2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-textarea-wrap {
  align-items: flex-start;
}

.textarea-icon {
  top: 10px;
}

.input-hint {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

/* Trust Badges Row */
.checkout-trust-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.trust-item svg {
  color: #059669;
  flex-shrink: 0;
}

/* Footer Actions */
.checkout-modal-footer {
  padding: 14px 22px;
  background: #ffffff;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.checkout-footer-total {
  display: flex;
  flex-direction: column;
}

.footer-total-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer-total-price {
  font-size: 20px;
  font-weight: 800;
  color: #0F2A55;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.checkout-submit-btn {
  flex: 1;
  max-width: 320px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.checkout-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  filter: brightness(1.05);
}

.checkout-submit-btn:active {
  transform: translateY(1px);
}

/* Backward compatibility for legacy elements if any */
.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

/* Mobile Media Queries */
@media (max-width: 600px) {
  .checkout-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .checkout-modal-box {
    max-width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .checkout-modal-header {
    padding: 13px 14px;
    gap: 8px;
  }
  .checkout-header-left {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .checkout-title {
    font-size: 17px !important;
  }
  .checkout-subtitle {
    font-size: 10.5px !important;
  }
  .checkout-modal-close {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  .checkout-steps-bar {
    padding: 8px 14px;
  }
  .checkout-step-sep {
    margin: 0 5px;
  }
  .checkout-step .step-label {
    font-size: 10px;
  }
  .checkout-modal-body {
    padding: 14px 12px;
    gap: 12px;
  }
  .adv-account-card {
    padding: 9px 10px !important;
  }
  .adv-field-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .adv-val-wrap {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .adv-code {
    font-size: 11px !important;
    max-width: calc(100% - 62px) !important;
  }
  .input-with-icon input,
  .input-with-icon textarea {
    font-size: 16px !important;
  }
  .pay-options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .checkout-input-group.full-width {
    grid-column: span 1;
  }
  .checkout-modal-footer {
    padding: 12px 14px;
    gap: 10px;
  }
  .footer-total-price {
    font-size: 18px;
  }
  .checkout-submit-btn {
    height: 46px;
    font-size: 14px;
    max-width: none;
  }
}

/* ============================================================
   CUSTOMER REVIEWS & SPACE-SAVING FORM STYLES
   ============================================================ */
.detail-reviews-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.drs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
}

.drs-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drs-title-wrap h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0B192C;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drs-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #BFDBFE;
}

.btn-toggle-review-form {
  background: #FFFFFF;
  border: 1.5px solid #0B2F74;
  color: #0B2F74;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-toggle-review-form:hover {
  background: #0B2F74;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(11, 47, 116, 0.2);
}

/* Collapsible Review Form */
.review-form-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
}

.review-form-wrap.open {
  max-height: 550px;
  opacity: 1;
  margin-bottom: 14px;
}

.review-form-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.review-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-form-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.review-form-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748B;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.review-form-close:hover {
  color: #E30613;
}

.star-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.star-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.star-picker-stars {
  display: inline-flex;
  gap: 3px;
  font-size: 20px;
  cursor: pointer;
}

.star-picker-star {
  color: #CBD5E1;
  transition: color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.star-picker-star:hover,
.star-picker-star.hovered,
.star-picker-star.selected {
  color: #F59E0B;
}

.star-picker-star:active {
  transform: scale(1.2);
}

.review-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.review-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-field-group label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.review-field-input,
.review-field-textarea {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: #0F172A;
  background: #FAFAFA;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.review-field-input:focus,
.review-field-textarea:focus {
  outline: none;
  border-color: #0B2F74;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 47, 116, 0.1);
}

.review-field-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.review-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.btn-review-cancel {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-review-cancel:hover {
  background: #E2E8F0;
}

.btn-review-submit {
  background: #0B2F74;
  border: none;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-review-submit:hover {
  background: #071E4B;
  box-shadow: 0 2px 8px rgba(11, 47, 116, 0.25);
}

/* Bounded Scrollable Reviews Container */
.drs-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  -webkit-overflow-scrolling: touch;
}

.drs-reviews-list::-webkit-scrollbar {
  width: 5px;
}

.drs-reviews-list::-webkit-scrollbar-track {
  background: transparent;
}

.drs-reviews-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.drs-reviews-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.drs-review-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.drs-review-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.drs-review-card.new-highlight {
  border-color: #10B981;
  background: #F0FDF4;
  animation: reviewHighlightFade 3s forwards;
}

@keyframes reviewHighlightFade {
  0% { background: #DCFCE7; }
  100% { background: #FFFFFF; }
}

.drs-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.drs-reviewer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.drs-reviewer-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
}

.drs-reviewer-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.drs-reviewer-date {
  font-size: 10.5px;
  color: #94A3B8;
  font-weight: 500;
}

.drs-review-stars {
  color: #F59E0B;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.drs-review-stars-num {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.drs-review-comment {
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  margin: 0;
  word-break: break-word;
}

.drs-empty-msg {
  text-align: center;
  padding: 24px 12px;
  color: #64748B;
  font-size: 13px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
}

.drs-empty-msg p {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #94A3B8;
}

@media(max-width: 600px) {
  .review-inputs-grid {
    grid-template-columns: 1fr;
  }
  .drs-reviews-list {
    max-height: 210px;
  }
}



/* ============================================================
   MODERN RIGHT-SIDE SLIDE-OVER CART DRAWER
   ============================================================ */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.28);
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.cart-drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

/* Header */
.cart-drawer-header {
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-drawer-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.08);
  color: #E30613;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0F2A55;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.cart-drawer-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  display: inline-block;
  margin-top: 2px;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-close:hover {
  background: #E30613;
  color: #ffffff;
  border-color: #E30613;
  transform: rotate(90deg);
}

/* Free Delivery Tier Bar */
.cart-delivery-tier {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 22px;
  flex-shrink: 0;
}

.cart-delivery-tier-msg {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cart-delivery-tier-msg b {
  color: #0F2A55;
}

.cart-delivery-tier-msg.unlocked {
  color: #059669;
  font-weight: 700;
}

.cart-delivery-tier-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}

.cart-delivery-tier-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #3B82F6 70%, #10B981 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Items Body */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #F8FAFC;
  overscroll-behavior: contain;
}

.cart-drawer-body::-webkit-scrollbar {
  width: 5px;
}
.cart-drawer-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Cart Item Card */
.cart-drawer-item {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cart-drawer-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 42, 85, 0.06);
}

.cart-item-thumb-box {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1px solid #F1F5F9;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

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

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.cart-item-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F2A55;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cart-item-remove-btn:hover {
  color: #E30613;
  background: rgba(227, 6, 19, 0.08);
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-item-unit-price {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.cart-item-brand-tag {
  background: rgba(15, 42, 85, 0.06);
  color: #0F2A55;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Quantity Pill */
.cart-qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  border-radius: 20px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #0F2A55;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.cart-qty-btn:hover {
  background: #E2E8F0;
  color: #E30613;
}

.cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0F2A55;
}

.cart-item-line-total {
  font-size: 15px;
  font-weight: 800;
  color: #E30613;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Empty State */
.cart-drawer-empty {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cart-empty-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cart-drawer-empty h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0F2A55;
}

.cart-drawer-empty p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  max-width: 260px;
}

.cart-empty-browse-btn {
  background: #0F2A55;
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-empty-browse-btn:hover {
  background: #E30613;
  transform: translateY(-1px);
}

/* Footer & Summary */
.cart-drawer-footer {
  padding: 16px 22px 20px;
  background: #ffffff;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.cart-summary-box {
  margin-bottom: 14px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
  margin-bottom: 6px;
}

.cart-summary-val {
  font-weight: 700;
  color: #0F2A55;
}

.cart-summary-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 4px;
}

.cart-summary-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 10px 0;
}

.cart-summary-row.total-row {
  font-size: 15px;
  font-weight: 700;
  color: #0F2A55;
  margin-bottom: 0;
}

.cart-total-val {
  font-size: 22px;
  font-weight: 900;
  color: #E30613;
  letter-spacing: -0.5px;
}

/* Actions */
.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.btn-drawer-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #E30613 0%, #B9050F 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-drawer-checkout:hover {
  background: linear-gradient(135deg, #B9050F 0%, #8E030B 100%);
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.45);
  transform: translateY(-1px);
}

.btn-drawer-whatsapp {
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.btn-drawer-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* Trust Badges */
.cart-drawer-trust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mobile Tweaks */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
  }
}

/* ============================================================
   MOBILE FLOATING STICKY CART BAR (App-like UX)
   ============================================================ */
.mobile-sticky-cart-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 14px;
  right: 14px;
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0B192C 0%, #1A365D 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 14px 10px 18px;
  box-shadow: 0 12px 32px rgba(11, 25, 44, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  z-index: 9999;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@media (max-width: 992px) {
  .mobile-sticky-cart-bar.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(0);
    opacity: 1;
  }
}

.m-sticky-cart-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.m-sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-sticky-cart-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}

.m-sticky-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #E30613;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(227, 6, 19, 0.4);
}

.m-sticky-cart-text {
  display: flex;
  flex-direction: column;
}

.m-sticky-cart-count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  font-weight: 700;
  line-height: 1.2;
}

.m-sticky-cart-total {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.m-sticky-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E30613;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: none;
}

body.cart-drawer-open .mobile-sticky-cart-bar {
  display: none !important;
}

/* Mobile Drawer Cart Link */
.drawer-cart-link {
  background: #F8FAFC;
  font-weight: 700 !important;
  color: #0F2A55 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.drawer-cart-link:hover {
  background: #F1F5F9 !important;
  color: #E30613 !important;
}
.drawer-cart-badge {
  background: #E30613;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  display: none;
}


/* =========================================================
   PHASE 3: COMPLETE SHARE FEATURE & MODAL STYLES (FIXED)
   ========================================================= */

/* Floating Quick Share Button on Product Card Thumbnail */
.card-quick-share {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0F2A55 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  transition: all 0.15s ease !important;
  z-index: 5 !important;
  padding: 0 !important;
}
.card-quick-share:hover {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  transform: scale(1.08) !important;
}
.card-quick-share svg {
  display: block !important;
  width: 13px !important;
  height: 13px !important;
}

/* 4-Button Product Card Actions Grid (Fit-Perfect across all screen widths) */
.card-actions-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5px !important;
  padding: 6px 1px !important;
  font-family: var(--font-head, 'Outfit', sans-serif) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.btn-card-action svg {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  flex-shrink: 0 !important;
}

.btn-card-action.btn-view {
  background: #FFF1F2 !important;
  color: #B0151C !important;
  border: 1px solid #FECDD3 !important;
}
.btn-card-action.btn-view:hover {
  background: #B0151C !important;
  color: #FFFFFF !important;
  border-color: #B0151C !important;
}

.btn-card-action.btn-cart {
  background: #0B2F74 !important;
  color: #FFFFFF !important;
  border: 1px solid #0B2F74 !important;
}
.btn-card-action.btn-cart:hover {
  background: #071E4B !important;
  border-color: #071E4B !important;
}

.btn-card-action.btn-share {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
}
.btn-card-action.btn-share:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

.btn-card-action.btn-order {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border: 1px solid #25D366 !important;
}
.btn-card-action.btn-order:hover {
  background: #20BA5A !important;
}

@media (max-width: 580px) {
  .card-actions-grid {
    gap: 3px !important;
  }
  .btn-card-action {
    font-size: 10.5px !important;
    padding: 6px 2px !important;
    letter-spacing: -0.2px !important;
  }
  .btn-card-action svg {
    display: none !important;
  }
}

/* Detail Modal Share Button */
.btn-detail-action.btn-detail-share {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1.5px solid #BAE6FD !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px 14px !important;
  border-radius: var(--radius-sm, 6px) !important;
  cursor: pointer !important;
  font-family: var(--font-head, inherit) !important;
  font-size: 13.5px !important;
  transition: all 0.15s ease !important;
}
.btn-detail-action.btn-detail-share:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

/* CCTV Package Actions Grid with Share */
.pkg-actions-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr !important;
  gap: 6px !important;
  margin-top: auto !important;
}
.pkg-btn-share {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 10px 6px !important;
  border-radius: var(--radius-sm, 6px) !important;
  font-family: var(--font-head, 'Outfit', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border: 1px solid #BAE6FD !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}
.pkg-btn-share:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}
.pkg-btn-wa, .pkg-btn-cart {
  font-size: 12px !important;
  padding: 10px 6px !important;
}

@media (max-width: 480px) {
  .pkg-actions-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
}

/* Universal Share Modal (Fixed Overlay) */
.share-modal-backdrop {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 42, 85, 0.7) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}
.share-modal-backdrop.active {
  display: flex !important;
}
.share-modal-box {
  background: #FFFFFF !important;
  border-radius: 12px !important;
  max-width: 440px !important;
  width: 100% !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4) !important;
  overflow: hidden !important;
  position: relative !important;
  animation: shareModalFadeIn 0.2s ease !important;
  border: 1px solid rgba(15, 42, 85, 0.15) !important;
  margin: auto !important;
}
@keyframes shareModalFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.share-modal-header {
  padding: 14px 18px !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.share-modal-title {
  font-family: var(--font-head, 'Outfit', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #0F2A55 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.share-modal-close {
  background: none !important;
  border: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: #64748B !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}
.share-modal-close:hover {
  color: #B0151C !important;
  background: #FEE2E2 !important;
}
.share-modal-body {
  padding: 18px !important;
}
.share-item-info {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-bottom: 14px !important;
}
.share-item-name {
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #0F172A !important;
  margin-bottom: 4px !important;
  line-height: 1.35 !important;
}
.share-item-price {
  font-weight: 800 !important;
  color: #B0151C !important;
  font-size: 13.5px !important;
}
.share-btn-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.share-btn-wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 12px !important;
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}
.share-btn-wa:hover {
  background: #20BA5A !important;
}
.share-btn-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 12px !important;
  background: #0B2F74 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}
.share-btn-copy:hover {
  background: #071E4B !important;
}
.share-url-box {
  display: flex !important;
  gap: 6px !important;
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  padding: 4px !important;
}
.share-url-box input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
  color: #475569 !important;
  outline: none !important;
}
.share-url-box button {
  background: #E2E8F0 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}
.share-url-box button:hover {
  background: #CBD5E1 !important;
}
@media (max-width: 480px) {
  .share-btn-group { grid-template-columns: 1fr !important; }
}
