/* ================================
   KASA — Styles boutique (shop.php)
   ================================ */

:root {
  --primary: #f6a623;
  --primary-rgb: 246, 166, 35;
  --bg: #f8f8f8;
  --text: #111;
  --light: #fff;
  --muted: #6c757d;
  --border: rgba(0,0,0,0.08);
  --radius: 14px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* -------------------------------
   Layout général
-------------------------------- */
.shop-page {
  min-height: 80vh;
}

.card {
  border-radius: var(--radius);
}

/* -------------------------------
   Filtres (sidebar)
-------------------------------- */
.shop-filters .form-label {
  font-weight: 600;
  color: #222;
}

.shop-filters input,
.shop-filters select {
  border-radius: 8px;
  border: 1px solid var(--border);
}

.shop-filters input:focus,
.shop-filters select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.shop-filters button[type="submit"] {
  background: var(--primary);
  border: none;
  font-weight: 700;
}

.shop-filters button[type="submit"]:hover {
  filter: brightness(0.95);
}

/* Texte explicatif dans le filtre */
.shop-filters p.small {
  font-size: 0.8rem;
}

/* -------------------------------
   Barre de tri / toolbar
-------------------------------- */
.shop-toolbar {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.shop-toolbar select {
  border-radius: 999px;
  padding: 0.3rem 1rem;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

/* === Barre de catégories (shop toolbar) === */
.shop-cat-strip{
  overflow-x:auto;
  white-space:nowrap;
  padding-bottom:4px;
}

.shop-cat-strip::-webkit-scrollbar{
  height:4px;
}

.shop-cat-strip::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#d1d5db;
}

.shop-cat-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:0.5rem;
  margin-bottom:0.35rem;
  padding:0.35rem 1.1rem;
  border-radius:999px;
  border:0;
  background:#000;          /* pills noirs par défaut */
  color:#fff;
  font-size:0.82rem;
  font-weight:600;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}

.shop-cat-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.shop-cat-pill.active{
  background:#22c55e;      /* vert type "Tous les plats" */
  color:#fff;
  box-shadow:0 4px 12px rgba(34,197,94,.6);
}

/* -------------------------------
   Catégories (pills horizontal)
-------------------------------- */
.shop-categories {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.6rem;
  padding: 0.4rem 0;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.shop-categories::-webkit-scrollbar {
  height: 6px;
}
.shop-categories::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

.shop-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 600;
}

.shop-cat-pill.active,
.shop-cat-pill:hover {
  background: var(--primary);
  color: #111;
}

/* -------------------------------
   Liste des produits
-------------------------------- */
.shop-products {
  transition: opacity 0.25s ease;
}

.shop-product-card {
  transition: all 0.2s ease;
  border-radius: var(--radius);
  background: var(--light);
  border: 1px solid var(--border);
}

.shop-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shop-product-card .h6 {
  font-weight: 700;
  color: #111;
  margin-bottom: 0.3rem;
}

.shop-product-card .text-muted {
  color: var(--muted) !important;
}

.shop-product-card img {
  border-radius: 10px;
  background: #fff;
}

.shop-product-card .btn {
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.shop-product-card .btn-dark {
  background: #111;
  border: none;
  color: #fff;
}

.shop-product-card .btn-dark:hover {
  background: var(--primary);
  color: #111;
}

.shop-product-card .btn-outline-secondary {
  border-color: #ddd;
  color: #444;
}

.shop-product-card .btn-outline-secondary:hover {
  background: #eee;
  color: #111;
}

/* Clamp de description */
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------
   Pagination
-------------------------------- */
.pagination {
  margin-top: 1rem;
  justify-content: center;
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #111;
}

.page-item .page-link {
  color: #111;
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid #ddd;
}

.page-item .page-link:hover {
  background-color: #f0f0f0;
}

/* -------------------------------
   Responsive
-------------------------------- */
@media (max-width: 992px) {
  .shop-page .row {
    flex-direction: column-reverse;
  }
  .shop-filters {
    margin-bottom: 1.5rem;
  }
  .shop-cat-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .shop-product-card .row.g-3 {
    flex-direction: column;
  }
  .shop-product-card .col-4,
  .shop-product-card .col-8 {
    width: 100%;
    text-align: center;
  }
  .shop-product-card img {
    max-height: 200px;
  }
  .shop-product-card .btn {
    width: 100%;
  }
}