/* ==========================================================================
   DETAIL_MAGASIN.CSS — Styles propres à la page détail d'un magasin
   (le reset, les variables et l'en-tête/nav/footer viennent de base.css)
   ========================================================================== */

* {
  font-family: 'Montserrat', sans-serif !important;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- FIL D'ARIANE --- */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-container a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}

/* --- ENTÊTE DU MAGASIN --- */
.store-hero {
  max-width: 1250px;
  margin: 30px auto 20px auto;
  padding: 0 20px;
}

.store-header-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.store-cover-img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.store-main-details h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-green-dark);
  margin-bottom: 8px;
}

.store-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.store-location-tag svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.store-location-tag a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.store-location-tag a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

/* FICHE DE L'ACTEUR / VENDEUR */
.actor-info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--brand-green);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.actor-info-item {
  display: flex;
  flex-direction: column;
}

.actor-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
}

.actor-info-item .value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-green-dark);
}

.actor-info-item .value a {
  color: var(--brand-green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.actor-info-item .value a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

/* --- SECTION PRODUITS DU MAGASIN --- */
.store-products-section {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title-bar {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-bar h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-green-dark);
}

/* GRILLE PRODUITS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.product-img-box {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  position: relative;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  z-index: 2;
}

.btn-cart-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.btn-cart-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-cart-icon:hover {
  background: var(--brand-green-dark);
  transform: scale(1.08);
}

.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 8px;
}

.product-qty {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.product-qty span {
  color: var(--text-dark);
  font-weight: 700;
}

.product-price-line {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

.product-price-line span {
  color: var(--brand-orange);
  font-weight: 900;
  font-size: 1.05rem;
}

.product-price-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price-rating-row .product-price-line { margin-top: 0; }

.product-rating-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

.product-rating-badge .star-icon { color: var(--gold-star); }

@media (max-width: 850px) {
  .store-header-card { grid-template-columns: 1fr; }
}
