/* Identidade Atacado 68 (baseada em "layout css.css" da Agile) */
:root {
    --verde: #044445;
    --verde-escuro: #022d2e;
    --laranja: #ee7d37;
    --cinza: #606061;
    --cinza-claro: #f5f5f5;
    --borda: #ebebeb;
    --texto: #3d464d;
    --laranja-escuro: #d96b28;
    --rodape-fundo: #fff;
    --rodape-texto: #3d464d;
    --rodape-titulo: #044445;
    --rodape-borda: #ebebeb;
}

body {
    font-family: "Roboto", sans-serif;
    color: var(--texto);
    background: #fff;
}

a { color: var(--verde); }
a:hover { color: var(--laranja); }

/* ---------- topo */
.topbar-message {
    background: var(--cinza);
    color: #fff;
    min-height: 40px;
    padding: 10px;
    font-size: 14px;
}

.site-header { border-bottom: 1px solid var(--borda); background: #fff; }
.site-header__middle { min-height: 135px; display: flex; align-items: center; gap: 32px; }
.site-header__logo img { height: 90px; max-width: 260px; object-fit: contain; }
.site-header__logo .logo-texto { font-size: 28px; font-weight: 700; color: var(--verde); text-decoration: none; }
.site-header__search { flex: 1; }
.site-header__phone { text-align: right; line-height: 1.6; white-space: nowrap; }
.site-header__phone-title { color: var(--verde); font-size: 17px; }
.site-header__phone-number { font-size: 15px; }
.site-header__phone-number a { color: var(--texto); text-decoration: none; }
.site-header__phone-number i { color: var(--laranja); width: 20px; }

.search__form { display: flex; border: 2px solid var(--borda); border-radius: 4px; overflow: hidden; }
.search__form:focus-within { border-color: var(--laranja); }
.search__input { flex: 1; border: 0; padding: 10px 14px; font-size: 15px; outline: none; min-width: 0; }
.search__button { background: var(--laranja); color: #fff; border: 0; padding: 0 18px; font-size: 17px; }
.search__button:hover { background: var(--laranja-escuro); color: #fff; }

/* ---------- menu de departamentos */
.nav-panel { background: var(--verde); color: #fff; }
.nav-panel .container { display: flex; align-items: stretch; height: 46px; }
.nav-departamentos { position: relative; }
.nav-departamentos > button {
    height: 46px; background: var(--laranja); color: #fff; border: 0; padding: 0 20px;
    font-weight: 500; font-size: 14px; white-space: nowrap;
}
.nav-links { display: flex; overflow: hidden; flex: 1; }
.nav-links a {
    color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap;
    padding: 0 12px; display: flex; align-items: center;
}
.nav-links a:hover, .nav-links a.ativo { background: var(--laranja); color: #fff; }

.megamenu {
    display: none; position: absolute; top: 46px; left: 0; z-index: 1000; background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15); width: min(900px, 90vw); max-height: 70vh;
    overflow-y: auto; padding: 20px 24px; columns: 3; column-gap: 28px;
}
.nav-departamentos:hover .megamenu, .nav-departamentos:focus-within .megamenu { display: block; }
.megamenu__grupo { break-inside: avoid; margin-bottom: 16px; }
.megamenu__grupo > a { font-weight: 700; color: var(--verde); font-size: 13px; text-decoration: none; }
.megamenu__grupo ul { list-style: none; padding: 0; margin: 4px 0 0; }
.megamenu__grupo li a { color: var(--texto); font-size: 12px; text-decoration: none; line-height: 1.9; }
.megamenu__grupo li a:hover, .megamenu__grupo > a:hover { color: var(--laranja); }

/* ---------- topo mobile */
.mobile-header { display: none; background: #fff; border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 1020; }
.mobile-header__body { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mobile-header__menu-button { background: none; border: 0; font-size: 22px; color: var(--verde); }
.mobile-header__logo img { max-height: 45px; max-width: 160px; }
.mobile-header__search { padding-bottom: 10px; }

@media (max-width: 991px) {
    .site-header, .nav-panel, .topbar-message { display: none; }
    .mobile-header { display: block; }
}

.offcanvas-depto .list-group-item { border-left: 0; border-right: 0; }
.offcanvas-depto .list-group-item a { color: var(--texto); text-decoration: none; }

/* ---------- blocos */
.block-header { display: flex; align-items: center; gap: 16px; margin: 36px 0 18px; }
.block-header__title { color: var(--verde); font-size: 20px; font-weight: 500; margin: 0; white-space: nowrap; }
.block-header__divider { flex: 1; height: 2px; background: var(--borda); }

.page-header { padding: 24px 0 8px; }
.page-header__title { color: var(--verde); font-size: 28px; font-weight: 500; margin: 0; }
.breadcrumb { font-size: 13px; margin-bottom: 6px; }
.breadcrumb a { color: var(--cinza); text-decoration: none; }

.banner-carousel img { width: 100%; max-height: 420px; object-fit: cover; }
.carousel-indicators [data-bs-target] { background-color: var(--laranja); }
.carousel-indicators .active { background-color: var(--verde); }

.hero-catalogo {
    background: linear-gradient(120deg, var(--verde) 0%, var(--verde-escuro) 100%);
    color: #fff; padding: 48px 0; margin-bottom: 8px;
}
.hero-catalogo h1 { font-weight: 500; font-size: 32px; }
.hero-catalogo p { opacity: .85; margin: 0; }

.depto-card {
    display: flex; align-items: center; gap: 12px; border: 1px solid var(--borda); border-radius: 6px;
    padding: 14px 16px; text-decoration: none; color: var(--texto); height: 100%; transition: .15s;
}
.depto-card:hover { border-color: var(--laranja); color: var(--verde); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.depto-card i { color: var(--laranja); font-size: 20px; width: 26px; text-align: center; }
.depto-card strong { display: block; font-weight: 500; font-size: 14px; }
.depto-card small { color: #8a9095; }

/* ---------- cartão de produto */
.product-card {
    border: 1px solid var(--borda); border-radius: 6px; background: #fff; height: 100%;
    display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s;
}
.product-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); border-color: #dcdcdc; }
.product-card__image { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 14px; }
.product-card__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card__info { padding: 0 14px 10px; flex: 1; }
.product-card__brand { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--laranja); font-weight: 500; }
.product-card__name {
    font-size: 14px; line-height: 1.35; min-height: 57px; color: var(--texto); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__name:hover { color: var(--verde); }
.product-card__meta { font-size: 12px; color: #8a9095; margin-top: 4px; }
.product-card__actions { padding: 0 14px 14px; }
.btn-verde { background: var(--verde); color: #fff; border: 0; }
.btn-verde:hover, .btn-verde:focus { background: var(--verde-escuro); color: #fff; }
.btn-laranja { background: var(--laranja); color: #fff; border: 0; }
.btn-laranja:hover { background: var(--laranja-escuro); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; font-weight: 500; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

.badge-disponivel { background: #e6f4ea; color: #1e7b34; font-weight: 500; }
.badge-indisponivel { background: #f3f3f3; color: #8a9095; font-weight: 500; }

/* ---------- listagem */
.filtros h6 { color: var(--verde); font-weight: 500; font-size: 15px; margin: 20px 0 10px; }
.filtros .list-group-item { border: 0; padding: 4px 0; font-size: 14px; background: none; }
.filtros .list-group-item a { color: var(--texto); text-decoration: none; }
.filtros .list-group-item a.ativo, .filtros .list-group-item a:hover { color: var(--laranja); font-weight: 500; }
.filtros .qtd { color: #a0a5aa; font-size: 12px; }
.pagination .page-link { color: var(--verde); }
.pagination .active .page-link { background: var(--verde); border-color: var(--verde); color: #fff; }

/* ---------- página do produto */
.galeria__principal {
    border: 1px solid var(--borda); border-radius: 6px; aspect-ratio: 1; display: flex;
    align-items: center; justify-content: center; padding: 20px; background: #fff;
}
.galeria__principal img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.galeria__miniaturas { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.galeria__miniaturas button {
    width: 72px; height: 72px; border: 2px solid var(--borda); border-radius: 4px; background: #fff; padding: 4px;
}
.galeria__miniaturas button.ativo { border-color: var(--laranja); }
.galeria__miniaturas img { width: 100%; height: 100%; object-fit: contain; }

.product__name { color: var(--verde); font-size: 26px; font-weight: 500; }
.product__meta { list-style: none; padding: 0; margin: 16px 0; font-size: 14px; }
.product__meta li { padding: 6px 0; border-bottom: 1px dashed var(--borda); display: flex; gap: 8px; }
.product__meta li span:first-child { color: #8a9095; min-width: 150px; }
.ficha-tecnica th { width: 40%; background: var(--cinza-claro); font-weight: 500; color: var(--verde); }
.ficha-tecnica td, .ficha-tecnica th { padding: 10px 14px; font-size: 14px; }
.product-tabs__item { color: var(--verde); font-weight: 500; border-bottom: 3px solid var(--verde); display: inline-block; padding-bottom: 6px; }
.descricao-longa { white-space: pre-line; font-size: 15px; line-height: 1.7; }

.relacionados { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.relacionados > * { scroll-snap-align: start; }

/* ---------- serviço / newsletter-like faixa */
.service-bar { background: var(--laranja); color: #fff; }
.service-bar a { color: #fff; text-decoration: none; font-weight: 500; }

/* ---------- rodapé */
.site-footer { border-top: 1px solid var(--rodape-borda); margin-top: 56px; padding-top: 40px; background: var(--rodape-fundo); color: var(--rodape-texto); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.site-footer h5 { color: var(--rodape-titulo); font-size: 17px; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin-bottom: 0; }
.site-footer li { font-size: 14px; line-height: 2; }
.site-footer li a, .site-footer__texto a { color: var(--rodape-texto); text-decoration: none; }
.site-footer li a:hover { color: var(--laranja); }
.site-footer i.ico { color: var(--laranja); width: 22px; }
.site-footer__texto { font-size: 14px; line-height: 1.7; white-space: pre-line; }
.site-footer__logo img { height: 90px; max-width: 240px; object-fit: contain; }
.site-footer__logo .logo-texto { color: var(--rodape-titulo); }
.site-footer__imagens { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.site-footer__imagens img { max-height: 56px; max-width: 160px; object-fit: contain; }
.footer-apps img { height: 40px; }
.site-footer__bottom { border-top: 1px solid var(--rodape-borda); padding: 18px 0; font-size: 12px; opacity: .8; text-align: center; margin-top: 28px; }

/* ---------- carrosséis da página inicial */
.banner-carousel img { max-height: none; }
.banner-faixa img { width: 100%; }
.carrossel { position: relative; }
.carrossel__trilho {
    display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 8px;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__item { scroll-snap-align: start; min-width: 0; }
.carrossel__trilho--produtos { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
.carrossel__trilho--banners { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
.carrossel__trilho--marcas { grid-auto-columns: calc((100% - 5 * 16px) / 6); }
.carrossel__seta {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px;
    border-radius: 50%; border: 1px solid var(--borda); background: #fff; color: var(--verde);
    box-shadow: 0 2px 8px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center;
}
.carrossel__seta:hover { color: var(--laranja); }
.carrossel__seta--esq { left: -14px; }
.carrossel__seta--dir { right: -14px; }
.carrossel--sem-rolagem .carrossel__seta { display: none; }
.marca-item {
    display: flex; align-items: center; justify-content: center; height: 100px; padding: 12px;
    border: 1px solid var(--borda); border-radius: 6px; background: #fff; transition: border-color .15s;
}
.marca-item:hover { border-color: var(--laranja); }
.marca-item img { max-width: 100%; max-height: 76px; object-fit: contain; filter: grayscale(.2); }
.marca-item:hover img { filter: none; }

@media (max-width: 991px) {
    .carrossel__trilho--produtos { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
    .carrossel__trilho--marcas { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
    .carrossel__trilho--banners { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 575px) {
    .carrossel__trilho--produtos { grid-auto-columns: 46%; }
    .carrossel__trilho--marcas { grid-auto-columns: 30%; }
    .carrossel__trilho--banners { grid-auto-columns: 85%; }
    .carrossel__seta { display: none; }
    .marca-item { height: 80px; }
}

/* ---------- páginas institucionais */
.pagina-conteudo { max-width: 860px; font-size: 16px; line-height: 1.75; }
.pagina-conteudo h2, .pagina-conteudo h3 { color: var(--verde); margin-top: 1.5em; }
.pagina-conteudo img { max-width: 100%; height: auto; }
.pagina-conteudo .ql-align-center { text-align: center; }
.pagina-conteudo .ql-align-right { text-align: right; }
.pagina-conteudo .ql-align-justify { text-align: justify; }

.whatsapp-flutuante {
    position: fixed; right: 20px; bottom: 20px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.25); text-decoration: none;
}
.whatsapp-flutuante:hover { color: #fff; transform: scale(1.06); }

@media (max-width: 575px) {
    .product-card__name { font-size: 13px; min-height: 52px; }
    .product-card__image { padding: 8px; }
    .product__name { font-size: 21px; }
    .product__meta li span:first-child { min-width: 120px; }
    .page-header__title { font-size: 22px; }
}
