/* ==========================================================================
   Store & category pages: term hero, pinned offer, product offer, FAQ
   ========================================================================== */

.term-hero {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.term-hero__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
    padding-block: var(--space-6);
}

.term-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    padding: var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.term-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.term-hero__eyebrow {
    margin: 0 0 var(--space-1);
    font-size: var(--fs-xs);
    font-weight: var(--fw-heavy);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.term-hero__title {
    margin-bottom: var(--space-2);
    font-size: var(--fs-2xl);
}

.term-hero__intro {
    max-width: 68ch;
    margin-bottom: var(--space-3);
    color: var(--color-text-muted);
}

.term-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.term-hero__stats strong {
    font-size: var(--fs-md);
    font-weight: var(--fw-heavy);
    color: var(--color-text);
}

.term-hero__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.term-hero__domain {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

@media (max-width: 991.98px) {
    .term-hero__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-4) var(--space-5);
    }

    .term-hero__action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .term-hero__inner {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
        padding-block: var(--space-5);
    }

    .term-hero__logo {
        width: 72px;
        height: 72px;
        padding: var(--space-2);
        border-radius: var(--radius-md);
    }

    .term-hero__action {
        flex-direction: column;
        align-items: stretch;
    }

    .term-hero__action .btn {
        width: 100%;
    }
}

/* Pinned offer */
.pinned-offer {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.pinned-offer__media {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}

.pinned-offer__media img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

/* Product offer attached to a store */
.product-offer {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    margin-top: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.product-offer__media {
    background: var(--color-bg-alt);
}

.product-offer__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-offer__body {
    padding: var(--space-5);
}

.product-offer__title {
    margin: var(--space-2) 0;
    font-size: var(--fs-lg);
}

.product-offer__title a {
    color: var(--color-text);
}

.product-offer__title a:hover {
    color: var(--color-primary);
}

.product-offer__text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.product-offer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

@media (max-width: 639.98px) {
    .product-offer {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-offer__media {
        aspect-ratio: 16 / 9;
    }
}

.store_sidebar_section + .store_sidebar_section {
    margin-top: var(--space-5);
}
