/* Design Tokens & CSS Variables - Strictly Solid Colors (NO GRADIENTS per rule) */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Primary & Brand Colors (Clean Solids) */
  --color-primary: #ea580c;
  --color-primary-hover: #c2410c;
  --color-primary-subtle: #ffedd5;
  
  --color-secondary: #0f172a;
  --color-secondary-hover: #1e293b;
  
  --color-whatsapp: #15803d;
  --color-whatsapp-hover: #166534;
  --color-whatsapp-subtle: #dcfce7;

  /* Surfaces & Backgrounds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  /* Accents & Status */
  --color-badge-sale-bg: #dc2626;
  --color-badge-sale-text: #ffffff;
  --color-badge-stock-bg: #16a34a;
  --color-badge-stock-text: #ffffff;
  --color-star: #eab308;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;

  /* Dimensions & Spacing */
  --max-width: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 76px; /* reserve space for mobile sticky bar */
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Icon Alignment Standards Rule */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
  padding: 8px 0;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-bar-content .icon-wrap {
  font-size: 1rem;
  color: var(--color-primary);
}

/* Navbar */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-whatsapp);
}

.nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-account-link:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-primary);
}

.pill-badge .icon-wrap {
  font-size: 0.9rem;
}

/* Main Responsive Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 32px;
}

@media (min-width: 860px) {
  .page-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 48px;
    align-items: start;
  }
}

/* Gallery Section */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 860px) {
  .gallery-section {
    position: sticky;
    top: 24px;
  }
}

.gallery-main-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.gallery-badge-row {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.sale-badge {
  background-color: var(--color-badge-sale-bg);
  color: var(--color-badge-sale-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.stock-badge {
  background-color: var(--color-badge-stock-bg);
  color: var(--color-badge-stock-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.gallery-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f3f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery-main-img.fade-out {
  opacity: 0.4;
}

/* Gallery Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  transition: background-color 0.15s, color 0.15s;
  z-index: 10;
}

.nav-arrow:hover {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.nav-arrow .icon-wrap {
  font-size: 1.25rem;
}

/* Zoom Trigger */
.zoom-trigger-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.75);
  color: var(--text-inverse);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.zoom-trigger-btn:hover {
  background-color: var(--color-secondary);
}

.slide-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.75);
  color: var(--text-inverse);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Thumbnails */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-item {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f1f3f5;
  padding: 0;
  transition: border-color 0.2s, transform 0.15s;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover {
  border-color: var(--color-border-dark);
}

.thumb-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-subtle);
}

.swipe-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Guarantee Grid */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.guarantee-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guarantee-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1rem;
}

.guarantee-title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
}

.guarantee-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.stars-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-star);
  font-size: 0.95rem;
}

.rating-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.rating-count {
  font-size: 0.825rem;
  color: var(--text-light);
}

