/**
 * PARFUMILYA — Single Product Page CSS
 * Version: 3.0.0
 * Zoom supprimé, image cover forcée avec !important sur tous les sélecteurs WC
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --pfy-white:      #FFFFFF;
  --pfy-ivory:      #FAF7F2;
  --pfy-beige:      #F0E8DF;
  --pfy-red:        #D91F2B;
  --pfy-black:      #111111;
  --pfy-gray:       #777777;
  --pfy-gray-light: #AAAAAA;
  --pfy-border:     #E8E0D8;
  --pfy-font-head:  'Playfair Display', Georgia, serif;
  --pfy-font-body:  'Poppins', sans-serif;
  --pfy-radius:     12px;
  --pfy-radius-sm:  8px;
  --pfy-shadow-sm:  0 2px 12px rgba(0,0,0,0.05);
  --pfy-shadow-md:  0 4px 24px rgba(0,0,0,0.08);
  --pfy-transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET — Forcer WC à ne pas interférer avec nos styles
   ============================================================ */
.pfy-product-page * { box-sizing: border-box; }
.pfy-product-page {
  font-family: var(--pfy-font-body);
  color: var(--pfy-black);
  background: var(--pfy-white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.pfy-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.pfy-breadcrumb {
  background: var(--pfy-white);
  padding: 14px 0;
  border-bottom: 1px solid var(--pfy-border);
}
.pfy-breadcrumb .woocommerce-breadcrumb {
  font-family: var(--pfy-font-body);
  font-size: 13px;
  color: var(--pfy-gray);
  margin: 0; padding: 0;
}
.pfy-breadcrumb a { color: var(--pfy-gray); text-decoration: none; transition: var(--pfy-transition); }
.pfy-breadcrumb a:hover { color: var(--pfy-red); }

.pfy-product-main { background: var(--pfy-white); padding: 48px 0 56px; }
.pfy-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   GALLERY — THUMBNAILS
   ============================================================ */
.pfy-gallery {
  display: flex;
  gap: 14px;
  position: sticky;
  top: 90px;
  /* Empêche la galerie de prendre trop de hauteur */
  max-height: 560px;
  align-items: flex-start;
}
.pfy-gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 72px;
  flex-shrink: 0;
  /* Hauteur max = galerie principale */
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: none;
}
.pfy-gallery-thumbnails::-webkit-scrollbar { display: none; }
.pfy-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--pfy-ivory);
  opacity: 0.65;
  transition: var(--pfy-transition);
  flex-shrink: 0;
}
.pfy-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  pointer-events: none;
}
.pfy-thumb:hover {
  border-color: rgba(217,31,43,0.35);
  opacity: 0.85;
  transform: translateX(2px);
}
.pfy-thumb.active {
  border-color: var(--pfy-red);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(217,31,43,0.2);
}

/* ============================================================
   GALLERY — IMAGE PRINCIPALE
   Pas de zoom, pas de scale, juste cover propre
   ============================================================ */
.pfy-gallery-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--pfy-ivory);
  border: 1px solid var(--pfy-border);
  aspect-ratio: 1 / 1;
  max-height: 560px;
  max-width: 560px;
  /* CURSOR DÉSACTIVÉ — aucun pointeur sur la galerie */
  cursor: default !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  /* TOUCH-ZOOM DÉSACTIVÉ — empêche le pinch-to-zoom et double-tap-zoom */
  touch-action: pan-y !important;
  -webkit-touch-callout: none !important;
  width: 100%;
}

/* Supprimer l'icône zoom */
.pfy-gallery-zoom-icon { display: none !important; }

/*
 * IMAGE PRINCIPALE — aucun cursor, aucun zoom, aucun pointer-event
 */
.pfy-gallery-main #pfyMainImage,
.pfy-gallery-main .pfy-main-image,
.pfy-gallery-main img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  /* Transition uniquement opacity pour le swap thumbnail */
  transition: opacity 0.22s ease !important;
  /* ZERO transform, ZERO scale, ZERO zoom */
  transform: none !important;
  /* CURSOR & INTERACTIONS désactivés */
  cursor: default !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  touch-action: none !important;
}

