/* =========================================================
   DS Tecnologia - Home
   Revisão visual desktop/tablet/mobile
   ========================================================= */

body {
    background: #fff;
}

/* Faz a Home aproveitar melhor telas grandes sem alterar o container global. */
main.container {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
}

/* =========================================================
   BANNER / HERO
   ========================================================= */

.home-banners {
    width: 100%;
    padding: 18px 24px 0;
    background: #fff;
    overflow: hidden;
}

.home-banners-track {
    position: relative;
    width: min(1380px, 100%);
    margin: 0 auto;
}

.home-banner {
    position: relative;
    width: 100%;
    margin: 0;
    display: none;
    overflow: hidden;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: #f3f6fa;
    box-shadow: 0 10px 34px rgba(15, 23, 42, .05);
}

.home-banner.is-active {
    display: block;
    animation: homeBannerFade .35s ease;
}

@keyframes homeBannerFade {
    from { opacity: .25; }
    to { opacity: 1; }
}

.home-banner-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding-top: 10px;
}

.home-banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.home-banner-dot.is-active {
    width: 26px;
    background: #155eef;
}

.home-banner picture {
    display: block;
    width: 100%;
}

.home-banner picture img,
.home-banner > img {
    display: block;
    width: 100%;
    height: clamp(300px, 25vw, 430px);
    object-fit: cover;
}

.home-banner-content {
    position: absolute !important;
    inset: 0 !important;
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: clamp(38px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transform: none !important;
    pointer-events: none;
}

.home-banner-content h1 {
    max-width: 620px;
    margin: 0 0 14px;
    color: #0b1220;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: .98;
    letter-spacing: -2.5px;
}

.home-banner-content p {
    max-width: 560px;
    margin: 0 0 24px;
    color: #475569;
    font-size: 17px;
    line-height: 1.55;
}

.home-banner-content .btn {
    min-height: 48px;
    padding: 0 22px;
    pointer-events: auto;
}

.hero {
    margin-top: 18px;
    padding: 68px 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(21,94,239,.16), transparent 26%),
        linear-gradient(120deg,#f7f8fb,#eef3fb);
}

.hero-grid {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
}

.hero-card {
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(15,23,42,.10);
}

/* =========================================================
   TÍTULOS
   ========================================================= */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.section-head h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.section-head p {
    color: #718096;
}

.eyebrow {
    margin: 0 0 8px !important;
    color: #155eef !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 1.35px;
}

/* =========================================================
   CATEGORIAS
   ========================================================= */

#categorias {
    padding: 42px 0 28px;
}

#categorias .section-head {
    margin-bottom: 20px;
}

#categorias .categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

#categorias .categories > a {
    min-height: 112px;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    background: #f8fafc;
    color: #172033;
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: .2s ease;
}

#categorias .categories > a::before {
    content: "DS";
    width: 46px;
    height: 46px;
    margin-right: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: #fff;
    color: #155eef;
    box-shadow: 0 5px 15px rgba(15,23,42,.06);
    font-size: 12px;
    font-weight: 900;
}

#categorias .categories > a:hover {
    border-color: #b9d0ff;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

/* =========================================================
   PRODUTOS
   ========================================================= */

#produtos {
    padding: 40px 0 58px;
}

#produtos .section-head {
    margin-bottom: 26px;
}

#produtos .section-head > div {
    max-width: 720px;
}

.search {
    width: min(380px, 100%);
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    background: #fff;
    font: inherit;
}

#grid.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

#grid .product {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e3e9f1;
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#grid .product:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15,23,42,.09);
}

#grid .product[hidden] {
    display: none !important;
}

#grid .product > img,
#grid .product > .product-image-placeholder {
    width: 100%;
    height: 300px;
    padding: 28px;
    object-fit: contain;
    background: #f8fafc;
    border-bottom: 1px solid #f0f3f7;
}

#grid .product > img {
    transition: transform .25s ease;
}

#grid .product:hover > img {
    transform: scale(1.025);
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    color: #155eef;
    font-size: 30px;
    font-weight: 900;
}

#grid .product-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#grid .product-body > small:first-child {
    margin-bottom: 8px;
    color: #155eef;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .75px;
}

#grid .product h3 {
    min-height: 46px;
    margin: 0 0 10px;
    color: #172033;
    font-size: 16px;
    line-height: 1.4;
}

