:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #10b981;

  --font-main: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 30px -10px rgb(0 0 0 / 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top Announcement Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.88rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-notice-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-tag {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--secondary);
}
.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary);
}
.brand-text span {
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Hero Section */
.hero-product-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.badge-pill.moq {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-pill.mixed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-pill.advance {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.hero-title-wrap h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
}
.hero-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-top: 4px;
}
.hero-price-tag {
  font-size: 1.4rem;
  font-weight: 800;
  color: #047857;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.hero-price-tag span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* Wholesale Price Tiers Banner (Wholesale Tier Pricing Engine) */
.wholesale-price-tiers-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 950px) {
  .wholesale-price-tiers-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 550px) {
  .wholesale-price-tiers-banner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.tier-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.tier-pill.active {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18);
  transform: translateY(-2px);
}
.tier-pill.active::after {
  content: "সক্রিয় বাল্ক রেট ✓";
  position: absolute;
  top: 8px;
  right: 10px;
  background: #047857;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.tier-pill .tier-qty {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.tier-pill.active .tier-qty {
  color: #047857;
}
.tier-pill .tier-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}
.tier-pill.active .tier-price {
  color: #065f46;
}
.tier-pill .tier-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
}

/* Optional Video Trigger Button */
.btn-watch-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-watch-video:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Multi-angle badge on cards */
.detail-angle-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 4;
}
.detail-angle-badge:hover {
  background: var(--primary);
  color: white;
}

/* ONE-PAGE ORDER LAYOUT ARCHITECTURE */
.one-page-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) {
  .one-page-layout-grid {
    grid-template-columns: 1fr 340px;
    gap: 20px;
  }
}
@media (max-width: 950px) {
  .one-page-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.main-order-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section Card Container */
.order-step-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .order-step-section {
    padding: 16px;
  }
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 8px;
}
.step-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num-badge {
  background: var(--secondary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}
.step-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}
.step-helper-tag {
  font-size: 0.82rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* RESPONSIVE PHOTO GRID SPECIFICATION:
   Desktop: 4 Columns
   Tablet: 3 Columns
   Mobile: 2 Columns
   Small Mobile: 2 Columns */
.photo-design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) and (min-width: 769px) {
  .photo-design-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .photo-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Single Photo Card */
.photo-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.photo-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.photo-card.is-selected {
  border-color: var(--primary);
  background: #fafdfb;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 120%;
  background: #f1f5f9;
  cursor: pointer;
  overflow: hidden;
}
.photo-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-card:hover .photo-thumb-wrap img {
  transform: scale(1.04);
}

.design-tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.btn-card-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.btn-card-zoom:hover {
  background: white;
  transform: scale(1.1);
}

.check-overlay-mark {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.photo-card.is-selected .check-overlay-mark {
  display: flex;
}

.card-meta-box {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.card-details-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.stock-indicator {
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stock-indicator.low { color: #d97706; }
.stock-indicator.out { color: #dc2626; }

/* Unselected State Prompt CTA */
.card-unselected-cta {
  margin-top: 6px;
}
.btn-select-design {
  width: 100%;
  padding: 8px 10px;
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-select-design:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}
.btn-select-design:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.qty-controller-container {
  margin-top: 4px;
}

.btn-remove-summary-item {
  transition: transform 0.15s ease, color 0.15s ease;
}
.btn-remove-summary-item:hover {
  color: #ef4444 !important;
  transform: scale(1.2);
}

.btn-confirm-pay.is-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: #94a3b8 !important;
  box-shadow: none !important;
}

/* Large Touch Target Quantity Controls */
.qty-stepper-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
  height: 42px;
  transition: var(--transition);
}
.photo-card.is-selected .qty-stepper-box {
  border-color: var(--primary);
  background: white;
}

.stepper-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}
.stepper-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}
.stepper-btn:active {
  background: #cbd5e1;
}

.stepper-input {
  width: 100%;
  flex-grow: 1;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  outline: none;
  -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Preset quick adds */
.quick-add-pills {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.btn-pill-add {
  flex: 1;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 4px;
  padding: 5px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}
.btn-pill-add:hover {
  border-color: var(--primary);
  color: #047857;
  background: var(--primary-light);
}

/* SECTION 2: DELIVERY INFO FORM */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
}
.form-field-group label .req {
  color: var(--danger);
}
.input-control, .select-control, .textarea-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: white;
  transition: var(--transition);
}
.input-control:focus, .select-control:focus, .textarea-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* SECTION 3: PAYMENT SELECTION */
.payment-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 550px) {
  .payment-mode-cards {
    grid-template-columns: 1fr;
  }
}
.pay-mode-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  background: white;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.pay-mode-card:hover {
  border-color: #cbd5e1;
}
.pay-mode-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pay-mode-card input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 3px;
  width: 18px;
  height: 18px;
}
.pay-mode-text .title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
}
.pay-mode-text .desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.method-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.method-tab-btn {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  background: white;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.method-tab-btn.active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.method-tab-btn.nagad.active {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
}
.method-tab-btn.gateway.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.payment-guide-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 12px;
}
.copy-number-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 6px 0;
  font-weight: 800;
  color: #0f172a;
}
.btn-copy-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.btn-copy-action:hover {
  background: #e2e8f0;
}