/* Aucun effet hover sur l'image principale */
.pfy-gallery-main:hover #pfyMainImage,
.pfy-gallery-main:hover .pfy-main-image,
.pfy-gallery-main:hover img {
  transform: none !important;
  cursor: default !important;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#pfyLightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Header derrière le lightbox quand il est ouvert */
body.pfy-lb-open #wpadminbar,
body.pfy-lb-open .site-header,
body.pfy-lb-open #masthead,
body.pfy-lb-open header.site-header,
body.pfy-lb-open .ast-header-break-point,
body.pfy-lb-open .ast-desktop-header,
body.pfy-lb-open .ast-above-header-wrap,
body.pfy-lb-open .ast-primary-header-bar {
  z-index: 1 !important;
}

/* Boutons lightbox — SVG toujours blancs */
#pfyLightbox button {
  font-size: 16px !important;
  line-height: 1 !important;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
#pfyLightbox button svg {
  display: block !important;
  flex-shrink: 0;
  stroke: #ffffff !important;
  fill: none !important;
  overflow: visible;
}

/* ============================================================
   PRODUCT INFO — COLONNE DROITE
   ============================================================ */
.pfy-product-info { padding-top: 4px; }

.pfy-badge {
  display: inline-block;
  font-family: var(--pfy-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pfy-red);
  margin-bottom: 12px;
}
.pfy-product-title {
  font-family: var(--pfy-font-head);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--pfy-black);
  margin: 0 0 8px;
}
.pfy-product-subtitle {
  font-size: 14px;
  color: var(--pfy-gray);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.6;
}

