/* ==========================================================================
   Shop / Archive — Mobile first
   ========================================================================== */

/* --- Header : titre + tri --- */

.shop__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.shop__header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop__title {
  margin: 0;
}

.shop__result-count {
  font-size: 0.875rem;
  color: var(--color-black);
  opacity: 0.5;
}

/* Masquer le <p> wrapper genere par WooCommerce dans result-count */
.shop__result-count .woocommerce-result-count {
  margin: 0;
  padding: 0;
}

.shop__header-right {
  display: flex;
  align-items: center;
}

.shop__header-right .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid rgba(34, 34, 34, 0.2);
  border-radius: 8px;
  padding: 8px 40px 8px 16px;
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  color: var(--color-black);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.shop__header-right .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* --- Grille produits --- */

.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop__item {
  list-style: none;
}

/* --- Description catégorie --- */

.shop__category-description {
  margin-bottom: 32px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-black);
  opacity: 0.7;
}

/* --- Badge promo --- */

.product-card__image {
  position: relative;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 24px;
  line-height: 1.4;
}

/* --- Pagination --- */

.shop__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.shop__pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.875rem;
  color: var(--color-black);
  transition:
    background-color var(--transition),
    color var(--transition);
}

.shop__pagination .page-numbers:hover {
  background-color: var(--color-bg-alt);
}

.shop__pagination .page-numbers.current {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.shop__pagination .page-numbers.prev,
.shop__pagination .page-numbers.next {
  width: auto;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- No results --- */

.woocommerce-info {
  text-align: center;
  padding: 48px 16px;
  font-size: 1rem;
  color: var(--color-black);
  opacity: 0.6;
}

/* ==========================================================================
   Shop / Archive — Desktop
   ========================================================================== */

@media (min-width: 768px) {
  .shop__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
  }

  .shop__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .shop__pagination {
    margin-top: 64px;
    gap: 12px;
  }
}

/* ==========================================================================
   Shop Hero — Mobile first
   ========================================================================== */

.shop-hero {
  background-color: var(--color-bg-alt);
  border-radius: 16px;
  padding: 40px 24px 36px;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 40px;
}

.shop-hero__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.shop-hero__title {
  font-size: 2rem;
  color: var(--color-black);
  margin-bottom: 12px;
  line-height: 1.15;
}

.shop-hero__desc {
  font-size: 0.9375rem;
  color: rgba(34, 34, 34, 0.65);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Shop Nav — Navigation par catégories
   ========================================================================== */

.shop-nav {
  margin-bottom: 48px;
}

.shop-nav__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-black);
  background-color: var(--color-bg-alt);
  border-radius: 24px;
  border: 1.5px solid transparent;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.shop-nav__item:hover {
  border-color: var(--color-primary);
  background-color: #fff;
  color: var(--color-primary);
}

/* ==========================================================================
   Shop Sections — Produits par catégorie
   ========================================================================== */

.shop-sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.shop-section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.shop-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.shop-section__header-text {
  flex: 1;
  min-width: 0;
}

.shop-section__title {
  font-size: 1.25rem;
  margin: 0;
}

.shop-section__desc {
  font-size: 0.875rem;
  color: rgba(34, 34, 34, 0.55);
  margin: 4px 0 0;
  line-height: 1.5;
}

.shop-section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
  transition: gap var(--transition);
}

.shop-section__link:hover {
  gap: 10px;
}

/* ==========================================================================
   Shop Hero + Nav + Sections — Desktop
   ========================================================================== */

@media (min-width: 768px) {
  .shop-hero {
    padding: 56px 48px 48px;
    margin-top: 24px;
    margin-bottom: 56px;
  }

  .shop-hero__title {
    font-size: 2.5rem;
  }

  .shop-section__header {
    align-items: center;
    margin-bottom: 24px;
  }

  .shop-section__title {
    font-size: 1.375rem;
  }

  .shop-sections {
    gap: 72px;
  }

  .shop-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
