.product-dialog .dialog-product-copy { display: grid; gap: 10px; }
.product-dialog .dialog-category { margin: 0; color: var(--vf-muted, #53625c); font-size: 11px; letter-spacing: .12em; }
.product-dialog .dialog-product-copy h2 { color: var(--vf-ink, #171a18); font-size: clamp(25px, 4vw, 34px); }
.product-dialog .dialog-description { margin: 0; color: var(--vf-muted, #53625c); font-size: 14px; }
.product-dialog .dialog-price { color: var(--vf-green, #007653); font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.dialog-availability { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--vf-muted, #53625c); font-size: 13px; font-weight: 650; }
.dialog-availability::before { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #a0a8a3; content: ""; }
.dialog-availability.is-available::before { background: #16a36b; box-shadow: 0 0 0 4px #16a36b1c; }
.dialog-availability.is-unavailable { color: #a14c42; }
.product-dialog .dialog-actions { margin-top: 7px; border-color: var(--vf-line, #d9e4de); }
.product-dialog .dialog-actions > .button { min-height: 52px; padding-inline: 30px; background: var(--vf-green, #007653); font-size: 15px; }
.variant-picker { min-width: 0; margin: 4px 0; padding: 0; border: 0; }
.variant-picker legend { margin-bottom: 9px; color: var(--vf-ink, #171a18); font-size: 14px; font-weight: 750; }
.variant-swatches, .variant-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-swatch { width: 42px; height: 42px; padding: 0; border: 3px solid var(--vf-paper, #fff); border-radius: 50%; background: var(--variant-color, #777); box-shadow: 0 0 0 1px var(--vf-line, #d9e4de); cursor: pointer; }
.variant-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--vf-green, #007653); }
.variant-size { min-height: 46px; min-width: 76px; padding: 8px 14px; border: 1px solid var(--vf-line, #d9e4de); border-radius: 10px; background: var(--vf-paper, #fff); color: var(--vf-ink, #171a18); font: inherit; font-weight: 700; cursor: pointer; }
.variant-size[aria-pressed="true"] { border-color: var(--vf-green, #007653); background: var(--vf-green, #007653); color: #fff; }
.variant-swatch:disabled, .variant-size:disabled { position: relative; border-color: #aeb6b1; background-color: #d9ddda; color: #737b76; box-shadow: none; cursor: not-allowed; opacity: .7; }
.variant-swatch:disabled::after { position: absolute; top: 50%; left: 8%; width: 84%; height: 2px; background: #737b76; content: ""; transform: rotate(-45deg); }
.variant-size:disabled { overflow: hidden; }
.variant-size:disabled::after { position: absolute; top: 50%; left: -10%; width: 120%; height: 2px; background: #737b76; content: ""; transform: rotate(-14deg); }
.variant-required { margin: 0; color: var(--vf-muted, #53625c); font-size: 13px; }
.product-dialog .dialog-actions > .button:disabled { cursor: not-allowed; opacity: .58; }
.variant-swatch:focus-visible, .variant-size:focus-visible { outline: 3px solid #e0a421; outline-offset: 3px; }
.variant-picker p { margin: 8px 0 0; color: var(--vf-muted, #53625c); font-size: 13px; }
.vf-drawer-cart-link { margin: 0 24px 18px; text-align: center; }

.vf-cart-page { --vf-cart-paper: #fff; --vf-cart-soft: #f3f8f5; --vf-cart-line: #d9e4de; --vf-cart-text: #171a18; --vf-cart-muted: #53625c; }
.vf-cart-main { width: min(100% - 36px, 980px); min-height: 48vh; margin: 0 auto; padding: clamp(32px, 6vw, 76px) 0 clamp(112px, 14vw, 150px); color: var(--vf-cart-text); }
.vf-cart-card { overflow: hidden; border: 1px solid var(--vf-cart-line); border-radius: 20px; background: var(--vf-cart-paper); box-shadow: 0 18px 55px rgb(5 50 34 / 8%); }
.vf-cart-heading { padding: clamp(22px, 4vw, 38px) clamp(20px, 4vw, 38px) 18px; }
.vf-cart-kicker { margin: 0 0 7px; color: var(--vf-green, #007653); font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.vf-cart-heading h1 { margin: 0; color: var(--vf-cart-text); font-family: var(--font-display, sans-serif); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.045em; line-height: 1.08; }
.vf-cart-heading > p:last-child { margin: 11px 0 0; color: var(--vf-cart-muted); font-size: 14px; }
.vf-cart-lines { padding: 0 clamp(20px, 4vw, 38px); }
.vf-cart-lines .cart-line { grid-template-columns: 94px minmax(0, 1fr) auto; gap: 17px; padding: 20px 0; border-color: var(--vf-cart-line); }
.vf-cart-lines .cart-line-image { width: 94px; height: 100px; border: 1px solid var(--vf-cart-line); border-radius: 13px; background: var(--vf-cart-soft); }
.vf-cart-lines .cart-line-copy strong { color: var(--vf-cart-text); font-size: 15px; }
.vf-cart-lines .cart-line-copy > span { color: var(--vf-cart-muted); font-size: 13px; }
.vf-cart-lines .cart-line-total { color: var(--vf-cart-text); font-size: 14px; }
.vf-cart-lines .quantity-control button { width: 34px; height: 34px; border-color: var(--vf-cart-line); background: var(--vf-cart-soft); color: var(--vf-cart-text); }
.vf-cart-lines .quantity-control output { min-width: 28px; color: var(--vf-cart-text); }
.vf-cart-lines .remove-item { color: var(--vf-green, #007653); font-size: 12px; }
.vf-cart-empty { padding: 30px 20px 38px; text-align: center; }
.vf-cart-empty[hidden], .vf-cart-summary[hidden] { display: none !important; }
.vf-cart-empty-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: var(--vf-cart-soft); color: var(--vf-green, #007653); font-size: 27px; }
.vf-cart-empty h2 { margin: 0; color: var(--vf-cart-text); font-size: 23px; }
.vf-cart-empty p { margin: 8px auto 20px; color: var(--vf-cart-muted); font-size: 14px; }
.vf-cart-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.vf-cart-empty-actions .button, .vf-cart-summary .button { min-height: 48px; border-radius: 11px; }
.vf-cart-summary { padding: 22px clamp(20px, 4vw, 38px) 28px; border-top: 1px solid var(--vf-cart-line); background: var(--vf-cart-soft); }
.vf-cart-summary .subtotal-row { display: flex; justify-content: space-between; gap: 14px; color: var(--vf-cart-text); font-size: 15px; }
.vf-cart-summary .subtotal-row strong { color: var(--vf-green, #007653); font-size: 21px; }
.vf-cart-summary > p { margin: 7px 0 17px; color: var(--vf-cart-muted); font-size: 12px; }
.vf-whatsapp-float { position: fixed; z-index: 30; right: 20px; bottom: 22px; display: inline-flex; min-height: 50px; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid #ffffff52; border-radius: 999px; background: #168b58; box-shadow: 0 8px 24px #063b282e; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.vf-whatsapp-float:hover { background: #087447; color: #fff; transform: translateY(-2px); }
.vf-whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; }
html[data-theme="dark"] .vf-cart-page { --vf-cart-paper: #17221e; --vf-cart-soft: #1d2b25; --vf-cart-line: #34463d; --vf-cart-text: #f2f6f3; --vf-cart-muted: #b5c4bc; }
html[data-theme="dark"] .vf-cart-card { box-shadow: 0 18px 55px #0004; }
html[data-theme="dark"] .product-dialog { border-color: #34463d; background: #17221e; color: #f2f6f3; }
html[data-theme="dark"] .product-dialog .dialog-product-copy h2 { color: #f2f6f3; }
html[data-theme="dark"] .product-dialog .dialog-category, html[data-theme="dark"] .product-dialog .dialog-description { color: #b5c4bc; }
html[data-theme="dark"] .dialog-availability.is-unavailable { color: #ffb8ad; }
html[data-theme="dark"] .variant-picker legend, html[data-theme="dark"] .variant-size { color: #f2f6f3; }
html[data-theme="dark"] .variant-size { border-color: #34463d; background: #17221e; }
html[data-theme="dark"] .variant-swatch:disabled, html[data-theme="dark"] .variant-size:disabled { border-color: #56625c; background-color: #3b4540; color: #c1c9c4; }
html[data-theme="dark"] .variant-swatch:disabled::after { background: #d0d6d2; }
html[data-theme="dark"] .variant-size[aria-pressed="true"] { background: var(--vf-green, #007653); color: #fff; }
@media (max-width: 600px) {
    .vf-cart-main { width: calc(100% - 28px); padding-top: 25px; padding-bottom: 130px; }
    .vf-cart-card { border-radius: 15px; }
    .vf-cart-lines { padding-inline: 15px; }
    .vf-cart-lines .cart-line { grid-template-columns: 66px minmax(0, 1fr); gap: 11px; padding: 15px 0; }
    .vf-cart-lines .cart-line-image { grid-row: span 2; width: 66px; height: 76px; }
    .vf-cart-lines .cart-line-copy strong { font-size: 13px; }
    .vf-cart-lines .cart-line-copy > span { font-size: 11px; }
    .vf-cart-lines .cart-line-total { grid-column: 2; justify-self: end; padding-top: 0; }
    .vf-cart-lines .cart-line-controls { flex-wrap: wrap; gap: 8px; }
    .vf-cart-empty-actions { flex-direction: column; }
    .vf-cart-empty-actions .button { width: 100%; }
    .vf-cart-summary { padding-inline: 16px; }
    .vf-whatsapp-float { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); min-height: 44px; padding-inline: 13px; font-size: 12px; }
}

/* WhatsApp flotante: círculo con ícono (sin texto cortado), sobre la barra inferior en celular. */
body .vf-whatsapp-float{width:52px;height:52px;min-height:52px;padding:0;justify-content:center;gap:0;font-size:0;overflow:hidden}
body .vf-whatsapp-float svg{width:26px;height:26px}
@media (max-width:700px){body .vf-whatsapp-float{width:48px;height:48px;min-height:48px;right:14px;bottom:calc(92px + env(safe-area-inset-bottom))}}

/* Precio de la ficha legible en modo oscuro. */
html[data-theme="dark"] body [data-dialog-price]{color:#7be5af !important}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) body [data-dialog-price]{color:#7be5af !important}}
