/* Tienda de proteínas y vitaminas (/tienda/) */

.shop-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* «.section-head p» de bp.css agranda la ceja; aquí se devuelve a su tamaño */
.shop .section-head .eyebrow { font-size: var(--fs-xs); line-height: 1.65; color: var(--green); margin-bottom: 14px; }
.no-js .js-only { display: none !important; }
html.shop-dialog-open { overflow: hidden; }

/* Contador (carrito y favoritos) */
.count-badge {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 1;
}
.count-badge--light { background: var(--mint-2); color: var(--deep); }
.count-badge.is-bump { animation: shop-bump .5s var(--ease); }
@keyframes shop-bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ---------- Héroe ---------- */
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.shop-hero h1 { max-width: 13ch; }
.shop-hero .btn--ghost svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.shop-hero-media { position: relative; height: clamp(300px, 34vw, 440px); }
.shop-hero-halo {
  position: absolute; inset: 6% 8% 2%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--white) 0%, var(--mint) 62%, var(--sage) 100%); opacity: .85;
}
.stack-card {
  position: absolute; width: 42%; aspect-ratio: 1 / 1; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; perspective: 1400px; -webkit-tap-highlight-color: transparent;
  transition: scale .45s var(--ease), rotate .45s var(--ease);
}
.stack-card--left { left: 2%; top: 30%; z-index: 1; rotate: -8deg; animation: shop-bob 9s ease-in-out infinite; }
.stack-card--right { right: 2%; top: 24%; z-index: 1; rotate: 7deg; animation: shop-bob 10s ease-in-out infinite; animation-delay: -4s; }
.stack-card--center { left: 50%; top: 4%; width: 52%; margin-left: -26%; z-index: 2; animation: shop-bob 8s ease-in-out infinite; animation-delay: -2s; }
.stack-card .flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.stack-card .flip-face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl);
  border: 6px solid var(--white); background: var(--cream); box-shadow: var(--shadow-3);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .45s var(--ease);
}
.stack-card .flip-back { transform: rotateY(180deg); }
.stack-card.is-back .flip-inner { transform: rotateY(180deg); }
/* Al pasar el cursor: la tarjeta se endereza, crece, pasa adelante y muestra el reverso. Con el foco del teclado solo se endereza y crece. */
.stack-card:focus-visible { outline: none; }
.stack-card:focus-visible .flip-face { box-shadow: 0 0 0 4px var(--green), var(--shadow-3); }
@media (hover: hover) {
  .stack-card:hover { z-index: 4; rotate: 0deg; scale: 1.08; }
  .stack-card:hover .flip-inner { transform: rotateY(180deg); }
  .stack-card.is-back:hover .flip-inner { transform: rotateY(0deg); }
  .stack-card:hover .flip-face { box-shadow: 0 22px 48px rgba(31, 58, 52, .22); }
}
.stack-card:focus-visible { z-index: 4; rotate: 0deg; scale: 1.06; }
html.reduce-motion .stack-card, html.reduce-motion .stack-card .flip-inner { transition: none; }
@keyframes shop-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.shop-float-note {
  position: absolute; left: 4%; bottom: 4%; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-2);
  font-weight: 650; font-size: var(--fs-sm); color: var(--deep); text-decoration: none;
  transition: scale .3s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.shop-float-note:hover, .shop-float-note:focus-visible { scale: 1.07; translate: 0 -3px; background: var(--white); box-shadow: 0 16px 34px rgba(31, 58, 52, .2); }
.shop-float-note:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.shop-float-note svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate .5s var(--ease); }
.shop-float-note:hover svg { translate: 3px 0; }
html.reduce-motion .shop-float-note, html.reduce-motion .shop-float-note svg { transition: none; }
html.reduce-motion .shop-float-note:hover svg { translate: none; }
@media (max-width: 960px) {
  .shop-hero-grid { grid-template-columns: 1fr; }
  .shop-hero-media { width: 100%; max-width: 480px; margin-inline: auto; height: clamp(270px, 70vw, 380px); }
}

