/* ==========================================================================
   কবর পথের সামগ্রী - Stylesheet
   Theme: Royal Sapphire Blue (#003885)
   ========================================================================== */

:root {
  /* Brand Primary Royal Blue Palette (#003885) */
  --primary: #003885;
  --primary-hover: #004bb3;
  --primary-dark: #00275c;
  --primary-darker: #00193d;
  --primary-light: #1d64c9;
  --primary-subtle: #3b82f6;

  /* Blue Tonal Scale */
  --lavender-50: #f0f5fc;
  --lavender-100: #e1ecfa;
  --lavender-200: #c8ddf6;
  --lavender-300: #a4c5f0;
  --lavender-400: #74a6e8;
  --lavender-500: #4184dc;
  --lavender-glow: rgba(0, 56, 133, 0.16);
  --lavender-border: #cfe0f7;

  /* Accent & Functional Colors */
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  --whatsapp-glow: rgba(37, 211, 102, 0.28);
  --white: #ffffff;
  --off-white: #fdfcff;
  
  /* Text Colors */
  --text-heading: #003885;
  --text-dark: #0d1b2a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f0f5fc;

  /* Surfaces & Backgrounds */
  --bg-page: #f8fafd;
  --bg-card: #ffffff;
  --bg-subtle: #eff5fc;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 56, 133, 0.04);
  --shadow-sm: 0 3px 8px rgba(0, 56, 133, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 56, 133, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 56, 133, 0.12);
  --shadow-xl: 0 24px 50px rgba(0, 56, 133, 0.18);
  --shadow-colored: 0 10px 28px rgba(0, 56, 133, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-latin: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Dark Theme / Night Mode Variables (রাতের আভা / ডার্ক মোড)
   ========================================================================== */
[data-theme="dark"] {
  /* Brand Primary Inversions - Luminous Sapphire Blue */
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-dark: #0b1a30;
  --primary-darker: #061020;
  --primary-light: #1e40af;
  --primary-subtle: #3b82f6;

  /* Blue Tonal Scale (Dark Night Inversions) */
  --lavender-50: #0b1526;
  --lavender-100: #11223d;
  --lavender-200: #1a345c;
  --lavender-300: #25487d;
  --lavender-400: #3b6bb3;
  --lavender-500: #568fe0;
  --lavender-glow: rgba(56, 189, 248, 0.25);
  --lavender-border: #1e355b;

  /* Surfaces & Backgrounds (Night Mode) */
  --bg-page: #060d17;
  --bg-card: #0b1626;
  --bg-subtle: #0f1f36;
  --white: #ffffff;
  --off-white: #f8fafc;

  /* Text Colors */
  --text-heading: #f0f7ff;
  --text-dark: #f8fbff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  /* Shadows for Dark Mode */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 3px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 24px 50px rgba(0, 0, 0, 0.9);
  --shadow-colored: 0 10px 28px rgba(56, 189, 248, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

input, textarea, select {
  font-family: inherit;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #64748b;
  opacity: 1;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] select::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 56, 133, 0.24);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 56, 133, 0.35);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Site Header & Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(207, 224, 247, 0.6);
  box-shadow: 0 2px 14px rgba(0, 56, 133, 0.04);
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-wrap {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon-wrap {
  transform: scale(1.06);
}

.logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.brand-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 2px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.nav-link::after,
.nav-link.active::after {
  display: none !important;
  content: none !important;
}

/* Header Call Button */
.header-action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-call-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 56, 133, 0.22);
}

.btn-call-header:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 56, 133, 0.32);
  color: var(--white);
}

.btn-call-header strong {
  font-family: var(--font-latin);
  letter-spacing: 0.3px;
}

.icon-phone {
  width: 17px;
  height: 17px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f6f9fe 0%, #eef5fc 45%, #e3eefb 100%);
  padding: 42px 0 46px;
  overflow: hidden;
  border-bottom: 1px solid rgba(207, 224, 247, 0.5);
}

.hero-bg-accent {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 56, 133, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title-main {
  display: block;
}

.hero-title-sub {
  display: block;
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 34px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn-hero-cart {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.icon-cart {
  width: 20px;
  height: 20px;
}

.arrow-right {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.btn-hero-cart:hover .arrow-right {
  transform: translateX(4px);
}

.btn-hero-call {
  background-color: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--lavender-border);
  padding: 8px 24px 8px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 56, 133, 0.06);
}

.btn-hero-call:hover {
  border-color: var(--primary);
  background-color: var(--lavender-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 133, 0.12);
}

.call-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--lavender-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-icon-circle svg {
  width: 18px;
  height: 18px;
}

.call-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.call-text-wrap small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.call-text-wrap strong {
  font-size: 1.05rem;
  color: var(--primary);
  font-family: var(--font-latin);
}

/* 3 Feature Highlights Under Hero */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(207, 224, 247, 0.8);
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--lavender-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.hero-feature-item:hover .feature-icon-wrap {
  transform: translateY(-2px) scale(1.05);
  background-color: var(--primary);
  color: var(--white);
}

.feature-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Right Hero Visual Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 56, 133, 0.16);
  border: 4px solid var(--white);
  background: var(--white);
  transition: transform var(--transition-normal);
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0, 56, 133, 0.22);
}

