/* =================================
   FlexiPets V3 — offer / product cards
   Shared by homepage + shop archive
   ================================= */

:root {
    --fp-violet: #8b5cf6;
    --fp-violet-dark: #6d35e8;
    --fp-pink: #ff5ca8;
    --fp-ink: #292b39;
    --fp-muted: #5e6578;
    --fp-border-v3: rgba(139, 92, 246, 0.18);
    --fp-soft: 0 10px 25px rgba(93, 55, 125, 0.09);
}

.fp-v3-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.fp-v3-offer,
a.fp-v3-offer,
.fp-shop-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 9px 20px rgba(91, 53, 138, 0.08);
    text-decoration: none !important;
    color: #252738;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-v3-offer:hover,
.fp-shop-offer:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(91, 53, 138, 0.14);
}

.fp-v3-offer img,
.fp-shop-offer img,
.fp-shop-offer .fp-shop-offer__img {
    width: 100%;
    height: 135px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fp-v3-offer:hover img,
.fp-shop-offer:hover img {
    transform: scale(1.04);
}

.fp-v3-offer h3,
.fp-v3-offer .woocommerce-loop-product__title,
.fp-shop-offer h3,
.fp-shop-offer .woocommerce-loop-product__title {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.25;
    font-weight: 800;
    margin: 10px 0 4px;
    color: #252738 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.fp-v3-price,
.fp-shop-offer .fp-v3-price {
    font-size: 19px;
    font-weight: 900;
    color: #272936;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fp-v3-price .woocommerce-Price-amount,
.fp-shop-offer .fp-v3-price .woocommerce-Price-amount {
    font-size: 19px;
    color: #272936 !important;
}

.fp-v3-price del,
.fp-shop-offer .fp-v3-price del {
    opacity: 0.55;
    font-size: 15px;
}

.fp-v3-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff72b6, #ff4c98);
    color: #fff !important;
    font-weight: 900;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(255, 76, 152, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-v3-offer:hover .fp-v3-shop-btn,
.fp-shop-offer:hover .fp-v3-shop-btn {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(255, 76, 152, 0.28);
}

@media (max-width: 1250px) {
    .fp-v3-offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fp-v3-offer-grid {
        grid-template-columns: 1fr;
    }
}