/* ---------- Introducción ---------- */
.shop-intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.shop-intro-title span, .shop-intro-title em { display: block; }
.shop-intro-title em { font-style: italic; color: var(--green); }
.shop-intro-text { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 54ch; }
.shop-hint { background: var(--white); }
@media (max-width: 860px) { .shop-intro-grid { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.catalog-head h2 { margin: 0; outline: none; }
.catalog-count { margin: 0; font-size: var(--fs-sm); }

.shop-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(20px, 3vw, 32px);
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.shop-search { flex: 1 1 260px; max-width: 420px; min-height: 50px; }
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
.shop-quick { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-quick .btn svg, .shop-help .btn--ghost svg { width: 18px; height: 18px; }
.shop-quick a svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 760px) {
  .shop-search { flex-basis: 100%; max-width: none; }
  .shop-quick { margin-left: 0; width: 100%; }
  .shop-quick .btn { flex: 1 1 0; }
}

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 26px); }
@media (max-width: 960px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .shop-grid { grid-template-columns: 1fr; } }

/* Tarjeta de producto */
.p-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  transition: opacity .8s var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.p-card.is-entering { animation: bp-fade-up .45s var(--ease) both; }
.p-media { position: relative; aspect-ratio: 1 / 1; background: var(--cream); perspective: 1400px; }
.p-flip { position: absolute; inset: 0; cursor: pointer; }
.p-flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.p-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; user-select: none; -webkit-user-select: none; }
.p-back { transform: rotateY(180deg); }
.p-card.is-back .p-flip-inner { transform: rotateY(180deg); }
/* Sin giro al pasar el ratón: solo gira con «Ver reverso» (al pasar, la tarjeta solo se eleva: orden del 6-nov) */
.no-js .p-flip { cursor: default; }
.p-cat { position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none; }

.p-fav {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--rose-ink);
  box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.p-fav:hover { transform: scale(1.08); background: var(--white); }
.p-fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill var(--t-fast); }
.p-fav[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); }
.p-fav[aria-pressed="true"] svg { fill: currentColor; }
.p-fav.is-pop svg { animation: shop-heart .5s var(--ease); }
@keyframes shop-heart { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.p-fav--inline { position: static; flex-shrink: 0; box-shadow: none; border-color: var(--line-2); }

.p-turn {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94);
  color: var(--deep); font-size: var(--fs-xs); font-weight: 650; box-shadow: var(--shadow-1); transition: background var(--t-fast);
}
.p-turn:hover { background: var(--mint); }
.p-turn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease); }
.p-card.is-back .p-turn svg { transform: rotate(180deg); }

.p-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; min-width: 0; }
.p-brand { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-name { margin: 0 0 4px; font-size: var(--fs-lg); line-height: 1.28; overflow-wrap: anywhere; }
.p-detail { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.p-more { align-self: flex-start; border: 0; background: none; padding: 8px 0; min-height: 44px; font-size: var(--fs-sm); cursor: pointer; }
.p-buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.p-price { margin: 0; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; color: var(--deep); white-space: nowrap; }
.p-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.p-add.is-done { background: var(--deep); }
.p-ship { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; }
@media (max-width: 640px) {
  .p-body { padding: 14px 14px 16px; }
  .p-name { font-size: var(--fs-md); }
  .p-detail { font-size: var(--fs-xs); }
  .p-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .p-price { font-size: 1.35rem; }
  .p-add { width: 100%; }
  .p-cat { left: 8px; top: 8px; }
  .p-fav { right: 6px; top: 6px; }
  .p-turn { left: 6px; bottom: 6px; width: 44px; padding: 0; justify-content: center; }
  .p-turn svg { width: 20px; height: 20px; }
  .p-turn [data-turn-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.shop-empty { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.shop-empty .card-icon { background: var(--sky); color: var(--sky-ink); }
.shop-empty p { color: var(--ink-2); }

/* Aviso de recojo y envío (una vez por vista) */
.ship-note { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); max-width: 72ch; }
.ship-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.ship-note--compact { margin: 14px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sage); }

/* Forma de entrega (revisión del pedido) */
.delivery-choice { border: 0; padding: 0; margin: 16px 0; min-width: 0; display: grid; gap: 8px; }
.delivery-choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.delivery-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); cursor: pointer; transition: border-color var(--t-fast, .15s) ease, background-color var(--t-fast, .15s) ease; }
.delivery-choice input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.delivery-choice span { display: grid; gap: 2px; }
.delivery-choice small { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; }
.delivery-choice label:has(input:checked) { border-color: var(--green); background: var(--sage); }
.delivery-choice label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.delivery-extra { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--green); border-radius: var(--r-sm); background: var(--sage); }
.delivery-extra[hidden] { display: none; }
.delivery-choice .delivery-extra-field { display: block; padding: 0; border: 0; background: none; cursor: default; font-weight: 600; font-size: var(--fs-sm); }
.delivery-choice .delivery-extra-field span { display: inline; font-weight: 400; color: var(--ink-2); }
.delivery-extra .input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font: inherit; color: var(--ink); }
.delivery-extra .input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.delivery-extra .form-hint { margin: 0; }

