/* Siesta AI Store (/store, item and publisher pages, home page stripe). */

/* ---- Hero + search ------------------------------------------------------------------- */

/* Mirrors the /tv hero (tv.css: .tv-hero, .tv-hero-inner, .tv-hero-aside, .tv-search-input)
   so the two pages read as one system: same top padding, title size, two-column split and
   rounded search on the right. Keep the numbers in step if either one changes. */
.store-hero {
    padding: 10rem 0 2.5rem;
}
.store-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.75rem 2.5rem;
}
.store-hero-main { min-width: 0; flex: 1 1 28rem; }
.store-hero-aside {
    /* Shrinks before it wraps, but never below a usable search field. */
    flex: 0 1 26rem;
    min-width: 17rem;
}
.store-hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.store-hero-lead { max-width: 40rem; }
@media (max-width: 991.98px) {
    .store-hero { padding-top: 8.5rem; }
}
/* Below this both columns are too narrow, so the search takes the full width under the text. */
@media (max-width: 767.98px) {
    .store-hero-aside { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
    .store-hero { padding: 7.5rem 0 2rem; }
}
/* The agents store items plug into: caption and three small logos in one row under the lead. */
.store-hero-agents { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.store-hero-agents ul { display: flex; align-items: center; gap: .875rem; }
.store-hero-agents img { display: block; width: 1.5rem; height: 1.5rem; object-fit: contain; }
.store-hero-agents-caption {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--si-gray-600, #6f788b);
}

.store-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--si-primary);
    background: rgba(var(--si-primary-rgb), .1);
    padding: .35em .9em;
    border-radius: 50rem;
}

/* Same pill as .tv-search-input on /tv. */
.store-search { position: relative; }
.store-search-input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.75rem;
    border: 1px solid #e2e5f1;
    border-radius: 2rem;
    background: #fff;
    color: #0b0f19;
    font-size: 1rem;
}
.store-search-input::placeholder { color: #b4b7c9; }
.store-search-input:focus { border-color: #d4d7e5; outline: none; }
.store-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b4b7c9;
    pointer-events: none;
}
.store-search-submit:focus { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); }

/* ---- Type pills ---------------------------------------------------------------------- */

.store-types { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-type-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border: 1px solid var(--si-border-color);
    border-radius: 50rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--si-nav-link-color, var(--si-body-color));
    text-decoration: none;
    transition: border-color .15s, background-color .15s, color .15s;
}
.store-type-pill span { font-size: .75rem; opacity: .6; }
.store-type-pill:hover { border-color: var(--si-primary); color: var(--si-primary); }
.store-type-pill.active { background: var(--si-primary); border-color: var(--si-primary); color: #fff; }
.store-type-pill.active span { opacity: .85; }

.store-sidebar .nav-link.active { color: var(--si-primary); font-weight: 600; }
@media (min-width: 992px) {
    .store-sidebar .offcanvas-lg,
    .store-sidebar .store-sidebar-sticky { position: sticky; top: 105px; }
}

/* ---- Logos --------------------------------------------------------------------------- */

.store-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: .75rem;
    border: 1px solid var(--si-border-color);
    background: var(--si-secondary);
    overflow: hidden;
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-logo-sm { width: 2.75rem; height: 2.75rem; }
.store-logo-lg { width: 5.5rem; height: 5.5rem; border-radius: 1.25rem; }
/* Detail header: the logo is about as tall as the title + lead next to it */
@media (min-width: 768px) { .store-logo-lg { width: 8rem; height: 8rem; border-radius: 1.5rem; } }
@media (min-width: 992px) { .store-logo-lg { width: 9.5rem; height: 9.5rem; } }
/* Cards: a bigger logo on its own, without the tile */
.store-logo-card { width: 4rem; height: 4rem; border: 0; border-radius: .5rem; background: transparent; }
.store-logo-initial { font-weight: 700; font-size: 1.1rem; color: var(--si-primary); }
.store-logo-lg .store-logo-initial { font-size: 2rem; }

/* ---- Card ---------------------------------------------------------------------------- */

.store-card .card-body { padding: 1.25rem; }
.store-card-title { font-size: .95rem; line-height: 1.3; }
.store-card-publisher {
    display: block;
    font-size: .8125rem;
    color: var(--si-gray-600, #6f788b);
}
.store-card-desc {
    font-size: .8125rem;
    line-height: 1.5;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.min-w-0 { min-width: 0; }

.store-badge, .store-type {
    font-size: .75rem;
    font-weight: 500;
    padding: .35em .8em;
    border-radius: 50rem;
}
.store-type-search { background: rgba(99, 102, 241, .12); color: #4f46e5; }
.store-type-catalog { background: rgba(16, 185, 129, .12); color: #047857; }
.store-type-service { background: rgba(245, 158, 11, .15); color: #b45309; }
[data-bs-theme="dark"] .store-type-search { color: #a5b4fc; }
[data-bs-theme="dark"] .store-type-catalog { color: #6ee7b7; }
[data-bs-theme="dark"] .store-type-service { color: #fcd34d; }

/* ---- Detail pages -------------------------------------------------------------------- */

.store-detail { padding-top: 130px; padding-bottom: 3rem; }
.store-detail-publisher { color: var(--si-gray-600, #6f788b); text-decoration: none; }

.store-fact {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    height: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--si-border-color);
    border-radius: .75rem;
}
.store-fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--si-gray-600, #6f788b); }
.store-fact-value { font-weight: 600; color: var(--si-heading-color, inherit); }

.store-capabilities li {
    display: flex;
    gap: .75rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--si-border-color);
}
.store-capabilities li:last-child { border-bottom: 0; }
.store-capabilities .ti { font-size: 1.25rem; margin-top: .1rem; }
.store-capabilities code { font-size: .875rem; }

.store-meta { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; }
.store-meta dt { font-weight: 500; font-size: .875rem; color: var(--si-gray-600, #6f788b); }
.store-meta dd { margin: 0; font-size: .875rem; }

.store-cta-wrap { top: 105px !important; z-index: 1; }

/* ---- "Works with" agent row ---------------------------------------------------------- */

.store-works-with { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-works-with li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem .3rem .35rem;
    border: 1px solid var(--si-border-color);
    border-radius: 50rem;
    font-size: .75rem;
    font-weight: 500;
}
.store-works-with img { width: 1.25rem; height: 1.25rem; object-fit: contain; border-radius: .25rem; }

/* ---- Home page stripe ---------------------------------------------------------------- */

.store-promo {
    position: relative;
    border-radius: 1.5rem;
    padding: 3rem;
    background: radial-gradient(130% 140% at 100% 0%, rgba(99, 102, 241, .14) 0%, rgba(218, 70, 239, .06) 40%, transparent 75%), var(--si-secondary);
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .store-promo { padding: 2rem 1.25rem; border-radius: 1rem; }
}
.store-promo-cards { display: grid; gap: .75rem; }
.store-promo-cards .store-card .card-body { padding: 1rem 1.25rem; }
.store-promo-cards .store-card-desc { display: none; }