/* Rating */
.pfy-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.pfy-star { font-size: 17px; line-height: 1; color: #ddd; }
.pfy-star.filled { color: #f5a623; }
.pfy-star.half   { color: #f5a623; opacity: 0.55; }
.pfy-rating-text { font-size: 13px; color: var(--pfy-gray); margin-left: 6px; }

/* Prix */
.pfy-price { margin-bottom: 18px; }
.pfy-price .price,
.pfy-price ins,
.pfy-price .woocommerce-Price-amount {
  font-family: var(--pfy-font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--pfy-black);
  text-decoration: none;
}
.pfy-price del .woocommerce-Price-amount {
  font-size: 16px;
  color: var(--pfy-gray-light);
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 8px;
}

.pfy-product-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 20px;
}
.pfy-divider { height: 1px; background: var(--pfy-border); margin: 22px 0; }

/* WooCommerce form */
.pfy-product-info .cart,
.pfy-product-info form.cart { display: flex; flex-direction: column; gap: 14px; }
.pfy-product-info .variations { width: 100%; border: none; margin-bottom: 8px; }
.pfy-product-info .variations td,
.pfy-product-info .variations th { padding: 5px 0; border: none; vertical-align: middle; }
.pfy-product-info .variations label,
.pfy-product-info .variations .label label {
  font-family: var(--pfy-font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pfy-black); padding-right: 14px; white-space: nowrap;
}
.pfy-product-info .variations select {
  font-family: var(--pfy-font-body); font-size: 14px; color: var(--pfy-black);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--pfy-border); border-radius: var(--pfy-radius-sm);
  padding: 10px 38px 10px 14px; cursor: pointer; appearance: none; min-width: 180px;
  transition: var(--pfy-transition);
}
.pfy-product-info .variations select:focus { outline: none; border-color: var(--pfy-red); box-shadow: 0 0 0 3px rgba(217,31,43,0.08); }

/* Quantité */
.pfy-qty-wrap { display: inline-flex; align-items: center; border: 1px solid var(--pfy-border); border-radius: var(--pfy-radius-sm); overflow: hidden; background: #fff; }
.pfy-product-info .qty,
.pfy-qty-wrap .qty {
  width: 52px !important; height: 48px !important; text-align: center !important;
  border: none !important; border-left: 1px solid var(--pfy-border) !important; border-right: 1px solid var(--pfy-border) !important;
  border-radius: 0 !important; font-family: var(--pfy-font-body) !important;
  font-size: 15px !important; font-weight: 500 !important; color: var(--pfy-black) !important;
  background: #fff !important; box-shadow: none !important; -moz-appearance: textfield;
}
.pfy-product-info .qty::-webkit-outer-spin-button,
.pfy-product-info .qty::-webkit-inner-spin-button { -webkit-appearance: none; }

.pfy-qty-btn {
  width: 44px; height: 48px; border: none; background: var(--pfy-ivory);
  color: var(--pfy-black); font-size: 20px; font-weight: 300; cursor: pointer;
  transition: var(--pfy-transition); display: flex; align-items: center; justify-content: center; line-height: 1;
}
.pfy-qty-btn:hover { background: var(--pfy-beige); color: var(--pfy-red); }

/* Bouton Ajouter au Panier */
.pfy-product-info .single_add_to_cart_button,
.pfy-product-info button[type="submit"].single_add_to_cart_button {
  font-family: var(--pfy-font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--pfy-black); border: 2px solid var(--pfy-black);
  border-radius: var(--pfy-radius-sm); padding: 17px 32px; cursor: pointer;
  transition: var(--pfy-transition); width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pfy-product-info .single_add_to_cart_button:hover {
  background: var(--pfy-red); border-color: var(--pfy-red);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(217,31,43,0.22);
}
.single_add_to_cart_button.loading { position: relative; color: transparent !important; pointer-events: none; }
.single_add_to_cart_button.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: pfySpin 0.7s linear infinite; transform: translate(-50%, -50%);
}
@keyframes pfySpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Wishlist + Share */
.pfy-product-actions { display: flex; gap: 20px; align-items: center; margin-top: 4px; }
.pfy-wishlist-btn, .pfy-share-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--pfy-font-body); font-size: 13px; color: var(--pfy-gray);
  background: transparent; border: none; cursor: pointer; padding: 0; transition: var(--pfy-transition);
}
.pfy-wishlist-btn:hover { color: var(--pfy-red); }
.pfy-share-btn:hover    { color: var(--pfy-black); }
.pfy-wishlist-btn.active { color: var(--pfy-red); }
.pfy-wishlist-btn.active svg path { fill: var(--pfy-red); stroke: var(--pfy-red); }

/* Trust row */
.pfy-trust-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--pfy-border);
}
.pfy-trust-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px 12px 0; }
.pfy-trust-item:nth-child(odd)  { border-right: 1px solid var(--pfy-border); padding-right: 20px; }
.pfy-trust-item:nth-child(even) { padding-left: 20px; }
.pfy-trust-item:nth-child(1),
.pfy-trust-item:nth-child(2)    { border-bottom: 1px solid var(--pfy-border); }
.pfy-trust-item svg { flex-shrink: 0; margin-top: 2px; }
.pfy-trust-item strong { display: block; font-size: 12px; font-weight: 600; color: var(--pfy-black); margin-bottom: 2px; }
.pfy-trust-item span  { font-size: 11px; color: var(--pfy-gray); line-height: 1.4; }

/* ============================================================
   TABS SECTION
   ============================================================ */
