/* ═══════════════════════════════════════════════════════════════
   styles.css — The Tech Room BD
   Design tokens from DESIGN.md | Mobile-first (Rules §4.3)
   ═══════════════════════════════════════════════════════════════ */

/* Import Noto Sans Bengali from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

/* Apply globally to all elements */
body, h1, h2, h3, h4, h5, h6, p, span, div, input, button, select, textarea, label {
    font-family: 'Noto Sans Bengali', sans-serif !important;
}

/* Ensure specific payment numbers also inherit the font properly */
.store-number, #full-bill-amount {
    font-family: 'Noto Sans Bengali', sans-serif !important;
    letter-spacing: 0.5px; /* Adds a tiny bit of breathing room for Bangla characters */
}

/* ── 1. CSS Custom Properties (Design Tokens) ──────────────────── */
:root {
  /* Colors */
  --color-primary:               #1a2a4a;
  --color-on-primary:            #ffffff;
  --color-primary-container:     #031534;
  --color-on-primary-container:  #8292b7;
  --color-secondary:             #944a00;
  --color-secondary-container:   #f5841f;
  --color-on-secondary-container:#632f00;
  --color-background:            #fcf9f8;
  --color-on-background:         #1b1c1c;
  --color-surface:               #ffffff;
  --color-surface-low:           #f6f3f2;
  --color-surface-container:     #f0eded;
  --color-surface-high:          #eae7e7;
  --color-surface-highest:       #e5e2e1;
  --color-on-surface:            #1b1c1c;
  --color-on-surface-variant:    #44474e;
  --color-outline:               #75777f;
  --color-outline-variant:       #c5c6cf;
  --color-error:                 #ba1a1a;
  --color-error-container:       #ffdad6;
  --color-inverse-surface:       #303030;
  --color-inverse-on-surface:    #f3f0ef;

  /* Typography */
  --font-primary: 'Be Vietnam Pro', 'Hind Siliguri', sans-serif;
  --font-label:   'Work Sans', sans-serif;

  /* Spacing — 8px baseline grid */
  --space-xs:   4px;
  --space-sm:   12px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --gutter:     16px;
  --container:  1280px;

  /* Border radius */
  --r-sm:   4px;
  --r:      8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Elevation shadows (tinted with primary navy) */
  --shadow-1: 0 2px 8px rgba(3, 21, 52, 0.08), 0 1px 3px rgba(3, 21, 52, 0.06);
  --shadow-2: 0 8px 24px rgba(3, 21, 52, 0.12), 0 2px 6px rgba(3, 21, 52, 0.08);
  --shadow-3: 0 16px 40px rgba(3, 21, 52, 0.16);

  /* Transitions */
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

/* ── 3. Layout Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: var(--space-lg) 0;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--color-on-surface-variant);
  text-align: center;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* ── 4. Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: var(--r);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-secondary-container);
  color: #1a0900;
  box-shadow: 0 4px 14px rgba(253, 138, 38, 0.40);
}
.btn-primary:hover {
  background: #e87d1e;
  box-shadow: 0 6px 20px rgba(253, 138, 38, 0.50);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-sm  { padding: 10px 20px; font-size: 14px; }
.btn-md  { padding: 13px 28px; font-size: 15px; }
.btn-lg  { padding: 16px 36px; font-size: 17px; min-height: 54px; }
.btn-full { width: 100%; }

/* ── 5. HEADER ───────────────────────────────────────────────────── */
.site-header {
  background: var(--color-secondary-container);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(3, 21, 52, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  font-size: 20px;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.logo-bd {
  color: #ffffff;
}
.logo-light .logo-text { color: #ffffff; }
.logo-light .logo-bd { color: var(--color-secondary-container); }

.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: var(--r);
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

/* ── 6. HERO ─────────────────────────────────────────────────────── */
.hero {
  background: #FAFAFA;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  height: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 0 0 auto;
}



.hero-title {
  font-family: 'Baloo Da 2', var(--font-primary);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  margin-top: -8px;
}

.hero-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 8px 0;
}
.price-was {
  font-family: var(--font-label);
  font-size: 24px;
  color: #6c757d;
  text-decoration: line-through;
}
.price-amount {
  font-family: var(--font-label);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-secondary-container);
  line-height: 1;
}

.hero-ctas {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.hero-ctas .btn {
  width: 100%;
  max-width: 360px;
  border-radius: var(--r);
  margin: 0;
  font-size: 20px;
  padding: 16px 32px;
  box-shadow: 0 4px 14px rgba(253, 138, 38, 0.40);
}



/* Hero image */
.hero-image-wrap {
  width: 100%;
  max-width: 360px;
  max-height: 45vh;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(130, 146, 183, 0.4);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-placeholder .placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--space-md);
  color: #8292b7;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.hero-img-placeholder small {
  font-family: var(--font-label);
  font-size: 11px;
  opacity: 0.7;
}

/* ── 7. TRUST BADGES ─────────────────────────────────────────────── */
.trust-badges {
  background: var(--color-surface);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-outline-variant);
  box-shadow: var(--shadow-1);
  overflow-x: hidden;
}
.badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  width: 100%;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}
.badge-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-text strong {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

/* ── 8. GALLERY / CAROUSEL ───────────────────────────────────────── */
.gallery-section {
  background: var(--color-background);
}
.gallery-section .section-title {
  margin-bottom: 32px;
}
.carousel-wrapper {
  position: relative;
  /* background/border moved to slides */
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc((100% - 85%) / 2);
  gap: 16px;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:active { cursor: grabbing; }

.carousel-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F5F7;
  border: 1px solid var(--color-outline-variant);
  border-radius: 24px;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  mix-blend-mode: multiply;
  cursor: pointer;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-container);
}
.img-placeholder .placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-outline);
  text-align: center;
  font-size: 13px;
}
.img-placeholder small {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--color-outline-variant);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: transparent;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: #D1D5DB; /* light gray */
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition), height var(--transition);
  padding: 0;
}
.dot.active {
  background: #1A2A4A; /* dark navy */
  width: 12px;
  height: 12px;
  /* Adjust margin slightly to keep aligned since size changed */
  margin-top: -2px;
}

