/* ==========================================================================
   OCCAZ-MOTARD — PRODUIT (modern UI)
   Palette: #BC0D0D (primary), noir/ gris, fond blanc
   ========================================================================== */

:root{
  --om-red:#BC0D0D;
  --om-black:#111;
  --om-gray-900:#1a1a1a;
  --om-gray-700:#444;
  --om-gray-600:#666;
  --om-gray-500:#7a7a7a;
  --om-gray-200:#e7e7e7;
  --om-gray-150:#efefef;
  --om-gray-100:#f6f6f6;
  --om-radius:16px;
  --om-radius-sm:12px;
  --om-shadow: 0 10px 30px rgba(0,0,0,.08);
  --om-shadow-soft: 0 6px 18px rgba(0,0,0,.06);
}

.container.my-4{
  margin-top: 28px !important;
  margin-bottom: 40px !important;
}

/* Donne un peu de "scène" à la page */
.om-product{
  background: linear-gradient(180deg, var(--om-gray-100), #fff 420px);
  border-radius: var(--om-radius);
  padding: 18px;
}

/* Sidebar catégories */
#sidebar-categories{
  background: #fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow-soft);
  overflow: hidden;
}
#sidebar-categories .list-group-item{
  border: 0;
  border-bottom: 1px solid var(--om-gray-150);
  padding: 10px 12px;
  color: var(--om-gray-700);
}
#sidebar-categories .list-group-item:hover{
  background: var(--om-gray-100);
}
#sidebar-categories .list-group-item.active{
  background: rgba(188, 13, 13, .10);
  color: var(--om-black);
  font-weight: 700;
  position: relative;
}
#sidebar-categories .list-group-item.active::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background: var(--om-red);
}

/* Mobile categories container */
#mobile-categories{
  background:#fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow-soft);
  padding: 10px;
}

/* ========================================================================== */
/* LAYOUT haut de page : galerie + fiche produit */
/* ========================================================================== */
.om-product-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start;
}

/* Sur écrans moyens : on évite le “vide”, on passe en 1 colonne */
@media (max-width: 991px){
  .om-product-grid{
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* GALERIE */
/* ========================================================================== */
.om-gallery{
  position: relative;
  background:#fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow);
  overflow: hidden;
}

.om-gallery-main{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f3f3f3;
  cursor: zoom-in;
  overflow: hidden;
}
.om-gallery-main img{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff;
}

/* Ruban promo */
.om-promo-ribbon{
  position:absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--om-red);
  color:#fff;
  font-weight: 800;
  letter-spacing:.6px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(188,13,13,.25);
}

/* Thumbs */
.om-thumbs{
  display:flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--om-gray-150);
  overflow-x:auto;
  scrollbar-width: thin;
}
.om-thumb{
  border: 1px solid var(--om-gray-200);
  background:#fff;
  border-radius: 12px;
  padding: 0;
  width: 68px;
  height: 68px;
  overflow:hidden;
  flex: 0 0 auto;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.om-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.om-thumb:hover{
  transform: translateY(-1px);
  box-shadow: var(--om-shadow-soft);
}
.om-thumb.is-active{
  border-color: rgba(188,13,13,.55);
  box-shadow: 0 10px 20px rgba(188,13,13,.12);
}

/* ========================================================================== */
/* FICHE (détails) */
/* ========================================================================== */
.om-details{
  background:#fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow);
  padding: 18px 18px 16px;
}

/* Option “sticky” sur desktop, très agréable */
@media (min-width: 992px){
  .om-details{
    position: sticky;
    top: 16px;
  }
}

.om-title{
  font-size: 26px;
  line-height: 1.15;
  margin: 2px 0 10px;
  color: var(--om-black);
  font-weight: 900;
}

.om-badge-reserved{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(17,17,17,.06);
  border: 1px solid var(--om-gray-200);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--om-gray-700);
  margin-bottom: 12px;
}

/* Prix */
.om-price{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  margin: 6px 0 14px;
}
.om-price-now{
  font-size: 26px;
  font-weight: 900;
  color: var(--om-red);
}
.om-price-old{
  font-size: 14px;
  color: var(--om-gray-500);
  text-decoration: line-through;
  padding-bottom: 4px;
}

