/**
 * Loja pública (index) — layout tipo Play Store, coerente mobile/desktop.
 */
body.store-index-body {
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Destaque da loja (hero) */
.store-hero--featured {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 0.75rem 0 1rem;
}
@media (min-width: 768px) {
    .store-hero--featured {
        padding: 1rem 0 1.25rem;
    }
}
.store-hero--featured .app-presentation {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Banners: responsivo, mesma aparência em qualquer ecrã */
.store-banner-section {
    background: #e8eaed;
    width: 100%;
}
.store-banner-carousel {
    max-width: 1200px;
    margin: 0 auto;
}
.store-banner-carousel .carousel-inner {
    border-radius: 0;
}
@media (min-width: 768px) {
    .store-banner-section {
        padding: 0.5rem 0 0.75rem;
    }
    .store-banner-carousel {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .store-banner-carousel .carousel-inner {
        border-radius: 12px;
    }
}
.store-banner-carousel .carousel-item {
    position: relative;
    background: #dadce0;
}
.store-banner-img {
    width: 100%;
    display: block;
    height: auto;
    min-height: 120px;
    max-height: 50vw;
    object-fit: cover;
    object-position: center;
    margin: 0 !important;
    vertical-align: middle;
}
/* Desktop: mais altura e menos corte (conteúdo do banner visível) */
@media (min-width: 768px) {
    .store-banner-section {
        padding: 0.75rem 1rem 1rem;
    }
    .store-banner-carousel {
        max-width: 1280px;
    }
    .store-banner-img {
        max-height: min(56vh, 520px);
        min-height: 240px;
        object-fit: contain;
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
}
@media (min-width: 1200px) {
    .store-banner-img {
        min-height: 280px;
        max-height: min(50vh, 540px);
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .store-banner-img {
        max-height: 280px;
    }
}
.store-banner-carousel .carousel-control-prev,
.store-banner-carousel .carousel-control-next {
    width: 8%;
    min-width: 2.5rem;
    opacity: 0.85;
}
.store-banner-carousel .carousel-control-prev:hover,
.store-banner-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* Lista de apps — grelha estilo loja */
.store-apps-wrap {
    flex: 1;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    scroll-margin-top: 80px;
}
.store-apps-inner {
    max-width: 1200px;
}
.store-section-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #202124;
    margin: 0 0 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e8eaed;
    letter-spacing: 0.01em;
}
.store-section-hint {
    margin: 0 0 1rem;
}
@media (min-width: 768px) {
    .store-section-title {
        font-size: 1.25rem;
    }
}

/* Sobrescreve flex antigo: grelha responsiva */
.store-apps-wrap .app-list-index {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: stretch;
    flex-wrap: unset;
}
@media (min-width: 520px) {
    .store-apps-wrap .app-list-index {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .store-apps-wrap .app-list-index {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .store-apps-wrap .app-list-index {
        grid-template-columns: repeat(4, 1fr);
    }
}
.store-apps-wrap .app-item-index {
    flex: none !important;
    max-width: none !important;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    margin: 0;
    display: block;
    height: 100%;
}
.store-apps-wrap .app-item-index:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.18);
}
.store-apps-wrap .app-item-index:hover .app-link-index {
    background: #fafafa;
}
.store-apps-wrap .app-link-index {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
    min-height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}
.store-apps-wrap .app-icon-index {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin: 0;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.store-apps-wrap .app-details-index {
    min-width: 0;
    flex: 1;
    text-align: left;
}
.store-apps-wrap .app-title-index {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-apps-wrap .app-slogan-index {
    font-size: 0.8rem;
    font-weight: 500;
    color: #01875f;
    margin: 0 0 0.2rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-apps-wrap .app-category-index {
    font-size: 0.75rem;
    color: #5f6368;
    margin: 0;
}
@media (max-width: 519px) {
    .store-apps-wrap .app-list-index {
        padding-left: 0;
    }
    .store-apps-wrap .app-item-index {
        border-radius: 10px;
    }
    .store-apps-wrap .app-icon-index {
        width: 56px;
        height: 56px;
    }
}

/* Rodapé: mesma grelha e peso visual em mobile e desktop */
.store-footer {
    background: #202124;
    color: #bdc1c6;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}
.store-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 768px) {
    .store-footer__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        padding: 2rem 1.5rem 1.5rem;
        gap: 2rem;
    }
    .store-footer__cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
}
.store-footer__brand {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    max-width: 100%;
}
.store-footer__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .store-footer__logo {
        width: 48px;
        height: 48px;
    }
}
.store-footer__name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}
@media (min-width: 768px) {
    .store-footer__name {
        font-size: 1.05rem;
    }
}
.store-footer__tagline {
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0.4rem 0 0;
    opacity: 0.9;
    color: #bdc1c6;
    max-width: 36em;
}
.store-footer__h {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aa0a6;
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.store-footer__col a {
    display: block;
    color: #e8eaed;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.store-footer__col a:hover {
    color: #8ab4f8;
}
.store-footer__wa {
    color: #81c995 !important;
}
.store-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem 1.25rem;
    font-size: 0.78rem;
    text-align: center;
    color: #9aa0a6;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    line-height: 1.5;
}
@media (min-width: 768px) {
    .store-footer__bottom {
        padding: 1rem 1.5rem 1.5rem;
        font-size: 0.8rem;
    }
}
