/**
 * Boutique WooCommerce — grille + sidebar sticky + barre de recherche.
 */

/*
 * Pas de padding-top sur <main> : sinon une bande blanche entre le menu fixe et le hero.
 * Le dégagement du header est intégré au padding-top du hero (fond bleu = sous le menu).
 */
.di-main--shop {
  --di-shop-hero-pad-top: calc(var(--header-h, 70px) + clamp(1.15rem, 2.5vw, 1.85rem));
  padding-top: 0;
  padding-bottom: 3rem;
  overflow: visible;
}

.admin-bar .di-main--shop {
  --di-shop-hero-pad-top: calc(32px + var(--header-h, 70px) + clamp(1.15rem, 2.5vw, 1.85rem));
}

@media (max-width: 782px) {
  .admin-bar .di-main--shop {
    --di-shop-hero-pad-top: calc(46px + var(--header-h, 70px) + clamp(1.15rem, 2.5vw, 1.85rem));
  }
}

/* —— Hero type CGU (bandeau bleu, pleine largeur) —— */
.di-main--shop .di-shop-page-hero {
  background: linear-gradient(135deg, #0d3b6e 0%, #1a6bb5 60%, #0d3b6e 100%);
  padding: var(--di-shop-hero-pad-top) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.di-main--shop .di-shop-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.di-main--shop .di-shop-page-hero .di-container {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

.di-main--shop .di-shop-page-hero .di-cgu-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.18);
  color: #e2c97a;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-family: "Lato", system-ui, sans-serif;
}

.di-main--shop .di-shop-page-hero h1 {
  font-family: var(--di-font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.di-main--shop .di-shop-page-hero .di-cgu-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: "Lato", system-ui, sans-serif;
}

@media (max-width: 640px) {
  .di-main--shop .di-shop-page-hero {
    padding-bottom: 1.75rem;
  }
}

/* Glyphes WooCommerce (::before + police "WooCommerce") : si la police ne charge pas, carrés / crochets visibles */
.di-main--shop .woocommerce-message::before,
.di-main--shop .woocommerce-info::before,
.di-main--shop .woocommerce-error::before {
  display: none !important;
  content: none !important;
}

.di-main--shop .woocommerce-message,
.di-main--shop .woocommerce-info,
.di-main--shop .woocommerce-error {
  padding: 0.9rem 1.15rem !important;
}

/* Pleine largeur viewport : le thème limite .di-container à ~1200px — on annule pour la boutique. */
.di-main--shop .di-shop-page-wrap.di-container {
  position: relative;
  overflow: visible;
  padding-top: 1.15rem;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

/* —— En-tête archive : titre masqué (doublon avec le hero) ; conserve description terme —— */
.di-main--shop .woocommerce-products-header {
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: none;
}

.di-main--shop .woocommerce-products-header__title.page-title {
  display: none !important;
}

.di-main--shop .term-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* —— Barre hero recherche + meta —— */
.di-shop-toolbar-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.35rem;
  padding: 0.65rem 0.85rem 0.65rem 0.75rem;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.035) 0%, rgba(255, 255, 255, 0.95) 45%, rgba(0, 33, 71, 0.025) 100%);
  border: 1px solid rgba(0, 33, 71, 0.09);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.05);
}

.di-shop-toolbar-hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #002147, #0a3a6e);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 33, 71, 0.2);
}

.di-shop-toolbar-hero__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.di-shop-toolbar-hero__brand-icon svg {
  display: block;
}

.di-shop-toolbar-hero__search {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.di-shop-search-wrap {
  width: 100%;
}

.di-product-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 33, 71, 0.14);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 33, 71, 0.04);
}

.di-product-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
}

.di-product-search .search-field {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem !important;
  font-size: 0.95rem !important;
  min-height: 42px;
  font-family: "Lato", system-ui, sans-serif;
  background: transparent !important;
  box-shadow: none !important;
}

.di-product-search .search-field:focus {
  outline: none;
}

.di-product-search:focus-within {
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.12);
}

.di-product-search__submit {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  min-height: 42px;
  background: #002147 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-family: "Lato", system-ui, sans-serif;
}

.di-product-search__submit:hover {
  background: #0a3a6e !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.25);
}

.di-product-search__submit-icon {
  display: none;
}

