/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 24 2025 | 16:37:00 */
/* =========================
   LOCATION: Catégorie "Location"
   ========================= */

/* --- containers subcat / header --- */
body.tax-product_cat.term-location .site-main,
.product_cat-location .site-main,
.taxonomy-product_cat.term-location .site-main {
  --card-radius: 12px;
}

/* --- Sous-catégories (robes / costumes / éphémères / chaussures...) --- */
.product_cat-location .subcategories,
.taxonomy-product_cat.term-location .subcategories,
.term-location .subcategories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 0 32px;
}

.subcategory-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(6, 24, 41, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.subcategory-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(6,24,41,0.08); }
.subcategory-card img { width:100%; height:160px; object-fit:cover; border-radius:8px; margin-bottom:10px; }
.subcategory-card h3 { font-size:16px; margin:0 0 6px; font-weight:700; }
.subcategory-card p.subcat-desc { font-size:13px; color:#666; margin:0; }

/* --- Grille produits dans la catégorie Location --- */
.product_cat-location .products,
.taxonomy-product_cat.term-location .products {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Product card (grid) */
.product_cat-location .product,
.term-location .product {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(6,24,41,0.04);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product_cat-location .product:hover { transform: translateY(-6px); box-shadow: 0 16px 44px rgba(6,24,41,0.08); }

/* Title & thumbnail */
.product .woocommerce-loop-product__title { font-size:15px; margin:6px 0 8px; font-weight:700; color:#111; line-height:1.2; }
.product .attachment-woocommerce_thumbnail { border-radius:8px; margin-bottom:10px; object-fit:cover; }

/* Price styling: met en évidence le prix de location (ex: 750€) */
.product .price { display:block; font-size:17px; font-weight:800; color:#111; margin-bottom:8px; }
.product .rental-price { color:#c0392b; font-weight:900; font-size:18px; }

/* petits labels sous le titre si nécessaire */
.product .meta-rent { font-size:13px; color:#666; margin-top:4px; }

/* --- Bouton "Réserver" (archive & product) --- */
.product .button.reserve-button,
.woocommerce .button.reserve-button,
.product_cat-location .button.reserve-button {
  display:inline-block;
  background: #27ae60;
  color:#fff;
  border-radius: 8px;
  padding:8px 12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing: .6px;
  box-shadow: 0 6px 18px rgba(39,174,96,0.18);
  transition: transform .12s ease, opacity .12s ease;
}
.product .button.reserve-button:hover { transform: translateY(-2px); opacity: 0.98; }

/* --- Badge "Rupture de stock" positionné en haut à gauche --- */
/* couvre plusieurs classes possibles pour compatibilité */
.product .stock.out-of-stock,
.product .out-of-stock,
.product .soldout,
.product .badge-out-of-stock,
.product .woocommerce-loop-product__stock {
  position: absolute !important;
  left: 10px;
  top: 10px;
  background: #e74c3c !important;
  color: #fff !important;
  padding: 6px 8px;
  font-weight: 800;
  font-size: 12px;
  border-radius: 8px;
  z-index: 30;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(231,76,60,0.18);
}

/* Si le plugin insère <span class="stock">Rupture de stock</span> */
.product .stock.out-of-stock::before { content: "Rupture de stock"; }

/* --- Badge "En location" (top-right) pour produits "déjà loués" (classe .product-rented) --- */
.product.product-rented::after,
.product .badge-rented {
  content: "En location";
  position: absolute;
  right: 10px;
  top: 10px;
  background: #111;
  color: #fff;
  padding: 6px 8px;
  font-weight: 800;
  font-size: 12px;
  border-radius: 8px;
  z-index: 30;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

/* --- Barre d'action fixe en bas sur la page produit (Loyer / Réserver) --- */
.rental-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(6,24,41,0.06);
  z-index: 99999;
  box-shadow: 0 -8px 30px rgba(6,24,41,0.08);
  backdrop-filter: blur(4px);
}

/* prix sur la barre (à gauche) */
.rental-action-bar .rental-bar-price { font-weight:900; font-size:18px; color:#c0392b; }

/* boutons */
.rental-action-bar .rental-btn {
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.rental-action-bar .rental-btn.lease { background:#2980b9; color:#fff; margin-right:8px; }
.rental-action-bar .rental-btn.reserve { background:#27ae60; color:#fff; }

/* Cache la barre sur petit écran si nécessaire (optionnel) */
@media (max-width:420px){
  .rental-action-bar { padding:10px 10px; gap:8px; }
  .rental-action-bar .rental-bar-price { font-size:16px; }
}

/* --- Si tu veux que la cible du calendrier (#booking-calendar) ressorte --- */
#booking-calendar:target {
  outline: 6px solid rgba(39,174,96,0.08);
  scroll-margin-top: 90px; /* laisse la barre admin / header */
  transition: box-shadow .4s ease;
}

/* --- Calendar (petits ajustements visuels compatibles Bookings / RnB) --- */
.rnb-calendar, .wc-bookings-calendar, .ui-datepicker {
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(6,24,41,0.06);
}

/* cas tampon / buffer (si le JS ajoute la classe rental-buffered) */
.rnb-calendar .rental-buffered,
.wc-bookings-calendar .rental-buffered,
.ui-datepicker td.rental-buffered {
  background: repeating-linear-gradient(45deg, rgba(128,128,128,0.08), rgba(128,128,128,0.08) 4px, transparent 4px, transparent 8px);
  color: #666 !important;
}

/* date réellement booked (plugin) */
.rnb-calendar td.booked,
.wc-bookings-calendar td.booked,
.ui-datepicker td.booked {
  background: #e6e6e6 !important;
  color: #666 !important;
  text-decoration: line-through;
}

/* --- Quelques utilitaires visuels --- */
.product .small-note { font-size:12px; color:#777; margin-top:8px; }
.center-txt { text-align:center !important; }