.hero-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 56, 133, 0.12);
  border: 1px solid rgba(207, 224, 247, 0.6);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

/* --------------------------------------------------------------------------
   SECTION 2: PRODUCTS (আমাদের পণ্য)
   -------------------------------------------------------------------------- */
.products-section {
  padding: 50px 0 54px;
  background-color: var(--white);
}

.ornament-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ornament-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--lavender-border), var(--primary-light));
}

.ornament-wrapper .ornament-line:last-child {
  background: linear-gradient(90deg, var(--primary-light), var(--lavender-border), transparent);
}

.ornament-motif {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 24px;
}

/* --------------------------------------------------------------------------
   CATALOG LIVE SEARCH & CATEGORY FILTER TABS
   -------------------------------------------------------------------------- */
.catalog-filter-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.catalog-search-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
  transition: var(--transition-fast);
}

.catalog-search-wrap:focus-within .catalog-search-icon {
  color: var(--primary);
}

.catalog-search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.95rem !important;
  background-color: var(--bg-card);
  border: 1.5px solid var(--lavender-border);
  color: var(--text-main, var(--text-dark));
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  outline: none;
}

.catalog-search-input:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px var(--lavender-glow);
}

.catalog-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

/* Category Filter Tabs Wrapper & Strip */
.category-tabs-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4px 2px;
  max-width: 100%;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--lavender-border);
  background: var(--bg-card);
  color: var(--text-body);
  transition: var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-tab-btn:hover {
  background: var(--lavender-100);
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.category-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 56, 133, 0.28);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--lavender-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 16px 36px rgba(0, 56, 133, 0.14);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--lavender-50);
  aspect-ratio: 4/3;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lavender-border);
}

.product-card-body {
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.btn-product-view {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 56, 133, 0.2);
}

.btn-product-view:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 56, 133, 0.3);
}

.btn-product-view .btn-arrow {
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.btn-product-view:hover .btn-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   SECTION 3: TRUST FEATURES & ORDER CTA BANNER
   -------------------------------------------------------------------------- */
.trust-features-section {
  padding: 48px 0 52px;
  background: linear-gradient(180deg, #f9f5fc 0%, #f4ecf9 100%);
  border-top: 1px solid var(--lavender-border);
  border-bottom: 1px solid var(--lavender-border);
}

.trust-container {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 40px;
  align-items: stretch;
}

/* Left Arched Frame with Kaaba Visual */
.trust-visual-col {
  display: flex;
  align-items: center;
}

.arch-frame-outer {
  width: 100%;
  height: 100%;
  background: var(--white);
  padding: 14px;
  border-radius: 240px 240px 24px 24px;
  border: 2px solid var(--lavender-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 226px 226px 16px 16px;
  overflow: hidden;
}

.kaaba-arch-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.arch-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(0deg, rgba(0, 32, 77, 0.94) 0%, rgba(0, 32, 77, 0.6) 70%, transparent 100%);
  color: var(--white);
  text-align: center;
}

.arch-bismillah {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #f1e4fc;
  margin-bottom: 6px;
}

.arch-overlay-text p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ede2f6;
}

/* Right Content: 2x2 Feature Grid + CTA Banner */
.trust-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trust-card {
  background-color: var(--white);
  border: 1.5px solid var(--lavender-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 28px rgba(0, 56, 133, 0.1);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--lavender-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.trust-card:hover .trust-icon-box {
  background-color: var(--primary);
  color: var(--white);
}

.trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.trust-card-body {
  display: flex;
  flex-direction: column;
}

.trust-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.trust-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* Bottom Full-Width Order Banner */
.order-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #004fb8 100%);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 14px 36px rgba(0, 56, 133, 0.28);
  color: var(--white);
}

.banner-text {
  display: flex;
  flex-direction: column;
}

.banner-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 0.95rem;
  color: #ede2f8;
  line-height: 1.4;
}

.banner-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  flex-shrink: 0;
  min-width: 270px;
}