.di-shop-toolbar-hero__meta {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(0, 33, 71, 0.08);
  margin-left: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .di-shop-toolbar-hero__meta {
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    flex-wrap: nowrap;
  }

  .di-shop-toolbar-hero {
    flex-wrap: nowrap;
    align-items: center;
  }
}

.di-shop-toolbar-hero__meta .woocommerce-result-count {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
}

.di-shop-toolbar-hero__meta .woocommerce-ordering {
  margin: 0;
}

.di-shop-toolbar-hero__meta .woocommerce-ordering select {
  border-radius: 10px !important;
  border: 1px solid rgba(0, 33, 71, 0.18) !important;
  padding: 0.5rem 2rem 0.5rem 0.75rem !important;
  font-size: 0.88rem !important;
  min-height: 40px;
  background-color: #fff !important;
  color: #0f172a;
}

/* —— Bouton mobile filtres —— */
.di-shop-filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(145deg, #002147, #0a3a6e);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.di-shop-filters-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.28);
}

.di-shop-filters-toggle__icon {
  display: flex;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 992px) {
  .di-shop-filters-toggle {
    display: none;
  }
}

/* —— Overlay mobile —— */
.di-shop-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.di-shop-sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

body.di-shop-filters-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .di-shop-sidebar-overlay {
    display: none !important;
  }

  body.di-shop-filters-open {
    overflow: auto;
  }
}

/* —— Layout deux colonnes —— */
.di-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  overflow: visible;
}

@media (min-width: 992px) {
  .di-shop-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 2rem;
  }
}

/* —— Sidebar —— */
.di-shop-sidebar {
  z-index: 999;
}

.di-shop-sidebar__inner {
  background: #fff;
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 14px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 10px 36px rgba(0, 33, 71, 0.07);
}

@media (min-width: 992px) {
  .di-shop-sidebar {
    position: sticky;
    top: calc(var(--header-h, 70px) + 1rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h, 70px) - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-bar .di-shop-sidebar {
    top: calc(32px + var(--header-h, 70px) + 1rem);
    max-height: calc(100vh - 32px - var(--header-h, 70px) - 2rem);
  }

  @media (max-width: 782px) {
    .admin-bar .di-shop-sidebar {
      top: calc(46px + var(--header-h, 70px) + 1rem);
      max-height: calc(100vh - 46px - var(--header-h, 70px) - 2rem);
    }
  }

  .di-shop-sidebar__inner {
    padding: 1.15rem 1.1rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .di-shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(90vw, 340px);
    max-width: 100%;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
  }

  .di-shop-sidebar.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .di-shop-sidebar__inner {
    height: 100%;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
    padding-top: 1.25rem;
  }
}

.di-shop-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

.di-shop-sidebar__head-icon {
  display: flex;
  color: #002147;
}

.di-shop-sidebar__title {
  flex: 1;
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.di-shop-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 33, 71, 0.06);
  color: #002147;
  cursor: pointer;
  transition: background 0.15s ease;
}

.di-shop-sidebar__close:hover {
  background: rgba(0, 33, 71, 0.12);
}

@media (min-width: 992px) {
  .di-shop-sidebar__close {
    display: none;
  }
}

.di-shop-sidebar__block {
  margin-bottom: 1.25rem;
}

.di-shop-sidebar__block:last-child {
  margin-bottom: 0;
}

.di-shop-sidebar__block-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.di-shop-sidebar__block-icon {
  display: flex;
  color: #002147;
}

.di-shop-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.di-shop-cat-list li {
  margin: 0 0 0.35rem;
}

.di-shop-cat-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: "Lato", system-ui, sans-serif;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.di-shop-cat-link:hover {
  background: rgba(0, 33, 71, 0.07);
  color: #002147;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.06);
}

.di-shop-cat-link.is-active {
  background: linear-gradient(90deg, rgba(0, 33, 71, 0.12), rgba(0, 33, 71, 0.04));
  color: #002147;
  font-weight: 600;
}

.di-shop-cat-link__icon {
  flex: 0 0 auto;
  display: flex;
  color: #94a3b8;
}

.di-shop-cat-link.is-active .di-shop-cat-link__icon,
.di-shop-cat-link:hover .di-shop-cat-link__icon {
  color: #002147;
}

.di-shop-cat-link__text {
  flex: 1;
  min-width: 0;
}

