/* Produto Archive */
.produto-archive-page {
    padding: 56px 0 72px;
}

.produto-archive-page .home-products-title {
    margin-bottom: 16px;
}

.produto-archive-categorias {
    background: #eaf2f8;
    padding-top: 40px;
}

.produto-archive-categorias-grid {
    gap: 26px;
}

.produto-archive-categoria-card {
    background: #f6fbff;
    border-radius: 24px;
    box-shadow: 0 10px 22px rgba(19, 55, 79, 0.08);
}

.produto-archive-categoria-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.produto-archive-categoria-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.produto-archive-categorias-list {
    display: grid;
    gap: 32px;
}

.produto-archive-categoria-block .home-product-card {
    background: #f5fbff;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(19, 55, 79, 0.08);
    padding: 28px 18px 56px;
    position: relative;
    text-align: center;
    min-height: 260px;
}

.produto-archive-categoria-block .home-product-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: #a4d146;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.produto-archive-categoria-block .home-product-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #a4d146;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.produto-archive-categoria-block .home-product-icon img {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.produto-archive-categoria-block .home-product-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f4b6a;
    text-transform: uppercase;
}

.produto-archive-categoria-block .home-product-arrow {
    margin-top: 18px;
    width: 26px;
    height: 26px;
    background-color: #a4d146;
}

.produto-archive-search {
    margin: 20px 0 24px;
    position: relative;
}

.produto-archive-search-input {
    border-radius: 22px;
    border: 2px solid #cfd9e2;
    background: #ffffff;
    height: 44px;
    padding: 0 44px 0 16px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(14, 60, 90, 0.06);
    color: #1f4b6a;
}

.produto-archive-search::after {
    content: 'â€º';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2d5f7f;
    font-size: 20px;
    pointer-events: none;
}

.produto-archive-produtos {
    padding-top: 24px;
}

/* Produto Single */
.produto-page {
    background: #f4f7fa;
}

.produto-hero {
    min-height: 344px;
    background: linear-gradient(120deg, rgb(12 43 60 / 0%), rgb(10 30 45 / 0%)), var(--produto-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.produto-hero-overlay {
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 0;
}

.produto-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.produto-categorias {
    padding: 36px 0 34px;
}

.produto-categorias-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.produto-categoria-card {
    min-height: 74px;
    border-radius: 16px;
    background: #ffffff;
    color: #1f4b6a;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(19, 55, 79, 0.09);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.produto-categoria-card:hover {
    /* background: #235b7f; */
    color: #ffffff;
    transform: translateY(-2px);
    background: #A4D146;
}

.produto-categoria-arrow {
    font-size: 26px;
    line-height: 1;
}

.produto-banner-secundario {
    min-height: 430px;
    background: linear-gradient(92deg, rgb(8 26 41 / 84%) 0%, rgb(10 32 49 / 58%) 36%, rgb(12 35 53 / 20%) 66%, rgb(12 35 53 / 6%) 100%), var(--produto-banner-secundario);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin-bottom: 35px;
}

.produto-banner-secundario-overlay {
    min-height: inherit;
    display: flex;
    align-items: flex-end;
    padding: 34px 0 54px;
    position: relative;
    margin-left: 110px;
    /* padding: 20px; */
}

.produto-banner-secundario-titulo {
    margin: 0;
    max-width: 520px;
    color: #ffffff;
    font-size: clamp(32px, 3.2vw, 56px);
    line-height: 1.03;
    font-weight: 900;
   
}

.produto-banner-secundario-texto {
    margin: 12px 0 0;
    color: #dbedfa;
    max-width: 530px;
    font-size: 15px;
    line-height: 1.35;
}

.produto-banner-secundario-dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: none;
}

.produto-banner-secundario-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.produto-banner-secundario-dots span:first-child {
    background: #ffffff;
}

.produto-conteudo {
    padding: 85px 0 66px;
}

.produto-conteudo-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(19, 55, 79, 0.08);
    padding: 28px;
    color: #244f6b;
    font-size: 18px;
    line-height: 1.7;
}

.produto-conteudo-box > * + * {
    margin-top: 1rem;
}

/* Categoria de produto (listagem de itens) */
.categoria-page {
    background: #f2f5f8;
}

