.gtt-post-related {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1152px, calc(100vw - 30px));
    margin: 30px 0;
    clear: both;
}

.gtt-post-related #gtt-post-related-title {
    margin: 0 0 16px;
    color: #172d3d;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}

body .gtt-post-related .woocommerce .gtt-post-related-grid.products {
    display: grid;
    grid-template-columns: repeat(var(--gtt-related-columns, var(--gtt-related-item-count, 4)), minmax(0, 1fr));
    gap: var(--gtt-product-card-gap, 12px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gtt-post-related-grid::before,
.gtt-post-related-grid::after {
    display: none !important;
}

body .gtt-post-related .gtt-post-related-grid.products > :is(.type-product, .gtt-post-related-tile) {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    float: none;
    list-style: none;
}

.gtt-post-related-tile {
    display: flex;
}

.gtt-post-related-tile > .gtt-home-recs-collection {
    flex: 1;
}

.gtt-post-related .gtt-home-recs-collection-name {
    color: #172d3d;
}

.gtt-post-related .gtt-home-recs-collection-link:is(:hover, :active, :focus-visible) .gtt-home-recs-collection-name {
    color: #55acee;
}

body .gtt-post-related .gtt-post-related-grid.products > .type-product {
    overflow: hidden;
    border: 1px solid #d8e1e7;
    border-radius: 12px;
    background: #fff;
    color: #172d3d;
}

.gtt-post-related .type-product .product-block {
    margin: 0;
    border: 0;
}

.gtt-post-related .type-product .product-meta,
.gtt-post-related .woocommerce-LoopProduct-link {
    text-align: left;
}

.gtt-post-related .type-product :is(.wrap_product_image_fs, .product-image) {
    display: block;
    aspect-ratio: 1;
}

.gtt-post-related .type-product :is(.wrap_product_image_fs, .product-image) img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.gtt-post-related .type-product :is(.name a, .woocommerce-loop-product__title) {
    color: #172d3d;
}

.gtt-post-related .type-product:is(:hover, :active, :focus-within) :is(.name a, .woocommerce-loop-product__title) {
    color: #55acee;
}

.gtt-post-related a:focus-visible {
    outline: 2px solid #2277a6;
    outline-offset: -2px;
}

.gtt-post-related > .woocommerce + .gtt-post-related-articles {
    margin-top: 28px;
}

.gtt-post-related > .gtt-home-recs-articles > .gtt-home-recs-collection-title {
    display: none;
}

.gtt-post-related-articles.new-blog .post-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
}

.gtt-post-related-articles.new-blog .post-area > .type-post {
    width: auto;
    min-width: 0;
    margin: 0;
}

.gtt-post-related-articles.new-blog .post-area::before,
.gtt-post-related-articles.new-blog .post-area::after {
    content: none;
}

.gtt-post-related-articles .post-name .entry-title a,
.gtt-post-related-articles .gtt-blog-card-title a {
    color: #172d3d;
}

.gtt-post-related-articles .post-name .entry-title a:is(:hover,:active,:focus-visible),
.gtt-post-related-articles .gtt-blog-card-title a:is(:hover,:active,:focus-visible) {
    color: #55acee;
}

@media (max-width: 991px) {
    .gtt-post-related-articles.new-blog .post-area { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gtt-post-related { --gtt-related-columns: 2; }
}

@media (max-width: 767px) {
    .gtt-post-related {
        --gtt-related-columns: 2;
        margin-block: 26px;
    }

    body.wp-theme-maxstore #main-content .gtt-post-related .woocommerce ul.products > .type-product .woocommerce-loop-product__title {
        padding: 11px 10px 0;
        font-size: 16px;
        line-height: 1.25;
        text-align: left;
    }

    body.wp-theme-maxstore .gtt-post-related .type-product .price {
        padding: 0 10px 10px;
        text-align: left;
    }

    body.wp-theme-maxstore #main-content .gtt-post-related .woocommerce ul.products > .type-product .star-rating {
        position: relative;
        inset: auto;
        float: none;
        opacity: 1;
        margin: 5px 0 3px 10px;
        transition: none;
    }

    .gtt-post-related-grid > .gtt-post-related-tile-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .gtt-post-related-articles.new-blog .post-area { grid-template-columns: minmax(0, 1fr); }
}
