/* =================================================================
   assets/css/pages/producto-computadora.css
   Página del producto en COMPUTADORA (992 px o más), estilo eBay:
     · izquierda: fotos y, debajo, "¿Tienes uno para vender?" +
       Productos similares
     · derecha: título, tienda, precio, condición, Comprar / Pujar,
       Guardar, avisos y Envío, devoluciones y pagos
     · abajo: Acerca de este producto, Acerca de la tienda + Reseñas,
       Inspirado en lo que viste, Más de la tienda, También te puede gustar
   En el celular (y tabletas) no cambia nada: todo lo "pd-" se esconde.
   Colores sólidos de Wiime: morado #7C3AED, azul #2563EB, rosa #FE2C55.
   ================================================================= */
.pd-live, .pd-bajo-galeria, .pd-vendedor, .pd-condicion, .pd-fav, .pd-avisos, .pd-envio,
.pd-acerca, .pd-tienda-card, .pd-resenas-tit, .pd-abajo, .pd-en-carritos, .pd-cuenta-fav { display: none; }

@media (min-width: 992px) {
  /* ---------- Ancho de la página (igual que el inicio) ---------- */
  html body.no-sidebar.page-product .main-content { max-width: 1568px; margin-left: auto !important; margin-right: auto; padding-left: 40px; padding-right: 40px; font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; }

  /* ---------- Franja de Wiime Live ---------- */
  .pd-live { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border-radius: 10px; background: #7C3AED; color: #fff !important; text-decoration: none; font-size: 15px; margin-bottom: 18px; }
  .pd-live b { font-weight: 800; }
  .pd-live span { background: #fff; color: #6D28D9; font-weight: 700; font-size: 14px; border-radius: 20px; padding: 7px 16px; }
  .pd-live:hover span { background: #F3EEFF; }

  /* ---------- Rejilla principal ---------- */
  .page-product .product-page-grid {
    grid-template-columns: minmax(0, 1fr) 460px;
    grid-template-areas:
      "gallery buybox"
      "bajo    buybox"
      "info    info";
    gap: 0 40px;
  }
  .pd-bajo-galeria { display: block; grid-area: bajo; min-width: 0; }
  .page-product .product-left-col { grid-area: info; }

  /* ---------- Fotos ---------- */
  .page-product .gallery-thumbs { width: 92px; gap: 10px !important; }
  .page-product .gallery-thumb { border-radius: 12px; }
  .page-product .gallery-thumb.active { border-color: #161823; }
  .page-product .gallery-main-wrap { border: none; border-radius: 16px; background: #f3f3f5; }
  .page-product .gallery-main-img { aspect-ratio: 5 / 4; }
  .pd-en-carritos { display: inline-block; position: absolute; left: 16px; top: 16px; z-index: 3; background: #FE2C55; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 12px; }
  .pd-cuenta-fav { display: flex; align-items: center; position: absolute; top: 14px; right: 58px; z-index: 3; height: 38px; padding: 0 12px; border-radius: 20px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

  /* ---------- Debajo de las fotos ---------- */
  .pd-vender { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid #eee; font-size: 15px; flex-wrap: wrap; }
  .pd-pill { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #d0d0d4; background: #fff; border-radius: 22px; padding: 8px 18px; margin-left: 8px; color: #161823 !important; text-decoration: none; font-size: 14.5px; cursor: pointer; }
  .pd-pill:hover { border-color: #161823; }

  /* ---------- Columna derecha ---------- */
  .page-product .buy-box-sticky { position: static; display: flex; flex-direction: column; }
  .page-product .buy-box-sticky > * { order: 20; }
  .page-product .buy-box-sticky > .product-detail-title { order: 1; font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0; }
  .page-product .buy-box-sticky > .pd-vendedor { order: 2; }
  .page-product .buy-box-sticky > #productPriceBlock { order: 3; margin: 18px 0 6px; }
  .page-product .buy-box-sticky > .pd-condicion { order: 4; }
  .page-product .buy-box-sticky > .product-detail-rating { order: 5; }
  .page-product .buy-box-sticky > #qtyOptionGroup { order: 6; padding: 14px 0; border-bottom: 1px solid #eee; margin: 0; }
  .page-product .buy-box-sticky > .product-detail-actions, .page-product .buy-box-sticky > #auctionBox { order: 7; }
  .page-product .buy-box-sticky > .pd-fav { order: 8; }
  .page-product .buy-box-sticky > .pd-avisos { order: 9; }
  .page-product .buy-box-sticky > .pd-envio { order: 10; }
  /* Lo que en la computadora ahora va en otro lado (o ya no hace falta) */
  .page-product .buy-box-sticky > .card-brand-row,
  .page-product .buy-box-sticky > .free-ship-link,
  .page-product .buy-box-sticky > .free-ship-link + div,
  .page-product .buy-box-sticky > .product-detail-desc-corta,
  .page-product .buy-box-sticky > .sold-by-row,
  .page-product .buy-box-sticky > .wa-compartir-boton,
  .page-product .buy-box-sticky > .wa-compartir-icono,
  .page-product .buy-box-sticky > .shipping-links-box,
  .page-product .buy-box-sticky > .store-protections-box,
  .page-product .buy-box-sticky > .about-shop-card-v2 { display: none !important; }

  .pd-vendedor { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-top: 14px; }
  .pd-vendedor > img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4ea; background: #fff; flex: none; }
  .pd-vendedor-tx { flex: 1; min-width: 0; }
  .pd-vendedor-n { font-weight: 800; font-size: 16px; color: #161823 !important; text-decoration: none; }
  .pd-vendedor-n i { color: #2563EB; font-size: 14px; }
  .pd-vendedor-n span { font-weight: 400; color: #6b6c74; font-size: 14px; }
  .pd-vendedor-l { font-size: 14px; color: #4a4b55; margin-top: 2px; }
  .pd-vendedor-l a { color: #161823; text-decoration: underline; }
  .pd-msg { border: 1.5px solid #161823; border-radius: 20px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: #161823 !important; text-decoration: none; flex: none; }
  .pd-msg:hover { background: #F3EEFF; }
  .pd-ir { color: #161823; font-size: 18px; padding: 0 4px; }

  .page-product #productPriceBlock .product-price { font-size: 32px !important; font-weight: 800; color: #161823; }
  .page-product #productPriceBlock .discount-text { order: 3; background: #FFE4EA; color: #BE123C; padding: 3px 8px; border-radius: 6px; font-size: 14px !important; font-weight: 800; }
  .page-product #productPriceBlock .price-row { align-items: baseline; }

  .pd-condicion { display: flex; gap: 30px; font-size: 15px; padding: 14px 0; border-bottom: 1px solid #eee; }
  .pd-condicion b { font-weight: 800; }

  .page-product .product-detail-actions { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; }
  .page-product .btn-buy-now, .page-product .btn-add-cart { height: 52px; padding: 0; border-radius: 26px; font-size: 16px; font-weight: 800; }
  .page-product .btn-buy-now { background: #7C3AED; color: #fff; }
  .page-product .btn-buy-now:hover { background: #6D28D9; }
  .page-product .btn-add-cart { background: #fff; color: #6D28D9; border: 2px solid #7C3AED; }
  .page-product .btn-add-cart:hover { background: #F3EEFF; }
  .page-product .btn-pujar-detalle { background: #7C3AED; border-radius: 26px; height: 52px; font-size: 16px; font-weight: 800; }
  .page-product .btn-pujar-detalle:hover { background: #6D28D9; }

  .pd-fav { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 12px; border-radius: 26px; border: 2px solid #161823; background: #fff; color: #161823; font-size: 16px; font-weight: 800; cursor: pointer; }
  .pd-fav:hover { background: #f6f6f8; }
  .pd-fav.on i { color: #FE2C55; }

  .pd-avisos { display: block; background: #F6F5F9; border-radius: 14px; padding: 4px 18px; margin-top: 18px; }
  .pd-avisos > div { display: flex; gap: 14px; align-items: center; padding: 12px 0; font-size: 15px; }
  .pd-avisos i { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; color: #7C3AED; }

  .pd-envio { display: block; }
  .pd-envio h3 { font-size: 18px; font-weight: 800; margin: 24px 0 12px; }
  .pd-kv { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; font-size: 15px; }
  .pd-kv .k { color: #4a4b55; }
  .pd-kv small { color: #6b6c74; font-size: 13.5px; }
  .pd-kv a { color: #161823; text-decoration: underline; }
  .pd-kv .verde { color: #15803D; }
  .pd-pagos { display: flex; gap: 8px; flex-wrap: wrap; }
  .pd-pagos em { font-style: normal; border: 1px solid #d0d0d4; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; }

  /* ---------- Abajo: Acerca de este producto + Tienda y reseñas ---------- */
  .page-product .product-left-col { display: grid; grid-template-columns: 430px minmax(0, 1fr); grid-template-areas: "acerca acerca" "tienda rtit" "tienda resenas"; gap: 0 40px; align-items: start; margin-top: 10px; }
  .pd-acerca { display: block; grid-area: acerca; border: 1px solid #e4e4ea; border-radius: 14px; margin: 34px 0 44px; }
  .pd-tienda-card { display: block; grid-area: tienda; }
  .pd-resenas-tit { display: block; grid-area: rtit; margin: 0 0 18px; font-size: 25px; font-weight: 800; }
  .pd-resenas-tit span { color: #6b6c74; font-weight: 400; }
  .page-product .product-left-col > .rating-summary-block { grid-area: resenas; }
  .page-product .product-left-col > .collapse-section-title,
  .page-product .product-left-col > .collapse-section { display: none !important; }

  .pd-tabs { display: flex; border-bottom: 1px solid #e4e4ea; }
  .pd-tabs span { padding: 16px 24px; font-weight: 700; color: #6D28D9; border-bottom: 3px solid #7C3AED; }
  .pd-acerca-in { padding: 24px 30px 30px; }
  .pd-acerca-top { display: flex; justify-content: space-between; font-size: 14px; color: #4a4b55; margin-bottom: 20px; }
  .pd-acerca-top b { color: #161823; }
  .pd-acerca h3 { font-size: 23px; font-weight: 800; margin: 6px 0 16px; }
  .pd-det { display: grid; grid-template-columns: 170px 1fr 170px 1fr; gap: 12px 16px; font-size: 15px; margin-bottom: 26px; }
  .pd-det .k { color: #4a4b55; }
  .pd-det a { color: #161823; text-decoration: underline; }
  .pd-desc-fila { display: flex; gap: 30px; align-items: flex-start; }
  .pd-desc-tx { flex: 1; min-width: 0; font-size: 15px; line-height: 1.65; }
  .pd-desc-tx p { margin: 0 0 10px; white-space: normal; }
  .pd-video { width: 300px; flex: none; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
  .pd-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

  .pd-tienda-card { background: #F6F5F9; border-radius: 16px; padding: 28px 30px; }
  .pd-tienda-card h2 { font-size: 25px; font-weight: 800; margin: 0 0 18px; }
  .pd-tienda-lg { display: flex; gap: 16px; align-items: center; }
  .pd-tienda-lg img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e4e4ea; flex: none; }
  .pd-tienda-lg b { display: block; font-size: 20px; }
  .pd-tienda-lg b i { color: #2563EB; font-size: 16px; }
  .pd-tienda-lg span { font-size: 14px; color: #4a4b55; }
  .pd-tienda-inf { font-size: 14.5px; margin: 16px 0; line-height: 1.8; }
  .pd-tienda-inf i { width: 18px; color: #4a4b55; }
  .pd-tienda-inf p { margin: 6px 0 0; line-height: 1.5; color: #3f4047; }
  .pd-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 24px; font-size: 15px; font-weight: 800; margin-top: 10px; text-decoration: none; cursor: pointer; }
  .pd-btn.b1 { background: #7C3AED; color: #fff !important; border: none; }
  .pd-btn.b1:hover { background: #6D28D9; }
  .pd-btn.b2 { background: #fff; color: #6D28D9 !important; border: 2px solid #7C3AED; }
  .pd-btn.b2:hover, .pd-btn.b2.on { background: #F3EEFF; }
  .pd-calif { margin-top: 24px; }
  .pd-calif h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
  .pd-barra-dato { display: flex; align-items: center; gap: 12px; font-size: 14.5px; padding: 5px 0; }
  .pd-barra-dato span { flex: 1; }
  .pd-barra-dato i { width: 120px; height: 5px; border-radius: 3px; background: #dcdbe3; overflow: hidden; }
  .pd-barra-dato em { display: block; height: 100%; background: #161823; }
  .pd-barra-dato b { width: 52px; text-align: right; }
  .pd-calif small { color: #6b6c74; }

  /* Reseñas que ya existían: más aire */
  .page-product .rating-summary-block { margin: 0; }
  .page-product .btn-escribir-resena { border-radius: 22px; }

  /* Filas viejas que en la computadora ahora son las nuevas */
  .page-product .pm-mas-viejo, .page-product .pm-reco, .page-product #alsoLikeGrid { display: none !important; }

  /* ---------- Filas que se deslizan y cuadrícula ---------- */
  .pd-abajo { display: block; }
  .pd-sec { margin-top: 44px; }
  .pd-bajo-galeria .pd-sec { margin-top: 30px; }
  .pd-cab { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
  .pd-cab h2 { margin: 0; font-size: 25px; font-weight: 800; color: #161823; }
  .pd-cab p { margin: 2px 0 0; font-size: 16px; color: #4a4b55; }
  .pd-cab a { font-size: 14px; color: #161823; text-decoration: underline; flex: none; }
  .pd-carrusel { position: relative; }
  .pd-fila { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
  .pd-fila::-webkit-scrollbar { display: none; }
  .pd-fila.arrastrando { scroll-snap-type: none !important; scroll-behavior: auto !important; }
  .pd-fila > .pd-prod { width: 232px; flex: none; scroll-snap-align: start; }
  .pd-bajo-galeria .pd-fila > .pd-prod { width: 200px; }
  .pd-flecha { position: absolute; top: 96px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #d0d0d4; box-shadow: 0 2px 8px rgba(0,0,0,.14); color: #161823; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 3; cursor: pointer; }
  .pd-flecha.izq { left: -20px; } .pd-flecha.der { right: -20px; }
  .pd-flecha[hidden] { display: none; }
  .pd-bajo-galeria .pd-flecha { top: 80px; }
  .pd-barra { height: 16px; margin-top: 6px; position: relative; opacity: 0; transition: opacity .2s; touch-action: none; user-select: none; }
  .pd-barra::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; border-radius: 3px; background: #ececf0; }
  .pd-barra i { position: absolute; top: 5px; height: 6px; left: 0; width: 30%; border-radius: 3px; background: #a6a7ad; }
  .pd-barra:hover i, .pd-barra.arrastrando i { background: #6b6c74; }
  .pd-sec:hover .pd-barra, .pd-barra.arrastrando { opacity: 1; }
  .pd-barra[hidden] { display: none; }
  body.pd-arrastrando, body.pd-arrastrando * { user-select: none !important; cursor: default !important; }
  .pd-cuadricula { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; }

  /* ---------- Tarjeta de producto ---------- */
  .pd-prod { display: flex; flex-direction: column; color: #161823 !important; text-decoration: none; }
  .pd-prod-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f1f1f3; }
  .pd-prod-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
  .pd-prod .pd-prod-img:hover > img { transform: scale(1.03); }
  .pd-corazon { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: #161823; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; }
  .pd-corazon.active, .pd-corazon.active i { color: #FE2C55; }
  .pd-desc { position: absolute; left: 10px; bottom: 10px; background: #FE2C55; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
  .pd-tienda { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-tienda img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4ea; background: #fff; flex: none; }
  .pd-tit { font-size: 15px; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pd-prod .pd-tit:hover { text-decoration: underline; }
  .pd-precio { font-size: 19px; font-weight: 800; margin-top: 6px; }
  .pd-precio s { font-size: 13px; color: #6b6c74; font-weight: 400; margin-left: 4px; }
}
@media (min-width: 992px) and (max-width: 1250px) {
  .page-product .product-page-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 0 28px; }
  .page-product .product-left-col { grid-template-columns: 360px minmax(0, 1fr); gap: 0 28px; }
  .pd-cuadricula { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd-det { grid-template-columns: 130px 1fr 130px 1fr; }
}

/* Estrellas debajo del título (computadora) */
.pd-estrellas { display: none; }
@media (min-width: 992px) {
  .page-product .buy-box-sticky > .pd-estrellas { order: 1; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.5px; color: #555; }
  .pd-est-a { display: inline-flex; align-items: center; gap: 7px; color: #161823 !important; text-decoration: none; }
  .pd-est-i { color: #F5A623; font-size: 14px; letter-spacing: 1px; }
  .pd-est-a b { font-weight: 800; }
  .pd-est-a u { color: #6D28D9; text-underline-offset: 3px; }
  .pd-est-a:hover u { color: #4C1D95; }
  #pdResenas { scroll-margin-top: 90px; }
}

/* Botón Reportar (PC) */
@media (min-width: 992px) {
  .pd-pill.pd-reportar { color: #6b6b75 !important; }
  .pd-pill.pd-reportar:hover { border-color: #FE2C55; color: #FE2C55 !important; }
}