.categoria-hero {
    min-height: 373px;
    background: linear-gradient(120deg, rgb(13 45 64 / 72%), rgb(12 31 45 / 42%)), var(--categoria-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.categoria-hero-overlay {
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}

.categoria-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
}

.categoria-hero-subtitle {
    /* margin: 8px auto 0; */
    max-width: 700px;
    color: #ddedf9;
    font-size: 14px;
}

.categoria-grid-section {
    padding: 14px 0 48px;
}

.categoria-search-wrap {
    margin: 0 0 16px;
}

.categoria-search-header{
    margin-bottom: 8px;
    /* text-align: center; */
}

.categoria-search-header p {
    color: #214E67;
    font-size: 27px;
    font-weight: 500;
    max-width: 1130px;
    width: 100%;
    margin-top: 35px;
}

.categoria-search-input {
    width: 100%;
    height: 44px;
    border-radius: 16px;
    border: 4px solid #0B5984;
    background: #ffffff;
    padding: 0 14px;
    color: #0B5984;
    outline: none;
    display: none;
}

.categoria-search-input:focus {
    border-color: #9ccc3b;
}

.categoria-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    /* margin-bottom: 14px; */
    margin-top: 80px;
    text-align: center;
    justify-content: center;
}

.categoria-tab {
    border: 0;
    border-radius: 999px;
    /* background: #e5edf3; */
    color: #031E2D;
    height: 34px;
    padding: 0 14px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 15%;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 100%;
    text-decoration: underline;
    border: none;
    background: #ff000000;
}

.categoria-tab.is-active {
    /* background: #214e67; */
    color: #031E2D;
}

.categoria-products-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
    /* gap: 170px; */
    /* margin-top: 55px; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; /* bem mais equilibrado */
    margin-top: 55px;
}

.categoria-product-card {
    /* background: #dfe8ef; */
    border-radius: 29px;
    text-decoration: none;
    color: #1f4b6a;
    box-shadow: 0 8px 18px rgba(22, 56, 82, 0.08);
    display: flex;
    flex-direction: column;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    /* max-width: 415px; */
    height: 468px;
    background: #ECF5FA;
    /* border-top-left-radius: 0 !important; */
}

.categoria-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 56, 82, 0.14);
}

.categoria-product-thumb {
    display: block;
    aspect-ratio: 1.15 / 1;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.categoria-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.categoria-product-body {
    padding: 10px 2px 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.categoria-product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.08;
    color: #214E67;
    line-height: 109%;
}

.categoria-product-subtitle {
    font-size: 20px;
    color: #214E67;
    line-height: 100%;
    min-height: 0;
    letter-spacing: 0%;
}

.categoria-product-rating {
    display: inline-flex;
    gap: 1px;
    color: #d6e6d6;
    font-size: 10px;
    display: none;
}

.categoria-product-rating .is-on {
    color: #87c332;
}

.categoria-product-cta {
    margin-top: 8px;
    height: 44px;
    border-radius: 999px;
    background: #9acb3d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 400;
    border-top-left-radius: 0 !important;
    /* max-width: 360px; */
    line-height: 100%;
    letter-spacing: 0%;
    /* margin: 0 auto; */
}

.categoria-pagination-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.categoria-pagination-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bcc9d4;
}

.categoria-pagination-dots span.is-active {
    background: #234f70;
}

.categoria-pagination-dots {
    display: none;
}

.categoria-pagination {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.categoria-page-btn {
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6eef3;
    color: #214E67;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.categoria-page-btn:hover {
    background: #cfe0ea;
}

.categoria-page-btn.is-active {
    background: #9acb3d;
    color: #ffffff;
}

.categoria-page .home-contact-section,
.produto-item-page .home-contact-section {
    padding-top: 10px;
}

#produto-formulario {
    scroll-margin-top: 95px;
}

.produto-item-highlight {
    /* background: #ffffff; */
    /* border-radius: 18px; */
    /* box-shadow: 0 10px 24px rgba(19, 55, 79, 0.09); */
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 70px;
    margin-bottom: 26px;
}

.produto-item-main-image {
    border-radius: 10px;
    overflow: hidden;
    background: #f3f7fa;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-item-main-image img {
    /* width: 100%; */
    max-height: 550px;
    object-fit: contain;
    display: block;
    max-width: 550px;
}

.produto-item-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.produto-item-thumb {
    width: 132px;
    height: 132px;
    border-radius: 8px;
    border: 1px solid #d8e2ea00;
    background: #fff;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.produto-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.produto-item-thumb.is-active {
    /* border-color: #96c93d; */
}

.produto-item-thumb.is-active::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -12px;
    height: 8px;
    border-radius: 0;
    background: #8fc63a;
}

.produto-item-thumb.is-active::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 14px;
    height: 8px;
    background: #8fc63a;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.produto-item-name {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 66%;
    color: #031E2D;
    font-weight: 700;
    margin-bottom: 25px;
}

.produto-item-subtitle {
    margin: 10px 0 0;
    font-size: 28px;
    color: #2f607f;
    font-weight: 300;
    line-height: 1.05;
}

