/* =====================================
   Вибір Соні — final card layout
===================================== */

.featured-plants {
    padding: var(--section-space, 96px) 0;
    background: #f8f6fb;
}

.featured-plants .featured-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 220px) !important;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.featured-plants .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 220px;
    min-width: 0;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.featured-plants .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.10);
}

/* Image */
.featured-plants .product-card > a:first-child {
    display: block;
    width: 220px;
    height: 220px;
    overflow: hidden;
}

.featured-plants .product-card > a:first-child img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.featured-plants .product-card:hover > a:first-child img {
    transform: scale(1.04);
}

/* Content */
.featured-plants .product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 16px 16px;
}

.featured-plants .product-card h3 {
    margin: 0 0 9px;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.featured-plants .product-card h3 a {
    color: #333;
    text-decoration: none;
}

.featured-plants .product-price {
    margin: 0 0 12px;
    color: var(--color-primary, #8f79bb);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

.featured-plants .price-new {
    color: var(--color-primary, #8f79bb);
}

.featured-plants .price-old {
    margin-left: 6px;
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.featured-plants .product-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-primary, #8f79bb);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.featured-plants .product-button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: var(--color-primary, #8f79bb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

/* Badge stays inside the card */
.featured-plants .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-primary, #8f79bb);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* With only two products: centered pair */
.featured-plants .featured-products-grid:has(.product-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 220px) !important;
    max-width: 468px;
}

@media (max-width: 992px) {
    .featured-plants .featured-products-grid,
    .featured-plants .featured-products-grid:has(.product-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 220px) !important;
        max-width: 468px;
    }
}

@media (max-width: 576px) {
    .featured-plants {
        padding: 56px 0;
    }

    .featured-plants .featured-products-grid,
    .featured-plants .featured-products-grid:has(.product-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px;
        max-width: 460px;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .featured-plants .product-card,
    .featured-plants .product-card > a:first-child,
    .featured-plants .product-card > a:first-child img {
        width: 100%;
    }

    .featured-plants .product-card > a:first-child,
    .featured-plants .product-card > a:first-child img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .featured-plants .product-card__body {
        padding: 12px;
    }

    .featured-plants .product-card h3 {
        font-size: 17px;
    }

    .featured-plants .product-price {
        font-size: 20px;
    }

    .featured-plants .product-button {
        min-height: 36px;
        font-size: 12px;
    }
}

/* =====================================
   Вибір Соні — товару немає в наявності
   ===================================== */

.featured-plants .product-card--out-of-stock {
    background: #f1f1f1;
}

.featured-plants .product-card--out-of-stock:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}

.featured-plants .product-card--out-of-stock > a:first-child img {
    opacity: .82;
}

.featured-plants .product-card--out-of-stock h3 a,
.featured-plants .product-card--out-of-stock .product-price,
.featured-plants .product-card--out-of-stock .price-new {
    color: #8a8a8a;
}

.featured-plants .product-card--out-of-stock .product-button,
.featured-plants .product-button--disabled {
    background: #ef4b3e;
    color: #fff;
    cursor: not-allowed;
}

.featured-plants .product-card--out-of-stock .product-button:hover,
.featured-plants .product-button--disabled:hover {
    background: #ef4b3e;
}