.pfy-tabs-section { background: var(--pfy-ivory); padding: 0; }
.pfy-tabs-layout {
  display: grid; grid-template-columns: 400px 1fr;
  gap: 0; align-items: stretch; min-height: 480px;
}
.pfy-tabs-visual { background: var(--pfy-beige); overflow: hidden; position: relative; }
.pfy-tabs-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pfy-tabs-panel { background: var(--pfy-ivory); padding: 48px 56px; }
.pfy-tabs-nav { display: flex; gap: 0; border-bottom: 1.5px solid var(--pfy-border); margin-bottom: 36px; }
.pfy-tab {
  font-family: var(--pfy-font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--pfy-gray-light);
  background: transparent; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1.5px; padding: 12px 20px; cursor: pointer; transition: var(--pfy-transition);
}
.pfy-tab:hover { color: var(--pfy-black); }
.pfy-tab.active { color: var(--pfy-red); border-bottom-color: var(--pfy-red); font-weight: 600; }
.pfy-tab-pane { display: none; animation: pfyFadeIn 0.3s ease; }
.pfy-tab-pane.active { display: block; }
@keyframes pfyFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.pfy-tab-pane > p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.pfy-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--pfy-border); border: 1px solid var(--pfy-border);
  border-radius: var(--pfy-radius-sm); overflow: hidden; margin-top: 24px;
}
.pfy-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--pfy-black);
  background: var(--pfy-ivory); padding: 18px 20px; transition: var(--pfy-transition);
}
.pfy-feature:hover { background: #fff; }
.pfy-usage-tips { display: flex; flex-direction: column; gap: 22px; }
.pfy-tip { display: flex; align-items: flex-start; gap: 16px; }
.pfy-tip-num { font-family: var(--pfy-font-head); font-size: 26px; font-weight: 700; color: var(--pfy-red); line-height: 1; flex-shrink: 0; width: 36px; }
.pfy-tip strong { display: block; font-size: 14px; font-weight: 600; color: var(--pfy-black); margin-bottom: 4px; }
.pfy-tip p { font-size: 13px; color: var(--pfy-gray); margin: 0; line-height: 1.6; }
.pfy-delivery-info { display: flex; flex-direction: column; gap: 16px; }
.pfy-delivery-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: var(--pfy-white);
  border-radius: var(--pfy-radius-sm); border: 1px solid var(--pfy-border);
}
.pfy-delivery-item svg { flex-shrink: 0; margin-top: 2px; }
.pfy-delivery-item strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.pfy-delivery-item p { font-size: 13px; color: var(--pfy-gray); margin: 0; line-height: 1.5; }

/* ============================================================
   OLFACTIVE PYRAMID
   ============================================================ */
.pfy-olfactive-section { padding: 68px 0; background: var(--pfy-white); border-top: 1px solid var(--pfy-border); }
.pfy-section-title {
  font-family: var(--pfy-font-head);
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 600;
  color: var(--pfy-black); margin: 0 0 44px; text-align: center; letter-spacing: 0.02em;
}
.pfy-olfactive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 780px; margin: 0 auto; }
.pfy-olfactive-card {
  background: var(--pfy-ivory); border: 1px solid var(--pfy-border);
  border-radius: var(--pfy-radius); padding: 36px 20px; text-align: center; transition: var(--pfy-transition);
}
.pfy-olfactive-card:hover { border-color: var(--pfy-red); box-shadow: var(--pfy-shadow-md); transform: translateY(-3px); }
.pfy-olfactive-icon { width: 68px; height: 68px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--pfy-shadow-sm); overflow: hidden; }
.pfy-olfactive-icon img { width: 44px; height: 44px; object-fit: cover; }
.pfy-olfactive-card h4 { font-family: var(--pfy-font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pfy-red); margin: 0 0 7px; }
.pfy-olfactive-card p  { font-size: 14px; color: var(--pfy-gray); margin: 0; line-height: 1.5; }

/* ============================================================
   RELATED PRODUCTS
   ============================================================ */
.pfy-related-section {
  padding: 72px 0 80px;
  background: var(--pfy-white);
  border-top: 1px solid #EAEAEA;
}
.pfy-related-section .pfy-section-title {
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 48px;
}
.pfy-related-wrapper {
  position: relative; display: flex; align-items: center; gap: 0;
}