.banner-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.btn-banner-call {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-banner-call svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-banner-call:hover {
  background-color: var(--lavender-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-banner-whatsapp {
  background-color: #15803d;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn-banner-whatsapp svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.btn-banner-whatsapp:hover {
  background-color: #166534;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.45);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   SECTION 4: HOW TO ORDER (কীভাবে অর্ডার করবেন?)
   -------------------------------------------------------------------------- */
.how-to-order-section {
  padding: 48px 0 52px;
  background-color: var(--bg-card);
}

.decorative-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto 26px;
  max-width: 220px;
}

.dec-line {
  flex-grow: 1;
  height: 1.5px;
  background-color: var(--lavender-border);
}

.dec-diamond {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  transform: rotate(45deg);
}

.steps-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.step-icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 56, 133, 0.24);
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 56, 133, 0.35);
}

.step-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.step-num-badge {
  position: absolute;
  bottom: -6px;
  background-color: var(--white);
  color: var(--primary);
  font-family: var(--font-latin);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0, 56, 133, 0.15);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender-400);
  margin-top: -30px;
}

.step-connector svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #002254 0%, #001533 100%);
  color: #cbd5e1;
  padding: 42px 0 0;
  overflow: hidden;
}

.footer-mosque-silhouette {
  position: absolute;
  right: -50px;
  bottom: 40px;
  width: 480px;
  height: 260px;
  background-image: radial-gradient(ellipse 70% 60% at 70% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 0.8fr;
  gap: 40px;
  position: relative;
  z-index: 2;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-tagline {
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-about-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--lavender-400);
  border-radius: var(--radius-pill);
}

.footer-link-list li {
  margin-bottom: 12px;
}

.footer-link-list a {
  font-size: 0.98rem;
  color: #cbd5e1;
  transition: var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  color: var(--lavender-300);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.contact-link.phone-link {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.4px;
}

.contact-link.phone-link:hover {
  color: var(--lavender-300);
}

.social-links-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-circle-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-circle-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  background-color: #00122e;
  padding: 20px 0;
  font-size: 0.88rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.emergency-notice {
  color: #cbd5e1;
  font-weight: 500;
}

.footer-dev-credit {
  display: inline-flex;
  align-items: center;
}

.dev-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-family: var(--font-latin);
  font-size: 0.84rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.dev-brand-text {
  color: #475569;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.dev-brand-link strong {
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color var(--transition-fast);
}

.dev-brand-link:hover {
  background: #0284c7;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.dev-brand-link:hover .dev-brand-text {
  color: #e0f2fe;
}

.dev-brand-link:hover strong {
  color: #ffffff;
}

/* Footer bottom is always dark in Day and Night */
.footer-dev-credit .dev-brand-link {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
}

.footer-dev-credit .dev-brand-text {
  color: #94a3b8;
}

.footer-dev-credit .dev-brand-link strong {
  color: #38bdf8;
}

.footer-dev-credit .dev-brand-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.footer-dev-credit .dev-brand-link:hover .dev-brand-text {
  color: #f1f5f9;
}

.footer-dev-credit .dev-brand-link:hover strong {
  color: #ffffff;
}

.auth-modal-dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--lavender-200);
}

.auth-prompt-dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(56, 189, 248, 0.35);
}

.user-dropdown-dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px 6px;
  margin-top: 6px;
  border-top: 1px solid var(--lavender-100);
}

[data-theme="dark"] .dev-brand-link {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
}

[data-theme="dark"] .dev-brand-text {
  color: #94a3b8;
}

[data-theme="dark"] .dev-brand-link strong {
  color: #38bdf8;
}

[data-theme="dark"] .dev-brand-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .dev-brand-link:hover .dev-brand-text {
  color: #f1f5f9;
}

[data-theme="dark"] .dev-brand-link:hover strong {
  color: #ffffff;
}

