/* =========================================================
   Heading-dependent SizzlinGo products
========================================================= */

.sbg-related-products {
    clear: both;
    margin: -0.15rem 0 2rem;
    padding: 1rem;
    border: 1px solid #fed7c3;
    border-radius: 0.9rem;
    background:
        linear-gradient(135deg,
            #fff8f4 0%,
            #ffffff 100%);
}

.sbg-related-products__top {
    margin-bottom: 0.8rem;
}

.sbg-related-products__top span {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: #c94d08;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sbg-related-products__top i {
    color: #ee641f;
}

.sbg-product-grid {
    display: grid;
    grid-template-columns: repeat(3,
            minmax(0, 1fr));
    gap: 0.75rem;
}

.sbg-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf2f7;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sbg-product-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.11);
}

.sbg-product-card__image {
    position: relative;
    display: block;
    height: 125px;
    overflow: hidden;
    background: #f8fafc;
}

/*
 * Existing .blog-content img styling override.
 */
.blog-content .sbg-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sbg-product-card:hover .sbg-product-card__image img {
    transform: scale(1.045);
}

.sbg-product-card__sale {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    background: #ee641f;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.sbg-product-card__body {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    padding: 0.75rem;
}

/*
 * Existing .blog-content h3 styling override.
 */
.blog-content .sbg-product-card__body h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 0.55rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #1a202c;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sbg-product-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.sbg-product-card__body h3 a:hover {
    color: #c94d08;
}

.sbg-product-card__prices {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.76rem;
    line-height: 1.2;
}

.sbg-product-card__prices del {
    color: #94a3b8;
}

.sbg-product-card__prices strong {
    color: #ee641f;
    font-size: 0.85rem;
    font-weight: 800;
}

.sbg-product-card__button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    margin-top: auto;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background: #ee641f;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sbg-product-card__button:hover {
    transform: translateY(-1px);
    background: #1a202c;
    color: #ffffff;
}

.sbg-product-card__button i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.sbg-product-card__button:hover i {
    transform: translateX(3px);
}

/* Tablet */

@media (max-width: 991px) {
    .sbg-product-grid {
        grid-template-columns: repeat(3,
                minmax(0, 1fr));
    }

    .sbg-product-card__image {
        height: 115px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sbg-related-products {
        margin-bottom: 1.7rem;
        padding: 0.8rem;
    }

    .sbg-product-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .sbg-product-card {
        display: grid;
        grid-template-columns: 115px 1fr;
    }

    .sbg-product-card__image {
        width: 115px;
        height: 100%;
        min-height: 135px;
    }

    .sbg-product-card__body {
        min-height: 135px;
        padding: 0.7rem;
    }

    .blog-content .sbg-product-card__body h3 {
        min-height: auto;
    }
}
