:root {
    --saber-roxo: #7c3aed;
    --saber-azul: #0ea5e9;
    --saber-verde: #22c55e;
    --saber-laranja: #f97316;
    --saber-rosa: #ec4899;
    --saber-amarelo: #facc15;
    --texto: #263238;
    --fundo: #f7fbff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--texto);
    background:
        radial-gradient(circle at 8% 12%, rgba(250, 204, 21, .28), transparent 160px),
        radial-gradient(circle at 92% 8%, rgba(14, 165, 233, .22), transparent 180px),
        radial-gradient(circle at 15% 85%, rgba(34, 197, 94, .20), transparent 190px),
        radial-gradient(circle at 88% 88%, rgba(236, 72, 153, .18), transparent 190px),
        var(--fundo);
}

.loja-page {
    position: relative;
    padding: 28px 0 50px;
}

.decor-bola {
    position: absolute;
    border-radius: 999px;
    opacity: .55;
    z-index: 0;
}

.bola-1 {
    width: 80px;
    height: 80px;
    background: #fde68a;
    top: 120px;
    left: 25px;
}

.bola-2 {
    width: 110px;
    height: 110px;
    background: #bfdbfe;
    right: 30px;
    top: 240px;
}

.bola-3 {
    width: 70px;
    height: 70px;
    background: #fecdd3;
    right: 18%;
    bottom: 60px;
}

.loja-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.loja-hero {
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    border-radius: 34px;
    padding: 34px;
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .18);
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 28px;
    align-items: center;
}

.loja-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.loja-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 14px;
}

.loja-hero p {
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0;
}

.hero-card {
    background: #fff;
    color: var(--texto);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    text-align: center;
}

.hero-card-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #facc15, #fb7185);
    color: #fff;
    font-size: 2.7rem;
}

.hero-card h2 {
    font-weight: 900;
    font-size: 1.35rem;
}

.hero-card p {
    color: #64748b;
    font-size: .95rem;
}

.loja-toolbar {
    margin: 28px 0;
    background: rgba(255, 255, 255, .9);
    border-radius: 26px;
    padding: 16px;
    display: flex;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input,
.categoria-select {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
    font-weight: 700;
    background: #fff;
}

.search-box input {
    padding-left: 44px;
}

.categoria-select {
    max-width: 240px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.app-card {
    background: #fff;
    border-radius: 30px;
    padding: 24px;
    position: relative;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .10);
    transition: .25s ease;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-6px);
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--card-color);
}

.app-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: var(--card-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    margin-bottom: 18px;
}

.app-categoria {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
    font-size: .8rem;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.app-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
}

.app-card p {
    color: #64748b;
    min-height: 72px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.app-footer strong {
    color: var(--card-color);
    font-size: 1.2rem;
    font-weight: 900;
}

.btn-ver-app,
.btn-comprar-app {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    cursor: pointer;
}

.modal-app-content {
    border: none;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(250, 204, 21, .25), transparent 120px),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .18), transparent 140px),
        #ffffff;
}

.modal-app-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.8rem;
}

.modal-app-categoria {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 12px;
}

.modal-body h2 {
    font-weight: 900;
}

.modal-body p {
    color: #64748b;
}

.modal-app-preco {
    background: #f8fafc;
    border-radius: 22px;
    padding: 16px;
    margin: 20px 0;
}

.modal-app-preco small {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.modal-app-preco strong {
    font-size: 2rem;
    font-weight: 900;
    color: #16a34a;
}

.btn-comprar-app {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .loja-hero,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .loja-toolbar {
        flex-direction: column;
    }

    .categoria-select {
        max-width: 100%;
    }
}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.loja-footer {
    position: relative;
    margin-top: 70px;
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    color: #fff;
    overflow: hidden;
    padding-top: 50px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 420px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: 22px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.footer-brand p {
    margin: 0;
    opacity: .95;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
    transition: .2s;
}

.footer-col a:hover {
    transform: translateX(5px);
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    background: rgba(0,0,0,.12);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 650px;
    text-align: center;
}

/* ===================================================== */
/* DECORAÇÕES */
/* ===================================================== */

.footer-bolas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.footer-bola {
    position: absolute;
    border-radius: 50%;
    opacity: .20;
}

.bola-a {
    width: 180px;
    height: 180px;
    background: #ffffff;
    top: -50px;
    left: -40px;
}

.bola-b {
    width: 140px;
    height: 140px;
    background: #facc15;
    right: 100px;
    top: 20px;
}

.bola-c {
    width: 220px;
    height: 220px;
    background: #ec4899;
    right: -60px;
    bottom: -60px;
}


.loja-voltar {
    margin-bottom: 18px;
}

.btn-voltar-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 900;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    transition: .2s ease;
}

.btn-voltar-site:hover {
    transform: translateY(-2px);
    color: #0ea5e9;
}

/* ===================================================== */
/* RESPONSIVO */
/* ===================================================== */

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}