.product-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .product-title {
    font-size: 2rem;
  }
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Price Box */
.price-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.mrp-price {
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.discount-pill {
  background-color: var(--color-badge-sale-bg);
  color: var(--text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tax-note {
  font-size: 0.825rem;
  color: var(--color-whatsapp);
  font-weight: 500;
  margin-top: 8px;
}

.urgency-banner {
  margin-top: 12px;
  padding: 8px 12px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgency-icon {
  font-size: 1rem;
}

/* Gift Banner */
.gift-banner {
  margin-top: 10px;
  padding: 10px 12px;
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  color: #854d0e;
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gift-banner .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  color: #ca8a04;
}

.gift-banner strong {
  color: #713f12;
}

/* Purchase Controls */
.purchase-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qty-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1rem;
  transition: background-color 0.15s;
}

.qty-btn:hover {
  background-color: var(--bg-muted);
}

.quantity-stepper input {
  width: 44px;
  height: 38px;
  border: none;
  text-align: center;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  outline: none;
}

.bundle-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Action Buttons */
.action-buttons-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .action-buttons-group {
    grid-template-columns: 1.25fr 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background-color 0.15s, transform 0.05s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
}

.btn-icon {
  font-size: 1.15rem;
}

/* Checkout Assurance */
.checkout-assurance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.checkout-assurance .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Features Block */
.features-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.feature-item strong {
  color: var(--text-main);
}

.feature-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Accordion */
.details-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.acc-header {
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background-color: var(--bg-surface);
  transition: background-color 0.15s;
}

.acc-header::-webkit-details-marker {
  display: none;
}

.acc-header:hover {
  background-color: var(--bg-subtle);
}

.acc-chevron {
  font-size: 1rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.acc-item[open] .acc-chevron {
  transform: rotate(180deg);
}

.acc-body {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-body strong {
  color: var(--text-main);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th {
  text-align: left;
  padding: 8px 4px;
  font-weight: 600;
  color: var(--text-main);
  width: 40%;
}

.specs-table td {
  padding: 8px 4px;
  color: var(--text-muted);
}

/* What's In The Box Grid */
.box-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.box-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.box-item.bonus-item {
  background-color: #fefce8;
  border-color: #fef08a;
}

.box-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.bonus-item .box-item-icon {
  color: #ca8a04;
}

.box-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.bonus-item strong {
  color: #713f12;
}

.box-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Steps List */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.step-number {
  width: 24px;
  height: 24px;
  background-color: var(--color-secondary);
  color: var(--text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card strong {
  font-size: 0.9rem;
}

.step-card p {
  font-size: 0.825rem;
  margin-top: 2px;
}

/* FAQ Content */
.faq-content {
  gap: 12px;
}

.faq-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-entry strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.faq-entry p {
  font-size: 0.85rem;
}

/* Customer Reviews Preview */
.reviews-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Rating Summary Card */
.rating-summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 520px) {
  .rating-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  .summary-score-col {
    align-items: center;
  }
}

.summary-score-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.big-score {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.summary-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-bars-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.bar-label {
  width: 42px;
  color: var(--text-muted);
  font-weight: 500;
}

.bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--color-star);
  border-radius: var(--radius-full);
}

.bar-count {
  width: 16px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
}

.dim-star {
  color: #d1d5db;
}

.review-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-whatsapp);
}

.check-icon {
  font-size: 0.8rem;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
  font-size: 0.85rem;
}

.review-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: normal;
}

/* Ratings Only Section */
.ratings-only-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ratings-only-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rating-only-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

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

.buyer-name {
  font-weight: 500;
  color: var(--text-main);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background-color: var(--bg-surface);
  padding: 20px 0;
  font-size: 0.825rem;
  color: var(--text-light);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo-wrap {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-brand-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}

@media (min-width: 860px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
}

.sticky-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.sticky-mrp {
  font-size: 0.75rem;
  color: var(--text-light);
}

.sticky-badge {
  font-weight: 700;
  color: var(--color-badge-sale-bg);
}

.sticky-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.92);
}

.lightbox-container {
  position: relative;
  z-index: 1010;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background-color: #000000;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.lightbox-counter {
  margin-top: 10px;
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: var(--color-secondary);
  color: var(--text-inverse);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Checkout Email & OTP Verification Modal
   ========================================================================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
}

.checkout-modal-card {
  position: relative;
  z-index: 2510;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.1);
  border: 1px solid #cbd5e1;
  padding: 28px 24px;
  animation: modalFadeIn 0.22s ease-out;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .checkout-modal-card {
    padding: 22px 16px;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.checkout-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.checkout-modal-close:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header-center {
  text-align: center;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c2410c;
  background-color: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.modal-desc {
  font-size: 0.9rem;
  color: #334155 !important;
  line-height: 1.5;
  margin: 0;
}

.order-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.summary-label {
  color: #475569;
}

.summary-label strong {
  color: #0f172a;
  font-weight: 600;
}

.summary-price {
  font-weight: 800;
  color: #ea580c;
  font-size: 1.15rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a !important;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  color: #0f172a !important;
  background-color: #ffffff !important;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.form-input::placeholder {
  color: #94a3b8;
}

.otp-code-field {
  font-size: 1.75rem;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 700;
  color: #0f172a !important;
  border-color: #ea580c;
}

.form-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.form-error {
  font-size: 0.85rem;
  color: #991b1b;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  line-height: 1.4;
  font-weight: 500;
}

.modal-action-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  background-color: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.modal-action-btn:hover {
  background-color: #c2410c;
}

.link-btn {
  background: none;
  border: none;
  color: #ea580c;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  display: inline;
}

.link-btn:hover {
  color: #c2410c;
}

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 4px;
}

/* Success View */
.success-icon-wrap {
  width: 56px;
  height: 56px;
  background-color: #ecfdf5;
  color: #047857;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  border: 2px solid #a7f3d0;
}

.success-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.success-details-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-auth-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px dashed var(--color-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
  color: #64748b;
  font-weight: 500;
}

.detail-value {
  font-weight: 700;
  color: #0f172a;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-note {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 20px 0;
}
