/* ============================================
   Roker Half Image Grid - Estilos (dos filas, sin borde entre ellas)
   ============================================ */

/* ---------- Grid Layout ---------- */
.roker-catalogo-grid {
    display: grid;
    gap: 20px;
}

.roker-grid-fullwidth {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.roker-catalogo-grid {
    grid-template-columns: repeat(var(--columns, 3), 1fr);
}

@media (max-width: 768px) {
    .roker-catalogo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .roker-catalogo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Tarjetas ---------- */
.roker-half-image-item {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.roker-half-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.roker-half-image-item img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
    display: block;
    transition: opacity 0.3s ease;
}

.roker-half-image-item img:hover {
    opacity: 0.9;
}

/* ---------- Fila 1: Título ---------- */
.roker-product-title {
    background-color: #eeeeee;
    color: #444;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #e0e0e0; /* Mantiene la línea superior (separación de la imagen) */
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ---------- Fila 2: Botón WhatsApp (sin línea divisoria) ---------- */
.roker-whatsapp-row {
    background-color: #eeeeee;
    padding: 0 15px 15px 15px; /* padding superior 0, para que quede pegado al título */
    text-align: center;
}

.roker-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /*background-color: #25D366;*/
	/*background-color: #128C7E;*/
	/*background-color: #4FACFE;*/
	background-color: #13417A;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.roker-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.02);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.roker-whatsapp-btn svg {
    display: block;
    fill: currentColor;
}

/* ---------- Lightbox (sin cambios) ---------- */
.roker-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.roker-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.roker-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.roker-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.roker-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: #ffffff !important;
    background-color: #222222 !important;
    font-size: 18px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    line-height: 1 !important;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.roker-lightbox-close:hover {
    background-color: #000000 !important;
    transform: scale(1.1);
}