/* =============================================
   SHOP.CSS — Listing & Détail produit
============================================= */

/* ============================
   LAYOUT LISTING
============================ */
.shop-page {
  min-height: 100vh;
  background: var(--gray-light);
}

.shop-hero {
  background: var(--black);
  padding: 48px 0;
  text-align: center;
}

.shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.shop-hero__title span { color: var(--yellow); }

.shop-hero__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

/* Barre de recherche hero */
.shop-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.shop-search__input {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.shop-search__input::placeholder { color: rgba(255,255,255,0.35); }

.shop-search__input:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.12);
}

.shop-search__btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.shop-search__btn:hover { background: var(--yellow-dark); }

/* ============================
   LAYOUT PRINCIPAL
============================ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 32px 0;
}

/* ============================
   SIDEBAR FILTRES
============================ */
.filters-sidebar {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.filter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
}

.filter-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-card__reset {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow-dark);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Type toggle dans filtres */
.filter-type {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-type__btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  color: var(--gray-dark);
  transition: all var(--transition);
  text-align: center;
}

.filter-type__btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

/* Checkboxes catégories */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-option__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow-dark);
  cursor: pointer;
}

.filter-option__label {
  font-size: 0.88rem;
  color: var(--gray-dark);
}

.filter-option__count {
  font-size: 0.75rem;
  color: var(--gray-mid);
  background: var(--gray-light);
  padding: 2px 7px;
  border-radius: 100px;
}

/* Range prix */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-range__inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range__input {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.price-range__input:focus { border-color: var(--yellow); }

.price-range__sep {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.price-range__slider {
  width: 100%;
  accent-color: var(--yellow-dark);
  cursor: pointer;
}

/* Note filter */
.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.rating-option:hover { background: var(--yellow-light); }

.rating-option input { accent-color: var(--yellow-dark); }

.rating-option__stars { color: var(--yellow); font-size: 0.85rem; }

.rating-option__label { font-size: 0.82rem; color: var(--gray-mid); }

/* ============================
   ZONE PRODUITS
============================ */
.products-zone { flex: 1; }

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.products-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.products-toolbar__count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--black);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--yellow-light);
  border: 1px solid var(--border-yellow);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
}

.active-filter:hover { background: var(--yellow); }

.active-filter__remove {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--gray-mid);
}

.products-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--black);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23757575' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.sort-select:focus { border-color: var(--yellow); }

/* Vue grid/list toggle */
.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle__btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray-mid);
  transition: all var(--transition);
}

.view-toggle__btn.active,
.view-toggle__btn:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ============================
   GRILLE PRODUITS
============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

/* Card produit listing */
.product-listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.product-listing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.product-listing-card__thumb {
  aspect-ratio: 4/3;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.product-listing-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-listing-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.product-listing-card__wish:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.product-listing-card__body {
  padding: 14px 16px 18px;
}

.product-listing-card__shop {
  font-size: 0.76rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-listing-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-listing-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.product-listing-card__stars { color: var(--yellow); font-size: 0.8rem; }

.product-listing-card__rating-count {
  font-size: 0.76rem;
  color: var(--gray-mid);
}

.product-listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-listing-card__prices { display: flex; flex-direction: column; }

.product-listing-card__old {
  font-size: 0.76rem;
  color: var(--gray-mid);
  text-decoration: line-through;
}

.product-listing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
}

.product-listing-card__add {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--black);
}

.product-listing-card__add:hover {
  background: var(--yellow-dark);
  transform: scale(1.08);
}

/* Liste view */
.products-grid.list-view .product-listing-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.products-grid.list-view .product-listing-card__thumb {
  aspect-ratio: auto;
  min-height: 140px;
}

/* ============================
   PAGINATION
============================ */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================
   ÉTAT VIDE
============================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}

.empty-state__icon { font-size: 3.5rem; margin-bottom: 16px; }

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.empty-state__sub {
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-bottom: 20px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    display: none;
  }

  .filters-sidebar.mobile-open {
    display: block;
  }

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

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-grid.list-view .product-listing-card {
    grid-template-columns: 1fr;
  }
}
/* =============================================================
   CARTES VENDEUR — style "vitrine" (sélecteur de boutique)
============================================================= */
.vendor-card {
  position:relative; display:block; background:#fff;
  border:1.5px solid var(--border); border-radius:var(--radius-lg); overflow:hidden;
  text-decoration:none; color:inherit;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vendor-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:var(--yellow); }

/* Bandeau coloré en haut */
.vendor-card__cover { height:58px; background:linear-gradient(120deg, var(--yellow) 0%, var(--yellow-dark) 100%); }

/* Logo flottant qui chevauche le bandeau */
.vendor-card__logo {
  position:absolute; top:30px; left:20px; width:56px; height:56px; border-radius:16px;
  background:linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color:var(--black);
  border:3px solid #fff; box-shadow:0 6px 16px rgba(255,143,0,.32);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:1.4rem;
}

.vendor-card__body { padding:36px 20px 20px; }
.vendor-card__name {
  font-family:var(--font-display); font-weight:800; color:var(--black); font-size:1.06rem; line-height:1.25;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.vendor-card__meta { color:var(--gray-mid); font-size:.82rem; margin-top:3px; }

.vendor-card__badges { display:flex; gap:6px; flex-wrap:wrap; margin-top:12px; }
.vendor-card__badge {
  display:inline-flex; align-items:center; gap:4px;
  font-family:var(--font-display); font-weight:700; font-size:.68rem;
  border-radius:100px; padding:3px 10px;
}
.vendor-card__badge--certif { background:#E8F5FE; color:#1877c9; border:1px solid #bfe0fb; }
.vendor-card__badge--annees { background:var(--yellow-light); color:#8a6d00; border:1px solid var(--border-yellow); }

.vendor-card__stats {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  color:var(--gray-dark); font-size:.82rem; margin-top:14px; padding-top:14px;
  border-top:1px dashed var(--border);
}
.vendor-card__stats i { margin-right:3px; }

.vendor-card__cta {
  display:inline-flex; align-items:center; gap:6px; margin-top:16px;
  font-family:var(--font-display); font-weight:700; font-size:.85rem; color:var(--yellow-dark);
}
.vendor-card__cta i { transition:transform .2s ease; }
.vendor-card:hover .vendor-card__cta i { transform:translateX(4px); }
