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

:root {
    --yellow: #fff159;
    --yellow-strong: #ffe600;
    --blue: #3483fa;
    --blue-dark: #2968c8;
    --green: #00a650;
    --ink: #22252b;
    --text: #33363d;
    --muted: #6f7480;
    --line: #d8dce3;
    --bg: #edf0f5;
    --surface: #fff;
    --soft-blue: #e8f1ff;
    --radius: 8px;
    --shadow: 0 14px 34px rgba(24, 32, 45, .12);
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: no-preference) {
    @keyframes rise-in {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes soft-pulse {
        0%, 100% { box-shadow: 0 0 0 rgba(0, 166, 80, 0); }
        50% { box-shadow: 0 0 0 7px rgba(0, 166, 80, .08); }
    }
}

.site-header {
    background: var(--yellow);
    border-bottom: 1px solid rgba(0,0,0,.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 18px 9px;
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.16);
    flex: 0 0 auto;
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy small {
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 96px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.24);
    background: #fff;
}

.search-box input {
    min-width: 0;
    border: 0;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.search-box button {
    border: 0;
    border-left: 1px solid #edf0f5;
    background: #f7f8fa;
    color: #4f5662;
    font-weight: 700;
    cursor: pointer;
}

.search-box button:hover { background: #eef2f7; color: var(--blue-dark); }

.header-cta {
    color: rgba(34,37,43,.86);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px 10px 250px;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav a {
    color: rgba(34,37,43,.74);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav a:hover { color: var(--blue-dark); }

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 18px 52px;
}

.deal-strip {
    min-height: 94px;
    background:
        linear-gradient(90deg, #fff 0%, #fff 58%, var(--soft-blue) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    animation: rise-in .35s ease both;
}

.deal-strip strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.deal-strip span {
    color: var(--muted);
    font-size: 14px;
}

.deal-strip a,
.btn-buy-lg {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    white-space: nowrap;
}

.deal-strip a { padding: 11px 16px; }

.deal-strip a:hover,
.btn-buy-lg:hover { background: var(--blue-dark); }

.lead-capture {
    margin: 0 0 18px;
    padding: 22px;
    background: radial-gradient(circle at top left, rgba(52,131,250,.28), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1f2937 58%, #111827 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
    gap: 22px;
    align-items: center;
    box-shadow: 0 18px 40px rgba(17,24,39,.22);
    position: relative;
    overflow: hidden;
    animation: rise-in .45s ease both;
}

.lead-capture::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.08) 45%, transparent 70%);
    transform: translateX(-100%);
}

@media (prefers-reduced-motion: no-preference) {
    .lead-capture::after {
        animation: shine 7s ease-in-out infinite;
    }

    @keyframes shine {
        0%, 70% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }
}

.lead-capture h2 {
    font-size: 24px;
    line-height: 1.15;
    margin: 8px 0;
}

.lead-capture p {
    color: rgba(255,255,255,.76);
    font-size: 14px;
    max-width: 560px;
}

.channel-link {
    display: inline-flex;
    margin-top: 14px;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 211, 102, .14);
    border: 1px solid rgba(37, 211, 102, .42);
    color: #9df2bf;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.channel-link:hover {
    background: rgba(37, 211, 102, .2);
}

.fomo-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    background: rgba(255,241,89,.16);
    border: 1px solid rgba(255,241,89,.32);
    border-radius: 999px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.lead-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.lead-form label span {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
}

.lead-form input,
.lead-form select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    background: rgba(255,255,255,.96);
    color: var(--ink);
    padding: 0 10px;
    font-size: 14px;
}

.lead-consent {
    grid-column: 1 / 3;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.lead-consent input {
    width: 16px;
    min-height: 16px;
}

.lead-form button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--yellow);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lead-form button:hover { background: var(--yellow-strong); }

.lead-form.has-error {
    outline: 2px solid rgba(255, 98, 98, .75);
    outline-offset: 4px;
    border-radius: 8px;
}

.lead-success {
    grid-column: 1 / -1;
    min-height: 142px;
    padding: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.lead-success strong {
    color: #fff;
    font-size: 20px;
}

.lead-success span {
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.lead-success a {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    background: #25d366;
    color: #062912;
    text-decoration: none;
    font-weight: 800;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.cat-chip:hover { color: var(--blue-dark); border-color: rgba(52,131,250,.45); }

.section-head {
    margin: 12px 0 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-head h1 {
    color: var(--ink);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0;
}

.section-head p {
    color: var(--muted);
    font-size: 14px;
    max-width: 560px;
}

.category-head,
.search-result {
    align-items: start;
    flex-direction: column;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.drops-grid {
    margin-bottom: 24px;
}

.offer-card {
    background: var(--surface);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-rows: 226px 1fr;
    min-height: 440px;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    animation: rise-in .35s ease both;
}

.offer-card:hover {
    border-color: rgba(52,131,250,.32);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.offer-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.07);
    text-decoration: none;
}

.offer-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.offer-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 224px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.offer-image-placeholder::before {
    content: "sem imagem";
    color: #9aa1ad;
    font-size: 13px;
}

.badge-disc {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 5px;
}

.badge-drop {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #111827;
    color: #fff159;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 5px;
    animation: soft-pulse 2.4s ease-in-out infinite;
}

.offer-info {
    min-width: 0;
    padding: 14px 16px 16px;
    display: grid;
    grid-template-rows: 44px 62px 22px auto;
    gap: 8px;
}

.offer-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.28;
    overflow: hidden;
}

.offer-title a {
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offer-title a:hover { color: var(--blue-dark); }

.offer-price {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 2px;
}

.offer-price s {
    color: #8b919b;
    font-size: 13px;
}

.offer-price strong {
    color: var(--ink);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
}

.offer-meta {
    color: var(--green);
    font-size: 13px;
}

.offer-actions {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 8px;
    align-self: end;
}

.btn-details,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.btn-details {
    background: #f1f4f8;
    color: #4d5663;
}

.btn-buy {
    background: rgba(52,131,250,.12);
    color: var(--blue);
}

.btn-details:hover { background: #e6ebf2; }
.btn-buy:hover { background: rgba(52,131,250,.2); color: var(--blue-dark); }

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 16px;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.product-page {
    display: grid;
    grid-template-columns: minmax(330px, 54%) minmax(320px, 1fr);
    gap: 28px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 1px rgba(0,0,0,.03);
}

.product-gallery {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

.gallery-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 1;
    overflow-x: auto;
    overflow-y: hidden;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-main::-webkit-scrollbar { display: none; }

.gallery-main img,
.product-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
    scroll-snap-align: center;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.gallery-thumbs a {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.product-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.product-details h1 {
    color: var(--ink);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.25;
}

.product-price {
    padding: 8px 0 2px;
}

.price-orig {
    color: #8b919b;
    font-size: 16px;
    display: block;
}

.price-now {
    color: var(--ink);
    display: block;
    font-size: 36px;
    font-weight: 500;
}

.saving-pill {
    display: inline-flex;
    margin-top: 8px;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0,166,80,.1);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.btn-buy-lg {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 24px;
}

.trust-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.trust-stack span {
    background: #f7f9fc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 6px;
    color: #59616d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    min-height: 48px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.product-description {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.product-description h2,
.price-history h2 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-description p,
.affiliate-note {
    color: var(--muted);
    font-size: 14px;
}

.price-history {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.history-head h2 {
    margin-bottom: 0;
}

.history-head strong {
    color: var(--green);
    font-size: 13px;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.history-summary span {
    min-height: 54px;
    padding: 9px;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.history-summary small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.history-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 78px;
}

.bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar {
    width: 16px;
    background: linear-gradient(180deg, var(--blue), var(--green));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}

.bar-wrap span {
    font-size: 11px;
    color: var(--muted);
}

.expired-page,
.empty {
    grid-column: 1/-1;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    text-align: center;
    padding: 42px 20px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid rgba(0,0,0,.08);
    color: var(--muted);
    padding: 30px 16px;
    text-align: center;
    font-size: 13px;
}

.site-footer p + p { margin-top: 6px; }

.site-footer a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 190px 1fr;
    }

    .header-cta { display: none; }

    .category-nav { padding-left: 18px; }

    .product-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand img { width: 38px; height: 38px; }
    .brand-copy strong { font-size: 22px; }
    .brand-copy small { font-size: 13px; }

    .search-box {
        grid-template-columns: 1fr 82px;
        height: 42px;
    }

    .category-nav {
        gap: 16px;
        padding: 0 14px 10px;
    }

    main {
        padding: 16px 12px 40px;
    }

    .deal-strip {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .deal-strip strong { font-size: 21px; }

    .lead-capture {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .lead-consent {
        grid-column: auto;
    }

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

    .section-head h1 { font-size: 22px; }

    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .offer-card {
        grid-template-rows: 172px 1fr;
        min-height: 384px;
    }

    .offer-media img { padding: 12px; }

    .offer-info {
        padding: 12px;
        grid-template-rows: 42px 58px 20px auto;
    }

    .offer-title { font-size: 14px; }
    .offer-price strong { font-size: 21px; }

    .offer-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .btn-details,
    .btn-buy {
        min-height: 34px;
        font-size: 13px;
    }

    .product-page {
        padding: 14px;
        gap: 18px;
    }

    .gallery-main img,
    .product-placeholder {
        padding: 16px;
    }

    .product-details h1 { font-size: 21px; }
    .price-now { font-size: 32px; }

    .trust-stack {
        grid-template-columns: 1fr;
    }

    .history-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-summary {
        grid-template-columns: 1fr;
    }

    .trust-stack span {
        min-height: 38px;
    }
}
