/* ==========================================================================
   Fabiha Enterprise - Light Claymorphic Design System (Phase 1)
   Palette:
     Primary Crimson Red : #D61A3C
     Secondary Deep Purple: #2D144B
     Canvas Background    : #F6F7FB
     Elevated Card Surface: #FFFFFF
     Status Accent Green  : #10B981
   ========================================================================== */

:root {
  --fe-crimson: #D61A3C;
  --fe-crimson-dark: #B51230;
  --fe-purple: #2D144B;
  --fe-purple-mid: #43216E;
  --fe-canvas: #F6F7FB;
  --fe-surface: #FFFFFF;
  --fe-green: #10B981;
  --fe-ink: #1A132B;
  --fe-muted: #5F5A72;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background-color: var(--fe-canvas);
  color: var(--fe-ink);
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="bn"] body {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Soft Ambient Background Blobs (Light & Clean) */
.fe-ambient-bg {
  background-image:
    radial-gradient(circle at 8% 4%, rgba(214, 26, 60, 0.065) 0%, transparent 38%),
    radial-gradient(circle at 92% 14%, rgba(45, 20, 75, 0.065) 0%, transparent 42%),
    radial-gradient(circle at 50% 72%, rgba(16, 185, 129, 0.045) 0%, transparent 45%);
}

/* ==========================================================================
   Claymorphic Elevated Surfaces
   ========================================================================== */
.clay-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 34px -10px rgba(45, 20, 75, 0.09),
    0 4px 12px -2px rgba(45, 20, 75, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -3px 7px rgba(45, 20, 75, 0.035);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.clay-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px -10px rgba(45, 20, 75, 0.12),
    0 6px 14px -2px rgba(45, 20, 75, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -3px 7px rgba(45, 20, 75, 0.035);
}

.clay-card-sm {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 22px -6px rgba(45, 20, 75, 0.075),
    0 2px 6px -1px rgba(45, 20, 75, 0.04),
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -2px 5px rgba(45, 20, 75, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.clay-inset {
  background: #F1F3F9;
  border: 1px solid rgba(45, 20, 75, 0.055);
  box-shadow:
    inset 0 2px 6px rgba(45, 20, 75, 0.065),
    inset 0 -2px 3px rgba(255, 255, 255, 0.9);
}

.clay-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 20, 75, 0.06);
  box-shadow: 0 8px 24px -8px rgba(45, 20, 75, 0.08);
}

.clay-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 -8px 28px -6px rgba(45, 20, 75, 0.11),
    0 8px 24px -6px rgba(45, 20, 75, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.98);
}

/* Tactile Buttons */
.clay-btn-red {
  background: linear-gradient(145deg, #E62246 0%, #C61435 100%);
  color: #FFFFFF;
  box-shadow:
    0 12px 24px -6px rgba(214, 26, 60, 0.42),
    0 3px 8px -2px rgba(214, 26, 60, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.32),
    inset 0 -3px 6px rgba(128, 6, 28, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.clay-btn-red:hover {
  filter: brightness(1.04);
}

.clay-btn-red:active {
  transform: scale(0.97) translateY(1px);
  box-shadow:
    0 6px 14px -4px rgba(214, 26, 60, 0.36),
    inset 0 2px 4px rgba(128, 6, 28, 0.25);
}

.clay-btn-purple {
  background: linear-gradient(145deg, #3C1C63 0%, #261040 100%);
  color: #FFFFFF;
  box-shadow:
    0 12px 24px -6px rgba(45, 20, 75, 0.4),
    0 3px 8px -2px rgba(45, 20, 75, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(13, 4, 26, 0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.clay-btn-purple:hover {
  filter: brightness(1.08);
}

.clay-btn-purple:active {
  transform: scale(0.97) translateY(1px);
  box-shadow:
    0 6px 14px -4px rgba(45, 20, 75, 0.35),
    inset 0 2px 4px rgba(13, 4, 26, 0.35);
}

.clay-btn-whatsapp {
  background: linear-gradient(145deg, #16C68E 0%, #0EA372 100%);
  color: #FFFFFF;
  box-shadow:
    0 12px 24px -6px rgba(16, 185, 129, 0.42),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(6, 95, 70, 0.32);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.clay-btn-whatsapp:active {
  transform: scale(0.97) translateY(1px);
}

.press-tactile {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.16s ease;
}

.press-tactile:active {
  transform: scale(0.965);
}

/* ==========================================================================
   Smooth Accordion Drawer inside Product Cards
   ========================================================================== */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-inner {
  overflow: hidden;
}

.chevron-icon {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-expanded .chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Live Status Pulse & Operations Strip
   ========================================================================== */
@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.live-dot-ring {
  animation: pulseRing 1.9s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Horizontal Scroll Snap without ugly scrollbars */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Custom Range Slider (Tactile Clay Thumb)
   ========================================================================== */
input[type="range"].fe-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #E8ECF5;
  box-shadow: inset 0 2px 4px rgba(45, 20, 75, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"].fe-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E62246, #B81130);
  border: 3px solid #FFFFFF;
  box-shadow:
    0 6px 14px rgba(214, 26, 60, 0.38),
    0 2px 4px rgba(45, 20, 75, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"].fe-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"].fe-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E62246, #B81130);
  border: 3px solid #FFFFFF;
  box-shadow:
    0 6px 14px rgba(214, 26, 60, 0.38),
    0 2px 4px rgba(45, 20, 75, 0.18);
  cursor: pointer;
}

/* ==========================================================================
   Slide-Up Bottom Sheet Drawer & Lightbox
   ========================================================================== */
.sheet-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.sheet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 -18px 46px -8px rgba(45, 20, 75, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.sheet-overlay.is-visible .sheet-panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .sheet-panel {
    transform: translateY(32px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }

  .sheet-overlay.is-visible .sheet-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Lightbox Zoom State */
.lightbox-img {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
}

.lightbox-img.is-zoomed {
  transform: scale(1.45);
  cursor: zoom-out;
}

/* Bottom Navigation Active Pill */
.bottom-nav-item {
  color: #6B6580;
  transition: color 0.18s ease, transform 0.15s ease;
}

.bottom-nav-item .nav-pill {
  background: transparent;
  transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.bottom-nav-item.is-active {
  color: #D61A3C;
}

.bottom-nav-item.is-active .nav-pill {
  background: rgba(214, 26, 60, 0.12);
  box-shadow: inset 0 1px 2px rgba(214, 26, 60, 0.12);
  transform: translateY(-1px);
}

/* Toast Notification */
.fe-toast {
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.fe-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Hero Readability Overlay (Light-app harmonious deep purple scrim) */
.hero-photo-scrim {
  background: linear-gradient(
    180deg,
    rgba(28, 12, 48, 0.36) 0%,
    rgba(28, 12, 48, 0.62) 48%,
    rgba(24, 10, 42, 0.92) 100%
  );
}

@media (min-width: 768px) {
  .hero-photo-scrim {
    background: linear-gradient(
      95deg,
      rgba(24, 10, 42, 0.92) 0%,
      rgba(34, 15, 58, 0.78) 54%,
      rgba(24, 10, 42, 0.38) 100%
    );
  }
}

/* Safe area padding helper for notched mobile devices */
.pb-safe-nav {
  padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .pb-safe-nav {
    padding-bottom: 3rem;
  }
}

/* ==========================================================================
   Phase 2: Order Tracker Stepper & File Dropzone
   ========================================================================== */
.tracker-line {
  position: relative;
}

.tracker-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -14px;
  width: 2px;
  background: #E2E5F0;
}

.tracker-step:last-child::before {
  display: none;
}

.tracker-step.is-done::before {
  background: #10B981;
}

.tracker-step.is-current::before {
  background: linear-gradient(180deg, #D61A3C 0%, #E2E5F0 100%);
}

.upload-drop-pill {
  border: 1.5px dashed rgba(45, 20, 75, 0.22);
  background: #F7F8FC;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-drop-pill:hover {
  border-color: #D61A3C;
  background: #FFF6F8;
}

/* ==========================================================================
   Phase 2: Branded Print / PDF Order Slip
   ========================================================================== */
#printableSlipRoot {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body {
    background: #FFFFFF !important;
    color: #1A132B !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > *:not(#printableSlipRoot) {
    display: none !important;
  }

  #printableSlipRoot {
    display: block !important;
    width: 100% !important;
  }
}