/* ── LIGHTBOX MODAL ──────────────────────────────────────────────── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 51;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 51;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── 9. FEATURES ─────────────────────────────────────────────────── */
.features-section {
  background: var(--color-surface-low);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(3, 21, 52, 0.06) 0%, rgba(3, 21, 52, 0.10) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}
.feature-card p {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* ── 10. PRICE COMPARISON ────────────────────────────────────────── */
.price-compare-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.price-compare-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(253, 138, 38, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.price-compare-section .section-title {
  color: #ffffff;
}
.price-compare-section .section-subtitle {
  color: var(--color-on-primary-container);
}
.price-note { display: block; font-size: 11px; color: rgba(130, 146, 183, 0.7); margin-top: 2px; }

.compare-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.compare-vs {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  padding: 4px 0;
}
.compare-card {
  width: 100%;
  border-radius: var(--r-lg);
  padding: var(--space-md);
  text-align: center;
}
.compare-market {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}
.compare-ours {
  background: rgba(253, 138, 38, 0.12);
  border: 2px solid rgba(253, 138, 38, 0.5);
  position: relative;
}
.compare-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-primary-container);
  margin-bottom: 8px;
}
.compare-range {
  font-family: var(--font-label);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.compare-our-price {
  font-family: var(--font-label);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-secondary-container);
  margin-bottom: 6px;
}
.compare-detail {
  font-size: 13px;
  color: var(--color-on-primary-container);
  line-height: 1.7;
}
.compare-badge {
  display: inline-block;
  background: var(--color-secondary-container);
  color: #1a0900;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-top: 10px;
}

/* ── 11. HOW IT WORKS ────────────────────────────────────────────── */
.how-it-works {
  background: var(--color-background);
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-md);
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-connector {
  width: 28px;
  height: 24px;
  margin-left: 14px;
  border-left: 2px dashed var(--color-outline-variant);
}
.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(3, 21, 52, 0.25);
}
.step-content {
  padding-top: 4px;
  padding-bottom: var(--space-sm);
}
.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.step-content p {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}
.steps-cta {
  text-align: center;
  margin-top: var(--space-sm);
}
.steps-cta .btn {
  width: 100%;
  max-width: 280px;
}

/* ── 12. ORDER FORM PLACEHOLDER ──────────────────────────────────── */
.order-section {
  background: var(--color-surface-low);
}
.order-placeholder {
  border: 2px dashed var(--color-secondary-container);
  border-radius: var(--r-xl);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 138, 38, 0.04);
}
.order-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--color-on-surface-variant);
}
.order-placeholder-inner h3 {
  font-size: 18px;
  color: var(--color-primary);
}
.order-placeholder-inner p {
  font-size: 13px;
  color: var(--color-outline);
}