#grid .product-body > p {
    min-height: 42px;
    margin: 0 0 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #7b8799;
    font-size: 13px;
    line-height: 1.55;
}

#grid .price {
    margin-top: auto;
    color: #0b1220;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.6px;
}

#grid .price + small {
    margin-top: 4px;
    color: #9aa4b2;
    font-size: 11px;
}

#grid .product-body > small:last-of-type {
    margin-top: 9px;
    color: #64748b;
    font-size: 11px;
}

#grid .actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 9px;
}

#grid .actions .btn {
    width: 100%;
    min-height: 45px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
}

#grid .actions .btn.ghost {
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #536076;
    box-shadow: none;
}

#grid .actions .btn.ghost:hover {
    border-color: #155eef;
    color: #155eef;
    transform: none;
}

#grid .actions .btn.add {
    background: #155eef;
    color: #fff;
}

#grid .actions .btn.add:hover {
    background: #0d47c7;
}

/* =========================================================
   BENEFÍCIOS
   ========================================================= */

.home-benefits {
    margin: 0 0 28px;
    padding: 34px 0;
    border-top: 1px solid #edf0f4;
}

.home-benefits .categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    background: #fff;
}

.home-benefits .categories > div {
    min-height: 112px;
    padding: 22px;
}

.home-benefits .categories > div + div {
    border-left: 1px solid #edf0f4;
}

.home-benefits strong {
    color: #172033;
    font-size: 14px;
}

.home-benefits p {
    margin: 6px 0 0;
    color: #7b8799;
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    #categorias .categories {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    #grid.grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    #grid .product > img,
    #grid .product > .product-image-placeholder {
        height: 250px;
    }
}

@media (max-width: 820px) {
    main.container {
        width: min(100% - 32px, 1380px);
    }

    #grid.grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .home-benefits .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-benefits .categories > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #edf0f4;
    }

    .home-benefits .categories > div:nth-child(4) {
        border-top: 1px solid #edf0f4;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    main.container {
        width: calc(100% - 24px);
    }

    .home-banners {
        padding: 8px 10px 0;
    }

    .home-banners-track {
        width: 100%;
    }

    .home-banner {
        width: 100%;
        border-radius: 12px;
    }

    .home-banner picture img,
    .home-banner > img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .home-banner-content {
        position: static !important;
        width: 100%;
        padding: 20px !important;
        background: #f5f6f8;
    }

    .home-banner-content h1 {
        margin-bottom: 8px;
        font-size: 28px;
        letter-spacing: -1px;
    }

    .home-banner-content p {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .home-banner-content .btn {
        width: auto;
        min-height: 40px;
        padding: 0 16px;
        font-size: 12px;
    }

    .hero {
        margin-top: 8px;
        padding: 38px 0;
    }

    .hero-grid {
        width: calc(100% - 24px);
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .section-head h2 {
        font-size: 27px;
    }

    #categorias {
        padding-top: 30px;
    }

    #categorias .categories {
        margin-right: -12px;
        padding-right: 12px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #categorias .categories::-webkit-scrollbar {
        display: none;
    }

    #categorias .categories > a {
        min-width: 138px;
        min-height: 96px;
        padding: 13px 10px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        text-align: center;
        font-size: 12px;
    }

    #categorias .categories > a::before {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-basis: 40px;
        font-size: 10px;
    }

    #produtos {
        padding-top: 34px;
    }

    #produtos .section-head p {
        margin-bottom: 0;
        font-size: 13px;
    }

    .search {
        width: 100%;
    }

    #grid.grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #grid .product {
        border-radius: 14px;
    }

    #grid .product > img,
    #grid .product > .product-image-placeholder {
        height: 280px;
        padding: 22px;
    }

    #grid .product-body {
        padding: 17px;
    }

    #grid .product-body > small:first-child {
        margin-bottom: 6px;
        font-size: 9px;
    }

    #grid .product h3 {
        min-height: 0;
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 1.4;
    }

    #grid .product-body > p {
        min-height: 0;
        margin-bottom: 12px;
        display: -webkit-box;
        font-size: 12px;
    }

    #grid .price {
        font-size: 25px;
    }

    #grid .product-body > small:last-of-type {
        margin-top: 7px;
        font-size: 10px;
    }

    #grid .actions {
        margin-top: 13px;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    #grid .actions .btn {
        min-height: 44px;
        font-size: 12px;
    }

    #grid .actions .btn.add {
        order: -1;
    }

    #grid .actions .btn.ghost {
        min-height: 34px;
        border: 0;
        background: transparent;
        color: #657187;
    }

    .home-benefits .categories {
        grid-template-columns: 1fr;
    }

    .home-benefits .categories > div {
        min-height: 0;
        padding: 18px;
    }

    .home-benefits .categories > div + div {
        border-left: 0;
        border-top: 1px solid #edf0f4;
    }
}