.di-shop-cat-link__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(0, 33, 71, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.di-shop-widget__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.65rem;
}

.di-shop-widget {
  margin-bottom: 1.15rem;
}

.di-shop-widget:last-child {
  margin-bottom: 0;
}

.di-shop-widget .woocommerce-widget-layered-nav-list,
.di-shop-widget ul.product_list_widget {
  list-style: none;
  margin: 0;
  padding: 0;
}

.di-shop-widget a {
  color: #334155;
}

.di-shop-widget a:hover {
  color: #002147;
}

/* —— Grille produits —— */
.di-shop-main {
  min-width: 0;
}

.di-main--shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.di-main--shop ul.products::before,
.di-main--shop ul.products::after {
  display: none !important;
}

.di-main--shop ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid rgba(0, 33, 71, 0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 33, 71, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.di-main--shop ul.products li.product:hover {
  box-shadow: 0 14px 40px rgba(0, 33, 71, 0.1);
  transform: translateY(-3px);
}

.di-main--shop ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
}

.di-main--shop ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.di-main--shop ul.products li.product .woocommerce-loop-product__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.85rem 1rem 0.25rem;
  margin: 0;
  color: #0f172a;
}

.di-main--shop ul.products li.product .price {
  display: block;
  padding: 0 1rem 1rem;
  margin: 0;
  font-weight: 700;
  color: #002147;
  font-size: 0.98rem;
}

.di-main--shop ul.products li.product .button {
  margin: 0 1rem 1rem !important;
  border-radius: 10px !important;
  background: #002147 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.di-main--shop ul.products li.product .button:hover {
  background: #0a3a6e !important;
  color: #fff !important;
}

.di-main--shop .woocommerce-pagination {
  margin-top: 2.25rem;
  text-align: center;
}

.di-main--shop .woocommerce-pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.di-main--shop .woocommerce-pagination ul li {
  border: 0;
  display: inline-block;
}

.di-main--shop .woocommerce-pagination a,
.di-main--shop .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 33, 71, 0.12);
  background: #fff;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}

.di-main--shop .woocommerce-pagination a:hover {
  border-color: #002147;
  color: #002147;
}

.di-main--shop .woocommerce-pagination span.current {
  background: #002147;
  border-color: #002147;
  color: #fff;
}

.di-main--shop .woocommerce-no-products-found {
  grid-column: 1 / -1;
  margin: 0;
}

/* État vide (template loop/no-products-found.php) */
.di-shop-empty-state {
  text-align: center;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  color: #334155;
  box-shadow: 0 8px 32px rgba(0, 33, 71, 0.06);
}

.di-shop-empty-state__visual {
  margin-bottom: 1rem;
  color: #002147;
}

