/* 5 thèmes boutique — s'appliquent sur body.theme-{name} (boutique, vendeur, livreur) */

/* Boutique publique — pleine largeur (theme1) */
body.tk-shop-body {
  background: var(--app-bg, #f8fafc);
}
body.tk-shop-body::before {
  display: none;
}
.tk-shop-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.tk-shop-shell .app-nav {
  width: 100%;
  max-height: 4rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tk-shop-shell .app-nav .flex.items-center > a img,
.tk-shop-shell .app-nav img.tk-logo-mark--shop-nav {
  width: 2.75rem !important;
  height: 2.75rem !important;
  max-width: 2.75rem !important;
  max-height: 2.75rem !important;
  object-fit: cover !important;
  flex-shrink: 0;
  display: block;
  padding: 0 !important;
}
.tk-shop-shell .app-main {
  flex: 1;
  width: 100%;
}
.tk-shop-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* Hauteur hero unifiée — référence boutique générale (groupe A) */
body.tk-shop-body,
body[class*="tk-shop-group-"] {
  --tk-shop-hero-height-home: clamp(220px, 36vw, 340px);
  --tk-shop-hero-height-banner: clamp(100px, 18vw, 160px);
}
.tk-shop-hero--banner {
  min-height: var(--tk-shop-hero-height-banner);
  height: var(--tk-shop-hero-height-banner);
  max-height: var(--tk-shop-hero-height-banner);
}
.tk-shop-hero--home {
  min-height: var(--tk-shop-hero-height-home);
  height: var(--tk-shop-hero-height-home);
  max-height: var(--tk-shop-hero-height-home);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tk-shop-hero--home > .relative,
.tk-shop-hero--home > [class*="max-w-"] {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.tk-shop-hero--home .tk-hero-animate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.tk-shop-hero--home .tk-hero-animate .flex.flex-col.sm\:flex-row,
.tk-shop-hero--home .tk-hero-animate .tk-shop-hero-actions {
  gap: 0.5rem;
  padding-top: 0.15rem;
}
.tk-shop-hero--home .tk-hero-animate p {
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  line-height: 1.4;
}
.tk-shop-hero--home.has-hero-bg::before {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(5, 150, 105, 0.72) 50%, rgba(6, 95, 70, 0.85) 100%);
}
.tk-shop-hero--home.has-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 280px at 10% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
              radial-gradient(400px 240px at 90% 20%, rgba(16, 185, 129, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.tk-shop-shell .app-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
}

/* Menu mobile boutique — au niveau body, sous la navbar (comme le portail) */
body.tk-shop-body .tk-shop-app-menu-backdrop {
  z-index: 9990;
}
body.tk-shop-body .tk-shop-app-menu-sheet {
  z-index: 9995;
}

@media (max-width: 767px) {
  body.tk-shop-body,
  body[class*="tk-shop-group-"] {
    --tk-shop-hero-height-home: auto;
  }
  .tk-shop-shell .app-nav {
    max-height: 4rem;
    overflow: hidden;
  }
  .tk-shop-shell .app-nav .flex.items-center > a img,
  .tk-shop-shell .app-nav img.tk-logo-mark--shop-nav {
    width: 2.35rem !important;
    height: 2.35rem !important;
    max-width: 2.35rem !important;
    max-height: 2.35rem !important;
    object-fit: cover !important;
    padding: 0 !important;
  }
  .tk-shop-hero--home {
    min-height: clamp(300px, 72vw, 480px);
    height: auto;
    max-height: none;
    padding: 1rem 0 1.25rem;
  }
  .tk-shop-hero--home > .relative,
  .tk-shop-hero--home > [class*="max-w-"] {
    max-height: none;
    overflow: visible;
  }
  .tk-shop-hero--home .tk-hero-animate h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
}

body.theme-classic {
  --brand-500: #059669; --brand-600: #047857; --brand-700: #065f46;
  --brand-50: #ecfdf5; --app-bg: #f0fdf4; --surface: #ffffff;
}
body.theme-modern {
  --brand-500: #0284c7; --brand-600: #0369a1; --brand-700: #075985;
  --brand-50: #e0f2fe; --app-bg: #eff6ff; --surface: #ffffff;
}
body.theme-minimal {
  --brand-500: #475569; --brand-600: #334155; --brand-700: #1e293b;
  --brand-50: #f1f5f9; --app-bg: #f8fafc; --surface: #ffffff;
}
body.theme-boutique {
  --brand-500: #a855f7; --brand-600: #9333ea; --brand-700: #7e22ce;
  --brand-50: #faf5ff; --app-bg: #fdf4ff; --surface: #ffffff;
}
body.theme-market {
  --brand-500: #f59e0b; --brand-600: #d97706; --brand-700: #b45309;
  --brand-50: #fffbeb; --app-bg: #fff7ed; --surface: #ffffff;
}
body.theme-restaurant {
  --brand-500: #ffbe33; --brand-600: #e69c00; --brand-700: #c47f00;
  --brand-50: #fff8eb; --app-bg: #fffaf3; --surface: #ffffff;
}

body.theme-classic, body.theme-modern, body.theme-minimal,
body.theme-boutique, body.theme-market {
  background: var(--app-bg);
}
body.theme-classic .bg-purple-600, body.theme-classic .tk-themed-accent { background-color: var(--brand-600) !important; }
body.theme-modern .bg-purple-600, body.theme-modern .tk-themed-accent { background-color: var(--brand-600) !important; }
body.theme-minimal .bg-purple-600, body.theme-minimal .tk-themed-accent { background-color: var(--brand-600) !important; }
body.theme-boutique .bg-purple-600, body.theme-boutique .tk-themed-accent { background-color: var(--brand-600) !important; }
body.theme-market .bg-purple-600, body.theme-market .tk-themed-accent { background-color: var(--brand-600) !important; }

body.theme-classic .text-purple-600, body.theme-modern .text-purple-600,
body.theme-minimal .text-purple-600, body.theme-boutique .text-purple-600,
body.theme-market .text-purple-600 { color: var(--brand-600) !important; }

body.theme-classic .sidebar, body.theme-modern .sidebar, body.theme-minimal .sidebar,
body.theme-boutique .sidebar, body.theme-market .sidebar {
  background: linear-gradient(180deg, var(--brand-700), var(--brand-600)) !important;
}
