/* ============================================
 * ROSE&FLY — CSS FICHE PRODUIT
 * Chargé sur : is_product() uniquement
 * ============================================ */

/* ------ Galerie ------ */
.woocommerce-product-gallery__wrapper { position: relative; }
.sp-wps-product-image-area img { height: 300px; object-fit: cover; }
@media (max-width: 1024px) { .sp-wps-product-image-area img { height: 150px; } }

/* ------ Titre + wishlist ------ */
.single-product .product_title { display: inline-block; margin-right: 12px; vertical-align: middle; }
.single-product .yith-add-to-wishlist-button-block { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-top: 5px; }
.single-product .yith-wcwl-icon { width: 20px; height: 20px; stroke: #d63d6c; transition: stroke 0.3s ease; }
.single-product .yith-wcwl-add-to-wishlist-button__label { font-size: 0.9rem; color: #d63d6c; font-weight: 500; }
.single-product .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon { stroke: #b32b54 !important; }

/* ------ Bouton ATC ------ */
.single_add_to_cart_button { background-color: #f6d2dc !important; color: #6c2e3d !important; border: none; border-radius: 2rem; padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; font-family: "Poppins", sans-serif; cursor: pointer; transition: all 0.3s ease-in-out; box-shadow: 0 4px 12px rgba(246, 210, 220, 0.3); }
.single_add_to_cart_button:hover { background-color: #f3b9c9; color: #5a1f2f; box-shadow: 0 6px 18px rgba(246, 210, 220, 0.5); transform: translateY(-2px); }
.woocommerce div.product form.cart .button.single_add_to_cart_button { width: 60% !important; font-size: 10px; }
@media (max-width: 768px) { .single_add_to_cart_button { width: 100%; font-size: 1rem; padding: 0.9rem 1.5rem; } }

/* ------ Variations ------ */
.ast-variation-button-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ast-variation-button-group .ast-single-variation { min-width: 46px; padding: 6px 14px; border-radius: 999px; border: 1px solid #f4c9d3; background: #fff; color: #221f26; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease; }
.ast-variation-button-group .ast-single-variation:hover, .ast-variation-button-group .ast-single-variation:focus { background-color: #f7e8ed; border-color: var(--rf-rose-light); box-shadow: 0 0 0 1px rgba(234, 176, 192, 0.35); outline: none; transform: translateY(-1px); }
.ast-variation-button-group .ast-single-variation[aria-pressed="true"], .ast-variation-button-group .ast-single-variation.selected { background: var(--rf-rose-light); border-color: #c8899c; color: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); }
.ast-variation-button-group .ast-single-variation[aria-disabled="true"], .ast-variation-button-group .ast-single-variation.disabled { background: #f4f0f2; border-color: #e0d5da; color: #a1949b; cursor: not-allowed; opacity: 0.7; }
@media (max-width: 480px) { .ast-variation-button-group .ast-single-variation { padding: 6px 10px; font-size: 13px; } }

/* ------ Livraison ------ */
.rf-livraison-estimee { margin-top: 15px; padding: 12px 18px; background: #f7f7f7; border-left: 4px solid #d81b60; font-size: 16px; color: #333; border-radius: 6px; font-weight: 500; }
.rf-livraison-estimee strong { color: #d81b60; }
@media (max-width: 480px) { .rf-livraison-estimee { font-size: 15px; padding: 10px 14px; } }

/* ------ Réassurance fiche produit ------ */
.ast-single-product-extras { margin: 25px 0; padding: 0; }
.ast-single-product-extras ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; list-style: none; margin: 0; padding: 0; }
.ast-single-product-extras li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid #f0e4e8; border-radius: 50%; padding: 20px; width: 110px; height: 110px; transition: all 0.3s ease; font-size: 11px; line-height: 1.3; color: #333; font-weight: 500; }
.ast-single-product-extras li:hover { border-color: #c97a91; box-shadow: 0 4px 12px rgba(169, 85, 112, 0.15); transform: translateY(-2px); }
.ast-single-product-extras li .ahfb-svg-iconset { width: 26px; height: 26px; margin-bottom: 8px; flex-shrink: 0; }
.ast-single-product-extras li .ahfb-svg-iconset svg { width: 26px; height: 26px; fill: #a65570; }

@media (max-width: 767px) {
  .ast-single-product-extras ul { flex-direction: column; gap: 12px; padding: 0 15px; }
  .ast-single-product-extras li { border-radius: 0; flex-direction: row; width: 100%; height: auto; min-height: 60px; padding: 15px 20px; text-align: left; justify-content: flex-start; font-size: 13px; }
  .ast-single-product-extras li .ahfb-svg-iconset { margin-bottom: 0; margin-right: 15px; width: 28px; height: 28px; }
  .ast-single-product-extras li .ahfb-svg-iconset svg { width: 28px; height: 28px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ast-single-product-extras li { width: 100px; height: 100px; padding: 15px 10px; font-size: 10px; }
}

/* ------ Navigation prev/next ------ */
.ast-navigation-content { background: #fff !important; padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; max-width: 220px; transition: all 0.3s ease; font-family: "Poppins", sans-serif; }
.ast-navigation-product-title { font-size: 1rem; font-weight: 600; color: #2c2c2c; margin-bottom: 0.5rem; line-height: 1.4; }
.ast-navigation-price { color: #b8860b; font-weight: 600; font-size: 0.95rem; }
.ast-navigation-content:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15); }

/* ------ Upsells ------ */
.woocommerce .upsells, .woocommerce .up-sells { margin-top: 48px; padding: 8px 0 0; }
.woocommerce .upsells > h2, .woocommerce .up-sells > h2 { font-size: clamp(20px, 2vw + 8px, 28px); line-height: 1.2; margin: 0 0 18px; font-weight: 700; color: var(--rf-rose); }
.woocommerce .upsells > h2::after, .woocommerce .up-sells > h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--rf-gold), rgba(212, 175, 55, 0)); border-radius: 2px; }
.woocommerce .upsells ul.products, .woocommerce .up-sells ul.products { display: grid; gap: var(--rf-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .woocommerce .upsells ul.products, .woocommerce .up-sells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .woocommerce .upsells ul.products, .woocommerce .up-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .woocommerce .upsells ul.products, .woocommerce .up-sells ul.products { grid-template-columns: 1fr; } }
.woocommerce .upsells + .related, .woocommerce .up-sells + .related { margin-top: 36px; }
.related.products, .lpc_shipping_icon, .lpc_shipping_icon_lpc_sign { display: none !important; }

/* ------ Cross-sells RNF ------ */
.rnf-cross-sells { margin-top: 48px; }
.rnf-cross-sells__title { font-size: clamp(18px, 3vw, 22px); font-weight: 600; text-align: center; margin-bottom: 20px; color: var(--rf-ink); }
.rnf-cross-sells__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rnf-cross-sell-card { background: #fff; border: 1px solid #f1e5ec; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rnf-cross-sell-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 8, 20, 0.12); }
.rnf-cross-sell-card__media { display: block; aspect-ratio: 1 / 1; background: #f7e8ed; }
.rnf-cross-sell-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rnf-cross-sell-card__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.rnf-cross-sell-card__title { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--rf-ink); margin: 0; }
.rnf-cross-sell-card__price { font-size: 14px; font-weight: 600; color: var(--rf-rose); }
.rnf-cross-sell-card__cta { margin-top: auto; width: 100%; text-align: center; border-radius: 999px; padding: 8px 12px; background: var(--rf-rose-light); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.2s ease; }
.rnf-cross-sell-card__cta:hover { background: var(--rf-rose); }
