/**
 * GA Promotion Listing
 *
 * Styles the public /promotions/ page rendered by the [ga_promotions] shortcode.
 * Scoped under .ga-promo-listing so it never leaks into other content blocks.
 */

.ga-promo-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.ga-promo-listing-empty {
    padding: 40px 16px;
    text-align: center;
    color: #555;
    font-size: 16px;
}

/* ---- Promotion section ---- */

.ga-promo-section {
    margin: 0 0 48px;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 60, 113, 0.04);
    scroll-margin-top: 120px; /* avoid sticky header overlap on anchor jump */
}

.ga-promo-section + .ga-promo-section {
    margin-top: 0;
}

.ga-promo-section-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f4;
}

.ga-promo-section-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    color: #003c71;
    font-weight: 700;
}

.ga-promo-section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.ga-promo-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #00a77e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.ga-promo-end-date {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.ga-promo-section-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    max-width: 720px;
}

/* ---- Product grid ---- */

.ga-promo-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ga-promo-product-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #eef0f4;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ga-promo-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 60, 113, 0.08);
}

.ga-promo-product-image {
    display: block;
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.ga-promo-product-image img {
    display: block;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.ga-promo-product-name {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.ga-promo-product-name a {
    color: #003c71;
    text-decoration: none;
}

.ga-promo-product-name a:hover {
    color: #00a77e;
}

.ga-promo-product-price {
    margin: 0 0 14px;
    font-size: 15px;
    color: #444;
    flex-grow: 1;
}

.ga-promo-product-price .price {
    font-weight: 600;
    color: #003c71;
}

.ga-promo-product-button {
    display: inline-block;
    padding: 10px 18px;
    background: #003c71;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.ga-promo-product-button:hover,
.ga-promo-product-button:focus {
    background: #00a77e;
    color: #ffffff;
    text-decoration: none;
}

/* ---- Responsive tweaks ---- */

@media (max-width: 768px) {
    .ga-promo-section {
        padding: 24px 16px;
    }

    .ga-promo-section-title {
        font-size: 22px;
    }

    .ga-promo-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ga-promo-product-card {
        padding: 12px;
    }
}
