/* =====================================================================
   GANK · Tarjeta de producto simple (v1 · 2026-09-25)
   - Sin carrito, comparar, vista rápida ni estrellas (se quitaron en .tpl).
   - Disponibilidad como línea bajo el precio (gank-availability.tpl).
   - Precio con signo y centavos en superíndice (gank-price.tpl).
   - Comparar oculto también en header, barra lateral y sticky.
   Se carga al final de stylesheets.tpl, después de theme.css y custom.css.
   ===================================================================== */

/* ---------- 1. Etiquetas sobre la foto: nunca se ocultan en hover ---------- */
.tvproduct-wrapper:hover .tvproduct-flags,
.tvproduct-wrapper .tvproduct-flags {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---------- 2. Texto de la tarjeta alineado a la izquierda (grid) ---------- */
.tvproduct-wrapper.grid .tvproduct-info-box-wrapper,
.tvproduct-wrapper.grid-2 .tvproduct-info-box-wrapper {
    text-align: left;
    padding: 10px 12px 14px;
}
.tvproduct-wrapper.grid .tvproduct-name.product-title a h6,
.tvproduct-wrapper.grid-2 .tvproduct-name.product-title a h6 {
    color: #222;
    font-size: 14px !important;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tvproduct-wrapper.grid .tvproduct-name-price-wrapper,
.tvproduct-wrapper.grid-2 .tvproduct-name-price-wrapper {
    text-align: left;
}

/* ---------- 3. Precio estilo Amazon ---------- */
.gank-price {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
    white-space: nowrap;
}
.gank-price__cur,
.gank-price__cents {
    font-size: 0.55em;
    line-height: 1;
    margin-top: 0.12em;
}
.gank-price__cur { margin-right: 1px; }
.gank-price__cents { margin-left: 1px; }
.gank-price__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.tvproduct-wrapper .product-price-and-shipping .price {
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
}
.tvproduct-wrapper .product-price-and-shipping .regular-price {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

/* ---------- 4. Disponibilidad bajo el precio ---------- */
.gank-avail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.gank-avail::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.gank-avail--store { color: #18794e; }
.gank-avail--online { color: #6b7280; }
.tvproduct-wrapper.list .gank-avail,
.tvproduct-wrapper.catelog .gank-avail,
.tvproduct-wrapper.list-2 .gank-avail {
    justify-content: inherit;
}

/* ---------- 5. Comparar fuera de todo el sitio ---------- */
.tvcmsdesktop-view-compare,
.tvcmsmobile-view-compare,
.tvsticky-compare,
.tvcmssticky-compare,
.tvheader-compare,
.tvmobile-compare,
.tvcompare-wrapper {
    display: none !important;
}

/* ---------- 5b. Reseñas fuera: enlace suelto "Write your review" en la ficha ---------- */
.product-actions .open-comment-form {
    display: none !important;
}

/* ---------- 6. Móvil ---------- */
@media (max-width: 767px) {
    .tvproduct-wrapper.grid .tvproduct-info-box-wrapper,
    .tvproduct-wrapper.grid-2 .tvproduct-info-box-wrapper {
        padding: 8px 9px 12px;
    }
    .tvproduct-wrapper.grid .tvproduct-name.product-title a h6,
    .tvproduct-wrapper.grid-2 .tvproduct-name.product-title a h6 {
        font-size: 12.5px !important;
        margin-bottom: 6px;
    }
    .tvproduct-wrapper .product-price-and-shipping .price {
        font-size: 19px !important;
    }
    .gank-avail {
        font-size: 11px;
        margin-top: 6px;
    }
}