/* DS Home V1 - Banner ponta a ponta, produtos clicáveis e confiança */
.home-banners { padding: 0 !important; width: 100%; max-width: none; }
.home-banners-track { width: 100% !important; max-width: none !important; margin: 0 !important; }
.home-banner { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.home-banner picture img, .home-banner > img { width: 100%; height: clamp(300px, 32vw, 620px); object-fit: cover; }
.home-banner-content { width: min(1380px, calc(100% - 48px)); max-width: none; margin-inline: auto; }
#grid .product > .product-image-link { display: block; width: 100%; overflow: hidden; text-decoration: none; background: #f8fafc; border-bottom: 1px solid #f0f3f7; }
#grid .product > .product-image-link img, #grid .product > .product-image-link .product-image-placeholder { display: block; width: 100%; height: 300px; padding: 28px; object-fit: contain; background: #f8fafc; border: 0; transition: transform .25s ease; }
#grid .product > .product-image-link .product-image-placeholder { display: grid; }
#grid .product > .product-image-link:hover img { transform: scale(1.035); }
#grid .product .product-title-link { color: inherit; text-decoration: none; }
#grid .product .product-title-link:hover { color: #155eef; text-decoration: underline; }
@media (max-width: 1100px) { #grid .product > .product-image-link img, #grid .product > .product-image-link .product-image-placeholder { height: 250px; } }
@media (max-width: 700px) {
 .home-banners { padding: 0 !important; }
 .home-banner { border-radius: 0 !important; }
 .home-banner picture img, .home-banner > img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
 .home-banner-content { width: 100%; }
 #grid .product > .product-image-link img, #grid .product > .product-image-link .product-image-placeholder { height: 280px; padding: 22px; }
}

/* DS Home V2 - produtos imediatamente apos o banner */
.home-banner-dots {
    min-height: 26px;
    padding-top: 7px;
    padding-bottom: 3px;
    background: #fff;
}
#produtos {
    padding-top: 30px;
}
#categorias {
    padding-top: 24px;
}
@media (max-width: 700px) {
    .home-banner-dots { min-height: 22px; padding-top: 5px; padding-bottom: 2px; }
    #produtos { padding-top: 24px; }
    #categorias { padding-top: 18px; }
}

/* =========================================================
   V3 - HOME MAIS COMERCIAL / DENSA
   ========================================================= */

/* Menos espaço morto entre o banner e o catálogo */
.home-banner-dots {
    min-height: 22px;
    padding-top: 6px;
}

main.container {
    width: min(1480px, calc(100% - 36px));
}

/* Cabeçalho de seção compacto */
#produtos {
    padding: 22px 0 30px;
}

#produtos .section-head {
    margin-bottom: 14px;
    align-items: center;
}

#produtos .section-head h2,
#categorias .section-head h2 {
    font-size: clamp(23px, 2vw, 31px);
    letter-spacing: -.8px;
}

.search {
    min-height: 42px;
    width: min(340px, 100%);
    border-radius: 9px;
}

/* Mais produtos visíveis por tela */
#grid.grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

#grid .product {
    border-radius: 12px;
}

#grid .product-image-link {
    display: block;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #f0f3f7;
}

#grid .product-image-link > img,
#grid .product-image-link > .product-image-placeholder {
    display: block;
    width: 100%;
    height: 205px;
    padding: 18px;
    object-fit: contain;
    background: #f8fafc;
}

#grid .product-image-link > img {
    transition: transform .25s ease;
}

#grid .product:hover .product-image-link > img {
    transform: scale(1.035);
}

#grid .product-body {
    padding: 13px;
}

#grid .product-body > small:first-child {
    margin-bottom: 5px;
    font-size: 9px;
}

#grid .product h3 {
    min-height: 39px;
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.35;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: #155eef;
}