/* Flèches nav */
.pfy-related-prev,
.pfy-related-next {
  flex: 0 0 44px;
  width:  44px !important;
  height: 44px !important;
  border-radius: 50%;
  border: 1.5px solid #E0D8D0;
  background: #FFFFFF;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer;
  color: #111111;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: var(--pfy-transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}
.pfy-related-prev { margin-right: 16px; }
.pfy-related-next { margin-left:  16px; }
.pfy-related-prev svg,
.pfy-related-next svg {
  display: block !important;
  width:  16px !important;
  height: 16px !important;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
  flex-shrink: 0;
}
.pfy-related-prev:hover,
.pfy-related-next:hover {
  background: #111111; border-color: #111111; color: #FFFFFF;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15); transform: scale(1.06);
}

/* Scroll track */
.pfy-related-scroll {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none;
  -ms-overflow-style: none; padding: 8px 4px 20px;
  flex: 1; -webkit-overflow-scrolling: touch;
}
.pfy-related-scroll::-webkit-scrollbar { display: none; }

/* ── CARD ── */
.pfy-product-card {
  flex: 0 0 230px;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #EFEFEF;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.32s ease, border-color 0.28s ease;
}
.pfy-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.11);
  border-color: #DDD5CC;
}

/* ── IMAGE WRAP — remplit tout le cadre ── */
.pfy-card-image-wrap {
  position: relative;
  background: var(--pfy-ivory);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
}

/*
 * Toutes les variantes d'<img> générées par WooCommerce
 * wc_get_product()->get_image() → <img class="attachment-xxx wp-post-image">
 * On force tout avec !important
 */
.pfy-card-image-wrap img,
.pfy-card-image-wrap .pfy-card-image,
.pfy-card-image-wrap .wp-post-image,
.pfy-card-image-wrap .attachment-woocommerce_thumbnail,
.pfy-card-image-wrap .size-woocommerce_thumbnail {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.44s cubic-bezier(0.4,0,0.2,1) !important;
}
.pfy-product-card:hover .pfy-card-image-wrap img,
.pfy-product-card:hover .pfy-card-image-wrap .pfy-card-image {
  transform: scale(1.06) !important;
}