/* Liste infos = plus “fiche technique” */
.om-infos{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.om-infos li{
  background: var(--om-gray-100);
  border: 1px solid var(--om-gray-150);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--om-gray-700);
}
.om-infos strong{
  color: var(--om-black);
}
.om-link{
  color: var(--om-black);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px dashed rgba(188,13,13,.45);
}
.om-link:hover{
  color: var(--om-red);
  border-bottom-color: var(--om-red);
}

/* Badge état */
.om-badge-etat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 14px;
  background: rgba(188, 13, 13, .10);
  color: var(--om-red);
  border: 1px solid rgba(188,13,13,.25);
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing:.2px;
}

/* Bouton principal */
.om-actions{
  margin-top: 14px;
}
.btn-red{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: var(--om-red);
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(188,13,13,.22);
  transition: transform .12s ease, filter .12s ease;
}
.btn-red:hover{
  filter: brightness(.96);
  transform: translateY(-1px);
}
.btn-red:active{
  transform: translateY(0);
}

/* ========================================================================== */
/* SECTIONS (description / emplacement / similaires) */
/* ========================================================================== */
.om-section{
  margin-top: 16px;
  background:#fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow-soft);
  padding: 14px 16px;
}
.om-section h2{
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 900;
  color: #BC0D0D;
}
.om-section p{
  margin: 0;
  color: var(--om-gray-700);
  line-height: 1.55;
}

.om-chip{
  display:inline-flex;
  align-items:center;
  background: var(--om-black);
  color:#fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 8px;
}

/* ========================================================================== */
/* SIMILAIRES : tu aimes déjà, on garde l'esprit mais on polish */
/* ========================================================================== */
.om-similaires{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 991px){
  .om-similaires{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .om-similaires{ grid-template-columns: 1fr; }
}

.om-sim-card{
  display:block;
  background:#fff;
  border: 1px solid var(--om-gray-200);
  border-radius: 14px;
  overflow:hidden;
  text-decoration:none;
  box-shadow: var(--om-shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease;
}
.om-sim-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--om-shadow);
}
.om-sim-card img{
  width:100%;
  height: 160px;
  object-fit: cover;
  display:block;
  background: #fff;
}
.om-sim-title{
  padding: 10px 12px;
  color: var(--om-black);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}

/* ========================================================================== */
/* MODALES (zoom + contact) */
/* ========================================================================== */
.om-modal[hidden]{ display:none !important; }

.om-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.om-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.om-modal-panel{
  position: relative;
  width: min(980px, calc(100% - 22px));
  height: calc(100vh - 48px);
  margin: 24px auto;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.om-modal-panel img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  object-fit: contain;
}

/* panel form: scroll si besoin */
.om-modal-panel-form{
  padding: 16px;
  overflow:auto;
}

.om-modal-close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--om-gray-200);
  background:#fff;
  cursor:pointer;
  font-size: 26px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--om-shadow-soft);
}

.om-modal-title{
  margin: 6px 0 14px;
  font-size: 18px;
  font-weight: 900;
}

/* petits ajustements bootstrap inputs */
.om-modal-panel-form .form-control{
  border-radius: 12px;
  border: 1px solid var(--om-gray-200);
}
.om-modal-panel-form .form-control:focus{
  border-color: rgba(188,13,13,.55);
  box-shadow: 0 0 0 3px rgba(188,13,13,.10);
  outline: none;
}

/* 404 card */
.om-product-404.card{
  border-radius: var(--om-radius);
  border: 1px solid var(--om-gray-200);
  box-shadow: var(--om-shadow-soft);
}


.om-breadcrumb{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
  margin: 4px 0 14px;
  color: var(--om-gray-600);
  font-weight: 700;
  font-size: 13px;
}
.om-breadcrumb a{
  color: var(--om-black);
  text-decoration:none;
  border-bottom: 1px dashed rgba(188,13,13,.35);
}
.om-breadcrumb a:hover{ color: var(--om-red); border-bottom-color: var(--om-red); }
.om-breadcrumb span{ color: var(--om-gray-500); }


.om-sim-price {
  margin-top: 6px;
  font-weight: 700;
  color: #BC0D0D;
  font-size: 0.95rem;
}

.om-section-title {
  color: #BC0D0D;
  font-weight: 700;
  margin-bottom: 15px;
}