html,
body {
  overflow-x: hidden;
}


.bouquet-detail-page,
.bouquet-detail-hero,
.bouquet-gallery,
.bouquet-detail-info,
.order-info-content,
.related-products-grid {
  max-width: 100%;
}

.bouquet-detail-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bouquet-gallery {
  position: sticky;
  top: 120px;
}

.bouquet-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bouquet-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bouquet-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
}

.thumbnail {
  width: 100%;
  height: 140px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #c9a961;
}

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

.bouquet-detail-info h1,
.bouquet-mobile-header h1 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 10px;
}

/* Caché par défaut (desktop) — affiché uniquement sur mobile */
.bouquet-mobile-header {
  display: none;
}

.bouquet-mobile-category {
  display: none;
}

.bouquet-badge.bouquet-badge-detail {
  position: static;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(66, 45, 14, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.bouquet-badge.badge-best-seller {
  background: linear-gradient(135deg, #cf9f49, #b8812d);
}

.bouquet-badge.badge-favori-mois {
  background: linear-gradient(135deg, #cc6a7f, #ab4861);
}

.bouquet-badge.badge-favori-fdf {
  background: linear-gradient(135deg, #8576d2, #5f53ad);
}

.bouquet-badge.badge-custom {
  background: linear-gradient(135deg, #6ea28f, #4f7c6b);
}

.bouquet-detail-category {
  font-family: var(--font-hero);
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  color: #C2C4B6B2;
  margin-bottom: 30px;
}


.size-selection {
  margin-bottom: 40px;
}

.size-selection h3 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 20px;
}

.size-option {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-option:hover {
  border-color: #c9a961;
}

.size-option.selected {
  border-color: #c9a961;
  background-color: #fefdfb;
}

.size-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.size-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.size-name {
  font-weight: bold;
  color: #5a5a5a;
  margin-bottom: 3px;
  font-size: 0.9em;
  margin-bottom: 0;
  white-space: nowrap;
}

.size-rating {
  color: #c4c4c4;
  font-size: 0.8em;
  white-space: nowrap;
}

.size-price {
  font-size: 1em;
  color: #5a5a5a;
  font-weight: bold;
}

/* Box Info */
.box-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #fefdfb 0%, #f8f6f3 100%);
  border-radius: 8px;
  margin: 15px 0 20px 0;
  border: 1px solid #e8e5e0;
}

.box-icon {
  width: 24px;
  height: 24px;
  color: #c9a961;
  flex-shrink: 0;
}

.box-info p {
  margin: 0;
  font-size: 0.9em;
  color: #5a5a5a;
  line-height: 1.4;
}

/* ── Indicateur de stock ───────────────────────────── */
.bouquet-stock-display {
  margin-bottom: 16px;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-assistant);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.stock-empty {
  background-color: #f5f5f5;
  color: #888;
}

/* ─────────────────────────────────────────────────── */

.bouquet-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.total-price {
  font-size: 1.8em;
  color: #5a5a5a;
  font-weight: bold;
}

.delivery-info {
  background-color: #f8f6f3;
  border-radius: 15px;
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.delivery-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-text {
  font-family: var(--font-assistant);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  vertical-align: middle;
  color: #000000;
  flex: 1;
  min-width: 0;
}

.delivery-text strong {
  display: block;
  margin-bottom: 5px;
}

.bouquet-details-section {
  background-color: white;
  padding: 80px 40px;
}

.bouquet-details-section h2 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 40px;
}

.detail-block {
  margin-bottom: 40px;
}

.detail-block h3 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 15px;
}

.detail-block p {
  font-family: var(--font-description);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 10px;
}

/* === 2 colonnes : Détails + Boutique (mobile-first) ========= */
.bouquet-details-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.boutique-facade-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.boutique-acces {
  margin-top: 20px;
}

.boutique-acces h3 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-size: 18px;
  color: #6C6A5D;
  margin-bottom: 16px;
}

.acces-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.acces-sep {
  color: #b8a898;
  font-size: 15px;
}

.acces-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-description);
  font-size: 15px;
  color: #6C6A5D;
  line-height: 1.4;
}

.acces-address {
  font-family: var(--font-description);
  font-size: 14px;
  color: #9a9082;
  margin: 0;
  font-style: italic;
}

.acces-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: white;
  font-family: var(--font-assistant);
}

