/* ==========================================================
   PUBLIC COMPANY WEBSITE -- STORE (.cp-store-*), Phase 1: Hero + Grid
   only (see StoreContractHtmlRenderer, the PHP half of the shared Store
   presentation contract Flutter's own native renderer also consumes).
   Owns the Store page's own Hero band and offering Grid/item cards.
   Deliberately its own classes, not a reuse of .cp-hero (06_hero.css,
   the native homepage Hero) or .cp-panel-hero (11_panel_hero.css, the
   Side Panel identity card) -- same "hero" concept, different data shape
   and a different owner (this page's Hero is generic company identity,
   assembled by CompanyPublicProfileController, not a homepage section),
   so coupling their CSS would make the Store page's own evolution
   hostage to either of those two.

   Do NOT place general capability-page chrome here (page heading, site
   header/nav) -- that's Company::public.capability_page's own shared
   shell. This file only covers what StoreContractHtmlRenderer actually
   emits.
========================================================== */

.cp-store-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--cp-radius-md);
    background: var(--cp-surface-soft) center / cover no-repeat;
    margin-bottom: 24px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.cp-store-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px;
    background: linear-gradient(180deg, transparent, rgba(10, 15, 25, .65));
    color: var(--cp-inverse);
}

.cp-store-hero__heading {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.cp-store-hero__text {
    margin: 0;
    font-size: 14px;
    opacity: .92;
    max-width: 60ch;
}

.cp-store-grid-section {
    margin-bottom: 24px;
}

.cp-store-grid-section__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--cp-heading);
}

.cp-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.cp-store-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-md);
}

.cp-store-item__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--cp-surface-soft) center / cover no-repeat;
}

.cp-store-item__image--placeholder {
    background-color: var(--cp-surface-soft);
}

.cp-store-item__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-store-item__title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--cp-heading);
}

.cp-store-item__descriptor {
    margin: 0;
    font-size: 13px;
    color: var(--cp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-store-item__price {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--cp-primary, #137A5A);
}

@media (max-width: 560px) {
    .cp-store-hero {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .cp-store-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}
