/* =====================================================================
   assets/css/pages/descubrir.css — "Descubrir" (estilo TikTok)
   Colores Wiime: morado #7C3AED, rosado #FE2C55, azul #2563EB
   ===================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* El fondo de la página va BLANCO (como en Inicio): Chrome usa este color para la barra de
   botones de Android. La parte de los productos (.ds-app) sigue negra. */
/* La página entera es la que se desliza (no un recuadro), así Chrome deja "jalar para actualizar" igual que en Inicio */
html { scroll-snap-type: y mandatory; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html, body { margin: 0; padding: 0; background: #000; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
button { font-family: inherit; }
:root { --ds-nav: calc(60px + env(safe-area-inset-bottom)); }

.ds-app { position: relative; background: #000; padding-bottom: var(--ds-nav); }

/* ---------- Arriba (como TikTok) ---------- */
.ds-arriba { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 14px 0 12px; }
.ds-volver { flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; display: none; align-items: center; gap: 6px; }
.ds-live-btn { flex: none; border: none; background: none; color: #fff; padding: 0 0 6px; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ds-live-ico { display: block; width: 31px; height: 29px; }
.ds-live-btn.on { color: #FE2C55; }
.ds-tabs { flex: 1; min-width: 0; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px); mask-image: linear-gradient(to right, transparent 0, #000 30px); padding-right: 2px; }
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tabs > :first-child { margin-left: auto; }   /* pocas pestañas: se pegan a la derecha, como TikTok */
.ds-tabs button { flex: none; white-space: nowrap; border: none; background: none; color: rgba(255,255,255,.65); font-weight: 700; font-size: 15.5px; padding: 6px 0 10px; position: relative; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-family: inherit; }
.ds-tabs button.on { color: #fff; }
.ds-tabs button.on::after { content: ""; position: absolute; left: 50%; width: 24px; margin-left: -12px; bottom: 3px; height: 3px; border-radius: 2px; background: #fff; }

/* ---------- Feed (desliza hacia arriba) ---------- */
.ds-feed { position: relative; min-height: calc(100vh - var(--ds-nav)); min-height: calc(100dvh - var(--ds-nav)); background: #000; }
.ds-item { position: relative; height: calc(100vh - var(--ds-nav)); height: calc(100dvh - var(--ds-nav)); width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.ds-item:not(.ds-live) .ds-fondo-foto { display: none; }   /* fondo negro, como TikTok */
.ds-fondo-foto { position: absolute; inset: -30px; background: #111 center/cover no-repeat; filter: blur(28px) brightness(.55); transform: scale(1.1); }
.ds-carril { position: absolute; inset: 0; display: flex; transition: transform .3s ease; touch-action: pan-y; will-change: transform; }
.ds-medio { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.ds-foto { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ds-foto { transition: filter .3s ease; }
.ds-foto.ds-borroso { filter: blur(6px); }   /* miniatura mientras llega la foto grande */
.ds-vid video { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.ds-play { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%) scale(1.3); font-size: 64px; color: rgba(255,255,255,.75); filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; }
.ds-vid.pausado .ds-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ds-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 2px; background: rgba(255,255,255,.25); pointer-events: none; }
.ds-prog i { display: block; height: 100%; width: 0; background: #fff; }
.ds-vid.pausado .ds-prog { height: 4px; }
.ds-sonido { position: absolute; right: 12px; top: calc(64px + env(safe-area-inset-top)); z-index: 6; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; cursor: pointer; }
.ds-flecha { position: absolute; top: 45%; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color: #fff; font-size: 16px; cursor: pointer; display: none; }
.ds-flecha.izq { left: 10px; } .ds-flecha.der { right: 10px; }
@media (hover: hover) and (pointer: fine) { .ds-flecha { display: block; } }
.ds-sombra-a { position: absolute; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(rgba(0,0,0,.5), transparent); pointer-events: none; }
.ds-sombra-b { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.ds-puntos { display: flex; justify-content: center; gap: 6px; margin: 0 -64px 10px 0; pointer-events: none; }
.ds-puntos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.ds-puntos i.on { background: #fff; }

/* Botones de la derecha */
.ds-rail { position: absolute; right: 8px; bottom: 132px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 17px; }
.ds-rb { border: none; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.6); text-decoration: none; padding: 0; font-family: inherit; }
.ds-rb i { font-size: 31px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.ds-rb.fav i { color: #FF4745; }
.ds-rb.guardado i { color: #FACC15; }
.ds-rb.pop i { animation: dsPop .35s ease-out; }
@keyframes dsPop { 40% { transform: scale(1.35); } }
.ds-av { position: relative; width: 50px; height: 50px; margin-bottom: 8px; border: none; padding: 0; background: none; cursor: pointer; }
.ds-av img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; display: block; }
.ds-av.vivo img { border: 3px solid #FE2C55; padding: 2px; background: #000; }
.ds-av em { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); font-style: normal; font-size: 9px; font-weight: 900; background: #FE2C55; color: #fff; border-radius: 4px; padding: 1px 5px; letter-spacing: .3px; }
.ds-av span { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #FE2C55; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid #000; }
.ds-av.sigo span { background: #fff; color: #FE2C55; }

/* Abajo: tienda, nombre, precio */
.ds-info { position: absolute; left: 12px; right: 74px; bottom: 66px; z-index: 5; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ds-fila-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ds-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18); border-radius: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 6px; text-shadow: none; }
.ds-chip i { font-size: 10px; }
.ds-chip.sub { background: #7C3AED; }
.ds-chip.of { background: #FE2C55; }
.ds-precio-l { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ds-precio-l > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ds-carro { margin-left: 4px; flex: none; display: inline-flex; align-items: center; gap: 5px; border: none; border-radius: 18px; background: #FE2C55; color: #fff; font-family: inherit; font-size: 12px; font-weight: 800; padding: 7px 11px; cursor: pointer; text-decoration: none; text-shadow: none; }
.ds-carro i { font-size: 12px; }
.ds-carro.sub { background: #7C3AED; }
.ds-sub-l { font-size: 12.5px; opacity: .9; margin-bottom: 2px; }
.ds-carro:disabled { opacity: .7; }
.ds-precio-l b { font-size: 19px; font-weight: 900; }
.ds-precio-l s { font-size: 13px; opacity: .7; }
.ds-precio-l span { font-size: 12.5px; opacity: .9; }
.ds-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.2); border-radius: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 7px; margin-bottom: 6px; text-shadow: none; }
.ds-tag.sub { background: #7C3AED; }
.ds-tag.of { background: #FE2C55; }
.ds-tn { font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; }
.ds-tn i { color: #60a5fa; font-size: 12px; }
.ds-nom { font-size: 14.5px; line-height: 1.35; margin: 5px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-compra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-precio { font-size: 22px; font-weight: 900; }
.ds-antes { font-size: 13px; opacity: .7; text-decoration: line-through; }
.ds-sub-info { font-size: 12.5px; opacity: .9; width: 100%; margin-top: -4px; }
.ds-btn { margin-left: auto; border: none; background: #FE2C55; color: #fff; font-weight: 800; border-radius: 22px; padding: 10px 16px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; text-shadow: none; }
.ds-btn.sub { background: #7C3AED; }
.ds-btn:disabled { opacity: .7; }
.ds-det { display: inline-block; margin-top: 2px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; text-decoration: none; }

/* Pestañita "Desliza: ver tienda" (solo el primero, una vez) */
.ds-pista { position: absolute; right: 0; top: 34%; z-index: 6; background: rgba(0,0,0,.55); border-radius: 14px 0 0 14px; padding: 9px 10px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; animation: dsPista 4s ease forwards; pointer-events: none; }
@keyframes dsPista { 0% { transform: translateX(100%); } 10%, 85% { transform: none; } 100% { transform: translateX(110%); } }
.ds-mano { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 6; background: rgba(0,0,0,.55); border-radius: 20px; padding: 8px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; pointer-events: none; animation: dsAviso 3.5s ease forwards; }
@keyframes dsAviso { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Live dentro del feed */
.ds-live .ds-fondo-foto { filter: none; inset: 0; transform: none; transition: background-image .3s; }
/* ---------- 🔴 Vista previa del live ---------- */
.ds-lv-ir { position: absolute; inset: 0; z-index: 3; }
.ds-lv-pulsa { position: absolute; left: 0; right: 0; bottom: 118px; z-index: 4; text-align: center; font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.65); pointer-events: none; }
.ds-lv-pulsa .ola { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-right: 7px; }
.ds-lv-pulsa .ola i { width: 3px; height: 14px; background: #fff; border-radius: 2px; transform-origin: bottom; animation: dsLvOla .9s ease-in-out infinite; }
.ds-lv-pulsa .ola i:nth-child(2) { animation-delay: .2s; }
.ds-lv-pulsa .ola i:nth-child(3) { animation-delay: .4s; }
.ds-lv-abajo { position: absolute; left: 12px; right: 70px; bottom: 16px; z-index: 4; color: #fff; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.ds-lv-chips { display: flex; gap: 6px; margin-bottom: 7px; }
.ds-lv-chips span { font-size: 12px; font-weight: 800; border-radius: 4px; padding: 3px 7px; text-shadow: none; }
.ds-lv-chips .vivo { background: #FE2C55; color: #fff; }
.ds-lv-chips .sigo { background: #fff; color: #161823; }
.ds-lv-titulo { font-size: 16px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-lv-quien { font-size: 13px; font-weight: 600; opacity: .9; margin-top: 3px; }
.ds-lv-quien i { color: #2563EB; font-size: 11px; }
@keyframes dsLvOla { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.ds-envivo { position: absolute; left: 12px; top: calc(62px + env(safe-area-inset-top)); z-index: 5; display: flex; gap: 6px; }
.ds-envivo span { background: #FE2C55; font-weight: 900; font-size: 12px; border-radius: 5px; padding: 4px 8px; }
.ds-entrar { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 5; background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.65); color: #fff; border-radius: 30px; padding: 12px 22px; font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ds-entrar i { color: #FE2C55; }
.ds-live .ds-rail { bottom: 132px; }

/* Mensajes (cargando, vacío) */
.ds-msg { height: calc(100vh - var(--ds-nav)); height: calc(100dvh - var(--ds-nav)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 0 30px; color: #ddd; font-size: 15px; scroll-snap-align: start; }
.ds-msg i { font-size: 36px; color: #7C3AED; }
.ds-msg a, .ds-msg button { background: #FE2C55; color: #fff; border: none; border-radius: 20px; padding: 10px 18px; font-weight: 800; text-decoration: none; font-size: 14px; cursor: pointer; }
.ds-cargando { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: dsGira .9s linear infinite; }
@keyframes dsGira { to { transform: rotate(360deg); } }

/* ---------- Ventana "Ver tienda" ---------- */
.ds-fondo { position: fixed; inset: 0; z-index: 1070; background: rgba(0,0,0,.45); }
.ds-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1071; height: 78%; background: #fff; color: #161823; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: dsSube .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
.ds-hoja[hidden], .ds-fondo[hidden] { display: none; }
@keyframes dsSube { from { transform: translateY(100%); } to { transform: none; } }
.ds-asa { width: 40px; height: 5px; border-radius: 3px; background: #d4d4d8; margin: 8px auto 10px; flex: none; }
.ds-hoja-cab { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; border-bottom: 1px solid #f0f0f3; flex: none; }
.ds-hoja-cab img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #eee; }
.ds-hoja-cab .info { flex: 1; min-width: 0; }
.ds-hoja-cab b { font-size: 15.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-hoja-cab b i { color: #2563EB; font-size: 12px; }
.ds-hoja-cab small { font-size: 12px; color: #71717a; }
.ds-hoja-cab .seguir { border: none; background: #FE2C55; color: #fff; font-weight: 800; border-radius: 16px; padding: 8px 13px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ds-hoja-cab .seguir.sigo { background: #f1f1f4; color: #161823; }
.ds-hoja-cab .ver { color: #7C3AED; font-size: 12px; font-weight: 800; text-decoration: none; display: block; margin-top: 2px; }
.ds-hoja-tabs { display: flex; gap: 18px; padding: 10px 14px 0; border-bottom: 1px solid #f0f0f3; flex: none; overflow-x: auto; }
.ds-hoja-tabs button { border: none; background: none; font-weight: 700; font-size: 13.5px; color: #888; padding: 0 0 8px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.ds-hoja-tabs button.on { color: #161823; border-color: #161823; }
.ds-hoja-cuerpo { flex: 1; overflow-y: auto; padding: 6px; }
.ds-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ds-g { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #f4f4f6 center/cover no-repeat; display: block; }
.ds-g b { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 5px; }
.ds-g em { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; border-radius: 4px; padding: 1px 5px; background: #7C3AED; }
.ds-g em.of { background: #FE2C55; }
.ds-hoja-vacio { text-align: center; color: #888; font-size: 13.5px; padding: 40px 20px; }
.ds-hoja-vacio a { display: inline-block; margin-top: 12px; background: #FE2C55; color: #fff; border-radius: 18px; padding: 9px 16px; font-weight: 800; text-decoration: none; }
.ds-mas { display: block; margin: 10px auto; border: 1.5px solid #e4e4e7; background: #fff; border-radius: 18px; padding: 8px 18px; font-weight: 700; cursor: pointer; }

/* Aviso pequeño (agregado al carrito, etc.) */
.ds-toast { position: fixed; left: 50%; bottom: calc(var(--ds-nav) + 16px); transform: translateX(-50%); z-index: 1080; background: #161823; color: #fff; border-radius: 22px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }
.ds-toast[hidden] { display: none; }
.ds-toast a { color: #FE2C55; text-decoration: none; font-weight: 800; }

/* ---------- Menú de abajo NEGRO (como TikTok) ---------- */
.bottom-nav-mobile { position: fixed; left: 0; right: 0; bottom: 0; height: var(--ds-nav); padding-bottom: env(safe-area-inset-bottom); background: #000 !important; border-top: 1px solid #1c1c1c !important; z-index: 1060; display: flex; align-items: center; justify-content: space-around; }   /* negro en Inicio (como TikTok); blanco en las demás páginas */
.bottom-nav-mobile .bn-item { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.72) !important; text-decoration: none; }
.bottom-nav-mobile .bn-item i { font-size: 21px; }
.bottom-nav-mobile .bn-item.active { color: #fff !important; }
.bottom-nav-mobile .mmc-centro { font-size: 0 !important; }
.bottom-nav-mobile .mmc-centro-btn { background: #fff !important; color: #000 !important; border-left: 3px solid #FE2C55; border-right: 3px solid #7C3AED; width: 46px !important; height: 30px !important; border-radius: 9px !important; }
.bottom-nav-mobile .mmc-centro-btn i { font-size: 16px !important; }
.bottom-nav-mobile .mmc-badge { border-color: #000 !important; }

/* ---------- Estilo TikTok: texto, disco, reloj y barrita de compra ---------- */
.ds-desc { font-size: 14px; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-desc b { font-weight: 700; }
.ds-musica { font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; gap: 6px; opacity: .95; white-space: nowrap; overflow: hidden; }
.ds-chip.caja { background: #2563EB; }
.ds-disco { width: 46px; height: 46px; border-radius: 50%; background: #222; border: 9px solid #333; overflow: hidden; display: block; animation: dsDisco 5s linear infinite; }
.ds-disco img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
@keyframes dsDisco { to { transform: rotate(360deg); } }
.ds-reloj { position: absolute; left: 12px; top: calc(60px + env(safe-area-inset-top)); z-index: 5; background: rgba(0,0,0,.55); border-radius: 8px; padding: 5px 9px; font-size: 12.5px; font-weight: 800; }
.ds-reloj i { color: #c4b5fd; margin-right: 3px; }
.ds-ancla { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 7; height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 7px; border-radius: 10px; background: rgba(38,38,44,.92); color: #fff; text-decoration: none; font-size: 13px; }
.ds-ancla img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; background: #333; }
.ds-ancla .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-ancla .t b { font-weight: 800; }
.ds-ancla-ir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.ds-ancla .p { flex: none; font-weight: 900; color: #FE2C55; }
.ds-ancla .p.sub { color: #c4b5fd; }
.ds-ancla .bt { flex: none; border: none; border-radius: 7px; background: #FE2C55; color: #fff; font-family: inherit; font-weight: 800; font-size: 12.5px; padding: 6px 11px; cursor: pointer; }
.ds-ancla .bt.sub { background: #7C3AED; }
.ds-ancla .bt.caja { background: #2563EB; }
.ds-ancla .bt:disabled { opacity: .7; }
.ds-buscar { flex: none; width: 24px; text-align: center; color: #fff; font-size: 20px; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.5); padding-bottom: 6px; }

/* ---------- Computadora: columna al centro, sin menú de abajo ---------- */
@media (min-width: 768px) {
  html, body { background: #000; }   /* en computadora los lados siguen negros */
  :root { --ds-nav: 0px; }
  .bottom-nav-mobile { display: none; }
  .ds-app { width: min(480px, 100vw); margin: 0 auto; border-left: 1px solid #1d1d1d; border-right: 1px solid #1d1d1d; }
  .ds-arriba { left: 50%; right: auto; width: min(480px, 100vw); transform: translateX(-50%); }
  .ds-volver { display: inline-flex; }
  .ds-hoja { left: 50%; right: auto; width: min(480px, 100vw); transform: translateX(-50%); animation: none; }
}

/* ---------- 💬 Comentarios: panel de abajo (teléfono) / a la derecha (computadora) ---------- */
.cm-fondo { position: fixed; inset: 0; z-index: 1080; background: rgba(0,0,0,.45); }
.cm-fondo[hidden], .cm-panel[hidden], .cm-pie[hidden], .cm-resp[hidden] { display: none; }
.cm-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1081; height: 72%; height: 72dvh; background: #fff; color: #161823; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: dsSube .25s ease-out; padding-bottom: env(safe-area-inset-bottom); font-family: inherit; }
.cm-agarre { width: 38px; height: 4px; border-radius: 3px; background: #ddd; margin: 7px auto 0; flex: none; }
.cm-cab { display: flex; align-items: center; justify-content: center; padding: 8px 14px 8px; position: relative; font-weight: 800; font-size: 14px; flex: none; }
.cm-x { position: absolute; right: 8px; top: 2px; border: none; background: none; font-size: 19px; color: #555; width: 38px; height: 38px; cursor: pointer; }
.cm-tabs { display: none; gap: 22px; padding: 4px 16px 0; border-bottom: 1px solid #eee; flex: none; }
.cm-tabs button { border: none; background: none; padding: 0 0 9px; font-weight: 800; font-size: 14px; color: #8a8597; cursor: pointer; border-bottom: 2px solid transparent; }
.cm-tabs button.on { color: #161823; border-bottom-color: #161823; }
.cm-prod { display: flex; align-items: center; gap: 9px; margin: 0 12px 6px; background: #F5F3FA; border-radius: 10px; padding: 7px; flex: none; }
.cm-prod-ir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.cm-prod-ir img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: #e5e5e5; }
.cm-prod-ir span { min-width: 0; display: flex; flex-direction: column; }
.cm-prod-ir b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-prod-ir em { font-style: normal; color: #FE2C55; font-size: 13px; font-weight: 800; }
.cm-comprar { flex: none; border: none; background: #FE2C55; color: #fff; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 7px 12px; text-decoration: none; cursor: pointer; }
.cm-comprar:disabled { opacity: .7; }
.cm-lista { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 8px; -webkit-overflow-scrolling: touch; }
.cm-vacio { text-align: center; color: #8a8597; font-size: 13px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cm-vacio i { font-size: 30px; color: #c9c4d6; }
.cm-vacio b { color: #161823; font-size: 14.5px; }
.cm-c { display: flex; gap: 10px; margin: 12px 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cm-c.resp { margin: 8px 0; }
.cm-foto { width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; background: #2563EB; }
.cm-c:nth-child(3n+2) .cm-foto:not(.tienda) { background: #FE2C55; }
.cm-c:nth-child(3n) .cm-foto:not(.tienda) { background: #0ea5a4; }
.cm-foto.tienda { background: #fff; border: 2px solid #7C3AED; }
.cm-foto img { width: 100%; height: 100%; object-fit: cover; }
.cm-c.resp .cm-foto { width: 26px; height: 26px; font-size: 11.5px; }
.cm-cuerpo { flex: 1; min-width: 0; }
.cm-nombre { font-size: 12.5px; color: #8a8597; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cm-b { font-style: normal; background: #7C3AED; color: #fff; font-size: 9.5px; font-weight: 900; border-radius: 4px; padding: 1px 5px; letter-spacing: .2px; }
.cm-b.compro { background: #16a34a; }
.cm-b.compro i { font-size: 8px; }
.cm-cuerpo p { font-size: 14px; margin: 2px 0 4px; line-height: 1.35; overflow-wrap: anywhere; color: #161823; }
.cm-c.es-tienda .cm-cuerpo p { color: #3b2a63; }
.cm-meta { font-size: 12px; color: #8a8597; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.cm-meta button { border: none; background: none; padding: 0; font: inherit; color: #555; font-weight: 700; cursor: pointer; }
.cm-meta .cm-borrar { color: #b4afc0; display: none; }
.cm-like { flex: none; border: none; background: none; display: flex; flex-direction: column; align-items: center; color: #8a8597; font-size: 11px; gap: 2px; padding: 6px 2px 0; cursor: pointer; min-width: 26px; }
.cm-like i { font-size: 15px; }
.cm-like.on i { color: #FE2C55; }
.cm-hilo { margin-left: 44px; }
.cm-mas { border: none; background: none; padding: 0 0 6px; font-size: 12px; color: #8a8597; font-weight: 700; cursor: pointer; }
.cm-mas i { font-size: 9px; }
.cm-pie { flex: none; border-top: 1px solid #eee; padding-top: 8px; }
.cm-rapidas { display: flex; gap: 6px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
.cm-rapidas::-webkit-scrollbar { display: none; }
.cm-rapidas button { flex: none; border: 1.5px solid #ece9f2; background: #fff; border-radius: 14px; padding: 5px 10px; font-size: 12px; font-weight: 700; color: #4B3F66; cursor: pointer; }
.cm-resp { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 6px; font-size: 12px; color: #6b6478; }
.cm-resp button { border: none; background: none; color: #8a8597; font-size: 14px; cursor: pointer; }
.cm-form { display: flex; align-items: center; gap: 9px; padding: 0 12px 12px; }
.cm-form input { flex: 1; min-width: 0; border: none; outline: none; background: #F2F1F5; border-radius: 20px; padding: 10px 14px; font-size: 16px; color: #161823; font-family: inherit; }
.cm-enviar { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: #FE2C55; color: #fff; font-size: 14px; cursor: pointer; }
.cm-enviar:disabled { opacity: .6; }
.cm-resenas .resena-item { padding: 12px 0; border-bottom: 1px solid #f0eef4; font-size: 13.5px; }
.cm-resenas .resena-cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.cm-resenas .resena-cabeza span { color: #8a8597; font-size: 12px; }
.cm-resenas .resena-comentario { margin: 5px 0 0; line-height: 1.4; }
.cm-resenas .resena-foto { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; margin-top: 7px; cursor: pointer; }
.cm-todas { display: block; text-align: center; margin: 14px 0; color: #7C3AED; font-weight: 800; font-size: 13.5px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cm-c:hover .cm-borrar { display: inline; } }
@media (min-width: 768px) {
  .cm-panel { left: auto; top: 0; height: 100vh; height: 100dvh; width: min(440px, 100vw); border-radius: 0; animation: cmEntra .2s ease-out; box-shadow: -8px 0 30px rgba(0,0,0,.35); padding-bottom: 0; }
  .cm-agarre { display: none; }
  .cm-cab { justify-content: flex-start; padding: 16px 16px 6px; font-size: 16px; }
  .cm-x { top: 9px; }
  .cm-tabs { display: flex; }
  .cm-prod { margin: 12px 16px 4px; }
  .cm-lista { padding: 0 16px 8px; }
  .cm-meta .cm-borrar { display: inline; }
}
@media (min-width: 1000px) {
  html.cm-on .ds-app { margin-left: calc((100vw - 440px - min(480px, 100vw)) / 2); }
  html.cm-on .ds-arriba { left: calc((100vw - 440px) / 2); }
}
html.cm-on .swal2-container { z-index: 1100 !important; }   /* el aviso de "¿Borrar?" va encima del panel */
html.cm-on .ds-toast { z-index: 1095; bottom: auto; top: calc(70px + env(safe-area-inset-top)); }
@keyframes cmEntra { from { transform: translateX(100%); } to { transform: none; } }


/* ---------- Información del producto: tienda, nombre y etiquetas de colores ---------- */
.ds-item:not(.ds-live) .ds-info { bottom: 76px; }
.ds-info .ds-tn { font-size: 14.5px; gap: 7px; }
.ds-info .ds-tn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; background: #fff; flex: none; }
.ds-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 900; line-height: 1.25; }
.ds-etq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ds-etq span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; border-radius: 7px; padding: 4px 8px; color: #fff; text-shadow: none; }
.ds-etq span i { font-size: 10.5px; }
.ds-etq .e1 { background: #7C3AED; }
.ds-etq .e2 { background: #2563EB; }
.ds-etq .e3 { background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ds-etq .e3 i { color: #FACC15; }

/* ---------- Barra blanca: precio + Agregar al carrito ---------- */
.ds-barra { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 7; height: 54px; border-radius: 14px; background: #fff; color: #161823; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ds-barra .pr { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.ds-barra .pr .fila { display: flex; align-items: baseline; gap: 6px; }
.ds-barra .pr .envio { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; font-weight: 700; color: #6b6478; white-space: nowrap; }
.ds-barra .pr .envio.gratis { color: #16a34a; }
.ds-barra .pr .envio.camino { color: #7C3AED; }
.ds-barra .pr b { font-size: 20px; font-weight: 900; white-space: nowrap; }
.ds-barra .pr b.sub { color: #7C3AED; }
.ds-barra .pr small { font-size: 11px; color: #6b6478; font-weight: 600; }
.ds-barra .pr s { font-size: 12px; color: #9a93a8; white-space: nowrap; }
.ds-barra .pr em { font-style: normal; background: #FFE4EA; color: #FE2C55; border-radius: 5px; font-size: 10.5px; font-weight: 900; padding: 1px 5px; }
.ds-barra .bt { margin-left: auto; flex: none; border: none; height: 42px; border-radius: 10px; padding: 0 15px; background: #FE2C55; color: #fff; display: flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 900; font-size: 14px; text-decoration: none; cursor: pointer; }
.ds-barra .bt:disabled { opacity: .7; }
.ds-barra .bt.sub { background: #7C3AED; }
.ds-barra .bt.caja { background: #2563EB; }
@media (max-width: 360px) { .ds-barra .bt { padding: 0 11px; font-size: 13px; } .ds-barra .pr b { font-size: 18px; } }
