/* =========================================================
   SOUTHWARD HOME — PRODUCT CARD OVERRIDES
   Keeps featured images controlled and responsive.
========================================================= */

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.home-product-card {
    min-width: 0;
}

.home-product-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #f3f3f3;
}

.home-product-image > a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.025);
}

.home-product-info {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-top: 14px;
}

.home-product-info > div {
    min-width: 0;
}

.home-product-info small {
    display: block;
    margin-bottom: 6px;
}

.home-product-info h3 {
    margin: 0;
}

.home-product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.home-product-info strong {
    white-space: nowrap;
}

.home-quick-add,
.home-printify-view,
.home-soldout {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.home-quick-add button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.home-printify-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-soldout {
    left: 12px;
    right: auto;
    top: 12px;
    bottom: auto;
    padding: 8px 10px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-story-image {
    display: block;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f3f3f3;
}

.home-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

    .home-product-image {
        height: 360px;
    }
}

@media (max-width: 900px) {
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .home-product-image {
        height: 340px;
    }

    .home-story-image {
        height: 280px;
    }
}

@media (max-width: 560px) {
    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .home-product-image {
        height: 420px;
    }

    .home-product-info {
        padding-top: 12px;
    }

    .home-story-image {
        height: 320px;
    }
}