/* ── 13. WHY US ──────────────────────────────────────────────────── */
.why-us-section {
  background: var(--color-surface);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.why-card {
  background: var(--color-surface-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.why-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(253, 138, 38, 0.10) 0%, rgba(253, 138, 38, 0.16) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}
.why-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}
.why-card p {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* ── 13.5 POLICIES ──────────────────────────────────────────────────── */
.policy-section {
  background: var(--color-surface);
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 768px) {
  .policy-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
.policy-card {
  background: var(--color-surface-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.policy-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(253, 138, 38, 0.10) 0%, rgba(253, 138, 38, 0.16) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}
.policy-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}
.policy-card p {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* ── 14. REVIEWS (honest empty state — Rules §1.1) ───────────────── */
.reviews-section {
  background: var(--color-surface-low);
  padding: var(--space-lg) 0;
}
.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--r-xl);
  text-align: center;
}
.reviews-empty-icon { opacity: 0.5; }
.reviews-empty-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
}
.reviews-empty-sub {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  max-width: 320px;
}

/* ── 15. FAQ ACCORDION ───────────────────────────────────────────── */
.faq-section {
  background: var(--color-background);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-surface-low); }
.faq-question span { flex: 1; line-height: 1.4; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--color-outline);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer.open {
  max-height: 400px;
}
.faq-answer p {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.7;
  border-top: 1px solid var(--color-outline-variant);
  padding-top: 14px;
}

/* ── 16. FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: var(--color-on-primary-container);
  padding: var(--space-lg) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}
.footer-brand {}
.footer-tagline {
  font-size: 13px;
  color: var(--color-on-primary-container);
  margin-top: 10px;
  line-height: 1.6;
}
.footer-brand .logo-text { color: #ffffff; }

.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary-container);
  margin-bottom: 12px;
  font-family: var(--font-label);
}
.footer-contact ul,
.footer-policy ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact li,
.footer-policy li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-on-primary-container);
}
.footer-contact svg { flex-shrink: 0; margin-top: 1px; opacity: 0.7; }
.footer-contact a { color: inherit; transition: color var(--transition); }
.footer-contact a:hover { color: var(--color-secondary-container); }
.footer-hours p { font-size: 13px; margin-bottom: 4px; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(130, 146, 183, 0.7);
}

/* ── 17. ORDER FORM (Step 5) + PAYMENT INSTRUCTIONS (Step 6) ────── */
.order-section {
  background: linear-gradient(180deg, var(--color-surface-low) 0%, var(--color-background) 100%);
}
.order-form-wrap {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  box-sizing: border-box;
}

/* Responsive Address Grid */
.address-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}
@media (min-width: 768px) {
  .address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* Field groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: 1.3;
}
.required {
  color: var(--color-error);
  margin-left: 2px;
}
.optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-outline);
  margin-left: 4px;
}
.field-input {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 13px 14px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-on-surface);
  background: var(--color-surface);
  border: 1.5px solid var(--color-outline-variant);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.field-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 21, 52, 0.10);
}
.field-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.10);
}
.field-input::placeholder { color: var(--color-outline); opacity: 1; }
.field-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.55;
}
.field-select {
  cursor: pointer;
}

/* Tom Select Overrides to match .field-input */
.ts-wrapper.field-input,
.ts-wrapper.field-select {
  /* Reset the outer wrapper so it doesn't duplicate borders, padding, and background images from original classes */
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ts-control {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px !important;
  padding: 13px 14px !important;
  box-sizing: border-box !important;
  font-family: var(--font-primary) !important;
  font-size: 15px !important;
  color: var(--color-on-surface) !important;
  background: var(--color-surface) !important;
  border: 1.5px solid var(--color-outline-variant) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  display: flex !important;
  align-items: center !important;
  
  /* Restore the custom chevron from .field-select */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2375777f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
  padding-right: 40px !important;
  cursor: pointer !important;
}
.ts-control input {
  /* Ensure the typing area doesn't break layout */
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

/* Hide the selected item text while the dropdown is open and the user is searching */
.ts-wrapper.single.focus .ts-control .item,
.ts-wrapper.single.dropdown-active .ts-control .item {
  display: none !important;
}

/* Ensure the search input always takes full width so it never wraps */
.ts-wrapper.single.focus .ts-control input,
.ts-wrapper.single.dropdown-active .ts-control input {
  width: 100% !important;
}

/* Keep the control box strictly on a single line */
.ts-wrapper.single .ts-control {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(3, 21, 52, 0.10) !important;
}
.ts-wrapper.is-invalid .ts-control {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.10) !important;
}
.ts-dropdown {
  font-family: var(--font-primary) !important;
  font-size: 15px !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--color-outline-variant) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-top: 4px !important;
}
.ts-dropdown,
.dropdown-menu {
    /* Set a hard limit based on viewport width to prevent horizontal overflow */
    max-width: calc(100vw - 32px) !important; 
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}
.ts-dropdown .option {
  padding: 10px 14px !important;
}
.ts-dropdown .active {
  background-color: rgba(3, 21, 52, 0.05) !important;
  color: var(--color-primary) !important;
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2375777f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-error);
  min-height: 16px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.field-hint {
  font-size: 12px;
  color: var(--color-outline);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.field-hint svg { flex-shrink: 0; margin-top: 1px; }

/* Phone prefix */
.input-with-prefix {
  display: flex;
  align-items: stretch;
}
.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--color-surface-container);
  border: 1.5px solid var(--color-outline-variant);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  white-space: nowrap;
}
.input-with-prefix .field-input {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  flex: 1;
}
.input-with-prefix:focus-within .input-prefix {
  border-color: var(--color-primary);
}
.input-with-prefix:focus-within .field-input {
  border-color: var(--color-primary);
}

