:root {
    --primary: #FF5C00;
    --primary-dark: #E54D00;
    --secondary: #FFE500;
    --dark: #1A1A1A;
    --gray: #F5F5F5;
    --gray-mid: #E0E0E0;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}
/* ================================
   BLOQUEAR DARK MODE AUTOMÁTICO
================================ */

html {
    color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
    html, body {
        background: #FAFAFA !important;
        color: #2D2D2D !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    forced-color-adjust: none;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #FAFAFA;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   HEADER MELHORADO
================================ */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform 0.4s var(--transition-smooth);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover span::after {
    transform: scaleX(1);
}

/* ================================
   SEARCH BAR MELHORADA
================================ */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--gray);
    border-radius: 50px;
    padding-left: 20px;
    transition: all 0.4s var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-bar:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 28px rgba(255, 92, 0, 0.22), 0 0 0 4px rgba(255, 92, 0, 0.1);
    transform: translateY(-1px);
}

.search-bar::before {
    content: "🔍";
    font-size: 18px;
    opacity: 0.5;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.search-bar:focus-within::before {
    opacity: 0.8;
    transform: scale(1.1);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 12px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
}

.search-bar input:focus {
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-light);
    transition: opacity 0.3s ease;
}

.search-bar:focus-within input::placeholder {
    opacity: 0.6;
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.3);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
}

.search-bar button:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 10px 28px rgba(255, 92, 0, 0.4);
}

.search-bar button:active {
    transform: scale(1.02);
}

/* ================================
   HEADER ACTIONS
================================ */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
    border: 2px solid var(--primary-dark);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.header-link:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 77, 0, 0.3);
}

.header-link.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(255, 92, 0, 0.25);
}

.header-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 92, 0, 0.35);
}

/* ================================
   CONTAINER
================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header .view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--transition-smooth);
    font-size: 15px;
}

.section-header .view-all:hover {
    gap: 14px;
    color: var(--primary-dark);
}

/* ================================
   CATEGORY PILLS MELHORADAS
================================ */
.categories {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 3px;
}

.categories::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.category-pill {
    background: white;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid var(--gray-mid);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.2px;
    font-size: 14px;
}

.category-pill:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.category-pill.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================
   PRODUCT GRID MELHORADO
================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* ================================
   PRODUCT CARD - ULTRA MELHORADO
================================ */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.7s ease-out backwards;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 92, 0, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 92, 0, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

/* ================================
   PRODUCT IMAGE MELHORADA
================================ */
.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: transparent;
    transition: transform 0.6s var(--transition-smooth);
    padding: 12px;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s var(--transition-smooth);
}

.product-card:hover .product-image::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ================================
   PRODUCT BADGE MELHORADO
================================ */
.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    box-shadow: 
        0 4px 12px rgba(255, 92, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--transition-smooth);
}

.product-card:hover .product-badge {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 92, 0, 0.5);
}

.product-badge.featured {
    background: linear-gradient(135deg, var(--secondary), #ffd700);
    color: var(--dark);
    box-shadow: 
        0 4px 12px rgba(255, 229, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ================================
   PRODUCT INFO MELHORADO
================================ */
.product-info {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.product-card:hover .product-category {
    letter-spacing: 1.5px;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.5;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -0.5px;
}

.product-price small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

/* ================================
   PRODUCT FOOTER MELHORADO
================================ */
.product-footer {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.product-location {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ================================
   FAVORITE BUTTON MELHORADO
================================ */
.favorite-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-mid);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.favorite-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.favorite-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 4px 16px rgba(255, 92, 0, 0.25);
}

.favorite-btn:hover::before {
    opacity: 0.1;
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* ================================
   STATS SECTION MELHORADA
================================ */
.stats {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 28px;
    padding: 70px;
    margin: 60px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    transition: transform 0.3s var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ================================
   FOOTER CTA MELHORADO
================================ */
.footer-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin: 60px 5%;
    padding: 90px 60px;
    border-radius: 28px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 
        0 20px 50px rgba(255, 92, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 70%
    );
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-cta-content {
    position: relative;
    z-index: 1;
}

.footer-cta h2 {
    font-family: 'Syne', sans-serif;
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-cta p {
    font-size: 19px;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.7;
}

.footer-cta button {
    background: white;
    color: var(--primary);
    padding: 20px 52px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.footer-cta button:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ================================
   CAROUSEL MELHORADO
================================ */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.product-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 6px 35px;
}

.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 10px;
}

.product-carousel .product-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.4s var(--transition-smooth);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px rgba(255, 92, 0, 0.25);
    background: var(--primary);
    color: white;
}

.carousel-btn.left {
    left: -22px;
}

.carousel-btn.right {
    right: -22px;
}

/* ================================
   FOOTER
================================ */
footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 5% 30px;
    text-align: center;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    display: inline-block;
    margin: 0 15px;
}

a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-link-pub {
    text-decoration: none;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.4s var(--transition-smooth);
    white-space: nowrap;
    border: 2px solid var(--primary-dark);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.3);
    letter-spacing: 0.3px;
}

.footer-link-pub:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 92, 0, 0.4);
}

.div-bg-colorido {
    margin: 5px;
}

/* ================================
   ANIMAÇÕES GLOBAIS
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    transition: opacity 0.3s ease, transform 0.5s var(--transition-smooth);
}

.product-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.92);
}

/* ================================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 968px) {
    .header-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .stats {
        padding: 50px;
        gap: 35px;
    }

    .footer-cta {
        padding: 70px 50px;
    }

    .footer-cta h2 {
        font-size: 36px;
    }
}

/* ================================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 18px;
    }

    .product-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-price small {
        font-size: 12px;
    }

    .product-footer {
        padding: 0 18px 18px;
    }

    .favorite-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-btn {
        display: none;
    }

    .product-carousel .product-card {
        min-width: 75%;
    }

    .stats {
        padding: 40px 30px;
    }

    .stat-number {
        font-size: 42px;
    }
}

/* ================================
   RESPONSIVE - MOBILE PEQUENO
================================ */
@media (max-width: 480px) {
    .product-grid {
        gap: 14px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-image {
        height: 130px;
    }

    .product-footer {
        padding: 0 14px 14px;
    }


}
/* ================================
   HERO – SOMENTE IMAGEM (RESPONSIVO)
================================ */

.hero {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 40px auto;
    border-radius: 24px;
    overflow: hidden;
    background-color: #fff;

    /* altura adaptável */
    aspect-ratio: 16 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;

    /* regra MAIS IMPORTANTE */
    object-fit: contain;

    /* garante que a imagem não fique minúscula */
    max-height: 100%;
    max-width: 100%;

    background-color: #fff;
}

/* ================================
   HERO MOBILE
================================ */
@media (max-width: 768px) {
    .hero {
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ================================
   HERO MOBILE PEQUENO
================================ */
@media (max-width: 480px) {
    .hero {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
