﻿:root {
    --stylus-orange: #FE7A15;
    --stylus-orange-hover: #e0680d;
    --stylus-dark: #0f172a; /* Slate 900 - Mais elegante que o preto puro */
    --stylus-darker: #020617;
    --stylus-light: #f8fafc;
    --stylus-gray: #64748b;
    --stylus-border: #f1f5f9;
}


body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}



body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    background-color: #fff;
    padding-top: 85px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--stylus-dark);
}


a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}

    a:hover {
        color: #e0680d !important;
        text-decoration: none !important;
    }

.text-orange {
    color: var(--stylus-orange) !important;
}

.bg-dark-custom {
    background-color: var(--stylus-dark) !important;
}

.text-muted {
    --bs-text-opacity: 1;
    color:#94a3b8 !important;
}

.bg-orange {
    background-color: var(--stylus-orange) !important;
} 

.rounded-pill {
    border-radius: var(--bs-border-radius-pill) !important;
}

/* Section Header */
.section-header {
    background: #0f172a;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

    .section-header::after {
        content: '';
        position: absolute;
        right: -10%;
        top: -50%;
        width: 50%;
        height: 200%;
        background: radial-gradient(circle, rgba(254,122,21,0.15) 0%, transparent 70%);
    }

.stat-box {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
    .stat-box h3 {
        color: var(--stylus-orange);
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }
/* Botões */
.btn-orange {
    background: linear-gradient(135deg, #FE7A15 0%, #f96100 100%);
    color: #fff !important;
    font-weight: 600;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(254, 122, 21, 0.3);
}

    .btn-orange:hover {
        transform: translateY(-3px);
        color: #fff;
        box-shadow: 0 8px 25px rgba(254, 122, 21, 0.5);
    }

/* Navbar Efeito Vidro (Glassmorphism) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: var(--stylus-dark);
}

.nav-link {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    margin: 0 8px;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        color: var(--stylus-orange);
    }

    /* Sublinhado animado no menu */
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--stylus-orange);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

.content-section {
    padding: 50px 0;
}

/* Cards de Categoria */
.area-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

    .area-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.06);
        border-color: rgba(254, 122, 21, 0.4);
    }

.area-icon {
    width: 80px;
    height: 80px;
    background: rgba(254, 122, 21, 0.1);
    color: var(--stylus-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 1.5rem;
    transition: 0.3s;
}

.area-card:hover .area-icon {
    background: var(--stylus-orange);
    color: #fff;
}

.area-title {
    font-weight: 700;
    color: var(--stylus-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
/* Layout do Blog Premium */
.blog-header {
    background: var(--bs-gray-100);
    padding: 50px 0;
    top: 35px;
    position: relative;
}

/* Notícia Principal (Leitura) */
.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--stylus-dark);
    line-height: 1.2;
    letter-spacing: -1px;
}

.article-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

    .article-body p {
        margin-bottom: 1.5rem;
    }

.article-blockquote {
    border-left: 4px solid var(--stylus-orange);
    background: rgba(254, 122, 21, 0.05);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    color: var(--stylus-dark);
    margin: 2.5rem 0;
}

/* Para os Banners */
.brand-banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

    .brand-banner-card:hover .brand-banner-img {
        transform: scale(1.05);
    }

.text-decoration-none .brand-banner-card {
    transition: box-shadow 0.3s ease;
}

.text-decoration-none:hover .brand-banner-card {
    box-shadow: 0 10px 25px rgba(254, 122, 21, 0.4);
    border: 1px solid var(--stylus-orange);
}

/* Para a página das Marcas */
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border: 1px solid var(--stylus-orange) !important;
}

/* Sidebar Fixa (Widgets) */
.sidebar {
    position: sticky;
    top: 110px; /* Mantém a sidebar visível ao fazer scroll */
}

/* Widget de Pesquisa */
.search-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

    .search-widget .form-control {
        background: var(--bs-gray-100);
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
    }

        .search-widget .form-control:focus {
            box-shadow: 0 0 0 3px rgba(254, 122, 21, 0.2);
        }

/* Widget de Outras Notícias */
.news-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.news-widget-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--stylus-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--stylus-gray);
}

.side-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    group: hover;
}

    .side-news-item:last-child {
        margin-bottom: 0;
    }

.side-news-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

.side-news-item:hover .side-news-img {
    transform: scale(1.05);
}

