/*
 * PetCareHub — Shortcode Styles
 * Styles for [shop_by_pet_cards] and [whatsapp_cta_banner].
 * Previously injected inline on every page load; now enqueued once.
 */

/* =========================================================
   PCH Section Wrapper
   Mirrors theme container breakpoints exactly.
   ========================================================= */
.pch-section-wrap {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (max-width: 1499.98px) {
    .pch-section-wrap { max-width: 1250px; }
}
@media (max-width: 1199.98px) {
    .pch-section-wrap { max-width: 960px; }
}
@media (max-width: 991.98px) {
    .pch-section-wrap { max-width: 720px; }
}
@media (max-width: 767.98px) {
    .pch-section-wrap { max-width: 100%; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .pch-section-wrap { max-width: 540px; }
}

/* =========================================================
   [shop_by_pet_cards] — 5-column pet category grid
   ========================================================= */
.shop-by-pet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.pet-card {
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pet-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.pet-card-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #0b1f50;
}

.pet-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.pet-card-count {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin: 0 0 20px 0;
}

.pet-card-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.pet-card-link svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.pet-card:hover .pet-card-link svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .shop-by-pet-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shop-by-pet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-by-pet-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   [whatsapp_cta_banner] — WhatsApp CTA strip
   ========================================================= */
.wa-cta-banner {
    background-color: #0b1f50;
    border-radius: 24px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    flex-wrap: wrap;
}

@media (max-width: 1499.98px) {
    .wa-cta-banner { max-width: 1250px; }
}
@media (max-width: 1199.98px) {
    .wa-cta-banner { max-width: 960px; }
}
@media (max-width: 991.98px) {
    .wa-cta-banner { max-width: 720px; padding: 28px 30px; }
}
@media (max-width: 767.98px) {
    .wa-cta-banner { max-width: 100%; padding: 24px 20px; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .wa-cta-banner { max-width: 540px; }
}

.wa-cta-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.wa-cta-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin: 0;
}

.wa-cta-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.wa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.wa-cta-btn-primary {
    background-color: #ff8c15;
    color: #0b1f50;
}

.wa-cta-btn-primary:hover {
    background-color: #ffffff;
    color: #0b1f50;
}

@media (max-width: 768px) {
    .wa-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
    .wa-cta-title {
        font-size: 22px;
    }
    .wa-cta-actions {
        width: 100%;
    }
    .wa-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