#grid .product-body > p {
    min-height: 34px;
    margin-bottom: 9px;
    font-size: 11px;
    line-height: 1.45;
}

#grid .price {
    font-size: 22px;
}

#grid .product-body > small:last-of-type {
    margin-top: 6px;
    font-size: 10px;
}

#grid .actions {
    margin-top: 10px;
    grid-template-columns: .72fr 1.28fr;
    gap: 6px;
}

#grid .actions .btn {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* Categorias compactas com miniaturas reais do catálogo */
#categorias {
    padding: 22px 0 24px;
    border-top: 1px solid #edf0f4;
}

#categorias .section-head {
    margin-bottom: 13px;
}

#categorias .section-head .eyebrow {
    display: none;
}

#categorias .categories {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

#categorias .categories > a.category-card {
    position: relative;
    min-height: 86px;
    padding: 9px 27px 9px 9px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid #e3e9f1;
    border-radius: 11px;
    background: #fff;
    color: #172033;
    text-align: left;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

#categorias .categories > a.category-card::before {
    display: none;
}

.category-thumb {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.category-thumb > span {
    color: #155eef;
    font-size: 13px;
    font-weight: 900;
}

.category-name {
    min-width: 0;
    line-height: 1.3;
}

.category-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #155eef;
    font-size: 21px;
    font-weight: 500;
}

#categorias .categories > a.category-card:hover {
    border-color: #b9d0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.07);
}

/* Benefícios também mais compactos */
.home-benefits {
    margin-bottom: 16px;
    padding: 22px 0;
}

.home-benefits .categories > div {
    min-height: 88px;
    padding: 16px 18px;
}

@media (max-width: 1250px) {
    #grid.grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #categorias .categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    main.container {
        width: calc(100% - 24px);
    }

    #grid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #grid .product-image-link > img,
    #grid .product-image-link > .product-image-placeholder {
        height: 210px;
    }
}

@media (max-width: 700px) {
    .home-banner-dots {
        min-height: 18px;
        padding-top: 4px;
    }

    #produtos {
        padding-top: 17px;
    }

    #produtos .section-head {
        gap: 9px;
        margin-bottom: 11px;
    }

    #grid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #grid .product-image-link > img,
    #grid .product-image-link > .product-image-placeholder {
        height: 155px;
        padding: 11px;
    }

    #grid .product-body {
        padding: 10px;
    }

    #grid .product h3 {
        min-height: 38px;
        font-size: 12px;
    }

    #grid .product-body > p {
        display: none;
    }

    #grid .price {
        font-size: 19px;
    }

    #grid .actions {
        grid-template-columns: 1fr;
    }

    #grid .actions .btn.ghost {
        display: none;
    }

    #categorias {
        padding-top: 18px;
    }

    #categorias .categories {
        margin-right: -12px;
        padding-right: 12px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    #categorias .categories > a.category-card {
        min-width: 190px;
        min-height: 76px;
        padding: 7px 25px 7px 7px;
        grid-template-columns: 60px minmax(0, 1fr);
        flex-direction: initial;
        text-align: left;
    }

    .category-thumb {
        width: 60px;
        height: 60px;
    }
}

/* =========================================================
   V6 - HOME COMPACTA / CORREÇÃO REAL DO CSS
   ========================================================= */

/* Produtos em destaque: escala de vitrine, sem cards gigantes */
#produtos {
    padding: 8px 0 14px;
}

#produtos .section-head {
    min-height: 30px;
    margin-bottom: 7px;
    gap: 12px;
}

#produtos .section-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: -.35px;
}

#produtos .section-head p,
#produtos .eyebrow {
    display: none !important;
}

.search {
    width: min(270px, 100%);
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11px;
}

#grid.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

#grid .product {
    min-width: 0;
    border-radius: 9px;
    overflow: hidden;
}

#grid .product-image-link {
    display: block;
    width: 100%;
    height: 112px;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

#grid .product-image-link > img,
#grid .product-image-link > .product-image-placeholder,
#grid .product > .product-image-link img,
#grid .product > .product-image-link .product-image-placeholder {
    width: 100% !important;
    height: 112px !important;
    max-height: 112px !important;
    padding: 7px !important;
    display: block;
    object-fit: contain;
    background: #f8fafc;
    border: 0;
}