.side-news-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--stylus-dark);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    transition: 0.3s;
}

.side-news-item:hover .side-news-content h5 {
    color: var(--stylus-orange);
}

.side-news-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero Moderno */
.hero-section {
    background: radial-gradient(circle at top right, rgba(15,23,42,0.75), var(--stylus-darker)), url('/images/tpfundos/phtfundo01.jpg') center/cover;
    color: #fff;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff!important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.6;
}

/* Animação Contínua das Marcas (Marquee) */
.brands-marquee {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

    .brands-marquee::before, .brands-marquee::after {
        content: '';
        position: absolute;
        top: 0;
        width: 150px;
        height: 100%;
        z-index: 2;
    }

    .brands-marquee::before {
        left: 0;
        background: linear-gradient(to right, white, transparent);
    }

    .brands-marquee::after {
        right: 0;
        background: linear-gradient(to left, white, transparent);
    }

.marquee-content {
    display: inline-block;
    animation: scroll 60s linear infinite;
}

    .marquee-content img {
        height: 40px;
        margin: 0 40px;
        opacity: 0.6;
        filter: grayscale(100%);
        transition: all 0.3s ease;
    }

        .marquee-content img:hover {
            opacity: 1;
            filter: grayscale(0%);
            cursor: pointer;
        }

.eyepass {
    position: absolute;
    width: 30px;
    height: 20px;
    right: 10px;
    bottom: 10px;
    color: #000;
    cursor: pointer;
    text-shadow: none;
    opacity: .0;
}

/* Slider de Campanhas Promocionais */
.promo-slider-wrapper {
    position: relative;
    padding: 40px 0;
    background-color: var(--stylus-light, #f8fafc);
}

.promo-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 0;
    /* Esconder scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .promo-slider::-webkit-scrollbar {
        display: none;
    }

.promo-slide {
    flex: 0 0 85%;
    max-width: 800px;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s;
}

@media (min-width: 992px) {
    .promo-slide {
        flex: 0 0 45%;
    }
}

.promo-slide:hover {
    transform: translateY(-5px);
}

.promo-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botões de navegação do Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    color: var(--stylus-orange, #FE7A15);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

    .slider-btn:hover {
        background: var(--stylus-orange, #FE7A15);
        color: white;
    }

.slider-btn-prev {
    left: 15px;
}

.slider-btn-next {
    right: 15px;
}

/* Secção Corporativa (Newsletter & Revendedores) */
.corporate-section {
    background-color: var(--stylus-darker, #020617);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
    /* Efeito de fundo luminoso */
    .corporate-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        width: 50%;
        height: 200%;
        background: radial-gradient(circle, rgba(254,122,21,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

.newsletter-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.newsletter-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bs-body-color) !important;
}

    .newsletter-input:focus {
        background: rgba(255,255,255,0.15);
        color: white;
        border-color: var(--stylus-orange, #FE7A15);
        box-shadow: none;
    }

.video-wrapper {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }


/*--------------------------------------------------------------
# Estilos do Diretório
--------------------------------------------------------------*/
.filter-sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.reseller-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

    .reseller-card:hover {
        border-color: var(--stylus-orange);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

.reseller-name {
    font-weight: 700;
    color: var(--stylus-dark);
    font-size: 1.2rem;
}

.badge-province {
    background: rgba(254, 122, 21, 0.1);
    color: var(--stylus-orange);
    font-weight: 600;
}

.call-to-action-box {
    background: var(--stylus-dark);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

/*--------------------------------------------------------------
# parallax
--------------------------------------------------------------*/
.bg-parallax {
    background-image: url('/images/tpfundos/stylus_quem_somos3.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/*--------------------------------------------------------------
# Mapa Leaflet.js
--------------------------------------------------------------*/
.leaflet-top {
    top: 50px !important;
}
.leaflet-tile {
    filter: grayscale(100%) brightness(1.25) contrast(1.15);
}

#stylusMap {
    width: 100%;
    height: 675px;
    border-radius: 0;
    overflow: hidden;
    /*filter: contrast(1.02) brightness(3.0);*/
    /*filter: grayscale(0.15);*/
    /*    filter: saturate(0.9) contrast(0.95) brightness(1.02);*/
    /*filter: grayscale(100%) contrast(1.3) brightness(1.1);*/
}

/*--------------------------------------------------------------
# cookies
--------------------------------------------------------------*/
/* Turn the cookie banner into a full-screen block */
.lgcookiecontainer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Dark semi-transparent background to block clicks */
    z-index: 9999; /* Ensures it stays on top of the header and all other elements */
    display: flex !important; /* Overrides the inline 'display: table' */
}

#lgcookieslaw {
    display: none;
    z-index: 10000;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    color: #F5C500;
    height: 200px;
    font-size: 18px;
}

.lgcookieslaw {
    background-color: rgba(0, 0, 0, 0.85);
    color: #FFFFFF !important;
    -webkit-box-shadow: 0 1px 5px 0 #707070;
    -moz-box-shadow: 0 1px 5px 0 #707070;
    box-shadow: 0 1px 5px 0 #707070;
    bottom: 0;
}

    .lgcookieslaw a {
        color: #FFFFFF;
        text-decoration: none;
    }

/*--------------------------------------------------------------
# login
--------------------------------------------------------------*/
.login-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
}
.login-sidebar {
    background: linear-gradient(135deg, rgba(26, 29, 32, 0.95), rgba(26, 29, 32, 0.85)), url(https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80) center / cover;
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-form-container {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* Banners das Marcas Promovidas */
.brand-banner-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

    .brand-banner-card:hover {
        transform: translateY(-8px);
    }

.brand-banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.brand-banner-card:hover .brand-banner-img {
    transform: scale(1.05);
}

.brand-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(15,23,42,0.95), transparent);
    color: white;
}

/* Cards de Soluções (Produtos) */
.feature-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

    .feature-card:hover {
        border-color: rgba(254, 122, 21, 0.3);
        box-shadow: 0 20px 40px rgba(0,0,0,0.04);
        transform: translateY(-5px);
    }

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(254, 122, 21, 0.08);
    color: var(--stylus-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .icon-circle {
    background: var(--stylus-orange);
    color: #fff;
}

/* Notícias / Blog */
.news-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
}

    .news-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

.news-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--stylus-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Banner B2B */
.b2b-cta {
    background: linear-gradient(135deg, var(--stylus-orange) 0%, #ff5e00 100%);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(254, 122, 21, 0.2);
    position: relative;
    overflow: hidden;
}

    .b2b-cta::after {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: -50px;
        bottom: -50px;
        font-size: 300px;
        opacity: 0.1;
        transform: rotate(-15deg);
    }

.b2b-cta2 {
    background: linear-gradient(135deg, var(--stylus-gray) 0%, #64748b 100%);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(254, 122, 21, 0.2);
    position: relative;
    overflow: hidden;
}

    .b2b-cta2::after {
        content: '\f2b5';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: -50px;
        bottom: -50px;
        font-size: 300px;
        opacity: 0.1;
        transform: rotate(-15deg);
    }

/* HEADER DA LOJA */
.store-header {
    padding: 50px 0;
    top: 22px;
    position: relative;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--stylus-orange);
    font-weight: 700;
}


/* SIDEBAR / MENU DE CATEGORIAS */
.sidebar-filter {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--stylus-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Acordeão de Categorias */
.category-accordion .accordion-item {
    border: none;
    background: transparent;
}

.category-accordion .accordion-button {
    padding: 10px 0;
    font-weight: 700;
    color: var(--stylus-dark);
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--stylus-border);
}

    .category-accordion .accordion-button:not(.collapsed) {
        color: var(--stylus-orange);
    }

    .category-accordion .accordion-button::after {
        transform: scale(0.8);
    }

/* Sub-famílias (Menu Aninhado) */
.sub-family-list {
    list-style: none;
    padding-left: 15px;
    margin: 10px 0;
}

    .sub-family-list li {
        margin-bottom: 8px;
    }

    .sub-family-list a {
        color: #475569;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: 0.2s;
        display: block;
    }

        .sub-family-list a:hover {
            color: var(--stylus-orange);
            padding-left: 5px;
        }

.sub-family-level-3 {
    padding-left: 15px;
    border-left: 2px solid #e2e8f0;
    margin-top: 5px;
}

    .sub-family-level-3 a {
        font-size: 0.85rem;
        color: #94a3b8;
    }

.conta-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--stylus-border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

/* TOOLBAR (Barra superior dos produtos) */
.product-toolbar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    cursor: pointer;
}

    .view-btn.active, .view-btn:hover {
        background: var(--stylus-orange);
        color: #fff;
        border-color: var(--stylus-orange);
    }

/* -------------------------------------------------------------
           CARTÃO BASE (DEFAULT = GRELHA / QUADRADOS)
           ------------------------------------------------------------- */
.product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--stylus-border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

    .product-card:hover {
        border-color: var(--stylus-orange);
        box-shadow: 0 10px 25px rgba(254,122,21,0.1);
        transform: translateY(-3px);
    }

.product-img-wrapper {
    position: relative;
    padding: 20px;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.product-img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

.no-photo {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    border-radius: 8px;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--stylus-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-stock {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

    .product-stock.out {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.1);
    }

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-family {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-pn {
    font-size: 0.8rem;
    color: #64748b;
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--stylus-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--stylus-dark);
    margin-bottom: 0;
}

    .product-price small {
        font-size: 0.8rem;
        color: #94a3b8;
        font-weight: 500;
    }

.btn-add-cart {
    background: transparent;
    border: 2px solid #f1f5f9;
    color: var(--stylus-dark);
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.product-card:hover .btn-add-cart {
    background: var(--stylus-orange);
    border-color: var(--stylus-orange);
    color: #fff;
}
/* Área do Produto */
.product-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

    .product-brand img {
        height: 35px;
        object-fit: contain;
    }

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--stylus-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Galeria */
.product-gallery {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--stylus-border);
    padding: 1.5rem;
}

.main-image-container {
    text-align: center;
    margin-bottom: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid var(--stylus-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
    background: #fff;
}

    .thumbnail:hover, .thumbnail.active {
        border-color: var(--stylus-orange);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Meta Tags (P/N, EAN) */
.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-tag {
    background: #fff;
    border: 1px solid var(--stylus-border);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: 600;
    color: #475569;
}

    .meta-tag span {
        color: #94a3b8;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: 5px;
    }

/* Caixa de Compra Simplificada */
.buy-box {
    background: #fff;
    border: 2px solid var(--stylus-orange);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(254,122,21,0.05);
}

/* Stock Badge incorporado na Buy Box */
.stock-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

    .stock-badge i {
        margin-right: 6px;
    }

.price-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.main-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--stylus-dark);
    line-height: 1;
}

    .main-price small {
        font-size: 1rem;
        color: #94a3b8;
        font-weight: 600;
    }

.priceWithIVA {
    color: var(--stylus-dark);
    text-transform: uppercase;
}
/* Input Quantidade */
.qty-input-group {
    width: 130px;
}

.qty-btn {
    background: #f8fafc;
    border: 1px solid var(--stylus-border);
    color: var(--stylus-dark);
    font-weight: bold;
    width: 40px;
    transition: 0.2s;
}

    .qty-btn:hover {
        background: #e2e8f0;
    }

.qty-input {
    text-align: center;
    border: 1px solid var(--stylus-border);
    border-left: none;
    border-right: none;
    font-weight: 700;
    color: var(--stylus-dark);
}

.btn-add-cart-large {
    background: var(--stylus-orange);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    transition: 0.3s;
    flex-grow: 1;
}

    .btn-add-cart-large:hover {
        background: var(--stylus-orange-dark);
        box-shadow: 0 8px 20px rgba(254,122,21,0.25);
        transform: translateY(-2px);
    }

.secondary-actions {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    border-top: 1px solid var(--stylus-border);
    pt-3;
    padding-top: 15px;
}

.action-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

    .action-link:hover {
        color: var(--stylus-orange);
    }

/* Tabs de Informação (Descrição, Specs, Downloads) */
.product-tabs-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--stylus-border);
    overflow: hidden;
}

.nav-tabs {
    background: #f8fafc;
    border-bottom: 1px solid var(--stylus-border);
    padding: 0 20px;
}

    .nav-tabs .nav-link {
        border: none;
        border-bottom: 3px solid transparent;
        color: #64748b;
        font-weight: 700;
        padding: 15px 20px;
        margin-bottom: -1px;
        transition: 0.3s;
    }

        .nav-tabs .nav-link:hover {
            color: var(--stylus-orange);
        }

        .nav-tabs .nav-link.active {
            background: #fff;
            color: var(--stylus-orange);
            border-bottom-color: var(--stylus-orange);
        }

.tab-content {
    padding: 30px;
}

/* Noticias Section */

.hover-zoom:hover {
    transform: scale(1.1);
}
.transition-hover {
    transition: 0.3s;
}

    .transition-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
        border-color: rgba(254, 122, 21, 0.3) !important;
    }

/* Tabela de Especificações */
.spec-table {
    width: 100%;
}

    .spec-table tr {
        border-bottom: 1px solid var(--stylus-border);
    }

        .spec-table tr:last-child {
            border-bottom: none;
        }

    .spec-table th {
        width: 35%;
        padding: 12px 15px;
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .spec-table td {
        padding: 12px 15px;
        color: var(--stylus-dark);
        font-weight: 500;
        font-size: 0.95rem;
    }

/* Downloads */
.download-card {
    border: 1px solid var(--stylus-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
}

    .download-card:hover {
        border-color: var(--stylus-orange);
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        color: inherit;
    }

.download-icon {
    font-size: 2rem;
    color: #ef4444;
    margin-right: 15px;
}
/* -------------------------------------------------------------
VIEW: LISTA DETALHADA (LINHAS)
------------------------------------------------------------- */
.product-grid.list-view .col-produto {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.product-grid.list-view .product-card {
    flex-direction: row;
    height: auto;
    align-items: center;
}

.product-grid.list-view .product-img-wrapper {
    width: 250px;
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
    padding: 10px;
}

.product-grid.list-view .product-img {
    height: 150px;
}

.product-grid.list-view .no-photo {
    height: 150px;
}

.product-grid.list-view .product-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}

.product-grid.list-view .product-info {
    flex: 1;
    padding-right: 30px;
}

.product-grid.list-view .product-action {
    width: 200px;
    text-align: right;
    border-left: 1px solid #f1f5f9;
    padding-left: 30px;
}

.product-grid.list-view .product-title {
    margin-bottom: 5px;
}

/* -------------------------------------------------------------
   VIEW: NOVA COMPACTA (TABELA B2B) - OTIMIZADA PARA 2 LINHAS
   ------------------------------------------------------------- */
.product-grid.compact-view .col-produto {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.product-grid.compact-view .product-card {
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    height: auto;
    gap: 15px;
}

/* Esconder Badges na tabela */
.product-grid.compact-view .product-badge {
    display: none;
}

/* Imagem miniatura */
.product-grid.compact-view .product-img-wrapper {
    order: 1;
    width: 45px;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.product-grid.compact-view .product-img,
.product-grid.compact-view .no-photo {
    height: 45px;
    width: 45px;
    border-radius: 6px;
}

    .product-grid.compact-view .no-photo i {
        font-size: 1rem;
        margin: 0;
    }

    .product-grid.compact-view .no-photo span {
        display: none;
    }

/* O min-width: 0 é o segredo para o flexbox não empurrar os elementos da direita para fora do ecrã */
.product-grid.compact-view .product-body {
    order: 2;
    flex: 1;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.product-grid.compact-view .product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.product-grid.compact-view .product-family {
    display: none;
}

/* Part Number */
.product-grid.compact-view .product-pn {
    margin: 0;
    width: 120px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Título em 2 Linhas com texto menor */
.product-grid.compact-view .product-title {
    margin: 0;
    font-size: 0.85rem; /* Texto mais pequeno */
    line-height: 1.3;
    /* Magia para cortar em 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* Lado Direito (Fixo para nunca ser empurrado) */
.product-grid.compact-view .product-stock {
    position: static;
    order: 3;
    margin: 0;
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}

.product-grid.compact-view .product-action {
    order: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin: 0;
    flex-shrink: 0;
    width: 220px;
}

.product-grid.compact-view .product-price {
    margin: 0;
    font-size: 1.05rem;
}

    .product-grid.compact-view .product-price small {
        display: none;
    }

.product-grid.compact-view .btn-add-cart {
    width: auto;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Paginação */
.pagination .page-link {
    color: var(--stylus-dark);
    font-weight: 600;
    border: none;
    margin: 0 4px;
    border-radius: 8px;
    padding: 10px 16px;
    background: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--stylus-orange);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f1f5f9;
}

/* Footer */
footer {
    background-color: var(--stylus-darker);
    color: #94a3b8;
    padding: 80px 0 30px;
}

    footer h5 {
        color: #fff;
        font-weight: 700;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }

    footer a {
        color: #94a3b8 !important;
        text-decoration: none;
        transition: 0.3s;
        font-weight: 500;
    }

        footer a:hover {
            color: var(--stylus-orange);
            padding-left: 5px;
        }