/* Coupon */
/* Input Row Alignment */
.coupon-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.coupon-input-row .field-input {
    flex: 1;
}
.btn-coupon-submit {
    background-color: var(--color-secondary-container); /* Matches your accent theme */
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-coupon-submit:hover {
    background-color: var(--color-secondary);
}

/* Invalid Red Input State */
.coupon-input-row.is-invalid .field-input {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8;
}
.coupon-error-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Success State Badge */
.coupon-applied-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e6f4ea;
    border: 1px solid #137333;
    padding: 10px 14px;
    border-radius: 6px;
    color: #137333;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.badge-check {
    font-weight: bold;
    margin-right: 4px;
}
.btn-coupon-remove {
    background: none;
    border: none;
    color: #137333;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.btn-coupon-remove:hover {
    color: #c5221f;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--color-surface);
  border: 1.5px solid var(--color-outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.summary-rows {
  padding: 14px 16px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
}
.s-label { color: var(--color-on-surface-variant); }
.s-value { font-weight: 600; color: var(--color-on-surface); }
.s-discount { color: #15803d; }
.summary-divider {
  height: 1px;
  background: var(--color-outline-variant);
  margin: 6px 0;
}
.summary-total-row .s-label,
.summary-total-row .s-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.s-total { color: var(--color-primary) !important; }

.summary-payment-split {
  display: flex;
  gap: 0;
  border-top: 1.5px solid var(--color-outline-variant);
  margin: 8px 0 0;
}
.split-item {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}
.split-advance {
  background: rgba(253, 138, 38, 0.08);
  border-right: 1px solid var(--color-outline-variant);
}
.split-cod {
  background: rgba(3, 21, 52, 0.04);
}
.split-label {
  font-size: 11px;
  color: var(--color-on-surface-variant);
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}
.split-advance .split-value {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: #944a00;
}
.split-cod .split-value {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Payment Instructions Box */
.payment-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid rgba(253, 138, 38, 0.4);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.payment-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  color: #7c3100;
  margin-bottom: 10px;
}
.payment-intro {
  font-size: 14px;
  color: #713200;
  margin-bottom: 16px;
  line-height: 1.5;
}
.payment-intro strong { color: #7c3100; }

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.payment-method {
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
  border: 1.5px solid;
}
.bkash-method {
  background: #fff0f7;
  border-color: #f9a8c9;
}
.nagad-method {
  background: #fff4ee;
  border-color: #f9b88a;
}
.pm-logo {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.bkash-method .pm-logo { color: #9f1239; }
.nagad-method .pm-logo { color: #b45309; }
.pm-number {
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 24px;
}
.bkash-method .pm-number { color: #7c1d37; }
.nagad-method .pm-number { color: #92400e; }
.pm-loading { font-size: 12px; color: var(--color-outline); font-weight: 400; }
.pm-type {
  font-size: 11px;
  color: var(--color-outline);
  font-weight: 500;
}
.pm-unavailable {
  font-size: 12px;
  color: var(--color-outline);
  font-weight: 400;
}

.payment-steps {
  counter-reset: ps;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-steps li {
  counter-increment: ps;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #7c3100;
  line-height: 1.5;
  align-items: flex-start;
}
.payment-steps li::before {
  content: counter(ps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: rgba(253, 138, 38, 0.25);
  color: #7c3100;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Global form error */
.form-error-global {
  background: var(--color-error-container);
  border: 1px solid rgba(186,26,26,0.2);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  color: #7c0d0d;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Submit area */
.form-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.submit-note {
  font-size: 12px;
  color: var(--color-outline);
  text-align: center;
  line-height: 1.5;
}

/* Loading state on button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 9, 0, 0.3);
  border-top-color: #1a0900;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
.btn.loading .btn-text,
.btn.loading .btn-icon { display: none; }
.btn.loading .btn-spinner { display: block; }
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.order-success {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1.5px solid var(--color-outline-variant);
  border-radius: var(--r-xl);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.success-icon svg {
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.30));
}
.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}
.success-order-id {
  font-size: 14px;
  color: var(--color-on-surface-variant);
}
.success-order-id strong {
  font-family: var(--font-label);
  color: var(--color-primary);
  font-size: 16px;
}
.success-message {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.7;
}
.success-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-surface-low);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-on-surface-variant);
  text-align: left;
  line-height: 1.5;
}
.success-note svg { flex-shrink: 0; margin-top: 1px; color: var(--color-outline); }

/* Utility: hidden */
.hidden { display: none !important; }

/* ── 18. RESPONSIVE — Tablet (≥600px) ───────────────────────────── */
@media (min-width: 600px) {
  .section-title  { font-size: 26px; }
  .hero-title     { font-size: 40px; }
  .hero-title-product { font-size: 38px; }

  .hero-inner {
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
    gap: var(--space-md);
  }
  .hero-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-ctas { display: flex; justify-content: center; }
  .hero-ctas .btn { width: 100%; border-radius: var(--r); }
  .hero-image-wrap { flex: 1 1 auto; max-width: 400px; max-height: 50vh; }
  .hero-price-block { align-self: center; align-items: center; }

  .badges-row { gap: var(--space-md); }
  .badge-item { gap: 12px; }
  .badge-text strong { font-size: 15px; }

  .compare-cards {
    flex-direction: row;
    align-items: stretch;
  }
  .compare-card { flex: 1; }
  .compare-vs { padding: 0 4px; display: flex; align-items: center; }

  .features-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

  /* Form — wider on tablet */
  .order-form-wrap { max-width: 600px; }

  .steps-list {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
  }
  .step-connector {
    width: 24px;
    height: 2px;
    margin-left: 0;
    margin-top: 18px;
    border-left: none;
    border-top: 2px dashed var(--color-outline-variant);
  }
  .step-item { flex-direction: column; align-items: center; text-align: center; }
  .step-content { padding-top: 12px; padding-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 19. RESPONSIVE — Desktop (≥1024px) ─────────────────────────── */
@media (min-width: 1024px) {
  section { padding: var(--space-xl) 0; }

  .hero-title     { font-size: 36px; }
  .hero-title-product { font-size: 48px; }
  .hero-image-wrap { flex: 0 0 380px; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid      { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── 20. Utility Animations ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 480ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Smooth scroll offset for sticky header */
[id] { scroll-margin-top: 64px; }

/* ── 21. Tom Select Quantity Fix ──────────────────────────────────────── */
/* Force the selected item to stay visible when focused */
#fg-quantity .ts-wrapper.single.focus .ts-control .item {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Hide the search input cursor inside the quantity field */
#fg-quantity .ts-wrapper .ts-control > input {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
}

/* ── 22. New Payment Box UI ──────────────────────────────────────── */
.payment-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.payment-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
}
.copy-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px dashed #e85d04;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.store-number {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #e85d04;
}
.btn-copy {
    background: #e85d04;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-copy:hover {
    background: #cc5200;
}
.radio-flex-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}
.radio-card:hover {
    border-color: #e85d04;
}
.radio-card input[type="radio"] {
    accent-color: #e85d04;
    transform: scale(1.2);
}
.helper-text {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #e63946;
}

/* ── 23. Compact Layout Fixes ────────────────────────────────────── */
/* 1. Reduce the massive gap between each form block (Label + Input) */
.field-group {
    margin-bottom: 12px !important; /* Total spacing between inputs */
    gap: 2px !important; /* Eliminate internal flex gap to tighten label to input */
}

/* Fix compounding gap from the parent address grid (District + Thana) */
.address-grid {
    gap: 0 !important; 
}

/* 2. Tighten the space between the red text label and the input box */
.field-label {
    margin-bottom: 0 !important; 
}

/* 3. Slightly reduce the padding inside the input boxes and Tom Select dropdowns to make them sleeker */
.field-input, 
.ts-control,
.ts-wrapper.single .ts-control {
    padding: 8px 12px !important;
    min-height: 40px !important; 
}

/* 4. Tighten the spacing below the main 'অর্ডার করুন' title and subtitle */
.form-header,
.checkout-header {
    margin-bottom: 10px !important;
}

/* 5. Reduce the gap above the order summary box */
.order-summary,
#order-summary-box {
    margin-top: 10px !important;
}
