/* ============================================
   ROUTE D'OR — Custom CSS
   Personnalisations spécifiques et overrides
   Ce fichier est chargé en dernier (priority: 200)
   ============================================ */

/* Ajoutez vos personnalisations ici */

/* ============================================
   Personnalisation affichée au panier / récap
   (override cart-detailed + cart-summary product line)
   ============================================ */
.ro-cart-customization {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--ro-beige-light, #f5f0e8);
  border-left: 3px solid var(--ro-gold, #ffd304);
  border-radius: 4px;
  font-size: 0.875rem;
}
.ro-cart-customization__field {
  margin: 2px 0;
  word-break: break-word;
}
.ro-cart-customization__field .label {
  font-weight: 600;
  color: var(--ro-text, #392d24);
  margin-right: 4px;
}
.ro-cart-customization__field .value {
  color: var(--ro-text-muted, #555);
}
.ro-cart-customization__img {
  max-width: 60px;
  height: auto;
  border-radius: 4px;
  vertical-align: middle;
}

/* ============================================
   Sélecteur de quantité — pill premium (v2)
   Markup : .ro-product__qty-input-group > [__qty-btn--minus | input | __qty-btn--plus]
   Design : pilule arrondie, boutons ronds fantômes, accent or au survol.
   ============================================ */
.ro-product__qty-input-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 4px;
  background: var(--ro-white, #fff);
  border: 1.5px solid var(--ro-beige-dark, #d9d0c0);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(57, 45, 36, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ro-product__qty-input-group:focus-within {
  border-color: var(--ro-gold, #ffd304);
  box-shadow: 0 0 0 4px rgba(255, 211, 4, 0.16);
}

.ro-product__qty-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ro-beige-light, #f5f0e8);
  color: var(--ro-brown, #392d24);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
}
.ro-product__qty-btn:hover {
  background: var(--ro-gold, #ffd304);
  color: var(--ro-brown, #392d24);
}
.ro-product__qty-btn:active {
  transform: scale(0.88);
}
.ro-product__qty-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 211, 4, 0.4);
}
.ro-product__qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--ro-beige-light, #f5f0e8);
}
.ro-product__qty-btn span {
  display: block;
  margin-top: -2px;
}

/* Champ central : transparent, sans cadre (la pilule porte le contour).
   On surclasse l'ancienne règle .qty input du thème. */
#main.ro-product-page .qty .ro-product__qty-input-group input#quantity_wanted,
.ro-product__qty-input-group input {
  width: 44px;
  height: 36px;
  margin: 0;
  padding: 0;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ro-brown, #392d24);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
#main.ro-product-page .qty .ro-product__qty-input-group input#quantity_wanted:focus,
.ro-product__qty-input-group input:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
.ro-product__qty-input-group input::-webkit-inner-spin-button,
.ro-product__qty-input-group input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   Bandeau d'annonces fixé en haut (module ro_announcementbar) :
   le header sticky se cale JUSTE SOUS le bandeau au lieu de recouvrir
   (ou d'être recouvert par) lui. --ro-ab-height est posée par le JS du module.
   ============================================ */
body.has-ro-announcement .ro-header.is-sticky,
body.has-ro-announcement .ro-header.is-sticky-mobile {
  top: var(--ro-ab-height, 0px);
}
