/* =========================================================
   PH RESET — HOME V1.1
   Visual da vitrine de ofertas.
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080b10;
    --panel: #10141b;
    --panel-soft: #151b24;
    --panel-hover: #1a2230;
    --border: #27303d;
    --text: #f5f7fa;
    --muted: #929cad;
    --accent: #3d7cff;
    --accent-hover: #5b91ff;
    --success: #65d58a;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site {
    min-height: 100vh;
    background: var(--bg);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(39, 48, 61, .9);
    background: rgba(8, 11, 16, .94);
    backdrop-filter: blur(14px);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.logo strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #aeb7c5;
    font-size: 20px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: #aeb7c5;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: #fff;
}

.header-cta,
.button,
.offer-button {
    text-decoration: none;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, transform .15s ease;
}

.header-cta:hover {
    background: var(--accent-hover);
}

.header-cta:active,
.button:active,
.offer-button:active {
    transform: scale(.98);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    min-height: 610px;
    padding: clamp(70px, 9vw, 115px) clamp(20px, 7vw, 110px);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 42%, rgba(61, 124, 255, .20), transparent 30%),
        radial-gradient(circle at 20% 100%, rgba(61, 124, 255, .08), transparent 35%),
        #0d1219;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -190px;
    top: -220px;
    border: 1px solid rgba(61, 124, 255, .10);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(61, 124, 255, .025),
        0 0 0 160px rgba(61, 124, 255, .018);
}

.hero-content {
    max-width: 720px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: #6f9cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.eyebrow {
    margin-bottom: 17px;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.01;
    letter-spacing: -2.8px;
}

.hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: #aeb7c5;
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-hover);
}

.button.secondary {
    border: 1px solid #303a49;
    background: #171d26;
    color: #f5f7fa;
}

.button.secondary:hover {
    border-color: #46556b;
    background: #1b222d;
}

.hero-note {
    margin-top: 22px;
    color: #7f899a;
    font-size: 12px;
}

.hero-showcase {
    position: relative;
}

.showcase-glow {
    position: absolute;
    inset: 12% 4%;
    border-radius: 50%;
    background: rgba(61, 124, 255, .15);
    filter: blur(55px);
}

.showcase-card {
    position: relative;
    padding: 24px;
    border: 1px solid #303a49;
    border-radius: 20px;
    background: linear-gradient(145deg, #1a212b, #11161e);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.showcase-label {
    display: block;
    margin-bottom: 20px;
    color: #7e899b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.showcase-product {
    display: grid;
    /* minmax(0, ...) em vez de ".9fr"/"1.1fr" puros -- sem isso, uma
       imagem sem nenhum limite de tamanho (ver .showcase-image img)
       pode forçar a coluna a crescer além da fração reservada,
       dominando o card e espremendo o texto. Com minmax(0, ...) a
       coluna nunca cresce além da sua fração, não importa o
       conteúdo. */
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    /* "center" (não "stretch"): a altura da imagem já é definida
       por ela mesma via aspect-ratio (ver .showcase-image) -- não
       faz sentido esticar o texto para acompanhar. */
    align-items: center;
}

.showcase-image,
.offer-image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.showcase-image {
    /* aspect-ratio (em vez de min-height) faz a altura ser sempre
       proporcional à LARGURA da própria coluna -- nunca um valor
       fixo em px, e nunca determinada pela imagem em si. Isso é o
       que garante que o hero tenha altura previsível e fluida em
       qualquer viewport/zoom, sem precisar de min-height por
       breakpoint (ver também a remoção da regra equivalente em
       @media max-width:760px). */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #252e3b;
    background:
        radial-gradient(circle at 50% 45%, rgba(61, 124, 255, .16), transparent 35%),
        #0a0e14;
    color: #687487;
    font-size: 12px;
}

/* Imagem real do produto em destaque (ver js/products.js,
   atualizarDestaqueHero) -- SEMPRE contida dentro de .showcase-image,
   nunca maior que o box, proporção original sempre preservada
   (object-fit: contain, nunca cover, nunca deforma). */
.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
}

.showcase-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-info > span {
    margin-bottom: 10px;
    color: #6f9cff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.showcase-info h2 {
    margin-bottom: 12px;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.8px;
}

.showcase-info p {
    margin-bottom: 20px;
    color: #929cad;
    font-size: 13px;
    line-height: 1.55;
}

.showcase-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 20px;
}