[data-theme="dark"] .auth-modal-dev-credit {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-prompt-dev-credit {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .user-dropdown-dev-credit {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   FLOATING QUICK ACTIONS
   -------------------------------------------------------------------------- */
.floating-quick-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transform: translateZ(0);
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: var(--transition-bounce);
  color: var(--white);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background-color: var(--whatsapp);
  animation: pulse-whatsapp 2.5s infinite;
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.float-call {
  background-color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.float-call svg {
  width: 24px;
  height: 24px;
}

.float-top {
  background-color: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--lavender-border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-top svg {
  width: 22px;
  height: 22px;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --------------------------------------------------------------------------
   INTERACTIVE PRODUCT DETAILS MODAL
   -------------------------------------------------------------------------- */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(22, 6, 38, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-dialog {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 39, 92, 0.35);
  border: 1px solid var(--lavender-border);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal-backdrop.active .product-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid var(--lavender-border);
  box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-img-col {
  background-color: var(--lavender-50);
  height: 100%;
}

.modal-product-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.modal-info-col {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.modal-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--lavender-100);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.package-items-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.package-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.package-items-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.package-items-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--lavender-100);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.modal-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.modal-cta-group .btn {
  width: 100%;
  padding: 13px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.modal-footer-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Breakpoints)
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features {
    text-align: left;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .arch-frame-outer {
    max-width: 440px;
    margin: 0 auto;
    border-radius: 180px 180px 20px 20px;
  }

  .arch-frame-inner {
    border-radius: 168px 168px 14px 14px;
  }

  .kaaba-arch-img {
    min-height: 400px;
    max-height: 480px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-flow-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    flex: 0 0 45%;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    height: 72px;
  }

  .header-container {
    height: 72px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.74rem;
  }

  .btn-call-header span strong {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 56, 133, 0.12);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    border-bottom: 2px solid var(--primary);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  [data-theme="dark"] .nav-menu {
    background-color: #0b1626;
    border-bottom: 2px solid #38bdf8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  }

  .nav-list {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .feature-cards-grid {
    grid-template-columns: 1fr;
  }

  .order-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .banner-actions .btn {
    width: 100%;
  }

  .product-modal-dialog {
    max-height: 92vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg) !important;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
  }

  .modal-img-col {
    display: block;
    height: 190px;
    max-height: 190px;
    overflow: hidden;
  }

  .modal-product-image {
    min-height: auto !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .modal-info-col {
    padding: 20px 18px;
  }

  .step-card {
    flex: 0 0 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }

  .btn-call-header {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-cart,
  .btn-hero-call {
    width: 100%;
    justify-content: center;
  }

  .floating-quick-actions {
    position: fixed !important;
    bottom: 20px !important;
    bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
    right: 18px !important;
    right: max(16px, env(safe-area-inset-right, 16px)) !important;
    z-index: 99999 !important;
    transform: translateZ(0) !important;
    gap: 12px !important;
  }

  .float-btn {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ==========================================================================
   E-COMMERCE & INTERACTIVE FEATURES: CART, AUTH, ORDER TRACKING
   ========================================================================== */

/* Cart & Auth Header Buttons */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  position: relative;
  background: var(--lavender-100);
  border: 1px solid var(--lavender-border);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.header-icon-btn:hover {
  background: var(--lavender-200);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-nav-wrap {
  position: relative;
}

.user-profile-btn {
  background: var(--lavender-100);
  border: 1.5px solid var(--lavender-border);
  color: var(--primary);
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 56, 133, 0.08);
}

.user-profile-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 56, 133, 0.22);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu.active {
  display: block;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lavender-100);
}

.user-dropdown-header b {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.user-dropdown-header small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover {
  background: var(--lavender-50);
  color: var(--primary);
}

.user-dropdown-item.danger {
  color: #dc2626;
  border-top: 1px solid var(--lavender-100);
}

.user-dropdown-item.danger:hover {
  background: #fef2f2;
}

/* Product Card Enhanced Pricing & Actions */
.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 14px;
}

.product-price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-old {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-quick-view {
  background: var(--lavender-100);
  color: var(--primary);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-quick-view:hover {
  background: var(--lavender-200);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 32, 77, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -5px 0 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--lavender-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lavender-50);
}

.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer-close:hover {
  background: var(--lavender-200);
  color: var(--primary-dark);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lavender-100);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #eee;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lavender-100);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.cart-qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.cart-qty-val {
  font-weight: 700;
  font-size: 0.88rem;
  min-width: 16px;
  text-align: center;
}

.cart-item-del {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

/* Cart Checkout Box */
.cart-drawer-foot {
  border-top: 1px solid var(--lavender-100);
  padding: 16px 20px;
  background: var(--lavender-50);
}

.cart-cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.cart-cost-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px dashed var(--lavender-300);
  padding-top: 8px;
  margin-top: 8px;
}

.checkout-area-select {
  margin: 12px 0;
}

.checkout-form-group {
  margin-bottom: 10px;
}

.checkout-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: inherit;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--primary);
}

#checkoutArea {
  font-weight: 700;
  font-family: var(--font-bangla);
  font-size: 0.94rem;
  cursor: pointer;
}

#checkoutArea option {
  font-weight: 700;
  font-family: var(--font-bangla);
  font-size: 0.94rem;
  padding: 8px 12px;
  background-color: #ffffff;
  color: var(--text-dark);
}

.cart-cost-row b {
  font-weight: 700;
}

.btn-checkout-submit {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  margin-top: 12px;
}

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

/* ─── Cart Drawer Checkout Auth & User Profile ─── */
.checkout-auth-prompt {
  margin: 12px 0;
  padding: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 56, 133, 0.06);
}

.auth-prompt-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-prompt-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 56, 133, 0.25);
}

.auth-prompt-content {
  flex: 1;
}

.auth-prompt-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 4px 0;
}

.auth-prompt-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.auth-prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-auth-prompt-reg {
  flex: 1.2;
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(0, 56, 133, 0.25);
  transition: var(--transition-fast);
}

.btn-auth-prompt-reg:hover {
  background: linear-gradient(135deg, #004bb3 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 56, 133, 0.35);
}

.btn-auth-prompt-login {
  flex: 0.8;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-auth-prompt-login:hover {
  background: var(--lavender-100);
  transform: translateY(-1px);
}

/* Logged-in Customer Badge in Checkout */
.checkout-user-card {
  margin: 12px 0 10px 0;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid var(--lavender-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 56, 133, 0.05);
}

.checkout-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 56, 133, 0.2);
}

.checkout-user-info {
  flex: 1;
  min-width: 0;
}

.checkout-user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.checkout-user-name-line strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.checkout-badge-verified {
  font-size: 0.7rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.checkout-user-phone-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Modal Dialogs (Auth, Order Success, Tracking) */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 32, 77, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.custom-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--lavender-100);
  border: none;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--lavender-100);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Toast Notifications */