.acces-metro { background-color: #003189; }
.acces-bus   { background-color: #009640; }

@media (min-width: 768px) {
  .delivery-info {
    gap: 20px;
    padding: 30px;
    align-items: center;
  }

  /* Icon + texte compacts à gauche, pas étirés */
  .delivery-text {
    flex: 0 1 auto;
    text-align: left;
  }

  /* Bulles sur la même ligne à droite
     (override du CSS injecté par social-presence.js qui les passe en pleine largeur à ≤1024px) */
  .delivery-info .delivery-social-proof-bubbles.social-proof-bubbles {
    width: auto !important;
    margin: 0 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-self: center !important;
    align-items: center !important;
  }
}

.delivery-info .delivery-social-proof-bubbles .social-bubble-label {
  display: none;
}

@media (min-width: 900px) {
  .bouquet-details-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .boutique-facade-img {
    aspect-ratio: 21 / 9;
  }

  .boutique-acces {
    margin-top: 28px;
  }
}
/* ============================================================ */
/* ============================================================ */

.order-info-section {
  background-color: #ffe2dd;
  padding: 80px 40px;
}

.order-info-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: 36px;
  line-height: 46px;
  letter-spacing: 0;
  text-align: center;
  color: #FFFBEF;
  margin-bottom: 60px;
}

.order-info-content {
  max-width: 1200px;
  margin: 0 auto;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.order-info-item {
  text-align: center;
}

.order-info-item h3 {
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #6C6A5D;
  margin-bottom: 15px;
}

.order-info-item p {
  display: none;
}

.order-info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-info-icon svg {
  width: 100%;
  height: 100%;
}

.size-icon img,
.delivery-icon img,
.order-info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.related-products-section {
  background-color: white;
  padding: 80px 40px;
}

.related-products-section h2 {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #6C6A5D;
  margin-bottom: 60px;
}

.related-products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.related-product-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  background: white;
}

/* Shine Effect Overlay */
.related-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.related-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(201, 169, 97, 0.25);
  border: 2px solid rgba(201, 169, 97, 0.3);
}

/* Trigger shine on hover */
.related-product-card:hover::before {
  left: 100%;
}

/* No pulse animation on related cards */

.related-product-image {
  width: 100%;
  height: 520px;
  background-color: #f5f5f5;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 0;
}

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

.related-product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  padding: 12px 16px;
  gap: 0;
}

/* h3 et prix côte à côte sur la 1ère ligne */
.related-product-info > h3,
.related-product-header > h3 {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-family: var(--font-assistant);
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6A5D;
  margin-bottom: 0;
}

.related-product-info > .related-product-price,
.related-product-header > .related-product-price {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

/* Catégorie et description : pleine largeur */
.related-product-category,
.related-product-description {
  grid-column: 1 / -1;
}

/* Pour les pages régénérées avec le wrapper */
.related-product-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.related-product-price {
  font-family: var(--font-assistant);
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  color: #6C6A5D;
  margin-bottom: 0;
}

.related-product-category {
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #C2B254;
  margin-bottom: 5px;
}

.related-product-description {
  font-family: var(--font-description);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #C2C4B6;
}

/* ============================================ */
/* RESPONSIVE DESIGN - Mobile First Approach   */
/* ============================================ */

/* Tablet & Desktop (1024px - 1400px) */
@media (max-width: 1400px) {
  .bouquet-detail-hero {
    padding: 50px 30px;
    gap: 60px;
  }

}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .bouquet-detail-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 25px;
  }

  /* Titre + badge au-dessus de l'image sur mobile/tablette */
  .bouquet-mobile-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
  }

  .bouquet-mobile-header h1 {
    margin-bottom: 0;
    line-height: 1;
  }

  /* Alignement parfait + badge discret (spécificité 0,3,0 pour battre le reset de max-width:768px) */
  .bouquet-mobile-header .bouquet-badge.bouquet-badge-detail {
    align-self: flex-end;
    margin-bottom: 0;
    flex-shrink: 0;
    padding: 3px 6px;
    font-size: 7px;
    box-shadow: none;
  }

  /* Catégorie entre le header mobile et l'image principale */
  .bouquet-mobile-category {
    display: block;
    margin-bottom: 14px;
  }

  /* Cache le titre, le badge et la catégorie dans la colonne info */
  .bouquet-detail-info > h1,
  .bouquet-detail-info .bouquet-badge-detail,
  .bouquet-detail-info > .bouquet-detail-category {
    display: none;
  }

  .bouquet-gallery {
    position: relative;
    top: 0;
  }

  .bouquet-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .thumbnail {
    height: 110px;
  }

  .bouquet-detail-info h1 {
    font-size: 2.2em;
  }

  .bouquet-detail-category {
    font-size: 1.6em;
  }

  .order-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ============================================ */
/* MOBILE CLICKABLE INDICATOR FOR RELATED     */
/* ============================================ */

/* Keep related cards static on mobile/tablet */
@media (max-width: 1024px) {
  .related-product-card {
    animation: none;
    transform: none;
  }

  .related-product-card::after {
    content: none;
  }
}

