﻿/* ===== VARIABLES GLOBALES ===== */
  :root {
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --accent-gold: #F59E0B;
    --light-bg: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --danger-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  }

  /* ===== REINITIALISATION ===== */
  .shop-container * {
    box-sizing: border-box;
  }

  /* ===== SCROLL TO TOP BUTTON ===== */
  .scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  /* ===== CHARGEMENT AJAX ===== */
  .ajax-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .ajax-loading.active {
    opacity: 1;
    visibility: visible;
  }

  .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* ===== CONTENEUR PRINCIPAL ===== */
  .shop-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* ===== EN-TETE ===== */
  .shop-header {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 6;
  }

  .shop-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .shop-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: none;
  }

  .shop-header-actions {
    display: flex;
    justify-content: center;
    margin-top: -0.2rem;
    position: relative;
    z-index: 8;
    isolation: isolate;
  }

  .btn-promotions-home {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #f59e0b 55%, #facc15);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 9;
  }

  .search-container,
  .search-wrapper,
  .live-suggest {
    position: relative;
    z-index: 1;
  }

  .btn-promotions-home::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -18%;
    width: 28%;
    height: 160%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.72), transparent);
    transform: rotate(16deg);
    animation: promoButtonShine 3.6s ease-in-out infinite;
    pointer-events: none;
  }

  .btn-promotions-home:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.28);
    filter: saturate(1.05);
  }

  @keyframes promoButtonShine {
    0% { transform: translateX(-180%) rotate(16deg); }
    55% { transform: translateX(360%) rotate(16deg); }
    100% { transform: translateX(360%) rotate(16deg); }
  }

  .mode-intro {
    max-width: 980px;
    margin: 0 auto 0.48rem;
    padding: 0.5rem 0.72rem;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.62), rgba(239, 246, 255, 0.62));
    box-shadow: var(--shadow-sm);
    text-align: center;
  }

  .mode-intro.onboarding {
    animation: introCardGlow 1s ease-in-out 2;
  }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes introCardGlow {
      0%, 100% { box-shadow: var(--shadow-sm); }
      50% { box-shadow: 0 0 0 5px rgba(16,185,129,0.12), var(--shadow-md); }
    }
  }

  @media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    @keyframes introCardGlow {
      0%, 50%, 100% { box-shadow: var(--shadow-sm); }
    }
  }

  .mode-intro-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 900;
    color: #065F46;
    margin-bottom: 0.1rem;
  }

  .mode-intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
    animation: introPulse 1.7s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes introPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16,185,129,0.2); }
      50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(16,185,129,0.08); }
    }
  }

  @media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    @keyframes introPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16,185,129,0.2); }
      50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(16,185,129,0.2); }
    }
  }

  .mode-intro-line {
    font-size: 0.8rem;
    color: #334155;
    font-weight: 800;
    margin-bottom: 0;
  }

  .mode-intro-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(16,185,129,0.14);
    color: #047857;
    animation: introArrowBounce 1.2s ease-in-out infinite;
  }

  @keyframes introArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
  }

  /* ===== BARRE DE RECHERCHE ===== */
  .search-container {
    max-width: 760px;
    margin: 0 auto 0.85rem;
    width: 100%;
    min-width: 0;
  }

  .search-wrapper {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(245, 158, 11, 0.08));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.18);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search-wrapper:focus-within {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 18px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
  }

  .search-input {
    width: 100%;
    padding: 1.2rem 11.5rem 1.2rem 1.6rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.96);
    min-width: 0;
  }

  .search-input:focus {
    outline: none;
  }

  .search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    min-width: 164px;
    padding: 0 1.4rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
    max-width: calc(100% - 16px);
  }

  .search-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.34);
  }

  .search-wrapper:focus-within .search-btn {
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.36);
  }

  .search-btn .btn-badge {
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .search-btn.loading {
    pointer-events: none;
    opacity: 0.9;
  }

  .search-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
  }

  .search-btn.loading .btn-spinner {
    display: inline-block;
  }

  .search-btn.loading .btn-text,
  .search-btn.loading i,
  .search-btn.loading .btn-badge {
    opacity: 0.65;
  }

  @media (min-width: 993px) {
    .search-container {
      max-width: 820px;
    }

    .search-input {
      min-height: 76px;
      padding-right: 15.25rem;
      font-size: 1.08rem;
    }

    .search-btn {
      min-width: 224px;
      gap: 0.65rem;
      padding: 0 1.8rem;
    }
  }

  /* ===== SUGGESTIONS TEMPS REEL ===== */
  .live-suggest {
    margin-top: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: none;
    overflow: hidden;
  }

  .live-suggest.show {
    display: block;
  }

  .live-suggest.is-loading .live-suggest-list {
    min-height: 102px;
    border-radius: 12px;
    background:
      linear-gradient(100deg, rgba(148,163,184,.16) 25%, rgba(148,163,184,.34) 37%, rgba(148,163,184,.16) 63%),
      #f8fafc;
    background-size: 200% 100%;
    animation: liveSuggestShimmer 1.15s linear infinite;
  }

  .live-suggest.is-loading .live-suggest-list > * {
    visibility: hidden;
  }

  @keyframes liveSuggestShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .live-suggest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .live-suggest-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .live-suggest-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .live-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
  }

  .live-suggest-item:hover {
    background: #F3F4F6;
    border-color: #E5E7EB;
  }

  .live-suggest-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #F3F4F6;
    flex: 0 0 42px;
    display: block;
    filter: contrast(1.03) saturate(1.04) brightness(1.01);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .live-suggest-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
  }

  .live-suggest-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
  }

  .live-suggest-empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: 10px;
  }

  .live-suggest-footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  .live-suggest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .live-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-weight: 600;
  }

  .live-badge.stock-low {
    background: #FEF3C7;
    border-color: #FCD34D;
    color: #92400E;
  }

  .live-badge.stock-out {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
  }

  .live-badge.category {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
  }

  .live-badge.price {
    background: #F0F9FF;
    border-color: #BAE6FD;
    color: #0369A1;
  }

  /* ===== MODE SWITCH (PRODUITS / SERVICES / LOCATIONS / LIVRAISON) ===== */
  .mode-switch-wrap {
    max-width: 1100px;
    margin: 0 auto 0.95rem;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(165px, 220px));
    justify-content: center;
    gap: 0.78rem 0.92rem;
  }

  .mode-btn {
    border: 1px solid #DDE4EC;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .mode-btn::after {
    display: none;
  }

  .mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  }

  .mode-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.94rem;
    flex-shrink: 0;
  }

  .mode-products .mode-icon {
    background: transparent;
    color: #059669;
  }

  .mode-services .mode-icon {
    background: transparent;
    color: #1D4ED8;
  }

  .mode-locations .mode-icon {
    background: transparent;
    color: #B45309;
  }

  .mode-delivery .mode-icon {
    background: transparent;
    color: #0ea5e9;
  }

  .mode-text .mode-title {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 1;
    margin: 0;
  }

  .mode-text .mode-sub {
    display: none;
  }

  .mode-btn.active.mode-products {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 10px 20px rgba(15, 23, 42, 0.1);
    background: #F0FDF4;
  }

  .mode-btn.active.mode-services {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 10px 20px rgba(15, 23, 42, 0.1);
    background: #EFF6FF;
  }

  .mode-switch.onboarding .mode-btn {
    animation: modeGlowPulse 1.15s ease-in-out 2;
  }

  .mode-switch.onboarding .mode-btn:nth-child(1) { animation-delay: 0s; }
  .mode-switch.onboarding .mode-btn:nth-child(2) { animation-delay: .16s; }
  .mode-switch.onboarding .mode-btn:nth-child(3) { animation-delay: .32s; }
  .mode-switch.onboarding .mode-btn:nth-child(4) { animation-delay: .46s; }
  .mode-switch.onboarding .mode-btn .mode-icon {
    animation: modeIconFloat .95s ease-in-out 2;
  }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes modeGlowPulse {
      0%, 100% { transform: translateY(0); box-shadow: var(--shadow-sm); }
      50% { transform: translateY(-3px); box-shadow: 0 0 0 5px rgba(16,185,129,0.12), var(--shadow-md); }
    }
  }

  @media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    @keyframes modeGlowPulse {
      0%, 100% { transform: translateY(0); box-shadow: var(--shadow-sm); }
      50% { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
    }
  }

  @keyframes modeIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px) scale(1.05); }
  }

  .mode-link {
    text-decoration: none;
    color: inherit;
  }

  .mode-link:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.35);
    outline-offset: 2px;
  }

  .mode-all-label {
    text-align: center;
    margin-top: 0.35rem;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  /* ===== SHOP STORIES (BOUTIQUES) ===== */
  .shop-stories-wrap {
    max-width: 1200px;
    margin: 0 auto 0;
  }

  .shop-stories {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.08rem 0.25rem 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-stories::-webkit-scrollbar {
    display: none;
  }

  .shop-story-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 78px;
  }

  .shop-story {
    background: transparent;
    border: none;
    padding: 0;
    min-width: 78px;
    scroll-snap-align: start;
    cursor: pointer;
    text-align: center;
    color: var(--text-primary);
    transition: transform 0.15s ease;
  }

  .shop-story:active {
    transform: scale(0.98);
  }

  .story-ring {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    padding: 3px;
    margin: 0 auto 0.35rem;
    position: relative;
    background: linear-gradient(135deg, rgba(16,185,129,1), rgba(245,158,11,0.95));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  }

  .story-status-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    bottom: 6px;
    right: 6px;
    border: 2px solid rgba(255,255,255,0.98);
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.22);
    pointer-events: none;
  }

  .story-status-dot.open { background: #10b981; }
  .story-status-dot.closed { background: #ef4444; }

  .shop-story.active .story-ring {
    background: linear-gradient(135deg, rgba(37,99,235,1), rgba(16,185,129,1));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
  }

  .story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.95);
  }

  .story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.03) saturate(1.04) brightness(1.01);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .story-fallback {
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    background: radial-gradient(circle at 30% 20%, rgba(16,185,129,0.18), transparent 55%), #fff;
  }

  .story-all {
    color: var(--primary-green-dark);
    background: radial-gradient(circle at 30% 20%, rgba(245,158,11,0.18), transparent 55%), #fff;
    font-size: 1.2rem;
  }

  .story-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 88px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .story-map-btn {
    border: 1px solid rgba(37, 99, 235, 0.26);
    background: rgba(239, 246, 255, 0.9);
    color: #1D4ED8;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.16);
  }

  .story-map-btn:hover {
    color: #1E40AF;
    background: #DBEAFE;
  }

  /* ===== CATEGORIES (VISIBLE UNIQUEMENT EN PRODUITS/SERVICES) ===== */
  .category-strip-wrap {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
  }

  .category-strip-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
  }

  .category-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .kind-hidden {
    display: none !important;
  }

  .floating-pagination-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 1004;
    display: none;
    align-items: center;
    gap: 0.55rem;
    width: calc(100% - 1.25rem);
    max-width: 430px;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .floating-pagination-nav.show {
    display: flex;
  }

  .floating-pagination-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--text-primary);
    border-radius: 999px;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 122px;
  }

  .floating-pagination-btn.is-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-color: var(--primary-green-dark);
    color: #fff;
  }

  .floating-pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .floating-pagination-status {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 900;
    color: #0f172a;
  }

  .load-more-wrap {
    margin-top: 1.5rem;
    display: none;
    justify-content: center;
  }

  .load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid var(--primary-green);
    background: #fff;
    color: var(--primary-green);
    font-weight: 700;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    width: 100%;
    justify-content: center;
  }

  .load-more-btn:hover:not(:disabled) {
    background: var(--primary-green);
    color: #fff;
    box-shadow: var(--shadow-md);
  }

  .load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* ===== SECTION BOUTIQUES EN VEDETTE ===== */
  .featured-shops-section {
    margin-bottom: 3rem;
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .shop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  .shop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
  }

  .shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .shop-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    position: relative;
  }

  .shop-logo-large {
    position: absolute;
    bottom: -30px;
    left: 25px;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background: white;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-md);
  }

  .shop-card-content {
    padding: 50px 25px 25px;
  }

  .shop-card-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }

  .shop-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;

    /* Pour le texte tronqué */
    display: -webkit-box;       /* Chrome, Safari, Edge */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    /* Propriété standard recommandée */
    display: box;               /* fallback ancien */
    line-clamp: 2;              /* standard moderne */
}

  .shop-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .shop-card-stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--light-bg);
    border-radius: 10px;
  }

  .shop-card-stat .number {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
  }

  .shop-card-link {
    display: block;
    text-align: center;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  }

  .shop-card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* ===== FILTRE DE PRIX ===== */
  .price-slider-container {
    padding: 0.5rem 0;
  }

  .price-inputs-compact {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .price-input-compact {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    background: var(--light-bg);
  }

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

  .apply-btn-compact {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  }

  .apply-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* ===== CONTENU PRINCIPAL ===== */
  .main-content {
    flex: 1;
    position: relative;
    min-width: 0; /* Important pour flex shrink */
    margin-top: 0 !important;
  }

  /* ===== BARRE D'OUTILS ===== */
  .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .results-info {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
  }

  .results-count {
    color: var(--primary-green);
    font-weight: 900;
    font-size: 1.3rem;
  }

  .toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
  }

  .btn-boutiques {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-boutiques:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .sort-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .sort-label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1rem;
  }

  .sort-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    min-width: 180px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
    max-width: 100%;
  }

  .sort-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  }

  /* ===== CHIPS DE CATEGORIES ===== */
  .category-chips-container {
    margin-bottom: 2rem;
    position: relative;
  }

  .category-chips {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.75rem 0.75rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--border-color);
    -webkit-overflow-scrolling: touch;
  }

  .category-chips::-webkit-scrollbar {
    height: 6px;
  }

  .category-chips::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
  }

  .category-chips::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
  }

  .category-chip {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
  }

  .category-chip:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-green);
    border-color: var(--primary-green);
  }

  .category-chip.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
  }

  /* ===== GRILLE DE PRODUITS ULTRA-OPTIMISEE ===== */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 3rem;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .products-grid.loading {
    opacity: 0.96;
    pointer-events: none;
  }

  #productsContainer.is-swapping {
    position: relative;
  }

  #productsContainer.is-swapping .products-grid {
    contain: layout paint;
  }

  #productsContainer.is-swapping .fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .products-grid.loading .product-card-compact {
    border-color: rgba(203, 213, 225, 0.8);
    background:
      linear-gradient(100deg, rgba(148,163,184,.12) 25%, rgba(148,163,184,.28) 37%, rgba(148,163,184,.12) 63%),
      #f8fafc;
    background-size: 200% 100%;
    animation: productGridShimmer 1.2s linear infinite;
  }

  .products-grid.loading .product-card-compact > * {
    visibility: hidden;
  }

  @keyframes productGridShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* ===== CARTE PRODUIT COMPACTE ===== */
  .product-card-compact {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #d9dee5;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    position: relative;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .product-card-compact.loading {
    opacity: 0.7;
  }

  .product-card-compact:hover {
    transform: none;
    box-shadow: none;
    border-color: #c7d0db;
  }

  /* ===== BADGES PRODUIT ===== */
  .product-badges-compact {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
  }

  .badge-compact {
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .badge-discount-compact {
    background: #ef4444;
    color: white;
  }

  .badge-stock-compact {
    background: #10b981;
    color: white;
  }

  .badge-stock-low-compact {
    background: var(--warning-color);
    color: white;
  }

  .badge-stock-out-compact {
    background: #6B7280;
    color: white;
  }

  .badge-service-compact {
    background: #2563eb;
    color: white;
  }

  .badge-location-compact {
    background: #f59e0b;
    color: white;
  }

  /* ===== IMAGE PRODUIT ===== */
  .product-image-container-compact {
    position: relative;
    height: 188px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 18px 18px 0 0;
    isolation: isolate;
  }

  .product-image-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    display: block;
    transition: transform 0.5s ease;
    filter: contrast(1.04) saturate(1.05) brightness(1.01);
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .product-video-frame-compact {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0f172a;
    overflow: hidden;
  }

  .product-video-frame-compact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.12), transparent 32%),
      linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.08));
    z-index: 0;
    pointer-events: none;
  }

  .product-video-frame-compact .product-image-compact {
    position: relative;
    z-index: 1;
    background: #0f172a;
  }

  .product-video-badge-compact {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    border-radius: 999px;
    padding: 0.18rem 0.45rem;
    font-size: 0.66rem;
    font-weight: 800;
    pointer-events: none;
  }

  .product-card-compact[data-item-type="location"] .product-image-compact {
    object-fit: cover;
    object-position: center;
    border-radius: 18px 18px 0 0;
    filter: contrast(1.03) saturate(1.04) brightness(1.015);
  }

  .product-card-compact:hover .product-image-compact {
    transform: none;
  }

  .product-slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
  }

  .product-image-container-compact:hover .product-slide-control {
    opacity: 1;
  }

  .product-slide-control:hover {
    background: rgba(15, 23, 42, 0.78);
  }

  .product-slide-control.prev { left: 8px; }
  .product-slide-control.next { right: 8px; }

  .image-placeholder-compact {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
  }

  /* ===== CONTENU PRODUIT ===== */
  .product-content-compact {
    padding: 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
  }

  .product-name-compact {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
    padding-bottom: .08em;
  }

  .product-name-compact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .product-name-compact a:hover {
    color: var(--primary-green);
  }

  .product-price-container-compact {
    margin-bottom: 0.75rem;
  }

  .current-price-compact {
    font-size: 1.2rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
  }

  .old-price-compact {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
  }

  /* ===== ACTIONS PRODUIT ===== */
  .product-actions-compact {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
  }

  .btn-detail-compact {
    flex: 1;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn-detail-compact:hover {
    background: #ffffff;
    color: var(--text-primary);
    border-color: #9ca3af;
    box-shadow: none;
  }

  .btn-cart-compact {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn-cart-compact:hover:not(:disabled) {
    transform: none;
    box-shadow: none;
  }

  .btn-cart-compact:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
  }

  .btn-book-compact {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
  }

  .btn-book-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    color: white;
  }

  /* ===== ETAT VIDE ===== */
  .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
    margin: 3rem 0;
  }

  .empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
  }

  .empty-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
  }

  .empty-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }

  /* ===== PAGINATION ===== */
  .pagination-compact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    width: 100%;
  }

  .pagination-slot {
    display: flex;
    align-items: center;
  }

  .pagination-prev-slot {
    justify-content: flex-end;
  }

  .pagination-next-slot {
    justify-content: flex-start;
  }

  .pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
  }

  .page-link-compact {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    min-width: 42px;
    text-align: center;
    cursor: pointer;
  }
  .page-link-compact.prev-link,
  .page-link-compact.next-link {
    min-width: 118px;
    padding-inline: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  .page-link-compact.next-link {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: #fff;
    border-color: var(--primary-green-dark);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.25);
  }
  .page-link-compact.next-link:hover:not(.active):not(.disabled) {
    color: #fff;
    border-color: var(--primary-green-dark);
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
    transform: translateY(-2px);
  }

  .page-link-compact:hover:not(.active):not(.disabled) {
    background: rgba(16, 185, 129, 0.05);
    color: var(--primary-green);
    border-color: var(--primary-green);
  }

  .page-link-compact.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
  }

  .page-link-compact.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  @media (max-width: 991.98px) and (pointer: coarse) {
    .btn-promotions-home::after,
    .mode-intro.onboarding,
    .mode-intro-dot,
    .mode-intro-arrow,
    .live-search-skeleton,
    .home-skeleton-shimmer::before,
    .home-pulse,
    .shop-home-spinner {
      animation: none !important;
    }

    .shop-home-floating-bar,
    .shop-home-sheet,
    .mode-intro,
    .search-chip,
    .search-mode-toggle {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
  }

  .mode-btn[data-bm-pending="1"],
  .shop-story[data-bm-pending="1"],
  .category-chip[data-bm-pending="1"],
  .page-link-compact[data-bm-pending="1"],
  .search-btn[data-bm-pending="1"],
  .apply-btn-compact[data-bm-pending="1"],
  .load-more-btn[data-bm-pending="1"] {
    transform: none;
  }

  /* ===== TOAST NOTIFICATION ===== */
  .toast {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
  }

  .toast.success {
    background: var(--success-color);
  }

  .toast.error {
    background: var(--danger-color);
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* ===== INDICATEUR D'ETAT URL ===== */
  .url-state {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .url-state.show {
    opacity: 1;
  }

  /* ===== ANIMATIONS ===== */
  .fade-in {
    animation: fadeIn 0.16s ease-out forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0.92;
      transform: translateY(2px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== DESIGN RESPONSIVE ===== */

  /* Tablettes */
  @media (max-width: 1200px) {
    .shop-cards-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 1rem;
    }
    
    .mode-switch {
      grid-template-columns: repeat(2, minmax(152px, 196px));
      gap: 0.72rem 0.82rem;
    }
  }

  /* Tablettes portables */
  @media (max-width: 992px) {
    .shop-container {
      max-width: 100%;
      padding: 0.875rem;
    }
    
    .shop-title {
      font-size: 2rem;
    }
    
    .shop-cards-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1rem;
    }
    
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 0.875rem;
    }
    
    .product-image-container-compact {
      height: 170px;
    }

    .mode-switch {
      grid-template-columns: repeat(2, minmax(146px, 1fr));
      max-width: 372px;
      margin: 0 auto;
      gap: 0.68rem 0.78rem;
    }
  }

  /* Mobile large */
  @media (max-width: 768px) {
    .shop-container {
      padding: 0.75rem;
    }

    .search-container,
    .search-wrapper,
    .toolbar,
    .toolbar-actions,
    .sort-container,
    .main-content {
      min-width: 0;
      max-width: 100%;
    }
    
    .shop-header {
      margin-bottom: 1.5rem;
    }
    
    .shop-title {
      font-size: 1.75rem;
    }
    
    .shop-subtitle {
      font-size: 1rem;
    }

    .btn-promotions-home {
      width: 100%;
      max-width: 18rem;
      justify-content: center;
      padding: 0.78rem 1rem;
      min-height: 48px;
    }

    .mode-intro {
      margin-bottom: 0.45rem;
      padding: 0.46rem 0.6rem;
      border-radius: 12px;
    }

    .mode-intro-top {
      font-size: 0.86rem;
      margin-bottom: 0.08rem;
    }

    .mode-intro-line {
      font-size: 0.74rem;
      margin-bottom: 0;
    }
    
    .search-container {
      margin-bottom: 0.65rem;
    }
    
    .search-input {
      padding: 1rem 9.75rem 1rem 1.25rem;
      font-size: 16px;
    }
    
    .search-btn {
      min-width: 142px;
      padding: 0 1.1rem;
    }

    .mode-btn {
      padding: 0.68rem 1rem;
      border-radius: 999px;
    }

    .mode-icon {
      width: 19px;
      height: 19px;
      font-size: 0.9rem;
    }

    .mode-text .mode-title {
      font-size: 1.02rem;
    }

    .live-suggest-grid {
      grid-template-columns: 1fr;
    }

    .category-chips-container {
      display: none;
    }

    .floating-pagination-nav {
      display: none;
    }

    .load-more-wrap {
      display: none;
      position: fixed;
      left: 50%;
      bottom: 12px;
      transform: translateX(-50%);
      width: calc(100% - 2rem);
      max-width: 380px;
      z-index: 1003;
    }
    
    /* Boutiques en vedette - 2 par ligne */
    .shop-cards-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    
    .shop-banner {
      height: 120px;
    }
    
    .shop-logo-large {
      width: 70px;
      height: 70px;
      bottom: -25px;
      left: 20px;
    }
    
    .shop-card-content {
      padding: 45px 20px 20px;
    }
    
    .shop-card-name {
      font-size: 1.1rem;
    }
    
    .shop-card-stats {
      gap: 0.75rem;
    }
    
    .shop-card-stat .number {
      font-size: 1rem;
    }
    
    /* Layout principal */
    .shop-layout {
      display: block;
      margin-top: 0 !important;
    }
    
    /* Barre d'outils */
    .toolbar {
      flex-direction: column;
      align-items: stretch;
      gap: 0.55rem;
      padding: 0.62rem;
      margin-top: 0 !important;
      margin-bottom: 0.55rem;
    }

    .main-content {
      margin-top: -0.25rem !important;
    }
    
    .toolbar-actions {
      width: 100%;
      justify-content: space-between;
    }
    
    .sort-container {
      width: 100%;
      justify-content: space-between;
    }
    
    .sort-select {
      flex: 1;
      min-width: 0;
      font-size: 16px;
    }
    
    /* Grille produits - 3 par ligne */
    .products-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
    }
    
    .product-image-container-compact {
      height: 156px;
    }
    
    .product-content-compact {
      padding: 0.875rem;
    }
    
    .product-name-compact {
      font-size: 0.85rem;
      min-height: calc(1.3em * 2);
    }
    
    .current-price-compact {
      font-size: 1.1rem;
    }
    
    .product-actions-compact {
      flex-direction: column;
      align-items: stretch;
      gap: 0.45rem;
      margin-top: 0.65rem;
    }

    .product-actions-compact .add-to-cart-form {
      display: flex !important;
      width: 100%;
      margin: 0;
    }

    .product-actions-compact .btn-detail-compact,
    .product-actions-compact .btn-cart-compact,
    .product-actions-compact .btn-book-compact {
      flex: 0 0 auto;
      width: 100%;
      min-height: 44px;
      padding: 0.625rem;
      font-size: 0.85rem;
    }
    
    /* Chips */
    .category-chips {
      gap: 0.5rem;
      padding-bottom: 1rem;
    }
    
    .category-chip {
      padding: 0.625rem 1.25rem;
      font-size: 0.85rem;
    }
    
    /* Pagination */
    .pagination-compact {
      grid-template-columns: minmax(0, 1fr);
      gap: 0.55rem;
    }

    .pagination-pages {
      order: 1;
    }

    .pagination-prev-slot,
    .pagination-next-slot {
      width: 100%;
      justify-content: center;
    }

    .pagination-prev-slot {
      order: 2;
      grid-column: 1;
    }

    .pagination-next-slot {
      order: 3;
      grid-column: 2;
    }

    .pagination-compact {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
    }

    .pagination-pages {
      grid-column: 1 / -1;
    }

    .pagination-prev-slot,
    .pagination-next-slot {
      width: auto;
    }
    
    .page-link-compact {
      padding: 0.625rem 0.875rem;
      font-size: 0.9rem;
      min-width: 36px;
    }

    .page-link-compact.prev-link,
    .page-link-compact.next-link {
      min-width: 132px;
    }
    
    /* Scroll to top */
    .scroll-to-top {
      bottom: 70px;
      right: 15px;
      width: 45px;
      height: 45px;
    }
    
    .toast {
      bottom: 5rem;
      right: 1rem;
      max-width: 300px;
    }
  }

  /* Mobile moyen */
  @media (max-width: 576px) {
    .shop-title {
      font-size: 1.5rem;
    }

    /* Boutiques - 2 par ligne */
    .shop-cards-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.875rem;
    }
    
    .shop-banner {
      height: 100px;
    }
    
    .shop-logo-large {
      width: 60px;
      height: 60px;
      bottom: -20px;
      left: 15px;
    }
    
    .shop-card-content {
      padding: 40px 15px 15px;
    }
    
    .shop-card-name {
      font-size: 1rem;
    }
    
    .shop-card-desc {
      font-size: 0.85rem;
    }
    
    .shop-card-stats {
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    
    .shop-card-stat {
      padding: 0.375rem;
    }
    
    .shop-card-stat .number {
      font-size: 0.9rem;
    }
    
    .shop-card-link {
      padding: 0.75rem;
      font-size: 0.9rem;
    }
    
    /* Produits - 2 par ligne pour plus de densité */
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.625rem;
    }
    
    .product-image-container-compact {
      height: 146px;
    }
    
    .product-name-compact {
      font-size: 0.8rem;
      min-height: calc(1.3em * 2);
    }
    
    .current-price-compact {
      font-size: 1rem;
    }
    
    /* Chips */
    .category-chips {
      gap: 0.375rem;
    }
    
    .category-chip {
      padding: 0.5rem 1rem;
      font-size: 0.8rem;
    }
    
    /* Cacher label tri sur mobile très petit */
    .sort-label {
      display: none;
    }
    
    .btn-boutiques span {
      display: none;
    }
    
    .btn-boutiques {
      padding: 0.75rem;
    }

    .floating-pagination-nav.show {
      display: flex;
    }

    .load-more-wrap {
      bottom: 78px;
    }
  }

  /* Mobile très petit */
  @media (max-width: 400px) {
    .search-input {
      padding-right: 8.75rem;
    }

    .search-btn {
      min-width: 128px;
    }

    /* Boutiques - 1 par ligne si écran très étroit */
    .shop-cards-grid {
      grid-template-columns: 1fr;
    }
    
    /* Produits - 2 par ligne maintenu pour la densité */
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .product-image-container-compact {
      height: 136px;
    }
    
  }


