/* Ficha de un vino de la tienda: mismo diseño que la ficha de los boxes */
.pd { max-width: 1320px; margin: 0 auto; padding: 32px 32px 64px; color: #1D1D1D; }
.pd[hidden] { display: none; }
.pd-back { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: #1D1D1D; text-decoration: none; }
.pd-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(29,29,29,.06), 0 18px 40px rgba(29,29,29,.06); }
.pd-card__photo { position: relative; padding: 24px; background: #fff; }
.pd-card__photo img { display: block; width: 100%; height: clamp(360px, 65svh, 580px); min-height: 0; max-height: none; padding: 24px; box-sizing: border-box; object-fit: contain; background: #fff; border-radius: 22px; mix-blend-mode: normal; }
.pd-sale { position: absolute; top: 40px; left: 40px; padding: 6px 12px; border-radius: 999px; background: #EA6D46; color: #fff; font-size: 13px; font-weight: 700; }
.pd-card__body { padding: 36px 40px; display: flex; flex-direction: column; gap: 12px; }
.pd-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9E2A5F; }
.pd h1 { margin: 0; font-family: var(--font-display, Georgia, serif); font-weight: 600; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; text-transform: none; }
.pd-meta { margin: 0; font-size: 14px; color: #555; }
.pd-quote { margin: 0; font-family: var(--font-display, Georgia, serif); font-style: italic; font-size: 19px; color: #3A3A3A; }
.pd-quote[hidden] { display: none; }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; padding: 16px 18px; border-radius: 20px; background: #F6EFE3; }
.pd-price { display: flex; flex-direction: column; }
.pd-price s { font-size: 14px; color: #777; }
.pd-price strong { font-family: var(--font-display, Georgia, serif); font-size: 34px; line-height: 1; }
.pd-price small { margin-top: 4px; font-size: 11px; color: #666; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: #3D8367; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.pd-btn:hover { background: #2F6B53; color: #fff; }
.pd-btn[aria-disabled="true"] { background: #BFD9CC; pointer-events: none; }
.pd-stock { margin: 0; font-size: 13px; color: #9E2A5F; font-weight: 600; }
.pd-stock:empty { display: none; }
.pd-club { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 18px; background: #CDE9DA; color: #1D1D1D; text-decoration: none; font-size: 14px; line-height: 1.4; }
.pd-club b { white-space: nowrap; color: #2F6B53; }
.pd-club:hover { background: #BEE0CE; }
.pd-desc p { margin: 0; font-size: 15px; line-height: 1.6; }
.pd-more { margin-top: 8px; }
.pd-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #9E2A5F; }
.pd-more p { margin-top: 8px; color: #3A3A3A; font-size: 14px; }
.pd-h { margin: 8px 0 0; font-family: var(--font-display, Georgia, serif); font-size: 22px; font-weight: 600; text-transform: none; }
.pd-taste { display: grid; gap: 6px; }
.pd-taste__row { display: grid; grid-template-columns: 70px 64px auto 1fr; align-items: center; gap: 10px; font-size: 12px; }
.pd-taste__label { font-weight: 700; font-size: 13px; }
.pd-taste__lo, .pd-taste__hi { color: #666; }
.pd-taste__hi { text-align: right; }
.pd-taste__dots { display: inline-flex; gap: 4px; }
.pd-taste__dots i { width: 26px; height: 8px; border-radius: 999px; background: #EFE6D8; }
.pd-taste__dots i.on { background: #EA6D46; }
.pd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.pd-tile { padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.pd-tile > span { font-size: 12px; font-weight: 700; }
.pd-tile p { margin: 0; font-size: 14px; line-height: 1.45; }
.pd-tile--rose { background: #F8D9C9; }
.pd-tile--sand { background: #F6EFE3; }
.pd-tile--green { background: #CDE9DA; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chips em { font-style: normal; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.pd-mesa { border-radius: 18px; background: #F8D9C9; padding: 16px 20px; }
.pd-mesa[hidden] { display: none; }
.pd-mesa summary { cursor: pointer; font-family: var(--font-display, Georgia, serif); font-size: 20px; font-weight: 600; list-style: none; }
.pd-mesa summary::-webkit-details-marker { display: none; }
.pd-mesa summary::after { content: ' +'; color: #9E2A5F; }
.pd-mesa[open] summary::after { content: ' −'; }
.pd-mesa ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pd-mesa li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(29,29,29,.1); font-size: 14px; line-height: 1.45; }
.pd-mesa li b { color: #9E2A5F; font-size: 12px; }
.pd-legal { margin: 4px 0 0; font-size: 12px; color: #777; }
.pd-related { margin-top: 56px; }
.pd-related__title { margin: 0 0 18px; font-family: var(--font-display, Georgia, serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; text-transform: none; }
.pd-related__title em { font-style: italic; font-weight: 400; color: #9E2A5F; }
@media (max-width: 900px) {
  .pd { padding: 20px 16px 48px; }
  .pd-card { grid-template-columns: 1fr; }
  .pd-card__photo { padding: 16px 16px 0; }
  .pd-card__photo img { min-height: 0; height: clamp(280px, 90vw, 360px); padding: 16px; }
  .pd-sale { top: 28px; left: 28px; }
  .pd-card__body { padding: 20px; }
  .pd-taste__row { grid-template-columns: 62px auto 1fr; }
  .pd-taste__lo { display: none; }
  .pd-taste__dots i { width: 18px; }
  .pd-tiles { grid-template-columns: 1fr; }
  .pd-club { flex-direction: column; align-items: flex-start; }
}
.pd .pd-card__photo.shop-product__media { aspect-ratio: auto; min-height: 0; height: auto; position: relative; border-radius: 0; background: #fff; }

/* Las fotos recomendadas no determinan la altura de las tarjetas. */
.pd-related [data-related] .pg-card { min-width: 0; }
.pd-related [data-related] .pg-card .pg-card__img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.pd-related [data-related] .pg-card .pg-card__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 20px;
  box-sizing: border-box;
  object-fit: contain;
  mix-blend-mode: normal;
}

/* El color acompaña la información; las fotos conservan su fondo blanco. */
.pd-related [data-related] .pg-card:nth-child(4n+1) .pg-card__body { background: #CDE9DA; }
.pd-related [data-related] .pg-card:nth-child(4n+2) .pg-card__body { background: #F8D9C9; }
.pd-related [data-related] .pg-card:nth-child(4n+3) .pg-card__body { background: #F3E6C4; }
.pd-related [data-related] .pg-card:nth-child(4n+4) .pg-card__body { background: #F4B9A3; }
.pd-related [data-related] .pg-card__foot em { color: #1A3E39; }

.pd-gallery{display:flex;gap:9px;overflow-x:auto;padding:12px 4px;scrollbar-width:thin}.pd-gallery[hidden]{display:none}.pd-gallery button{flex:0 0 70px;border:1px solid #dce2dd;border-radius:9px;padding:4px;background:#fff;cursor:pointer}.pd-gallery button[aria-pressed=true]{border:2px solid #3D8367}.pd-card__photo .pd-gallery img{height:76px;width:100%;min-height:0;max-height:76px;padding:3px;object-fit:contain;border-radius:4px}.pd-gallery button:focus-visible{outline:3px solid #3D8367;outline-offset:2px}
.pd-contents{margin:0 0 18px;padding-left:20px;display:grid;gap:6px;line-height:1.45}
.pd-contents{list-style:none;padding:0}.pd-contents li{display:flex;align-items:center;gap:12px}.pd-contents img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:#F6EFE3;flex:none}
.pd-contents__link,.pd-contents__row{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.pd-contents__link:hover span{text-decoration:underline}