/* Mobile (320px - 768px) */
@media (max-width: 768px) {
  .header-center {
    padding-left: 12px;
    padding-right: 12px;
  }

  .center-stack {
    min-width: 0;
  }

  .header-right {
    margin-right: 6px;
    gap: 6px;
  }

  .hamburger-menu,
  .user-icon,
  .cart-button {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
  }

  .hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #b8986f;
  }

  .user-icon svg,
  .cart-button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: #b8986f;
  }

  .bouquet-detail-hero {
    padding: 30px 14px;
    gap: 30px;
  }

  .bouquet-main-image {
    border-radius: 8px;
  }

  .bouquet-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .thumbnail {
    height: 85px;
    border-radius: 6px;
  }

  .bouquet-detail-info h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
  }

  .bouquet-detail-category {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .bouquet-detail-category.bouquet-mobile-category {
    font-size: 1.65em;
  }

  .bouquet-badge.bouquet-badge-detail {
    font-size: 10px;
    padding: 6px 12px;
  }

  .bouquet-detail-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .size-selection {
    margin-bottom: 30px;
  }

  .size-selection h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
  }

  .size-option {
    padding: 8px 10px;
    margin-bottom: 6px;
    gap: 8px;
  }

  .size-icon {
    width: 24px;
    height: 24px;
  }

  .size-price {
    font-size: 0.95em;
  }

  .box-info {
    padding: 10px 12px;
    gap: 10px;
    font-size: 0.85em;
  }

  .box-icon {
    width: 20px;
    height: 20px;
  }

  .bouquet-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1em;
  }

  .total-price {
    font-size: 1.5em;
    text-align: center;
  }

  .delivery-info {
    border-radius: 12px;
  }

  .delivery-icon {
    width: 50px;
    height: 50px;
  }

  .delivery-text {
    font-size: 0.9em;
  }

  /* Sections */
  .bouquet-details-section {
    padding: 50px 20px;
  }

  .bouquet-details-section h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .detail-block h3 {
    font-size: 1.15em;
    margin-bottom: 12px;
  }

  .detail-block p {
    font-size: 0.95em;
    line-height: 1.6;
  }

  .order-info-section {
    padding: 50px 20px;
  }

  .order-info-section h2 {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .order-info-icon {
    width: 70px;
    height: 70px;
  }

  .order-info-item h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  .order-info-item p {
    font-size: 0.9em;
  }

  .related-products-section {
    padding: 50px 20px;
  }

  .related-products-section h2 {
    font-size: 1.6em;
    margin-bottom: 40px;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .related-product-image {
    height: 300px;
    border-radius: 8px;
  }

  .related-product-info h3 {
    font-size: 1.2em;
  }

  .related-product-price {
    font-size: 1.3em;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .bouquet-detail-hero {
    padding: 20px 10px;
  }

  .bouquet-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .thumbnail {
    height: 70px;
  }

  .bouquet-detail-info h1 {
    font-size: 1.5em;
  }

  .bouquet-detail-category {
    font-size: 1.2em;
  }

  .bouquet-detail-category.bouquet-mobile-category {
    font-size: 1.45em;
  }

  .bouquet-detail-description {
    font-size: 0.9em;
  }

  .size-option {
    flex-wrap: nowrap;
    padding: 8px;
    gap: 6px;
  }

  .size-icon {
    width: 22px;
    height: 22px;
  }

  .size-info {
    flex: 1;
    order: 0;
    margin-top: 0;
  }

  .size-name {
    font-size: 0.85em;
  }

  .size-price {
    order: 1;
    margin-left: auto;
    font-size: 0.9em;
  }

  .box-info {
    padding: 8px 10px;
    gap: 8px;
    margin: 12px 0 15px 0;
  }

  .box-info p {
    font-size: 0.8em;
  }

  .box-icon {
    width: 18px;
    height: 18px;
  }

  .bouquet-details-section,
  .order-info-section,
  .related-products-section {
    padding: 40px 15px;
  }

  .order-info-section h2 {
    font-size: 1.5em;
  }

  .related-products-section h2 {
    font-size: 1.4em;
  }

  .related-product-image {
    height: 250px;
  }
}

/* ============================================================= */
/* DELIVERY INFO — Petits écrans : icon+text sur une même ligne  */
/* ============================================================= */
@media (max-width: 767px) {
  .delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .delivery-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .delivery-text {
    font-size: 0.85em;
    text-align: left;
    flex: 1;
    min-width: 0;
  }

  /* Override CSS injecté par social-presence.js (max-width: 1024px → width:100%) */
  .delivery-info .delivery-social-proof-bubbles.social-proof-bubbles {
    width: auto !important;
    margin: 0 0 0 auto !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex: 0 0 auto;
  }
}
