/* --- Reset minimal --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

/* --- Layout général --- */
.shop_wrapper {
  padding: 20px;
}
.shop_header h1 {
  margin: 0;
  font-size: 28px;
}
.shop_divider {
  margin: 10px 0 20px;
  border: none;
  border-top: 1px solid #ccc;
}

.shop_layout {
  display: flex;
  gap: 20px;
}
.shop_content {
  flex: 1;
}
.flash_message {
  background: #eee;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
}

/* --- Header boutique --- */
.shop_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Groupe d’icônes (loupe + sliders) */
.shop_icons_group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icône loupe */
.shop_search_icon {
  font-size: 22px;
  cursor: pointer;
  color: #444;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.shop_search_icon:hover {
  background: #f0f0f0;
}

/* Icône filtre */
.shop_filter_icon {
  font-size: 22px;
  cursor: pointer;
  color: #444;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.shop_filter_icon:hover {
  background: #f0f0f0;
}

/* --- Grille produits --- */
.shop_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}


/* --- Carte produit --- */
.auction_card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 10px;

    /* Ombre très douce */
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);

    text-decoration: none;
    color: inherit;
}


.auction_image img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* rien n’est coupé */
    background: #f7f7f7; /* optionnel, pour un fond propre */
    border-radius: 8px;
}


.auction_info {
    margin-top: 8px;
}

.auction_title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.auction_price {
    font-size: 17px;
    font-weight: 700;
    margin-top: 4px;
}


/* --- Modale produit (inchangé) --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}
.modal_content.modal_flex {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  cursor: pointer;
  font-size: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .shop_layout {
    flex-direction: column;
  }

    .shop_grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .auction_card {
        display: flex;
        flex-direction: column;
    }


    .auction_image {
        width: 100%;
        height: 180px; /* plus petit mais assez haut pour éviter le chevauchement */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f4f4f4;
        border-radius: 8px;
    }

    .auction_image img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }


    .auction_title {
        font-size: 13px;
    }

    .auction_price {
        font-size: 14px;
    }

}

/* --- Barre de recherche déroulante --- */
.shop_search_bar {
  display: none;
  margin-top: 12px;
}
.shop_search_bar.show {
  display: block;
}
.shop_search_bar input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Spacer */
.shop_spacer {
  height: 20px;
}

/* ========================================================= */
/* ===  PANNEAU FILTRES LATERAL (VERSION FINALE PROPRE)  === */
/* ========================================================= */

/* Overlay sombre */
.filters_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  display: none;
}

/* Panneau latéral gauche */
.filters_panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ccc;
  box-shadow: 2px 0 12px rgba(0,0,0,0.25);
  padding: 22px;
  z-index: 9999;

  /* invisible au départ */
  transform: translateX(-100%);
  display: none;

  transition: transform 0.35s ease;
}

.filters_panel.open {
  display: block;
  transform: translateX(0);
}

.filters_overlay.show {
  display: block;
}

/* Header du panneau */
.filters_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filters_close {
  font-size: 28px;
  cursor: pointer;
}

/* Liste des sports */
.filters_sports_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sport_item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bouton appliquer */
.filters_apply {
  width: 100%;
  padding: 12px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 16px;
}
.filters_apply:hover {
  background: #666;
}
.filters_panel input[type="number"] {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .filters_panel {
        width: 60vw; /* prend 85% de l’écran */
    }
}