/* ---------- Favoritos ---------- */
.fav-privacy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 20px; }
.fav-privacy p { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.fav-privacy svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.fav-list:empty { display: none; }
.fav-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0;
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  animation: bp-fade-up var(--t-med) var(--ease);
}
.fav-thumb { padding: 0; border: 0; background: var(--cream); border-radius: 14px; overflow: hidden; width: 96px; height: 96px; cursor: pointer; }
.fav-thumb img { width: 96px; height: 96px; object-fit: contain; }
.fav-item { position: relative; align-items: start; }
.fav-item h3 { font-size: var(--fs-md); margin: 0 0 2px; padding-right: 50px; overflow-wrap: anywhere; }
.fav-item .p-fav--inline { position: absolute; top: 10px; right: 10px; }
.fav-meta { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.fav-price { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); }
.fav-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.fav-actions .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fav-empty { max-width: 560px; display: grid; justify-items: start; }
.fav-empty-icon { background: var(--rose); color: var(--rose-ink); }
.fav-empty-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-empty p { color: var(--ink-2); }
@media (max-width: 420px) {
  .fav-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .fav-thumb, .fav-thumb img { width: 72px; height: 72px; }
}

/* ---------- Compra con el acompañamiento del equipo ---------- */
.shop-help-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .shop-help-grid { grid-template-columns: 1fr; } }
.shop-steps { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 12px; }
.shop-steps li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--sky-2); border-radius: var(--r-md);
}
.shop-step-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--sky); color: var(--sky-ink); display: grid; place-items: center; }
.shop-step-icon svg { width: 24px; height: 24px; }
.shop-help .reveal.is-in .shop-steps li { animation: bp-fade-up .6s var(--ease) both; }
.shop-help .reveal.is-in .shop-steps li:nth-child(2) { animation-delay: .12s; }
.shop-help .reveal.is-in .shop-steps li:nth-child(3) { animation-delay: .24s; }
.shop-pay { margin-top: 4px; }
.shop-faq summary { font-size: var(--fs-md); }

/* ---------- Botón flotante del carrito ---------- */
.shop-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 12px 10px 18px; border: 0; border-radius: 999px; background: var(--deep); color: #fff;
  font-weight: 650; font-size: var(--fs-sm); box-shadow: var(--shadow-3); transition: transform .35s var(--ease), background var(--t-fast);
  animation: shop-fab-in .5s var(--ease);
}
.shop-fab:hover { background: var(--deep-2); transform: translateY(-3px); }
.shop-fab svg { width: 22px; height: 22px; }
@keyframes shop-fab-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
body:has(.toast.is-visible) .shop-fab { transform: translateY(-64px); }
@media (max-width: 760px) {
  .shop-fab { right: 12px; bottom: 86px; padding: 10px 10px 10px 14px; }
  .shop-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .shop-fab, .shop-tools, .p-fav, .p-turn, .p-add, .p-more { display: none !important; } }

