/* Product cards: rounded, image-led layout based on the supplied reference. */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 390px;
    min-width: 0;
    margin: 0 auto;
    padding: 4px 4px 10px;
    overflow: hidden;
    box-sizing: border-box;
    color: #292638;
    background: #fff;
    border: 1px solid #ecebf1;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgb(36 30 56 / 5%);
}

.product-card .product-image-wrapper {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    aspect-ratio: 0.78;
    border-radius: 20px;
    background: #f2f3f7;
}

.product-card .product-image-wrapper > a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card .kitten-status {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 7px 15px;
    color: #fff;
    background: #2ecc71;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.product-card .badge-reserved { background: #f39c12; }
.product-card .badge-sold { background: #e74c3c; }

.product-card .product-card-gender {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: #6db9e8;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.product-card .product-card-gender.gender-female { background: #f28f96; }
.product-card .product-card-gender.gender-other { background: #a990df; }

.product-card .product-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 8px 0;
    align-items: stretch;
    text-align: left;
}

.product-card .cat-name {
    margin: 0 0 10px;
    color: #292638;
    font-size: clamp(1.2rem, 1.55vw, 1.8rem);
    font-weight: 750;
    line-height: 1.2;
    text-align: left !important;
    align-self: stretch;
}

.product-card .cat-specs {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 12px;
    color: #393648;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    line-height: 1.4;
}

.product-card .cat-coat,
.product-card .cat-age {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.product-card .cat-coat-icon,
.product-card .cat-age-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #c9bfd5;
}

.product-card .cat-coat-icon { fill: currentColor; }
.product-card .cat-age-icon { fill: currentColor; }

.product-card .cat-price {
    margin: auto 0 12px;
    color: #292638;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.25;
}

.product-card .cat-price .price {
    display: block;
    margin: 0;
    color: inherit;
    font-weight: inherit;
}

.product-card .meet-me-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 8px 16px;
    box-sizing: border-box;
    color: #211d2b;
    background: #edf053;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.product-card .meet-me-button:hover {
    color: #211d2b;
    background: #edf053;
}

.product-card .meet-me-button:focus-visible {
    color: #211d2b;
    background: #edf053;
    outline: 3px solid #59477a;
    outline-offset: 3px;
}

.product-card .meet-me-paw {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Keep sidebar cards comfortably inside their column. */
.sidebar-product-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
}

.sidebar-product-grid .product-card {
    max-width: 390px;
}

@media (max-width: 1199px) {
    .product-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .product-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 19px;
    }

    .product-card .product-image-wrapper {
        border-radius: 15px;
    }

    .product-card .product-card-content {
        padding: 10px 5px 0;
    }

    .product-card .cat-name {
        font-size: clamp(1rem, 3.4vw, 1.4rem);
    }

    .product-card .cat-specs {
        font-size: clamp(0.78rem, 2.5vw, 0.95rem);
    }

    .product-card .cat-price {
        font-size: 1.1rem;
    }

    .product-card .meet-me-button {
        min-height: 44px;
        padding: 7px 10px;
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .product-grid-container {
        gap: 9px;
    }

    .product-card {
        padding: 3px 3px 8px;
        border-radius: 16px;
    }

    .product-card .product-image-wrapper {
        border-radius: 13px;
    }

    .product-card .kitten-status {
        top: 8px;
        left: 8px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .product-card .product-card-gender {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .product-card .cat-specs {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card .meet-me-button {
        transition: none;
    }
}
