.bs-12124-container {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.bs-12124-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bs-12124-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: #242871;
}

.bs-12124-description {
    font-family: 'Montserrat', sans-serif;
    color: #54595F;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.bs-12124-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bs-12124-item, .bs-12124-placeholder-item {
    background: #fff;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bs-12124-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.bs-12124-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

.bs-12124-image {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

/* Ensure ALL images inside the container use object-fit: contain */
.bs-12124-image img,
.bs-12124-image-primary img,
.bs-12124-image-secondary img {
    max-width: 100%;
    height: auto; /* Let height be automatic by default to keep aspect ratio */
    object-fit: contain !important; /* Force contain to prevent cropping */
    transition: opacity 0.3s ease;
    display: block; /* Remove inline spacing */
    margin: 0 auto; /* Center image */
}

.bs-12124-image-primary {
    width: 100%;
    transition: opacity 0.3s ease;
}

.bs-12124-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bs-12124-item:hover .bs-12124-image-secondary {
    opacity: 1;
}

.bs-12124-item:hover .bs-12124-image-secondary + .bs-12124-image-primary,
.bs-12124-item:hover .bs-12124-image-primary:has(+ .bs-12124-image-secondary) {
    opacity: 0;
}

.bs-12124-placeholder-image {
    width: 100%;
    background-color: #eaeaea;
    margin-bottom: 15px;
}

.bs-12124-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #000;
    line-height: 1.3;
}

.bs-12124-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #6C7C69;
    margin-bottom: 15px;
}

.bs-12124-add-to-cart .button, .bs-12124-add-to-cart-placeholder {
    display: inline-block;
    width: 100%;
    background-color: #E61132;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.bs-12124-add-to-cart .button:hover, .bs-12124-add-to-cart-placeholder:hover {
    background-color: #c00e2a;
}

@media (max-width: 992px) {
    .bs-12124-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bs-12124-grid {
        grid-template-columns: 1fr;
    }
}