/* Variáveis e Estilos Base */
:root {
    --primary: #FF9900;
    --secondary: #146EB4;
    --dark: #232F3E;
    --light: #f9f9f9;
    --light-gray: #eaeaea;
    --text: #333;
    --white: #fff;
    --success: #008577;
    --discount: #B12704;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* Container e Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header e Navegação */
header {
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    text-align: center;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
    position: relative;
}

.promo-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.promo-slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: none;
    font-size: 0.9rem;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    color: var(--white);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.categories {
    background-color: var(--dark);
    padding: 0.5rem 0;
}

.category-nav {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
    justify-content: center;
    gap: 0.7rem;
    padding: 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.category-nav a {
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.category-nav a:hover,
.category-nav a.active {
    background-color: var(--primary);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    overflow: hidden;
}

.hero-slide-img {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: white;
    padding: 30px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
}

.hero-slide-img img {
    max-width: 90%;
    max-height: 380px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.hero-slide-content {
    flex: 0 0 50%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-bottom: 70px;
}

.hero-mega-discount {
    background: #ff6b6b;
    color: white;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.hero-slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.hero-current-price {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.hero-original-price {
    font-size: 20px;
    color: #ccc;
    text-decoration: line-through;
    margin-left: 10px;
}

.hero-slide-description {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.hero-timer-container {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.hero-timer-container i {
    margin-right: 10px;
    font-size: 20px;
    color: #f9ca24;
}

.hero-timer {
    font-size: 18px;
    font-weight: 600;
    color: #f9ca24;
}

.hero-btn {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9ca24;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(249, 202, 36, 0.4);
    max-width: 400px;
    z-index: 10;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 202, 36, 0.5);
    background: #ffda57;
}

.hero-btn i {
    margin-left: 10px;
}

.hero-controls {
    position: absolute;
    bottom: 20px;
    right: 40px;
    left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.hero-control {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Seção Telegram */
.telegram-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f9ff 0%, #e9f2ff 100%);
    margin: 2rem 0;
}

.telegram-box {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #0088cc;
}

.telegram-box:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(0, 136, 204, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 0;
}

.telegram-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.telegram-icon {
    background-color: #0088cc;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.telegram-icon i {
    font-size: 2.5rem;
    color: white;
}

.telegram-text h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.telegram-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.highlight {
    font-weight: 700;
    color: #0088cc;
}

.telegram-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #444;
}

.feature i {
    color: #0088cc;
    font-size: 1rem;
}

.telegram-button {
    background-color: #0088cc;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.telegram-button:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

/* Seções e Produtos */
.section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
    display: flex;
    align-items: center;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.8rem;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.highlight-deals {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.deal-tag {
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Cards de Produto */
.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    padding-top: 75%;
    background: #f8f8f8;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--discount);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    flex-grow: 1;
}

.product-pricing {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.original-price {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Preço Comparativo */
.comparative-price {
    background: #f8f8f8;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
    border-left: 3px solid #3498db;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    padding-top: 14px;
}

.comparative-price::before {
    content: "Comparativo";
    position: absolute;
    top: 0;
    right: 0;
    background: #3498db;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-bottom-left-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.store-name {
    font-weight: 600;
    color: #555;
    flex: 1;
    min-width: 100px;
    margin-right: auto;
    margin-top: 10px;
}

.comp-price {
    color: #27ae60;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    margin-top: 10px;
}

.price-better {
    border-left-color: #27ae60;
    background: #f0fff4;
}

.price-better::before {
    background: #27ae60;
    content: "Economia";
}

.savings {
    width: 100%;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: right;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(39, 174, 96, 0.2);
}

.amazon-prime {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.amazon-prime i {
    margin-right: 0.3rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.buy-btn {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
    transition: all 0.3s;
}

.buy-btn:hover {
    background-color: #ffb142;
}

.wishlist-btn {
    background: transparent;
    border: 1px solid #ccc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

/* Estados de Loading e Empty */
.loading {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 153, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

.empty-category {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Seção Trust */
.trust-section {
    background-color: var(--white);
    padding: 3rem 0;
    margin: 2rem 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 1.5rem;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.trust-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Seção de Contato */
.contact-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form button {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.contact-form button:hover {
    background-color: #ffb142;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: #999;
    font-size: 0.9rem;
}

.comparative-price-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comparative-price-link:hover .comparative-price {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.comparative-price-link .comparative-price::after {
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 8px;
    font-size: 0.7rem;
    opacity: 0.7;
}

.no-external-icon::after {
    display: none !important;
}


/* Animações */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Contagem regressiva */
.countdown {
    font-weight: 700;
    color: #ff6b6b;
}

/* Menu hambúrguer para mobile */
.menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin: 10px auto;
    position: relative;
    z-index: 1000;
}

.menu-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {

    .promo-slide.mobile-hidden {
        display: none !important;
    }

    .section-title {
        font-size: 1.4rem; /* Reduzido de 1.8rem */
    }

    .section-header {
        margin-bottom: 1rem; /* Reduzido de 2rem */
    }

    .deal-tag {
        display: none;
    }

    .menu-hamburger {
        display: flex;
    }

    .category-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark);
        z-index: 999;
        padding: 70px 20px 20px;
        overflow-y: auto !important; /* Forçar scroll */
        -webkit-overflow-scrolling: touch;
        transform: translateY(-100%);
        transition: transform 0.3s;
        display: block; /* Alterar para display block */
    }

    .category-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .category-nav a {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        padding: 12px 15px;
        font-size: 16px;
        text-align: left;
    }

    /* Animação para o hambúrguer virar X */
    .menu-hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .categories {
        position: relative;
    }

    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .search-bar {
        margin: 1rem 0;
        width: 100%;
        max-width: none;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .hero-banner {
        display: none;
    }

    .comparative-price {
        padding: 10px 12px 12px;
        padding-top: 14px;
    }

    .store-name, .comp-price {
        width: 100%;
        text-align: left;
    }

    .comp-price {
        padding-left: 8px;
    }

    .savings {
        text-align: left;
        padding-left: 8px;
    }

    .telegram-section {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Reduzir imagem proporcionalmente */
    .product-image {
        padding-top: 60%;
    }

    /* Ocultar badge do Prime */
    .amazon-prime {
        display: none;
    }

    /* Ajustes para cards menores */
    .product-info {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .buy-btn {
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .discount-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }

    .mobile-clickable {
        cursor: pointer;
        position: relative;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .mobile-clickable:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        padding-bottom: 100px;
    }

    .hero-btn {
        left: 15px;
        bottom: 70px;
        font-size: 14px;
        padding: 8px 16px;
        max-width: 160px;
    }
}