/* ---------- Diálogos ---------- */
dialog.shop-modal { width: min(560px, calc(100% - 24px)); max-width: none; overscroll-behavior: contain; }
dialog.shop-modal--wide { width: min(1000px, calc(100% - 24px)); }
dialog.shop-modal[open] { animation: shop-dialog-in .35s var(--ease); }
@keyframes shop-dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.shop-modal .modal-head h2 { outline: none; overflow-wrap: anywhere; }
.shop-modal .icon-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  dialog.shop-modal, dialog.shop-modal--wide { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .shop-modal .modal-body { padding: 18px 16px 24px; }
}

/* Ficha */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .pd-grid { grid-template-columns: 1fr; gap: 18px; } }
.pd-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(56vh, 520px); overflow: hidden;
  border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line);
}
.pd-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 0; }
.pd-photo img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.pd-photo img.is-swap { animation: shop-fade .45s var(--ease); }
@keyframes shop-fade { from { opacity: .25; } to { opacity: 1; } }
.pd-stage.is-zoomed { overflow: auto; cursor: grab; overscroll-behavior: contain; }
.pd-stage.is-zoomed .pd-photo { width: 220%; height: auto; cursor: zoom-out; }
.pd-stage.is-zoomed .pd-photo img { height: auto; }
.pd-stage.is-dragging, .pd-stage.is-dragging .pd-photo { cursor: grabbing; }
.pd-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.pd-zoom svg { width: 18px; height: 18px; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button {
  display: grid; justify-items: center; gap: 4px; padding: 6px 6px 8px; min-width: 92px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--white); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 650;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.pd-thumbs button:hover { border-color: var(--green-3); }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--green); color: var(--deep); box-shadow: 0 0 0 3px rgba(70, 135, 119, .16); }
.pd-thumbs img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--cream); }
.pd-copy .eyebrow { margin-bottom: 8px; }
.pd-detail { margin: 0 0 8px; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.45; }
.pd-price { margin: 0 0 12px; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--deep); }
.pd-instruction { font-size: var(--fs-sm); color: var(--ink-2); }
.pd-actions { display: flex; align-items: center; gap: 12px; }
.pd-actions .btn { flex: 1; }
.pd-actions .btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pd-order-note { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sky); color: var(--deep); font-size: var(--fs-sm); }

/* Mensaje dentro del diálogo (el aviso general quedaría detrás del diálogo) */
.dialog-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dialog-status p { margin: 0; }
.dialog-status.is-shown { margin: 14px 0 0; padding: 10px 12px 10px 16px; border-radius: var(--r-sm); background: var(--mint); color: var(--deep); font-weight: 650; font-size: var(--fs-sm); animation: bp-fade-up var(--t-med) var(--ease); }
.modal-body > .dialog-status.is-shown { margin: 0 0 14px; }

/* Carrito y revisión */
.cart-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; margin: 0;
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
}
.cart-line img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--cream); }
.cart-line h3 { margin: 0 0 2px; font-size: var(--fs-md); line-height: 1.3; overflow-wrap: anywhere; }
.cart-unit { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--deep); }
.qty button:hover:not(:disabled) { background: var(--sage); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qty-num { min-width: 2.2ch; text-align: center; font-weight: 700; color: var(--deep); }
.cart-remove { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--rose-ink); font-weight: 650; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.cart-line-total { margin: 0; font-weight: 700; color: var(--deep); white-space: nowrap; }
.cart-list--review .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
.cart-list--review .cart-unit { margin: 0; }
@media (max-width: 440px) {
  .cart-line { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line > .cart-line-total { grid-column: 2; }
  .cart-list--review .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-list--review .cart-line > .cart-line-total { grid-column: auto; }
}
.cart-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 4px 4px; border-top: 1px solid var(--line-2); font-weight: 650; }
.cart-summary strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--deep); }
.form-hint { font-size: var(--fs-sm); color: var(--ink-2); }
.modal-copy { color: var(--ink-2); }
.cart-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.cart-privacy svg { width: 16px; height: 16px; flex-shrink: 0; }
.cart-empty { display: grid; justify-items: center; text-align: center; padding: 8px 0; }
.cart-empty p { color: var(--ink-2); }
.shop-modal .btn--block + .form-hint, .shop-modal .form-hint + .btn--block { margin-top: 12px; }
.shop-modal .btn--block svg { width: 20px; height: 20px; }
