/* ============ Tienda pública ============ */
:root { --c: #10b981; --c-dark: #059669; --ct: #fff; --sbg: #f7f8f5; --surface: #fff; --text: #0b1220; --sub: #64748b; --bd: #e5e7eb; }
body { background: var(--sbg); color: var(--text); padding-bottom: env(safe-area-inset-bottom); }
body.dark { --surface: #151e2e; --text: #f1f5f9; --sub: #94a3b8; --bd: #263247; --line-2: #1e293b; --muted: #94a3b8; color-scheme: dark; }
body.dark .input, body.dark .textarea, body.dark .select { background: #0f172a; border-color: var(--bd); color: var(--text); }
body.dark .input-group { background: #0f172a; border-color: var(--bd); }
body.dark .input-group .addon { background: #1e293b; }
body.dark .modal { background: var(--surface); color: var(--text); }
body.dark .modal-head, body.dark .modal-foot { border-color: var(--bd); }
body.dark .btn-ghost { color: var(--text); border-color: var(--bd); }
body.dark .btn-ghost:hover { background: #1e293b; }
body.dark .btn-light { background: #1e293b; color: var(--text); }
body.bg-gradient { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--sbg)) 0, var(--sbg) 520px) no-repeat, var(--sbg); }
body.bg-dots { background: radial-gradient(color-mix(in srgb, var(--c) 28%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px, var(--sbg); }
body.bg-grid { background: linear-gradient(color-mix(in srgb, var(--c) 12%, transparent) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent) 1px, transparent 1px) 0 0 / 26px 26px, var(--sbg); }
.muted { color: var(--sub); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.input:focus, .textarea:focus { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.input-group:focus-within { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.btn-store { background: var(--c); color: var(--ct); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.btn-store:hover { background: var(--c-dark); }
.empty .empty-ico { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.link { background: none; border: 0; color: var(--c); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

.announce { background: var(--c); color: var(--ct); text-align: center; font-weight: 700; font-size: .85rem; padding: 8px 16px; }

/* Encabezado */
.shop-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .2s; }
.shop-head.scrolled { border-color: var(--bd); box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.shop-head-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand b { font-size: 1.1rem; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dark .brand b { color: var(--text); }
.logo-box { border-radius: 28%; overflow: hidden; display: grid; place-items: center; background: var(--c); color: var(--ct); font-weight: 800; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.head-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.head-search .ico, .mobile-search .ico { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--sub); pointer-events: none; }
.head-search .input, .mobile-search .input { padding-left: 38px; border-radius: 99px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 13px; border: 0; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); display: grid; place-items: center; cursor: pointer; flex: none; }
body.dark .cart-btn { color: var(--text); }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--surface); }
.mobile-search { display: none; position: relative; margin: 16px 0 0; }
.shop-head .theme-toggle { width: 44px; height: 44px; border-radius: 13px; border: 0; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.shop-head .theme-toggle:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
body.dark .shop-head .theme-toggle { color: var(--text); }
@media (max-width: 680px) { .head-search { display: none; } .shop-head .theme-toggle { margin-left: auto; } .mobile-search { display: block; } }

/* Hero */
.hero-card { margin-top: 20px; border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); border: 1px solid var(--bd); }
.hero-cover { height: 220px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); background-size: cover; background-position: center; position: relative; }
.hero-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .25)); }
.hero-info { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 22px; flex-wrap: wrap; }
.hero-logo { margin-top: -42px; border: 4px solid var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); position: relative; font-size: 2rem; }
.hero-text { flex: 1; min-width: 220px; padding-top: 14px; }
.hero-text h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; }
.hero-text p { color: var(--sub); margin-top: 4px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.meta-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--line-2); text-decoration: none; }
.meta-chip span { color: var(--sub); font-weight: 500; }
.hero-actions { display: flex; gap: 8px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--text); text-decoration: none; transition: .15s; }
.social:hover { background: var(--c); color: var(--ct); }
.social.wa { background: #22c55e; color: #fff; }
@media (max-width: 600px) {
  .hero-cover { height: 140px; }
  .hero-info { padding: 0 16px 18px; gap: 10px; }
  .hero-logo { width: 72px !important; height: 72px !important; margin-top: -36px; }
  .hero-text { flex-basis: 100%; padding-top: 0; }
}

/* Categorías */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; position: sticky; top: 64px; z-index: 10; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--bd); background: var(--surface); color: var(--text); padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: .15s; }
.chip:hover { border-color: var(--c); }
.chip.on { background: var(--c); color: var(--ct); border-color: var(--c); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 14px; }
.section-title h2 { font-size: 1.25rem; font-weight: 800; }

/* Productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }
@media (max-width: 520px) { .h-scroll { grid-auto-columns: 46%; gap: 10px; } }
.pcard { background: var(--surface); border-radius: 18px; overflow: hidden; cursor: pointer; border: 1px solid var(--bd); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; outline: none; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .1); }
.pcard:focus-visible { box-shadow: 0 0 0 3px var(--c); }
.pimg { position: relative; aspect-ratio: 1; background: color-mix(in srgb, var(--c) 8%, var(--line-2)); }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pimg img { transform: scale(1.04); }
.pimg-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sub); opacity: .6; }
.off { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 8px; border-radius: 8px; }
.few { position: absolute; bottom: 10px; left: 10px; background: #0284c7; color: #fff; font-weight: 800; font-size: .72rem; padding: 3px 8px; border-radius: 8px; }
.sold-tag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .45); color: #fff; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: .9rem; }
.has-video { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.quick-add { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--c); color: var(--ct); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); transition: transform .15s; }
.quick-add:hover { transform: scale(1.08); }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pprice { margin-top: auto; display: flex; flex-direction: column; }
.pprice s { color: var(--sub); font-size: .8rem; }
.pprice b { color: var(--c); font-size: 1.05rem; font-weight: 800; }
body.dark .pprice b { color: color-mix(in srgb, var(--c) 70%, #fff); }
.pcard.sold { opacity: .8; }
.big-empty { padding: 80px 20px; }

/* Reseñas */
.reviews-sec { margin: 44px 0 30px; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rv { background: var(--surface); border: 1px solid var(--bd); border-radius: 16px; padding: 14px 16px; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-head small { display: block; }
.rv-head .stars { margin-left: auto; }
.rv-avatar { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); display: grid; place-items: center; font-weight: 800; flex: none; }
.rv p { margin-top: 10px; font-size: .93rem; color: var(--sub); }
.stars { color: #0ea5e9; letter-spacing: 1px; white-space: nowrap; }
.stars .off { position: static; background: none; color: #cbd5e1; padding: 0; font-size: inherit; }
.review-form { background: var(--surface); border: 1px solid var(--bd); border-radius: 18px; padding: 16px 18px; margin-top: 14px; }
.review-form summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form[open] summary { margin-bottom: 16px; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; font-size: 1.9rem; color: #cbd5e1; cursor: pointer; padding: 0 2px; line-height: 1; transition: transform .1s; }
.star-pick button.on { color: #0ea5e9; }
.star-pick button:hover { transform: scale(1.15); }

/* Footer */
.shop-foot { border-top: 1px solid var(--bd); background: var(--surface); padding: 30px 0 110px; }
.shop-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; max-width: 520px; }
.made-with { font-size: .85rem; color: var(--sub); text-decoration: none; padding: 8px 14px; border: 1px solid var(--bd); border-radius: 99px; }
.made-with:hover { border-color: var(--c); color: var(--text); }

/* Flotantes */
.float-cart { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 50; display: flex; align-items: center; gap: 12px; background: #22c55e; color: #fff; border: 0; border-radius: 99px; padding: 10px 22px 10px 10px; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 14px 34px rgba(34, 197, 94, .45); width: min(440px, calc(100vw - 32px)); animation: up .3s ease; }
.float-cart b { margin-left: auto; }
.fc-count { background: #fff; color: #16a34a; min-width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-size: .9rem; padding: 0 8px; }
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(34, 197, 94, .45); z-index: 50; transition: transform .15s; }
.float-wa:hover { transform: scale(1.08); }

/* Modal de producto */
.product-modal { max-width: 900px !important; position: relative; overflow: hidden; }
.product-modal .modal-body { padding: 0; }
.pm-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0b1220; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.pm { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm-media { background: color-mix(in srgb, var(--c) 6%, var(--line-2)); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pm-main { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; }
.pm-main img, .pm-main video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.pm-main img { background: transparent; }
.pm-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pm-thumb { width: 60px; height: 60px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface); display: grid; place-items: center; color: var(--text); }
.pm-thumb.on { border-color: var(--c); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.pm-cat { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.pm-info h2 { font-size: 1.55rem; font-weight: 800; padding-right: 30px; }
.pm-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-price b { font-size: 1.6rem; font-weight: 800; color: var(--c); }
.pm-price s { color: var(--sub); }
.pm-price .off { position: static; }
.pm-stock { font-size: .85rem; font-weight: 700; color: #16a34a; }
.pm-stock.low { color: #0284c7; } .pm-stock.out { color: #dc2626; }
.pm-desc { color: var(--sub); font-size: .95rem; max-height: 200px; overflow-y: auto; border-top: 1px solid var(--bd); padding-top: 12px; }
.pm-qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.pm-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--bd); padding-top: 12px; }
.pm-total b { font-size: 1.3rem; }
.pm-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--line-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: color-mix(in srgb, var(--c) 15%, var(--line-2)); }
.stepper input { width: 52px; text-align: center; border: 0; font-weight: 800; font-size: 1rem; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.sm button { width: 30px; height: 30px; }
.stepper.sm span { min-width: 34px; text-align: center; font-weight: 800; }
@media (max-width: 720px) {
  .pm { grid-template-columns: 1fr; }
  .pm-media { padding: 0; }
  .pm-main { border-radius: 0; }
  .pm-thumbs { padding: 0 12px 10px; }
  .pm-info { padding: 18px 18px 22px; }
  .product-modal { max-height: 94vh; overflow-y: auto; }
}

/* Carrito */
.cart-modal { max-width: 500px !important; }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ci { display: flex; gap: 12px; align-items: center; }
.ci-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; color: var(--sub); flex: none; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ci-info b { font-size: .93rem; }
.ci-total { white-space: nowrap; }
.coupon-box { margin-bottom: 14px; }
.coupon-in { display: flex; gap: 8px; }
.coupon-in .input { text-transform: uppercase; }
.coupon-ok { display: flex; align-items: center; gap: 8px; background: #f0fdf4; color: #15803d; padding: 10px 12px; border-radius: 12px; font-size: .9rem; }
.coupon-ok .link { margin-left: auto; color: #15803d; }
.totals { border-top: 1px solid var(--bd); padding: 12px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; font-size: .93rem; }
.totals .disc { color: #16a34a; font-weight: 700; }
.totals .grand { font-size: 1.15rem; }
.totals .grand b { font-size: 1.35rem; }
.totals .alt { color: var(--sub); font-size: .85rem; }
.back-link { background: none; border: 0; color: var(--sub); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 16px; }
.loc-btn.ok { background: #dcfce7; color: #15803d; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--bd); border-radius: 14px; cursor: pointer; transition: .15s; height: 100%; }
.pay-card .ico { color: var(--sub); }
.pay-card b { font-size: .9rem; }
.pay-card small { font-size: .72rem; color: var(--sub); line-height: 1.3; }
.pay-opt input:checked + .pay-card { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.pay-opt input:checked + .pay-card .ico { color: var(--c); }
.pay-opt input:focus-visible + .pay-card { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.bank-info { background: color-mix(in srgb, var(--c) 7%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.bank-info b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.bank-info p { margin-bottom: 4px; }
.summary { background: var(--line-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; margin-bottom: 4px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.success-ico { width: 84px; height: 84px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; animation: pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.success h3 { font-size: 1.3rem; }
.success-total { font-size: 1.6rem; font-weight: 800; margin: 4px 0 10px; }

.not-found { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px; }
.not-found .empty-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; }
.toasts { bottom: 92px; }

/* ---- Modo oscuro: avisos de color ---- */
body.dark .coupon-ok { background: rgba(34, 197, 94, .14); color: #86efac; }
body.dark .coupon-ok .link { color: #86efac; }
body.dark .loc-btn.ok { background: rgba(34, 197, 94, .16); color: #86efac; }
body.dark .success-ico { background: rgba(34, 197, 94, .16); color: #4ade80; }
body.dark .totals .disc, body.dark .pm-stock { color: #4ade80; }
body.dark .stars .off, body.dark .star-pick button { color: #334155; }
body.dark .star-pick button.on { color: #0ea5e9; }
body.dark .shop-head.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
body.dark .pm-close { background: rgba(15, 23, 42, .85); color: #f1f5f9; }
body.dark .stepper input { color: var(--text); }
body.dark .stars { color: #38bdf8; }
body.dark .pm-stock.low { color: #7dd3fc; }
.foot-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-legal { font-size: .82rem; color: var(--sub); }

/* ============ Personalización avanzada (plan Pro) ============ */
/* Fondos premium */
body.bg-mesh { background:
  radial-gradient(600px 420px at 0% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%),
  radial-gradient(520px 420px at 100% 30%, color-mix(in srgb, var(--c) 16%, #38bdf8 10%), transparent 70%),
  radial-gradient(700px 520px at 40% 100%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%), var(--sbg); background-attachment: fixed; }
body.bg-diagonal { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, transparent) 0 14px, transparent 14px 34px), var(--sbg); }
body.bg-waves { background:
  radial-gradient(circle at 50% 100%, transparent 18px, color-mix(in srgb, var(--c) 14%, transparent) 19px 21px, transparent 22px) 0 0 / 48px 24px, var(--sbg); }
body.bg-image { background: linear-gradient(color-mix(in srgb, var(--sbg) calc(var(--ov, .55) * 100%), transparent), color-mix(in srgb, var(--sbg) calc(var(--ov, .55) * 100%), transparent)), var(--bgimg) center / cover no-repeat, var(--sbg); background-attachment: fixed; }
@media (max-width: 760px) { body.bg-image, body.bg-mesh { background-attachment: scroll; } }

/* Tipografía */
body.custom-font, body.custom-font .btn, body.custom-font .input, body.custom-font .textarea, body.custom-font .chip { font-family: var(--store-font); }

/* Bordes */
body.r-soft .hero-card, body.r-soft .pcard, body.r-soft .rv, body.r-soft .review-form, body.r-soft .modal { border-radius: 12px; }
body.r-soft .chip, body.r-soft .meta-chip, body.r-soft .float-cart { border-radius: 10px; }
body.r-soft .pimg, body.r-soft .pm-main { border-radius: 8px; }
body.r-square .hero-card, body.r-square .pcard, body.r-square .rv, body.r-square .review-form, body.r-square .modal,
body.r-square .chip, body.r-square .meta-chip, body.r-square .btn, body.r-square .input, body.r-square .textarea,
body.r-square .input-group, body.r-square .cart-btn, body.r-square .quick-add, body.r-square .float-cart,
body.r-square .pm-main, body.r-square .pm-thumb, body.r-square .pay-card, body.r-square .stepper, body.r-square .theme-toggle { border-radius: 3px !important; }
body.r-square .logo-box { border-radius: 6px !important; }

/* Diseño del catálogo */
body.l-large .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
body.l-large .pbody h3 { font-size: 1.05rem; }
@media (max-width: 520px) { body.l-large .grid { grid-template-columns: 1fr; } }
body.l-list .grid { grid-template-columns: 1fr; gap: 10px; max-width: 760px; }
body.l-list .grid .pcard { flex-direction: row; }
body.l-list .grid .pimg { width: 128px; flex: none; aspect-ratio: 1; }
body.l-list .grid .pbody { justify-content: center; }
body.l-list .grid .quick-add { width: 32px; height: 32px; right: 6px; bottom: 6px; }

/* Botón compartir (flyer) en el detalle del producto */
.pm-share { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font: 700 .82rem inherit; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.pm-share:hover { border-color: var(--c); color: var(--c); }

/* Permiso para recibir emails en el checkout */
.optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .84rem; color: var(--sub); cursor: pointer; line-height: 1.4; }
.optin input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--c); }

/* Envíos */
.pm-ship { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--sub); }
.totals .ship-inc span:last-child { color: var(--sub); font-weight: 600; }
.deliv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.deliv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.deliv-opt > span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; height: 100%; }
.deliv-opt > span b { font-size: .9rem; } .deliv-opt > span small { font-size: .76rem; color: var(--sub); }
.deliv-opt input:checked + span { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.deliv-opt input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