#grid .product-image-link > .product-image-placeholder,
#grid .product > .product-image-link .product-image-placeholder {
    display: grid;
    place-items: center;
    font-size: 18px;
}

#grid .product-body {
    padding: 7px 8px 8px;
}

#grid .product-body > small:first-child {
    margin: 0 0 2px;
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: .35px;
}

#grid .product h3 {
    min-height: 28px;
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

#grid .product-title-link {
    color: inherit;
    text-decoration: none;
}

#grid .product-body > p {
    display: none !important;
}

#grid .price {
    margin-top: auto;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -.25px;
}

#grid .price + small {
    margin-top: 2px;
    font-size: 8px;
}

#grid .product-body > small:last-of-type {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.2;
}

#grid .actions {
    margin-top: 5px;
    display: block;
}

#grid .actions .btn.ghost {
    display: none !important;
}

#grid .actions .btn.add {
    width: 100%;
    min-height: 27px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 8.5px;
    font-weight: 800;
}

/* Categorias: miniaturas reais, pequenas e presas dentro do card */
#categorias {
    padding: 9px 0 13px;
}

#categorias .section-head {
    display: none !important;
}

#categorias .categories {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

#categorias .categories > a::before,
#categorias .category-card::before,
#categorias .category-heading::before {
    content: none !important;
    display: none !important;
}

#categorias .category-card {
    min-width: 0;
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    overflow: hidden;
    border: 1px solid #e3e9f1;
    border-radius: 9px;
    background: #fff;
}

#categorias .category-heading {
    height: 15px;
    min-height: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    overflow: hidden;
    color: #172033;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

#categorias .category-name {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#categorias .category-arrow {
    position: static;
    flex: 0 0 auto;
    transform: none;
    color: #155eef;
    font-size: 13px;
    line-height: 1;
}

#categorias .category-products {
    width: 100%;
    height: 57px;
    min-height: 57px;
    max-height: 57px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 3px;
    overflow: hidden;
}

#categorias .category-product {
    width: 100%;
    height: 57px;
    min-width: 0;
    max-height: 57px;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
}

#categorias .category-product img {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    max-width: 54px !important;
    max-height: 50px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    background: transparent !important;
}

#categorias .category-product:hover {
    border-color: #c9dafd;
    background: #f8fbff;
}

#categorias .category-card:hover {
    border-color: #c9dafd;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
}

@media (max-width: 1300px) {
    #grid.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    #categorias .categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
    #grid.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #categorias .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    #produtos { padding-top: 7px; }
    #produtos .section-head { margin-bottom: 6px; }
    #produtos .section-head h2 { font-size: 15px; }
    .search { width: 100%; min-height: 31px; }

    #grid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    #grid .product-image-link,
    #grid .product-image-link > img,
    #grid .product-image-link > .product-image-placeholder,
    #grid .product > .product-image-link img,
    #grid .product > .product-image-link .product-image-placeholder {
        height: 105px !important;
        max-height: 105px !important;
    }

    #grid .product-body { padding: 7px; }
    #grid .product h3 { min-height: 27px; font-size: 9.5px; }
    #grid .price { font-size: 15px; }
    #grid .actions .btn.add { min-height: 27px; font-size: 8px; }

    #categorias .categories {
        display: flex !important;
        gap: 7px;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #categorias .categories::-webkit-scrollbar { display: none; }

    #categorias .category-card {
        flex: 0 0 150px;
        width: 150px;
        height: 82px;
        min-height: 82px;
        max-height: 82px;
        padding: 6px;
    }

    #categorias .category-products,
    #categorias .category-product {
        height: 53px;
        min-height: 53px;
        max-height: 53px;
    }

    #categorias .category-product img {
        height: 46px !important;
        max-height: 46px !important;
        max-width: 48px !important;
    }
}


/* =========================================================
   V7 - HOME: imagem dos produtos um pouco maior
   Regra exclusiva da grade da página inicial.
   Não altera a imagem da página de detalhes do produto.
   ========================================================= */
@media (min-width: 701px) {
    #grid .product-image-link {
        height: 148px !important;
    }

    #grid .product-image-link > img,
    #grid .product-image-link > .product-image-placeholder,
    #grid .product > .product-image-link img,
    #grid .product > .product-image-link .product-image-placeholder {
        height: 148px !important;
        max-height: 148px !important;
        padding: 7px !important;
        object-fit: contain;
    }
}