.di-shop-empty-state__illu {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.di-shop-empty-state__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.di-shop-empty-state__text {
  font-family: "Lato", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

.di-shop-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.di-shop-empty-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.di-shop-empty-state__btn--primary {
  background: #002147;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.22);
}

.di-shop-empty-state__btn--primary:hover {
  background: #0a3a6e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 33, 71, 0.28);
}

.di-shop-empty-state__btn--ghost {
  background: #fff;
  color: #002147;
  border: 1px solid rgba(0, 33, 71, 0.2);
}

.di-shop-empty-state__btn--ghost:hover {
  border-color: #002147;
  background: rgba(0, 33, 71, 0.04);
  color: #002147;
  transform: translateY(-1px);
}

@media (max-width: 599px) {
  .di-product-search__submit-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .di-product-search__submit {
    padding: 0 0.85rem !important;
  }

  .di-product-search__submit-icon {
    display: flex;
  }
}

/* ─────────────────────────────────────────────────────────────
   Barre des catégories populaires (au-dessus de la recherche)
───────────────────────────────────────────────────────────── */
.di-shop-popular-cats {
  margin: 0 0 1.4rem;
  background: #fff;
  border: 1px solid rgba(26, 107, 181, 0.10);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 4px 18px rgba(18, 38, 63, 0.05);
}

.di-shop-popular-cats__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.di-shop-popular-cats__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #12263f;
  font-size: 0.98rem;
}
.di-shop-popular-cats__title svg { color: #f0b90b; }

.di-shop-popular-cats__hint {
  color: #6a7587;
  font-size: 0.82rem;
  font-style: italic;
}

.di-shop-popular-cats__scroller {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.4rem;
  margin: 0 -0.3rem;
  padding-inline: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 107, 181, 0.35) transparent;
}
.di-shop-popular-cats__scroller::-webkit-scrollbar { height: 6px; }
.di-shop-popular-cats__scroller::-webkit-scrollbar-track { background: transparent; }
.di-shop-popular-cats__scroller::-webkit-scrollbar-thumb { background: rgba(26, 107, 181, 0.25); border-radius: 99px; }
.di-shop-popular-cats__scroller::-webkit-scrollbar-thumb:hover { background: rgba(26, 107, 181, 0.45); }

.di-shop-popular-cat {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6f9fd 0%, #eef4fb 100%);
  border: 1.5px solid transparent;
  color: #12263f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.di-shop-popular-cat:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fc 100%);
  border-color: rgba(26, 107, 181, 0.30);
  box-shadow: 0 8px 18px rgba(26, 107, 181, 0.12);
  color: #1A6BB5;
}

.di-shop-popular-cat.is-active {
  background: linear-gradient(135deg, #1A6BB5 0%, #2C89D8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(26, 107, 181, 0.32);
}
.di-shop-popular-cat.is-active .di-shop-popular-cat__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.di-shop-popular-cat__icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.di-shop-popular-cat:hover .di-shop-popular-cat__icon {
  transform: rotate(-8deg) scale(1.08);
}

.di-shop-popular-cat__name { line-height: 1; }

.di-shop-popular-cat__count {
  background: rgba(26, 107, 181, 0.10);
  color: #1A6BB5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .di-shop-popular-cats { padding: 0.85rem 0.85rem 0.95rem; border-radius: 14px; }
  .di-shop-popular-cats__hint { display: none; }
  .di-shop-popular-cat { padding: 0.5rem 0.8rem; font-size: 0.88rem; }
}

/* ─────────────────────────────────────────────────────────────
   Sidebar — catégories avec sous-catégories (details/summary)
───────────────────────────────────────────────────────────── */
.di-shop-cat-link__emoji {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
}

.di-shop-cat-details {
  border-radius: 10px;
  overflow: hidden;
}

.di-shop-cat-details > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}
.di-shop-cat-details > summary::-webkit-details-marker { display: none; }

.di-shop-cat-link__chev {
  margin-left: auto;
  color: #6a7587;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}
.di-shop-cat-details[open] > summary .di-shop-cat-link__chev {
  transform: rotate(180deg);
  color: #1A6BB5;
}

.di-shop-cat-sublist {
  list-style: none;
  margin: 0.3rem 0 0.6rem;
  padding: 0 0 0 2.1rem;
  border-left: 2px dashed rgba(26, 107, 181, 0.18);
  margin-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.di-shop-cat-sublink {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.di-shop-cat-sublink:hover {
  background: rgba(26, 107, 181, 0.06);
  color: #1A6BB5;
  transform: translateX(3px);
}
.di-shop-cat-sublink.is-active {
  background: rgba(26, 107, 181, 0.10);
  color: #1A6BB5;
  font-weight: 700;
}
.di-shop-cat-sublink__emoji {
  font-size: 0.95rem;
  line-height: 1;
}
.di-shop-cat-sublink__text {
  flex: 1;
  line-height: 1.25;
}
.di-shop-cat-sublink__count {
  background: rgba(26, 107, 181, 0.08);
  color: #1A6BB5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
}
.di-shop-cat-sublink.is-active .di-shop-cat-sublink__count {
  background: #1A6BB5;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Améliorations design grille produits
───────────────────────────────────────────────────────────── */
.di-shop-main ul.products li.product {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(26, 107, 181, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.di-shop-main ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 107, 181, 0.22);
  box-shadow: 0 18px 34px rgba(18, 38, 63, 0.10);
}
.di-shop-main ul.products li.product img {
  transition: transform 0.5s ease;
}
.di-shop-main ul.products li.product:hover img {
  transform: scale(1.04);
}
.di-shop-main ul.products li.product .onsale {
  background: linear-gradient(135deg, #f0b90b, #e69b00);
  color: #3a2a00;
  border-radius: 99px;
  padding: 4px 11px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.35);
  top: 12px;
  left: 12px;
  right: auto;
  min-height: auto;
  min-width: auto;
}