.showcase-price {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.showcase-info a {
    color: #8fb0ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.showcase-info a.offer-button {
    align-self: flex-start;
    color: #fff;
    font-size: 12px;
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.section {
    padding: 76px clamp(20px, 7vw, 110px);
    background: var(--panel);
}

.offers-section {
    background: #0d1219;
}

.reviews-section {
    background: var(--panel);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.section-kicker {
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading p {
    max-width: 510px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CATEGORIAS

   Identidade visual própria por categoria SEM baixar nenhuma
   imagem externa: cada card usa (1) um tom sutil (--card-accent/
   --card-glow, definidos por categoria logo abaixo) e (2) o próprio
   emoji da categoria ampliado como "imagem de fundo" desfocada e
   com baixa opacidade (::after, lendo data-icon do <a> -- ver
   index.html). Overlay escuro = o próprio fundo do card por trás do
   glifo (baixa opacidade já garante que o texto nunca perde
   contraste, sem precisar de uma camada extra).
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    isolation: isolate;
    min-height: 226px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% -10%, var(--card-glow, rgba(61, 124, 255, .16)), transparent 55%),
        var(--panel-soft);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

/* Tom por categoria -- classes já presentes no HTML (ver
   index.html), antes sem nenhum efeito. Mantém a mesma família de
   cor azul do resto do site para "Tecnologia" e varia discretamente
   para as demais, sem virar um arco-íris chamativo. */
.category-card.technology { --card-accent: #3d7cff; --card-glow: rgba(61, 124, 255, .18); }
.category-card.home       { --card-accent: #e0a542; --card-glow: rgba(224, 165, 66, .16); }
.category-card.tools      { --card-accent: #e08542; --card-glow: rgba(224, 133, 66, .16); }
.category-card.creator    { --card-accent: #a855f7; --card-glow: rgba(168, 85, 247, .16); }
.category-card.fashion    { --card-accent: #f2588c; --card-glow: rgba(242, 88, 140, .16); }
.category-card.cleaning   { --card-accent: #34d3b8; --card-glow: rgba(52, 211, 184, .16); }

.category-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    right: -55px;
    top: -55px;
    border-radius: 50%;
    background: var(--card-glow, rgba(61, 124, 255, .07));
}

/* "Imagem temática" -- o próprio ícone da categoria, ampliado,
   desfocado e dessaturado ao fundo (ver comentário da seção). */
.category-card::after {
    content: attr(data-icon);
    position: absolute;
    z-index: -1;
    right: -18px;
    bottom: -34px;
    font-size: 150px;
    line-height: 1;
    opacity: .13;
    filter: blur(1.5px) grayscale(45%);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent, #3d7cff);
    background:
        radial-gradient(circle at 88% -10%, var(--card-glow, rgba(61, 124, 255, .22)), transparent 60%),
        var(--panel-hover);
}

.category-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #303a49;
    border-radius: 14px;
    background: #10151d;
    font-size: 25px;
    transition: border-color .2s ease;
}

.category-card:hover .category-icon {
    border-color: var(--card-accent, #3d7cff);
}

.category-number {
    display: block;
    margin-bottom: 8px;
    color: #687487;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-card h3 {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.category-card p {
    max-width: 210px;
    color: #858fa0;
    font-size: 12.5px;
    line-height: 1.5;
}

.category-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #7186ac;
    font-size: 16px;
    font-style: normal;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.category-card:hover .category-arrow {
    border-color: var(--card-accent, #3d7cff);
    background: rgba(255, 255, 255, .04);
    color: #f5f7fa;
}


/* =========================================================
   OFERTAS
   ========================================================= */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.offer-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #151b24;
    transition: transform .2s ease, border-color .2s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: #39475a;
}

.offer-image {
    position: relative;
    min-height: 235px;
    flex-direction: column;
    gap: 7px;
    background:
        radial-gradient(circle at 50% 42%, rgba(61, 124, 255, .10), transparent 34%),
        #0a0e14;
    color: #687487;
    font-size: 12px;
}

.offer-image span {
    font-weight: 700;
    letter-spacing: .4px;
}

.offer-image small {
    color: #4f5b6d;
    font-size: 10px;
}

.offer-content {
    padding: 21px;
}

.offer-category {
    color: #6f9cff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.offer-content h3 {
    margin: 8px 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.offer-content p {
    min-height: 40px;
    margin-bottom: 20px;
    color: #858fa0;
    font-size: 13px;
    line-height: 1.5;
}

.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    border: 1px dashed var(--border);
    border-radius: 16px;
}


/* =========================================================
   PÁGINA DE CATEGORIA
   ========================================================= */

.category-page-header {
    padding: 46px clamp(20px, 7vw, 110px) 10px;
    background: var(--panel);
}

.category-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.category-breadcrumb:hover {
    color: #fff;
}

.category-page-header h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
}

.category-page-header p {
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.offer-price {
    color: #f5f7fa;
    font-size: 17px;
}

.offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease;
}

.offer-button:hover {
    background: var(--accent-hover);
}


/* =========================================================
   REVIEWS
   ========================================================= */

.review-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

.review-video {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 45%, rgba(61, 124, 255, .12), transparent 30%),
        #090d13;
    color: #6d7889;
    font-size: 13px;
}

.play-circle {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border: 1px solid #40516c;
    border-radius: 50%;
    background: #151d28;
    color: #fff;
    font-size: 18px;
}

.review-content h2 {
    max-width: 520px;
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.review-content p {
    max-width: 520px;
    margin-bottom: 24px;
    color: #929cad;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   CONFIANÇA
   ========================================================= */

.trust-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 76px clamp(20px, 7vw, 110px);
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 50%, rgba(61, 124, 255, .08), transparent 32%),
        #0d1219;
}

.trust-content h2 {
    max-width: 650px;
    margin: 8px 0 17px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.trust-content p {
    max-width: 630px;
    color: #929cad;
    font-size: 14px;
    line-height: 1.65;
}

.trust-items {
    display: grid;
    gap: 12px;
}

.trust-items div {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 65px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #131922;
}

.trust-items strong {
    color: #6f9cff;
    font-size: 11px;
    letter-spacing: 1px;
}

.trust-items span {
    color: #c1c8d2;
    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px 50px;
    padding: 35px clamp(20px, 7vw, 110px);
    border-top: 1px solid var(--border);
    background: #080b10;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-brand strong {
    font-size: 17px;
}

.footer-brand span {
    color: #6f7989;
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-links a {
    color: #858fa0;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

.affiliate-notice,
.copyright {
    color: #626d7d;
    font-size: 11px;
    line-height: 1.55;
}

.affiliate-notice {
    grid-column: 1 / -1;
    max-width: 760px;
}

.copyright {
    grid-column: 1 / -1;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-showcase {
        max-width: 760px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 9px);
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 64px;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        min-height: 38px;
    }

    .hero {
        min-height: auto;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .showcase-product,
    .review-layout,
    .trust-section {
        grid-template-columns: 1fr;
    }

    /* Abaixo de 760px a imagem passa a ocupar a LARGURA INTEIRA do
       card (coluna única). Duas correções combinadas aqui:
       1) altura controlada DIRETAMENTE por clamp(), independente da
          largura do card -- fica compacta em qualquer celular
          (320-760px), em vez de crescer junto com a tela (o que já
          aconteceu com 1:1 e, em grau menor, com 4:3);
       2) max-width -- sem isso, a caixa fica tão LARGA quanto o
          card inteiro (~300-350px) mas só ~130-190px de altura, uma
          tira bem larga e baixa onde uma imagem quadrada/vertical
          (object-fit:contain) encolhe demais e parece perdida. Com
          a largura também limitada, a caixa vira um retângulo mais
          equilibrado (perto de 4:3), dando presença à imagem sem
          dominar o card. Menos padding interno (ver
          .showcase-image img) pelo mesmo motivo. */
    .showcase-image {
        aspect-ratio: auto;
        max-width: 260px;
        margin: 0 auto;
        height: clamp(150px, 42vw, 195px);
    }

    .showcase-image img {
        padding: 12px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .review-video {
        min-height: 250px;
    }

    .trust-section {
        gap: 35px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .category-grid,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .offer-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .section,
    .trust-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .offer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .offer-button {
        width: 100%;
    }
}

/* =========================================================
   PH RESET — OFERTA / PROMOÇÃO
   ========================================================= */

.offer-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 4px;
}

.offer-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.55;
}

.offer-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.08);
}

/* Bug real encontrado na inspeção visual desta etapa: o atributo
   "hidden" normalmente vira display:none via stylesheet do
   navegador, mas como .offer-discount já define seu próprio
   "display" (inline-flex), essa regra do navegador perde (mesma
   especificidade, e regra de autor sempre vence a do user-agent) --
   sobrava um "pill" vazio visível no hero sempre que o produto em
   destaque não tinha desconto (#showcase-desconto). Precisa de uma
   regra de autor com [hidden] explícito para realmente esconder. */
.offer-discount[hidden] {
    display: none;
}


/* =========================================================
   PH RESET — IMAGEM DOS PRODUTOS
   ========================================================= */

.offer-image img {
    width: 100%;
    height: 235px;
    object-fit: contain;
    display: block;
    padding: 18px;
}


/* =========================================================
   PH RESET — INFORMAÇÕES DA OFERTA
   ========================================================= */

.offer-updated {
    margin-top: 10px;
    color: #687487;
    font-size: 10px;
    line-height: 1.4;
}

.offer-price-notice {
    margin-top: 10px;
    margin-bottom: 16px;
    color: #6f7989;
    font-size: 10px;
    line-height: 1.5;
}