.produto-item-description {
    margin-top: 35px;
    color: #031E2D;
    line-height: 128%;
    font-size: 30px;
    letter-spacing: 0;
    text-align: justify;
}

.produto-item-cta {
    margin-top: 50px;
    height: 50px;
    max-width: 360px;
    border-radius: 999px;
    background: #A4D146;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    font-size: 20px;
    font-weight: 400;
    border-top-left-radius: 0 !important;
}

.produto-item-cta:hover {
    filter: brightness(0.96);
}

.produto-item-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 483px;
    gap: 115px;
    align-items: center;
    margin-top: 100px;
}

.produto-item-section-two {
    grid-template-columns: 483px minmax(0, 1fr);
    margin-top: 100px;
}

.produto-item-section-center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
}

.produto-item-section-center .produto-item-section-content {
    max-width: 920px;
    margin: 0 auto;
}

.produto-item-section-center .produto-item-section-image {
    max-width: 360px;
    width: 100%;
}

.produto-item-section-content h3 {
    margin: 0 0 25px;
    color: #133f5b;
    font-size: 32px;
    line-height: 1.1;
}

.produto-item-section-content {
    color: #335f7a;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 35px;
    color: #031E2D;
    line-height: 128%;
    font-size: 30px;
    letter-spacing: 0;
    text-align: justify;
    max-width: 548px;
}

.produto-item-section-image {
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f7;
    box-shadow: 0 8px 18px rgba(22, 56, 82, 0.08);
}

.produto-item-section-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .produto-categorias-grid {
        grid-template-columns: 1fr;
    }

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

    .produto-item-highlight {
        grid-template-columns: 1fr;
    }

    .produto-item-section,
    .produto-item-section-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .produto-hero {
        min-height: 170px;
    }

    .produto-categorias {
        padding: 22px 0 24px;
    }
    
    .categoria-search-header p {
        text-align: center;
    }

    .produto-categoria-card {
        min-height: 64px;
        font-size: 17px;
        padding: 0 16px;
        border-radius: 13px;
    }

    .produto-banner-secundario {
        min-height: 220px;
    }

    .produto-banner-secundario-overlay {
        padding: 18px 0 42px;
    }

    .produto-banner-secundario-titulo {
        max-width: 320px;
        font-size: clamp(22px, 7vw, 34px);
    }

    .produto-banner-secundario-texto {
        max-width: 320px;
        font-size: 13px;
    }

    .produto-banner-secundario-dots {
        bottom: 12px;
    }

    .produto-conteudo {
        padding: 24px 0 38px;
    }

    .produto-conteudo-box {
        padding: 18px;
        font-size: 16px;
    }

    .categoria-hero {
        min-height: 130px;
    }

    .categoria-grid-section {
        padding: 12px 0 34px;
    }

    .categoria-products-grid {
        /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
        /* gap: 10px; */
        display: flex;
        flex-direction: column;
    }

    .categoria-product-title {
        font-size: 18px;
    }

    .categoria-product-subtitle {
        font-size: 13px;
    }

    .categoria-product-cta {
        height: 36px;
        font-size: 14px;
    }

    .produto-item-highlight {
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
    }

    .produto-item-name {
        font-size: 22px;
    }

    .produto-item-subtitle {
        font-size: 16px;
    }

    .produto-item-description {
        font-size: 14px;
    }

    .produto-item-section-content h3 {
        font-size: 20px;
    }

    .produto-item-main-image {
        min-height: 200px;
    }

    .produto-item-main-image img {
        max-height: 240px;
    }

    .produto-item-thumbs {
        margin-top: 8px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .produto-item-thumb {
        width: 52px;
        height: 52px;
        flex: 0 0 auto;
    }

    .produto-item-cta {
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 10px;
    }

    .produto-item-section {
        margin-top: 16px;
        gap: 14px;
    }

    .produto-item-section-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
  .categoria-tabs {
    display: flex;
    /* flex-wrap: nowrap; */          /* NÃO quebra linha */
    overflow-x: auto;           /* ativa scroll lateral */
    gap: 16px;
    justify-content: flex-start;
    padding: 0 16px;
    margin-top: 90px;

    /* deixa o scroll suave */
    scroll-behavior: smooth;
    /* max-width: 330px; */
  }

  .categoria-tabs::-webkit-scrollbar {
    display: none; /* esconde scrollbar */
  }

  .categoria-tab {
    flex: 0 0 auto; /* impede encolher */
    font-size: 16px;
    white-space: nowrap; /* impede quebrar texto */
    padding: 6px 12px;
    font-weight: 700;
  }
}