.site-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-darker);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.95rem;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--whatsapp);
  animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   THEME SWITCHER BUTTON & DARK MODE COMPONENT STYLES
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--lavender-100);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.theme-toggle-btn:hover {
  background: var(--lavender-200);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.theme-icon,
.theme-icon-slot {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
}

.theme-badge-label,
.theme-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   DARK THEME / NIGHT MODE COMPREHENSIVE OVERRIDES (রাতের আভা)
   ========================================================================== */

/* Header & Navigation in Night Mode */
[data-theme="dark"] .site-header {
  background-color: rgba(11, 22, 38, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .brand-name {
  color: #fcfaff;
}

[data-theme="dark"] .brand-tagline {
  color: #94a3b8;
}

[data-theme="dark"] .brand-logo .logo-icon-wrap {
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #38bdf8;
}

[data-theme="dark"] .nav-link::after,
[data-theme="dark"] .nav-link.active::after {
  display: none !important;
  content: none !important;
}

[data-theme="dark"] .header-icon-btn {
  background: #0f1f36;
  border-color: #1e355b;
  color: #f0f7ff;
}

[data-theme="dark"] .header-icon-btn:hover {
  background: #1a345c;
  color: #ffffff;
}

[data-theme="dark"] .user-profile-btn {
  background: linear-gradient(135deg, #0f1f36 0%, #1a345c 100%);
  border: 1.5px solid #25487d;
  color: #f0f7ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .user-profile-btn:hover {
  background: #003885;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .cart-count-badge {
  background: #2563eb;
  border-color: #0b1626;
  color: #ffffff;
}

[data-theme="dark"] .mobile-menu-btn .bar {
  background-color: #38bdf8;
}

@media (min-width: 769px) {
  [data-theme="dark"] .nav-menu {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  [data-theme="dark"] .nav-menu {
    background-color: #0b1626 !important;
    border-bottom: 1px solid #1e355b !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65) !important;
  }
}

/* Hero Section in Night Mode */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #070e1c 0%, #0d1a30 50%, #081120 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

[data-theme="dark"] .hero-bg-accent {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(19, 9, 34, 0) 70%);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-title-main,
[data-theme="dark"] .hero-title-sub {
  color: #f0f7ff;
  text-shadow: 0 4px 24px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .hero-description {
  color: #cbd5e1;
}

[data-theme="dark"] .btn-hero-cart {
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 56, 133, 0.45);
}

[data-theme="dark"] .btn-hero-cart:hover {
  background: linear-gradient(135deg, #004bb3 0%, #2563eb 100%);
}

[data-theme="dark"] .btn-hero-call {
  background-color: #0f1f36;
  border-color: #1e355b;
  color: #f0f7ff;
}

[data-theme="dark"] .btn-hero-call:hover {
  background-color: #1a345c;
  border-color: #38bdf8;
}

[data-theme="dark"] .call-icon-circle {
  background-color: #1a345c;
  color: #38bdf8;
}

[data-theme="dark"] .call-text-wrap small {
  color: #94a3b8;
}

[data-theme="dark"] .call-text-wrap strong {
  color: #f0f7ff;
}

[data-theme="dark"] .hero-features {
  border-top: 1px solid rgba(56, 189, 248, 0.18);
}

[data-theme="dark"] .feature-icon-wrap {
  background-color: #0f1f36;
  color: #38bdf8;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .feature-title {
  color: #f0f7ff;
}

[data-theme="dark"] .feature-desc {
  color: #94a3b8;
}

[data-theme="dark"] .hero-image-frame {
  border: 3px solid #1e355b;
  background: #0b1626;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .hero-image-badge {
  background-color: rgba(11, 22, 38, 0.95);
  color: #f0f7ff;
  border-color: #1e355b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Products Section in Night Mode */
[data-theme="dark"] .products-section {
  background-color: #060d17;
}

[data-theme="dark"] .ornament-motif {
  color: #38bdf8;
}

[data-theme="dark"] .ornament-line {
  background: linear-gradient(90deg, transparent, #1e355b, #38bdf8);
}

[data-theme="dark"] .ornament-wrapper .ornament-line:last-child {
  background: linear-gradient(90deg, #38bdf8, #1e355b, transparent);
}

[data-theme="dark"] .section-title {
  color: #f0f7ff;
}

[data-theme="dark"] .section-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .product-card {
  background-color: #0b1626;
  border: 1.5px solid #1e355b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .product-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .product-img-wrap {
  background-color: #0f1f36;
}

[data-theme="dark"] .product-tag {
  background-color: rgba(15, 31, 54, 0.94);
  color: #7dd3fc;
  border-color: #1e355b;
}

[data-theme="dark"] .product-title {
  color: #f0f7ff;
}

[data-theme="dark"] .product-desc {
  color: #94a3b8;
}

[data-theme="dark"] .product-price-current {
  color: #38bdf8;
}

[data-theme="dark"] .product-price-old {
  color: #64748b;
}

[data-theme="dark"] .btn-quick-view {
  background: #0f1f36;
  border-color: #1e355b;
  color: #e1ecfa;
}

[data-theme="dark"] .btn-quick-view:hover {
  background: #1a345c;
  border-color: #38bdf8;
  color: #ffffff;
}

[data-theme="dark"] .btn-add-cart {
  background: #003885;
  color: #ffffff;
}

[data-theme="dark"] .btn-add-cart:hover {
  background: #004bb3;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-checkout-submit,
[data-theme="dark"] .btn-product-view,
[data-theme="dark"] .btn-call-header {
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 56, 133, 0.45);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-checkout-submit:hover,
[data-theme="dark"] .btn-product-view:hover,
[data-theme="dark"] .btn-call-header:hover {
  background: linear-gradient(135deg, #004bb3 0%, #2563eb 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .step-icon-wrap {
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Catalog Search in Night Mode */
[data-theme="dark"] .catalog-search-input {
  background-color: #0b1626;
  border-color: #1e355b;
  color: #f8fbff;
}

[data-theme="dark"] .catalog-search-input:focus {
  border-color: #38bdf8;
  background-color: #0f1f36;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .catalog-search-icon {
  color: #94a3b8;
}

[data-theme="dark"] .catalog-search-wrap:focus-within .catalog-search-icon {
  color: #38bdf8;
}

/* Category Filter Tabs in Night Mode */
[data-theme="dark"] .category-tab-btn {
  background: #0b1626;
  color: #cbd5e1;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .category-tab-btn:hover {
  background: #0f1f36;
  border-color: #38bdf8;
  color: #ffffff;
}

[data-theme="dark"] .category-tab-btn.active {
  background: #003885;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(0, 56, 133, 0.45);
}

/* Trust Features Section in Night Mode */
[data-theme="dark"] .trust-features-section {
  background: linear-gradient(180deg, #0b1626 0%, #060d17 100%);
  border-top: 1px solid #1e355b;
  border-bottom: 1px solid #1e355b;
}

[data-theme="dark"] .arch-frame-outer {
  background: #0b1626;
  border: 2px solid #1e355b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .trust-card {
  background-color: #0b1626;
  border: 1.5px solid #1e355b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .trust-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .trust-icon-box {
  background-color: #0f1f36;
  color: #38bdf8;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .trust-card-title {
  color: #f0f7ff;
}

[data-theme="dark"] .trust-card-desc {
  color: #94a3b8;
}

[data-theme="dark"] .btn-banner-call {
  background-color: #0f1f36;
  color: #f0f7ff;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .btn-banner-call:hover {
  background-color: #1a345c;
  color: #ffffff;
}

/* How to Order Section in Night Mode */
[data-theme="dark"] .how-to-order-section {
  background-color: #060d17;
}

[data-theme="dark"] .dec-line {
  background-color: #1e355b;
}

[data-theme="dark"] .dec-diamond {
  background-color: #38bdf8;
}

[data-theme="dark"] .step-num-badge {
  background-color: #0f1f36;
  color: #7dd3fc;
  border-color: #1e40af;
}

[data-theme="dark"] .step-title {
  color: #f0f7ff;
}

[data-theme="dark"] .step-desc {
  color: #94a3b8;
}

[data-theme="dark"] .step-connector {
  color: #1e355b;
}

/* Footer in Night Mode */
[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #091322 0%, #040810 100%);
  border-top: 1px solid #1e355b;
}

[data-theme="dark"] .footer-bottom {
  background-color: #03060c;
  border-top: 1px solid #0f1f36;
}

/* Modals & Popups in Night Mode */
[data-theme="dark"] .product-modal-dialog {
  background-color: #0b1626;
  border: 1.5px solid #1e355b;
  color: #cbd5e1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .modal-img-col {
  background-color: #0f1f36;
}

[data-theme="dark"] .modal-badge {
  background-color: #0f1f36;
  color: #7dd3fc;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .modal-title {
  color: #f0f7ff;
}

[data-theme="dark"] .modal-desc {
  color: #cbd5e1;
}

[data-theme="dark"] .package-items-heading {
  color: #f0f7ff;
}

[data-theme="dark"] .package-items-list li {
  color: #cbd5e1;
}

[data-theme="dark"] .package-items-list li::before {
  background-color: #0f1f36;
  color: #38bdf8;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .modal-close-btn {
  background: rgba(15, 31, 54, 0.9);
  border-color: #1e355b;
  color: #f0f7ff;
}

[data-theme="dark"] .modal-close-btn:hover {
  background-color: #38bdf8;
  color: #040910;
}

/* Cart Drawer in Night Mode */
[data-theme="dark"] .cart-drawer {
  background: #0b1626;
  border-left: 1px solid #1e355b;
  color: #cbd5e1;
}

[data-theme="dark"] .cart-drawer-head {
  background: #0f1f36;
  border-bottom: 1px solid #1e355b;
}

[data-theme="dark"] .cart-drawer-title {
  color: #f0f7ff;
}

[data-theme="dark"] .cart-drawer-close {
  color: #cbd5e1;
}

[data-theme="dark"] .cart-drawer-close:hover {
  background: #1a345c;
  color: #ffffff;
}

[data-theme="dark"] .cart-drawer-foot {
  background: #0f1f36;
  border-top: 1px solid #1e355b;
}

[data-theme="dark"] .cart-item {
  border-bottom-color: #1e355b;
}

[data-theme="dark"] .cart-item-title {
  color: #f0f7ff;
}

[data-theme="dark"] .cart-item-price {
  color: #38bdf8;
}

[data-theme="dark"] .cart-qty-ctrl {
  background: #0d1b2e;
  border: 1px solid #1e355b;
}

[data-theme="dark"] .cart-qty-btn {
  color: #38bdf8;
}

[data-theme="dark"] .cart-qty-val {
  color: #f0f7ff;
}

[data-theme="dark"] .cart-cost-row.total {
  color: #f0f7ff;
  border-top-color: #1e355b;
}

/* Night Mode for Cart Checkout Auth & User Profile */
[data-theme="dark"] .checkout-auth-prompt {
  background: linear-gradient(135deg, #0d1b2e 0%, #091322 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .auth-prompt-icon-wrap {
  background: #003885;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .auth-prompt-title {
  color: #f0f7ff;
}

[data-theme="dark"] .auth-prompt-desc {
  color: #94a3b8;
}

[data-theme="dark"] .btn-auth-prompt-reg {
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 56, 133, 0.45);
}

[data-theme="dark"] .btn-auth-prompt-reg:hover {
  background: linear-gradient(135deg, #004bb3 0%, #2563eb 100%);
  border-color: #38bdf8;
}

[data-theme="dark"] .btn-auth-prompt-login {
  background: #0f1f36;
  border-color: #1e355b;
  color: #38bdf8;
}

[data-theme="dark"] .btn-auth-prompt-login:hover {
  background: #1a345c;
  border-color: #38bdf8;
  color: #ffffff;
}

[data-theme="dark"] .checkout-user-card {
  background: #0b1626;
  border-color: #1e355b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .checkout-user-avatar {
  background: linear-gradient(135deg, #003885 0%, #1d64c9 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

[data-theme="dark"] .checkout-user-name-line strong {
  color: #f0f7ff;
}

[data-theme="dark"] .checkout-badge-verified {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

[data-theme="dark"] .checkout-user-phone-line {
  color: #94a3b8;
}

/* Dialogs & Forms in Night Mode */
[data-theme="dark"] .custom-modal-box {
  background: #0b1626;
  border: 1px solid #1e355b;
  color: #cbd5e1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .custom-modal-close {
  background: #0f1f36;
  color: #cbd5e1;
}

[data-theme="dark"] .custom-modal-close:hover {
  background: #38bdf8;
  color: #040910;
}

[data-theme="dark"] .checkout-input {
  background: #0d1b2e;
  border: 1px solid #1e355b;
  color: #f0f7ff;
}

[data-theme="dark"] .checkout-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] #checkoutArea {
  background-color: #0d1b2e;
  color: #f0f7ff;
  border-color: #1e355b;
  font-weight: 700;
}

[data-theme="dark"] #checkoutArea option {
  background-color: #0d1b2e;
  color: #f0f7ff;
  font-weight: 700;
}

[data-theme="dark"] .auth-tabs {
  border-bottom-color: #1e355b;
}

[data-theme="dark"] .auth-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

[data-theme="dark"] .user-dropdown-menu {
  background: #0b1626;
  border: 1px solid #1e355b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .user-dropdown-header {
  border-bottom-color: #1e355b;
}

[data-theme="dark"] .user-dropdown-header b {
  color: #f0f7ff;
}

[data-theme="dark"] .user-dropdown-header small {
  color: #94a3b8;
}

[data-theme="dark"] .user-dropdown-item {
  color: #cbd5e1;
}

[data-theme="dark"] .user-dropdown-item:hover {
  background: #0f1f36;
  color: #38bdf8;
}

[data-theme="dark"] .float-top {
  background-color: #0f1f36;
  border-color: #1e355b;
  color: #38bdf8;
}

/* ==========================================================================
   COMPREHENSIVE ALL-DEVICE RESPONSIVE SUITE
   ========================================================================== */

/* 1. Large Screens & Desktops (min-width: 1200px) */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

/* 2. Tablet Screens (769px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
  }
  .cart-drawer {
    width: 380px !important;
  }
}

/* 3. Mobile Screens & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  /* Compact Section Paddings on Mobile */
  .hero-section {
    padding: 30px 0 34px !important;
  }

  .products-section {
    padding: 34px 0 38px !important;
  }

  .trust-features-section {
    padding: 34px 0 38px !important;
  }

  .how-to-order-section {
    padding: 34px 0 38px !important;
  }

  .site-footer {
    padding: 30px 0 0 !important;
  }

  .footer-container {
    padding-bottom: 26px !important;
  }

  /* Storefront Products 2-Column Responsive Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: var(--radius-md) !important;
    display: flex;
    flex-direction: column;
  }

  .product-img-wrap {
    aspect-ratio: 4/3;
  }

  .product-card-body {
    padding: 12px 10px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .product-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-pricing {
    margin-top: auto;
    margin-bottom: 8px;
    font-size: 0.85rem;
  }

  .product-price-current {
    font-size: 1.15rem !important;
    font-weight: 800;
  }

  .product-price-old {
    font-size: 0.8rem;
  }

  .product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
  }

  .product-card-actions .btn-quick-view,
  .product-card-actions .btn-add-cart {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Catalog Filter & Live Search Mobile */
  .catalog-filter-section {
    margin: -10px auto 22px auto;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .catalog-search-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .catalog-search-input {
    height: 44px;
    font-size: 16px !important; /* Prevents auto-zoom on mobile focus */
  }

  /* Category Filter Pills: Edge-to-Edge Touch Smooth Scroll */
  .category-tabs-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
  }

  .category-tabs,
  .category-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 6px 16px 12px 16px !important;
    gap: 8px !important;
  }

  .category-tabs::-webkit-scrollbar,
  .category-filter-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .category-tab-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Header & Action Bar on Mobile */
  .header-container {
    height: 70px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .brand-logo {
    gap: 10px !important;
  }

  .logo-icon-wrap {
    width: 36px !important;
    height: 40px !important;
  }

  .brand-name {
    font-size: 1.18rem !important;
  }

  .brand-tagline {
    display: none;
  }

  .header-action {
    display: flex;
    align-items: center;
    gap: 8px !important;
  }

  .btn-call-header {
    display: none !important; /* Preserved in floating quick actions */
  }

  .user-profile-btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
  }

  .header-icon-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .theme-toggle-btn {
    padding: 5px 9px !important;
    font-size: 0.8rem !important;
  }

  .theme-label,
  .theme-badge-label {
    display: none; /* Icon-only on mobile to save header space */
  }

  /* Cart Drawer Full-Width on Mobile */
  .cart-drawer {
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }

  .cart-drawer-foot {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom)) 16px !important;
  }

  /* Modals Full Responsiveness */
  .custom-modal-backdrop {
    padding: 12px !important;
  }

  .custom-modal-box {
    padding: 24px 16px !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    border-radius: var(--radius-md) !important;
  }

  .checkout-input {
    font-size: 16px !important; /* Critical: prevents iOS auto-zoom */
  }

  .custom-modal-close {
    top: 12px !important;
    right: 12px !important;
  }
}

/* 4. Ultra-Compact Mobile Screens (max-width: 380px) */
@media (max-width: 380px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand-name {
    font-size: 1.05rem !important;
  }

  .products-grid {
    gap: 8px !important;
  }

  .product-card-body {
    padding: 10px 8px !important;
  }

  .product-title {
    font-size: 0.88rem !important;
  }

  .product-price-current {
    font-size: 1.05rem !important;
  }
}

