/* =========================================
   RESET & CONFIGURAÇÕES BASE
   ========================================= */
img, picture {
    display: inline;
    max-width: 100%;
    height: auto;
}

/* Container base unificado para carrosséis nativos (DRY) */
.carousel-inner,
.products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    scroll-behavior: smooth;
}

.carousel-inner::-webkit-scrollbar,
.products-carousel::-webkit-scrollbar {
    display: none;
}

/* Elementos filhos com snap (DRY) */
.carousel-item,
.product-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* CLASSE CENTRALIZADA E UNIFICADA DOS BOTÕES DO CARROSSEL */
.btn-carousel-base,
.btn-carousel-page {
    background: #000000;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-carousel-page {
    background: none;
    color: #000000;
}

/* =========================================
   BANNER HOME
   ========================================= */
.banner-home { 
    position: relative; 
    width: 100%; 
}

.carousel-item {
    flex-basis: 100%;
    position: relative;
    display: block;
}

.banner-img { 
    display: block; 
    width: 100%; 
    height: auto; 
}

.banner-link { 
    display: block; 
    position: relative; 
    text-decoration: none; 
}

.banner-content {
    text-align: center;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(0, 0, 0);
    border-radius: 5px;
    padding: 10px 25px;
    z-index: 1;
}

.banner-content h1,
.banner-content p {
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin: 0;
}

.banner-content h1 {
    font-size: 17px;
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 18px;
}

/* Posicionamento absoluto dos botões no Banner */
.banner-home .btn-carousel-base {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prev { left: 10px; }
.next { right: 10px; }

/* =========================================
   ESTRUTURA DE SEÇÕES & CABEÇALHOS
   ========================================= */
.products-section { 
    padding: 40px 20px; 
    max-width: 1600px; 
    margin: 0 auto; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title {
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

/* Modificadores dos botões de controle das seções */
.carousel-controls .btn-carousel-base {
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.carousel-controls .btn-carousel-base:hover {
    background: #e8e8ed;
    color: #000000;
}

.carousel-controls .btn-carousel-base:active {
    transform: scale(0.95);
}

.products-carousel-wrapper { 
    position: relative; 
    width: 100%;
}

.products-carousel {
    gap: 20px;
    padding-bottom: 20px;
}

/* =========================================
   PAGINAÇÃO (DOTS)
   ========================================= */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dot {
    width: 30px;
    height: 7px;
    border-radius: 20%;
    border: 1px solid #000000;
    background-color: transparent;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #11161a;
}

/* =========================================
   CARDS DE CATEGORIA
   ========================================= */
.category-card {
    flex-basis: calc(29% - 15px);
}

.category-card .image-wrapper {
    aspect-ratio: 1 / 1;
}

.category-card .product-info {
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
}

/* =========================================
   CARROSSEL DE MARCAS
   ========================================= */
.carousel-nav-wrapper {
    position: relative;
    padding: 0 40px; 
}

.btn-carousel-positioned {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#brandsPrev { left: -10px; }
#brandsNext { right: -10px; }
#brandsInner { gap: 20px; }
#brandsCarouselWrapper { padding-bottom: 0px; }

.brand-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    flex-basis: calc(20% - 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.brand-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* =========================================
   BARRA DE CONFIANÇA
   ========================================= */
.trust-bar-wrapper {
    background: #ffffff;
    width: 100%;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 30px 20px;
    max-width: 1600px; 
    margin: 0 auto;    
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.trust-item img {
    width: 30px;
    height: auto;
}

.trust-item img[alt="Atendimento via WhatsApp"] {
    width: 27px;
}

.trust-item img[alt="Site Seguro"] {
    width: 32px;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong { 
    font-size: 14px; 
    text-transform: uppercase; 
}

.trust-text span { 
    font-size: 12px; 
    color: #666666; 
}

.double-banner {
    display: flex;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.banner-box {
    position: relative;
    flex: 1; /* Faz as duas dividirem o espaço igualmente */
    overflow: hidden;
    border-radius: 8px;
}

.banner-box img {
    width: 100%;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    text-align: center;
}

/* =========================================
   MEDIA QUERIES RESPONSIVAS
   ========================================= */
@media (max-width: 1024px) {
    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }
}

@media (max-width: 899px) {
    .banner-content h1 { font-size: 13px; }
    .banner-content p { font-size: 14px; }
    .product-card { flex-basis: calc(33.33% - 13.33px); }
    .brand-item { flex-basis: calc(33.33% - 13.33px); }
}

@media (max-width: 600px) {
    .product-card { flex-basis: 85%; }
    .category-card { flex-basis: 70%; }
    .brand-item { flex-basis: calc(50% - 10px); }
    .carousel-nav-wrapper { padding: 0; }

    .double-banner {
        flex-direction: column;
    }
    .banner-overlay p {
        font-weight: 700;
        font-size: 14px;
    }
    .banner-overlay h3 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .trust-item {
        justify-content: flex-start;
        padding-left: 5%; 
    }
}