/*
==========================================================================
 ESTILOS PARA BLOQUE "SUELEN COMPRARSE JUNTOS"
 PREFIJO: .om-pd-bt-
==========================================================================
*/
.om-pd-bt-add-all-to-cart.loading {
    position: relative;
    cursor: progress;
    pointer-events: none; /* Evita clics repetidos */
    background-color: #cccccc !important; /* Color más tenue durante la carga */
    color: #666666 !important; /* Texto más tenue */
    opacity: 0.8;
    /* Oculta el texto real y muestra el spinner */
    text-indent: -9999px;
    overflow: hidden;
}

.om-pd-bt-add-all-to-cart.loading::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2em; /* Tamaño del spinner */
    height: 1.2em;
    margin-left: -0.6em; /* Centrar spinner */
    margin-top: -0.6em;
    border: 2px solid rgba(255, 255, 255, 0.7); /* Color del borde del spinner */
    border-top-color: #fff; /* Color de la parte animada */
    border-radius: 50%;
    animation: om-pd-bt-spin 0.8s linear infinite; /* Animación de giro */
}

@keyframes om-pd-bt-spin {
    to { transform: rotate(360deg); }
}

/* --- Contenedor Principal (Mobile-First) --- */
.om-pd-bought-together-wrapper {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #FF0000;/*#e0e0e0;*/
    border-radius: 8px;
}

.om-pd-bt-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.om-pd-bt-items-container {
    display: flex;
    flex-direction: column; /* Apilado vertical en móvil */
    gap: 0.2rem;
}

/* --- Estilo de cada producto --- */
.om-pd-bt-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.om-pd-bt-item__image {
    flex-shrink: 0; /* ¡ESTA ES LA LÍNEA CLAVE! */
}

.om-pd-bt-plus-icon {
    font-size: 1.5rem;
    color: #999;
    text-align: center; /* Centra el símbolo horizontalmente */
    /*margin: 0.1rem 0;   /* Añade un poco de espacio vertical */
}

.om-pd-bt-item__image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 0.5px solid #eee;
  	box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Sombra suave */
    transition: box-shadow 0.3s ease; /* Transición suave para cualquier cambio */  
}

.om-pd-bt-item__details {
    flex-grow: 1;
}

.om-pd-bt-item__title {
    font-size: 0.9rem;
    line-height: 1.4;
}

.om-pd-bt-item__title a {
    text-decoration: none;
    color: #333;
}

.om-pd-bt-item__title a:hover {
    color: #c80000; /* Color principal de tu marca */
}

.om-pd-bt-item__price {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-top: 0.25rem;
}
 
.om-pd-bt-item__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* El símbolo '+' solo se ve en escritorio */
/*.om-pd-bt-plus-icon {
    display: none;
}*/

/* --- Bloque de Resumen (Total y Botón) --- */
.om-pd-bt-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.om-pd-bt-summary__total {
    font-size: 1.1rem;
    font-weight: 500;
}

.om-pd-bt-summary__total .om-pd-bt-total-price {
  	font-size: 1.2rem;
  	font-weight: 700;
    color: #c80000; /* Color principal de tu marca */
}

.om-pd-bt-summary__action .button {
    width: 100%;
    text-align: center;
}

/* --- Mejoras para Pantallas Grandes (Tablet/Escritorio) --- */
@media (min-width: 769px) {
    .om-pd-bt-items-container {
        flex-direction: row;
        align-items: flex-start;
      	justify-content: center; /* Añadido para centrar el grupo si hay espacio de sobra */
      	gap: 1.5rem;
    }

    .om-pd-bt-plus-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #999;
        height: 210px;
    }

    .om-pd-bt-item {
        flex-direction: column;
        text-align: center;
        max-width: 180px;
        max-width: 210px; /* ANTES: 180px. Aumentamos el ancho máximo. */
    }

/* Hacemos que la imagen ocupe el nuevo espacio disponible */
    .om-pd-bt-item__image img {
        width: 100%;   /* La imagen ocupará todo el ancho de su contenedor */
        height: auto;  /* La altura se ajustará automáticamente para mantener la proporción */
        max-height: 210px; /* Evitamos que alguna imagen sea excesivamente alta */
    }  
  
    .om-pd-bt-item__details {
        flex-grow: 0;
    }
    
    .om-pd-bt-item__checkbox {
        margin-top: 0.5rem;
    }

    .om-pd-bt-summary {
        flex-direction: row;
        justify-content: flex-end; /* <-- Esto los agrupa a la derecha */
    	align-items: center;
    	gap: 2rem; /* <-- Añadimos un espacio coherente entre ellos */
    }

    .om-pd-bt-summary__action .button {
        width: auto;
    }
}