/* SECTION 4: RIGHT STICKY ORDER SUMMARY */
.sticky-summary-sidebar {
  position: sticky;
  top: 80px;
  z-index: 30;
}
@media (max-width: 950px) {
  .sticky-summary-sidebar {
    position: static;
  }
}

.summary-card-panel {
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.summary-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.selected-mini-stream {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.mini-design-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.mini-design-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-thumb {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
}
.mini-info .id-lbl {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--secondary);
}
.mini-info .qty-lbl {
  font-size: 0.72rem;
  color: #64748b;
}
.mini-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--secondary);
}

.moq-live-badge-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.4;
}
.moq-live-badge-box.complete {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.summary-bill-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 14px 0;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
}
.bill-row.total-bill {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}
.bill-row.advance-row {
  background: var(--primary-light);
  color: #047857;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.1rem;
}
.bill-row.due-row {
  color: #b45309;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 2px 12px;
}

.btn-confirm-pay {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}
.btn-confirm-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-confirm-pay:disabled {
  background: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.summary-safe-tag {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* MOBILE BOTTOM STICKY TOTAL BAR */
.mobile-sticky-footer-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  z-index: 50;
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
@media (max-width: 950px) {
  .mobile-sticky-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}
.mobile-summary-left {
  display: flex;
  flex-direction: column;
}
.mobile-total-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
}
.mobile-status-text {
  font-size: 0.75rem;
  color: #94a3b8;
}
.btn-mobile-jump {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================================
   ENHANCED MULTI-ANGLE DETAIL MODAL (SECTION 4.2)
   Separation of Gallery vs Order Selection
   ======================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox-modal.active { display: flex; }
.lightbox-container-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  0% { transform: scale(0.96) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.lightbox-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.lightbox-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lightbox-header-left h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
}
.lightbox-sku-tag {
  font-size: 0.75rem;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.btn-close-modal {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: var(--transition);
}
.btn-close-modal:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* Multi-Angle Tab Buttons */
.lightbox-angle-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}
.angle-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.angle-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.angle-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Image Stage */
.lightbox-main-stage {
  position: relative;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  overflow: hidden;
}
@media (max-height: 750px) {
  .lightbox-main-stage {
    height: 280px;
  }
}
.lightbox-stage-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.lightbox-angle-caption-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Thumbnails Strip */
.lightbox-thumbs-row {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  justify-content: center;
}
.lightbox-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #f1f5f9;
  transition: var(--transition);
}
.lightbox-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The Core Business Logic Separation Notice */
.lightbox-rule-notice {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 8px 14px;
  margin: 10px 18px 0;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #92400e;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* In-Modal Synchronized Order Stepper Bar */
.lightbox-inmodal-order-bar {
  padding: 12px 18px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-color);
}
.lightbox-order-info {
  display: flex;
  flex-direction: column;
}
.lightbox-order-info .qty-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}
.lightbox-order-info .sub-total {
  font-size: 0.78rem;
  color: #047857;
  font-weight: 700;
}
.lightbox-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-done-modal {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-done-modal:hover {
  background: #047857;
}

/* Video Overview Modal */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal-overlay.active { display: flex; }
.video-modal-container {
  background: #000000;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.video-modal-header {
  background: #0f172a;
  color: white;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Order Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.success-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 32px 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.success-icon-wrap {
  width: 65px;
  height: 65px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.success-invoice-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
  text-align: left;
  font-size: 0.9rem;
}