/* Overlay */
.pfy-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 52px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  display: flex; justify-content: center;
}
.pfy-product-card:hover .pfy-card-overlay { opacity: 1; transform: translateY(0); }
.pfy-quick-add {
  font-family: var(--pfy-font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF;
  background: #111111; border: none; border-radius: 8px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  transition: background 0.24s ease, transform 0.18s ease;
}
.pfy-quick-add:hover { background: var(--pfy-red); transform: translateY(-1px); }

/* Card body */
.pfy-card-body { padding: 14px 16px 18px; }
.pfy-card-brand { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #BBBBBB; margin: 0 0 4px; }
.pfy-card-title { font-family: var(--pfy-font-body); font-size: 13px; font-weight: 600; color: #111; margin: 0 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfy-card-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.pfy-card-star { font-size: 12px; line-height: 1; color: #DDDDDD; }
.pfy-card-star.filled { color: #F5A623; }
.pfy-card-price { margin-top: 8px; }
.pfy-card-price .price,
.pfy-card-price .woocommerce-Price-amount { font-family: var(--pfy-font-body); font-size: 14px; font-weight: 700; color: #111; }
.pfy-card-price del .woocommerce-Price-amount { font-size: 12px; color: #BBBBBB; font-weight: 400; text-decoration: line-through; margin-right: 5px; }
.pfy-card-price ins { text-decoration: none; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.pfy-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.pfy-reveal.pfy-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pfy-product-layout { grid-template-columns: 1fr; gap: 40px; }
  .pfy-gallery { position: static; max-width: 560px; margin: 0 auto; }
  .pfy-tabs-layout { grid-template-columns: 1fr; }
  .pfy-tabs-visual { height: 320px; }
  .pfy-tabs-panel { padding: 40px 32px; }
  .pfy-product-card { flex: 0 0 200px; }
}

@media (max-width: 768px) {
  /* ── LAYOUT ── */
  .pfy-container { padding: 0 16px; }
  .pfy-product-main { padding: 20px 0 32px; }

  /* ── GALERIE MOBILE ── */
  .pfy-gallery {
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
  }

  /* Image principale — portrait élégant sur mobile */
  .pfy-gallery-main {
    aspect-ratio: 4 / 5 !important;
    max-height: none !important;
    max-width: 100% !important;
    border-radius: 14px;
    width: 100% !important;
    /* Bloquer tout zoom tactile */
    touch-action: pan-y !important;
  }

  /* Thumbnails — rangée horizontale scrollable en dessous */
  .pfy-gallery-thumbnails {
    flex-direction: row !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 2px 4px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .pfy-gallery-thumbnails::-webkit-scrollbar { display: none; }
  .pfy-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
  .pfy-thumb:hover { transform: none; }

  /* ── INFOS PRODUIT ── */
  .pfy-product-title { font-size: 22px; line-height: 1.2; }
  .pfy-product-subtitle { font-size: 13px; }
  .pfy-price .price,
  .pfy-price ins,
  .pfy-price .woocommerce-Price-amount { font-size: 22px; }
  .pfy-product-desc { font-size: 13px; }

  /* ── TRUST BADGES ── */
  .pfy-trust-row { grid-template-columns: 1fr; gap: 0; }
  .pfy-trust-item:nth-child(odd)  { border-right: none; padding-right: 0; }
  .pfy-trust-item:nth-child(even) { padding-left: 0; }
  .pfy-trust-item:nth-child(1),
  .pfy-trust-item:nth-child(2)    { border-bottom: 1px solid var(--pfy-border); }

  /* ── TABS ── */
  .pfy-tabs-visual { display: none; }
  .pfy-tabs-panel { padding: 28px 16px; }
  .pfy-tab { padding: 10px 12px; font-size: 11px; }

  /* ── FEATURES GRID ── */
  .pfy-features-grid { grid-template-columns: 1fr; }

  /* ── OLFACTIVE ── */
  .pfy-olfactive-grid { grid-template-columns: 1fr; max-width: 100%; }
  .pfy-olfactive-card { padding: 24px 16px; }
  .pfy-olfactive-section { padding: 48px 0; }

  /* ── RELATED PRODUCTS ── */
  .pfy-related-section { padding: 40px 0 48px; }
  .pfy-related-section .pfy-section-title { font-size: 20px; margin-bottom: 28px; }
  .pfy-product-card { flex: 0 0 158px; }
  .pfy-related-scroll { gap: 12px; padding-bottom: 12px; }
  .pfy-related-prev { margin-right: 8px; }
  .pfy-related-next { margin-left:  8px; }
  .pfy-related-prev,
  .pfy-related-next {
    flex: 0 0 36px;
    width:  36px !important;
    height: 36px !important;
  }
  .pfy-card-body { padding: 10px 12px 14px; }
  .pfy-card-title { font-size: 12px; }
  .pfy-card-price .price,
  .pfy-card-price .woocommerce-Price-amount { font-size: 13px; }
}
/* ============================================================
   TRÈS PETITS ÉCRANS (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .pfy-container { padding: 0 12px; }
  .pfy-breadcrumb .woocommerce-breadcrumb { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Galerie — encore plus compacte */
  .pfy-gallery-main { border-radius: 12px; }
  .pfy-thumb { width: 52px; height: 52px; }

  /* Titre */
  .pfy-product-title { font-size: 20px; }
  .pfy-price .price,
  .pfy-price ins,
  .pfy-price .woocommerce-Price-amount { font-size: 20px; }

  /* Bouton panier — pleine largeur assurée */
  .pfy-product-info .single_add_to_cart_button { padding: 15px 20px; font-size: 11px; }

  /* Qty wrap — plus grand pour le touch */
  .pfy-qty-btn { width: 48px; height: 52px; font-size: 22px; }
  .pfy-product-info .qty,
  .pfy-qty-wrap .qty { width: 56px !important; height: 52px !important; }

  /* Related cards */
  .pfy-product-card { flex: 0 0 148px; }
}
