/* ==========================================================================
   Fiche produit « mise en page Plaisirs d'Orient » (essai sur un produit).
   Chargé seulement sur les produits listés dans inc/fiche-pda.php, après style.css.
   Classes propres (aok-pda*) : aucune règle existante n'est modifiée.
   ========================================================================== */

.aok-pda {
  background: var(--am360-white);
}

.aok-pda__wrap {
  width: min(1224px, calc(100vw - 40px));
  margin-inline: auto;
  padding: 22px 0 72px;
}

/* Fil d'Ariane */
.aok-pda__crumbs {
  margin-bottom: 22px;
  color: #8a8a8a;
  font-family: var(--am360-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aok-pda__crumbs a {
  color: inherit;
}

.aok-pda__crumbs span[aria-hidden] {
  margin: 0 8px;
}

/* Deux colonnes : galerie à gauche, achat à droite */
.aok-pda__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 48px;
  align-items: start;
}

.aok-pda__main {
  aspect-ratio: 4 / 5;
  background: var(--am360-soft);
  overflow: hidden;
}

.aok-pda__main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aok-pda__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.aok-pda__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  background: var(--am360-soft);
  cursor: pointer;
}

.aok-pda__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aok-pda__thumb.is-active,
.aok-pda__thumb:hover {
  border-color: var(--am360-black, #050505);
}

/* Colonne d'achat */
.aok-pda__summary .product_title {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.aok-pda__summary .price {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.aok-pda__excerpt {
  margin-bottom: 18px;
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.7;
}

.aok-pda__excerpt p {
  margin: 0 0 12px;
}

.aok-pda__excerpt ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aok-pda__excerpt li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 24px;
}

.aok-pda__excerpt li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #676767;
  font-size: 13px;
}

.aok-pda__buy {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--am360-line);
}

/* Réassurance : trois lignes sobres */
.aok-pda__assure {
  margin: 18px 0 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--am360-line);
  list-style: none;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.5;
}

.aok-pda__assure li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 24px;
}

.aok-pda__assure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #676767;
}

.aok-pda__assure strong {
  color: #050505;
}

.aok-pda__accordions {
  margin-top: 22px;
}

/* Téléphone : une colonne, photo puis achat */
@media (max-width: 820px) {
  .aok-pda__wrap {
    padding: 16px 0 48px;
  }

  .aok-pda__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .aok-pda__summary .product_title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Parcours d'achat : alerte taille, fenêtre d'ajout, barre d'achat fixe,
   pastille de panier, barre panier, liste d'envies, paiements express masqués
   ========================================================================== */

/* Les boutons Apple Pay / Google Pay n'apparaissent plus sur la fiche (ils restent à la commande) */
.aok-fiche-pda #wc-stripe-express-checkout-element,
.aok-fiche-pda #wc-stripe-express-checkout-button-separator,
.aok-fiche-pda .wc-stripe-product-checkout-container {
  display: none !important;
}

/* Choix de taille manquant */
.aok-pda .variations.aok-a-choisir {
  padding: 6px;
  background: var(--am360-soft);
  box-shadow: 0 0 0 2px #050505;
}

.aok-alerte {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #050505;
  background: var(--am360-soft);
  color: #050505;
  font-size: 14px;
  font-weight: 600;
}

.aok-alerte::before {
  content: "!";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

/* Liste d'envies */
.aok-pda__wish {
  margin: 14px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--am360-line);
  font-size: 14px;
}

.aok-pda__wish .yith-wcwl-add-to-wishlist {
  margin: 0;
}

.aok-pda__wish a,
.aok-pda__wish button,
.aok-pda__wish .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #4a4a4a !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-decoration: none;
  text-transform: none !important;
}

.aok-pda__wish svg,
.aok-pda__wish i {
  width: 20px;
  height: 20px;
  color: #050505;
  fill: currentColor;
}

.aok-pda__wish button:hover {
  color: #050505 !important;
}

.aok-pda__wish a:hover {
  color: #050505;
}

/* Fenêtre « Article ajouté à votre panier » */
.aok-ajout[hidden] {
  display: none;
}

.aok-ajout {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.aok-ajout__fond {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.55);
}

.aok-ajout__boite {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 34px 24px 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.aok-ajout__titre {
  margin: 0 0 6px;
  font-family: var(--am360-brand);
  font-size: 22px;
  font-weight: 500;
  color: #050505;
}

.aok-ajout__produit {
  margin: 0 0 22px;
  color: #676767;
  font-size: 15px;
}

.aok-ajout__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}

.aok-ajout__boutons a {
  flex: 1 1 160px;
  padding: 14px 10px;
  border: 1px solid #050505;
  font-family: var(--am360-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.aok-ajout__payer {
  background: #050505;
  color: #fff;
}

.aok-ajout__panier {
  background: #fff;
  color: #050505;
}

.aok-ajout__continuer {
  padding: 8px;
  border: 0;
  background: none;
  color: #050505;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.aok-ajout__x {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 4px 10px;
  border: 0;
  background: none;
  color: #676767;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

html.aok-ajout-ouvert {
  overflow: hidden;
}

/* Barre d'achat fixe */
.aok-barre-achat {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--am360-line);
  background: #fff;
  box-shadow: 0 -4px 18px rgba(5, 5, 5, 0.08);
  transform: translateY(110%);
  transition: transform 0.25s;
}

.aok-barre-achat.est-visible {
  transform: translateY(0);
}

.aok-barre-achat__infos {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  line-height: 1.25;
}

.aok-barre-achat__prix {
  color: #050505;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.aok-barre-achat__taille {
  color: #676767;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.aok-barre-achat__taille.is-ok {
  color: #050505;
}

.aok-barre-achat__bouton {
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  min-height: 48px;
  margin-left: auto;
  padding: 0 18px;
  border: 0;
  background: #050505;
  color: #fff;
  font-family: var(--am360-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

body.aok-produit-au-panier .aok-barre-achat {
  display: none;
}

@media (min-width: 1000px) {
  .aok-barre-achat {
    justify-content: center;
  }

  .aok-barre-achat__bouton {
    flex: 0 0 300px;
    margin-left: 24px;
  }
}

/* Pastille de panier flottante (téléphone) */
.aok-panier-flottant {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  box-shadow: 0 4px 16px rgba(5, 5, 5, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
}

.aok-panier-flottant.est-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.aok-panier-flottant__nombre {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #050505;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 820px) {
  .aok-panier-flottant {
    display: flex;
  }
}

/* Barre « N article(s) dans votre panier » */
.aok-cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #050505;
  color: #fff;
  font-size: 13px;
}

.aok-cartbar.is-visible {
  display: flex;
}

.aok-cartbar__cart,
.aok-cartbar__pay {
  padding: 10px 18px;
  border: 1px solid #fff;
  font-family: var(--am360-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.aok-cartbar__cart {
  background: transparent;
  color: #fff;
}

.aok-cartbar__pay {
  background: #fff;
  color: #050505;
}

@media (max-width: 560px) {
  .aok-cartbar {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .aok-cartbar__text {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Ordinateur : la galerie reste visible pendant qu'on lit la colonne d'achat */
@media (min-width: 821px) {
  .aok-pda__gallery {
    position: sticky;
    top: 130px;
  }
}
