* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f5f7fa;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    flex: 1;
}

a {
    color: #620000;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* HEADER */

.barra-superior {
    background: #620000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 16px;
}

.barra-superior .icone {
    display: flex;
    align-items: center;
    color: #fff;
    margin: 0 15px;
}

.barra-superior .icone i {
    margin-right: 10px;
}

header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #000;
}

header img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.menu {
    margin-top: 20px;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.menu li {
    font-size: 14px;
}

.menu a {
    color: #000;
    padding: 10px;
    font-weight: bold;
}

.menu a:hover, .menu a.active {
    color: #620000;
}

.hamburger {
    display: none;
    font-size: 30px;
    color: #000;
    cursor: pointer;
}

.menu-logo {
    display: none;
}

/* BANNER / HERO SLIDER */

.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #620000, #111);
    color: #fff;
    padding: 60px 0 78px;
    min-height: 320px;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../imagens/banner/banner-textura.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

.banner-img {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
    opacity: 0;
    animation: slideLeft 0.9s ease-out forwards;
}

.banner-text {
    max-width: 520px;
    text-align: left;
}

.banner-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #daa520;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}

.banner-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #daa520;
}

.banner-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    color: #fff;
    opacity: 0;
    animation: slideDown 0.9s ease-out 0.2s forwards;
}

.banner-text .highlight {
    color: #fdd835;
}

.slogan-primary {
    display: block;
    color: #fff;
}

.slogan-secondary {
    display: block;
    color: #daa520;
}

.banner-text p {
    font-size: 18px;
    opacity: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: slideUp 0.9s ease-out 0.4s forwards;
}

@media (min-width: 769px) {
    .hero-slide:nth-child(2) .banner-img {
        max-width: 320px;
    }

    .hero-slide:nth-child(3) .banner-img {
        max-width: 230px;
    }

    .hero-slide:nth-child(3) .slogan-primary,
    .hero-slide:nth-child(3) .slogan-secondary {
        display: inline;
    }
}

/* garantir que o kicker não herde o tamanho dos parágrafos */
.banner-text .banner-kicker {
    font-size: 12px;
    color: #daa520;
}

.banner-subtitle {
    font-size: 16px;
    margin-top: 8px;
    color: #e9e9e9;
    opacity: 0.9;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(-60px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 960px) {
    .banner {
        padding: 48px 0 64px;
        min-height: 300px;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .banner-text h2 {
        font-size: 26px;
    }
    .banner-text p {
        font-size: 16px;
    }
}

/* CATEGORIAS E PRODUTOS */

#produtos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 60px;
}

.produto {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 20px #00000080;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.produto:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 24px #00000080;
}

.produto img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 16px;
    display: block;
}

.produto h2 {
    font-size: 14px;
    padding: 14px;
    font-weight: 500;
    background: #f5f7fa;
    margin: 0;
}

/* BOTÃO WHATSAPP */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.whatsapp-button a {
    display: flex;
    background: #4caf50;
    border-radius: 100px;
    padding: 12px;
    transition: background-color 0.3s ease;
}

.whatsapp-button a:hover {
    background: #287e2d;
}

.whatsapp-button i {
    color: #fff;
    font-size: 40px;
    margin: 0;
}

/* FOOTER */

.novo-footer {
    background: #111;
    color: #eee;
    padding: 60px 20px 30px;
}

.container-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #620000;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a, .footer-col p a {
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover, .footer-col p a:hover, .social a:hover {
    color: #620000;
}

.footer-col p {
    margin: 8px 0;
}

.social a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #fff;
    font-size: 14px;
}

/* BREADCRUMB */

.breadcrumb {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #620000;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb .breadcrumb-separator {
    color: #000;
}

.breadcrumb .breadcrumb-item {
    font-weight: bold;
}

.breadcrumb .breadcrumb-item:last-child {
    color: #000;
    font-weight: normal;
}

/* PRODUTOS */

.cofre-page {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1600px) {
    .cofre-page {
        width: 92%;
        max-width: 1360px;
    }
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1c1c1c;
}

h2 {
    font-size: 1.3rem;
    margin-top: 30px;
    color: #222;
    font-weight: 500;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.image-gallery {
    flex: 1;
    max-width: 480px;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
    background: #fafafa;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.thumbnail-item {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border 0.2s ease;
}

.thumbnail-item:hover {
    border-color: #4caf50;
}

.thumbnail-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.request-quote-btn, .request-quote-wpp {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.request-quote-btn {
    background: #222;
    color: #fff;
    border: 1px solid #222;
}

.request-quote-btn:hover {
    background: #fff;
    color: #222;
}

.request-quote-wpp {
    background: #2e7d32;
    color: #fff;
    border: 1px solid transparent;
}

.request-quote-wpp:hover {
    background-color: #fff;
    color: #2e7d32;
    border-color: #2e7d32;
}

/* FORMULÁRIOS DE ORÇAMENTO */
.orcamento-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    max-width: 820px;
}

.orcamento-form h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.orcamento-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.orcamento-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.orcamento-form input,
.orcamento-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.orcamento-form textarea {
    min-height: 120px;
    resize: vertical;
}

.orcamento-form button {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 10px 18px;
    background: #620000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}

.orcamento-form button:hover {
    opacity: 0.9;
}

@media (max-width: 720px) {
    .orcamento-form form {
        grid-template-columns: 1fr;
    }
}

.product-description {
    flex: 2;
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
}

.measurements table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.measurements th, .measurements td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: center;
}

.measurements th {
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
}

.no-bullets {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.no-bullets li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.no-bullets li::before {
    content: "•";
    color: #4caf50;
    position: absolute;
    left: 0;
}

.info-final {
    color: #555;
    margin-top: 30px;
}

.parag-final {
    color: #555;
}

.list-final {
    color: #555;
    list-style-type: none;
    padding-left: 20px;
}

/* FORMULÁRIO ORÇAMENTO */

.quote-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 40px 15px;
}

.quote-form-container {
    background: #fff;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 700px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    transition: 0.2s;
}

.close-btn:hover {
    color: #620000;
}

.quote-form-container h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

form#quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #620000;
    outline: none;
}

textarea {
    resize: none;
    min-height: 100px;
}

#stair-questions {
    padding: 10px 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

.submit-btn {
    background: #620000;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
    width: 100%;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
    border: 1px solid #620000;
}

/* 404 */

.error-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 20px;
    margin: 0 auto;
    max-width: 800px;
}

.error-page h1 {
    font-size: 80px;
    font-weight: bold;
    color: #620000;
    margin: 0;
}

.error-page h2 {
    font-size: 24px;
    margin-top: 10px;
    color: #333;
}

.error-page p {
    margin: 20px 0;
    color: #666;
}

.btn-voltar {
    background: #620000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.btn-voltar:hover {
    background: #fff;
    color: #000;
    border: 1px solid #620000;
}

/* CONTEÚDO */

.informativo-container {
    width: 100%;
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.informativo h1 {
    font-size: 32px;
    color: #000;
}

.informativo h1 span {
    color: #620000;
    font-weight: bold;
}

.informativo h2 {
    font-size: 20px;
    margin: 0;
    color: #000;
}

.intro {
    font-size: 16px;
    margin-bottom: 2rem;
    color: #666;
}

.passo, .showroom, .contato{
    background-color: #fff1f1;
    border-left: 5px solid #620000;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.passo ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0 0;
}

.passo ul li {
    list-style: disc;
    color: #222;
    margin-bottom: 0.4rem;
}

iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
    box-sizing: border-box;
}

/* COOKIES */

#cookie-banner{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #000;
    padding: 15px;
    text-align: center;
    color: #000;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#accept-cookies{
    background: #620000;
    border: none;
    color: #fff;
    margin-left: 20px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

#decline-cookies{
    background: #000;
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    border-radius: 5px;
}

/* COOKIES */

/* RESPONSIVO NOTEBOOK */
@media (max-width: 1366px) {
    .menu li {
        font-size: 10px;
    }

    #cookie-banner{
        width: 60%;
        font-size: 14px;
    }
}
@media (max-width: 1236px) {
    .product-content {
      flex-direction: row;
      align-items: flex-start;
      width: 100%;
    }

    .image-gallery {
      flex: 1;
      max-width: 400px;
    }

    .product-description {
      flex: 2;
      max-width: calc(100% - 440px);
    }

    .measurements {
      overflow-x: auto;
      width: 100%;
    }

    .measurements table {
      min-width: 600px;
    }
}

/* RESPONSIVO TABLET */
@media (max-width: 1024px) {
    .menu ul li a.active {
        color: #daa520;
    }

    .menu ul li a:hover,
    .menu ul li a:active,
    .menu ul li a:focus {
        color: #daa520;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 48px;
        bottom: 0;
        width: auto;
        max-height: none;
        padding: 120px 24px 32px;
        background: #f5f7fa;
        z-index: 9999;
        gap: 10px;
        overflow-y: auto;
        border-right: 1px solid #620000;
        border-bottom: 1px solid #620000;
        border-radius: 0 10px 10px 0;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    }

    .menu ul li {
        margin: 0;
        text-align: left;
        color: #111;
        background: #fff;
        border: 1px solid #e6e9ef;
        padding: 12px 14px;
        border-radius: 10px;
        letter-spacing: 0.2px;
    }

    .menu ul li a {
        color: #111;
        display: block;
        font-size: 15px;
    }

    .hamburger {
        display: block;
        position: fixed;
        left: 16px;
        top: 120px;
        z-index: 10000;
        font-size: 34px;
        line-height: 1;
        color: #fff;
        background: #620000;
        border-radius: 10px;
        padding: 6px 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        border: 1px solid #520000;
    }

    .menu.active .menu-logo {
        display: block;
        position: fixed;
        left: 50%;
        top: 120px;
        z-index: 10000;
        transform: translateX(-50%);
    }

    .menu.active .menu-logo img {
        height: 40px;
        width: auto;
        display: block;
    }

    .menu.active ul {
        display: flex;
    }

    .menu.active .hamburger {
        color: #fff;
        background: #620000;
        border: 1px solid #520000;
        backdrop-filter: none;
    }
    
    .banner {
        padding: 44px 0 60px;
        min-height: 300px;
    }

    .banner-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        height: auto;
        gap: 24px;
    }

    .banner-img {
        flex: 0 0 38%;
        max-width: 320px;
        min-width: 200px;
    }

    .hero-slide:nth-child(3) .banner-img {
        flex: 0 0 32%;
        max-width: 240px;
        min-width: 170px;
    }

    .banner-text {
        max-width: 520px;
    }

    .banner-text h2 {
        font-size: 26px;
    }

    .banner-text p {
        font-size: 15px;
    }

    #produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 32px 24px;
    }
    
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        height: auto;
        gap: 16px;
    }

    .banner{
        min-height: 260px;
        padding: 36px 0 48px;
        height: auto;
    }

    .banner-img {
        width: auto;
        flex: 0 0 36%;
        max-width: 280px;
        min-width: 160px;
    }

    .banner-text h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-subtitle {
        margin-top: 8px;
    }

    .cofre-page {
        width: 95%;
        padding: 30px 20px;
    }

    .product-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .image-gallery {
        max-width: 100%;
    }
    
    .thumbnail-item img {
        width: 100%;
        height: 100%;
    }
    
    .product-description{
        max-width: 100%;
    }
}
/* RESPONSIVO TABLET */

/* RESPONSIVO CELULAR */
@media (max-width: 576px) {
    :root {
        --mobile-bar-height: 40px;
        --mobile-header-height: 70px;
        --hamburger-size: 34px;
        --menu-safe-top: calc(var(--mobile-bar-height) + var(--mobile-header-height));
        --menu-right-gap: 76px;
        --menu-before-height: calc(var(--menu-safe-top) - 20px);
    }

    .barra-superior span {
        font-size: 8px;
    }

    header {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      height: 70px;
      padding: 0 16px;
    }

    header img {
      height: 40px;
      width: auto;
    }

    .menu ul {
        top: var(--menu-before-height);
        right: var(--menu-right-gap);
        bottom: auto;
        padding: 12px 16px 18px;
        gap: 6px;
        border-radius: 0 0 5px 0;
        background: #f5f7fa;
        height: auto;
        max-height: 70vh;
        border-right: 1px solid #620000;
        border-bottom: 1px solid #620000;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }

    .hamburger {
        top: calc(var(--mobile-bar-height) + (var(--mobile-header-height) / 2) - 6px);
        font-size: var(--hamburger-size);
        transform: translateY(-50%);
        background: #620000;
        color: #fff;
        border: 1px solid #520000;
    }

    .menu.active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: var(--menu-right-gap);
        height: var(--menu-before-height);
        background: #f5f7fa;
        border-right: 1px solid #620000;
        border-radius: 0 5px 0 0;
        z-index: 10000;
    }

    .menu.active .hamburger {
        top: calc(var(--menu-before-height) / 2);
        z-index: 10001;
    }

    .menu.active .hamburger {
        background: #620000;
        color: #fff;
        border-color: #520000;
    }

    .menu.active .menu-logo {
        top: calc(var(--menu-before-height) / 2);
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .menu ul li {
        padding: 8px 12px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #e6e9ef;
    }

    .menu ul li a {
        font-size: 14px;
        color: #111;
    }

    .banner{
        height: auto;
        min-height: 340px;
        padding: 32px 0 42px;
    }

    .banner-content {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 16px;
        text-align: left;
    }

    .banner-img {
        flex: 0 0 42%;
        max-width: 46vw;
        min-width: 125px;
    }

    .banner-text {
        flex: 1;
        min-width: 0;
    }

    .banner-kicker {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .banner h2 {
        font-size: 18px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .banner p {
        font-size: 12.5px;
        line-height: 1.35;
    }

    #produtos {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 10px;
        margin: 0;
        gap: 10px; /* se quiser espaço entre os itens */
    }

    .breadcrumb{
        font-size: 12px;
    }

    .product-description{
        padding: 10px;
    }

    .cofre-page h1{
        font-size: 18px;
    }

    .cofre-page h2.info-final{
        font-size: 16px;
    }

    #cookie-banner {
        width: 90%;
        bottom: 10px;
        right: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px;
    }
    
    #accept-cookies, #decline-cookies {
        margin: 5px 0;
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }
}

/* MID SECTION */
.mid-sections {
    background: #f7f8fb;
    padding: 50px 0 70px;
    overflow: hidden;
}

.mid-sections .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 8px;
}

.mid-blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.mid-blocks-grid .mid-block {
    height: 100%;
}

.mid-blocks-grid .mid-card-slider {
    height: 100%;
}

.mid-block {
    margin-bottom: 48px;
    overflow: hidden;
}

.mid-block.mid-dark {
    background: #121212;
    color: #f2f2f2;
    padding: 36px;
    border-radius: 12px;
}

.mid-block.mid-cta {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #f2f2f2;
    padding: 32px;
    border-radius: 12px;
}

.mid-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #111;
}

.mid-block.mid-dark .mid-header h2,
.mid-block.mid-cta .mid-header h2 {
    color: #fff;
}

.mid-header p {
    color: #444;
    margin-bottom: 18px;
}

.mid-block.mid-dark .mid-header p,
.mid-block.mid-cta .mid-header p {
    color: #e0e0e0;
}

.mid-grid {
    display: grid;
    gap: 16px;
}

.mid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mid-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.mid-card-link {
    color: #daa520;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mid-card-link:hover {
    color: #c99712;
    text-decoration: underline;
    text-decoration-color: #c99712;
}

.mid-block.mid-dark .mid-card {
    background: #1b1b1b;
    border-color: #2a2a2a;
    box-shadow: none;
}

.mid-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #111;
}

.mid-block.mid-dark .mid-card h3 {
    color: #f2f2f2;
}

.mid-card p {
    color: #444;
    margin: 0;
    font-size: 13px;
}

.mid-block.mid-dark .mid-card p {
    color: #d7d7d7;
}

.mid-link {
    display: inline-block;
    margin-top: 10px;
    color: #620000;
    font-weight: 600;
}

.mid-block.mid-dark .mid-link {
    color: #fdd835;
}

.mid-copy h2 {
    margin-bottom: 10px;
    color: #fff;
}

.mid-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #e0e0e0;
}

.mid-cta-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.mid-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* slider de cards */
.mid-card-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 24px;
    --mid-gap: 16px;
}

.mid-card-slider .mid-track {
    display: flex;
    gap: var(--mid-gap);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    transform: translateX(0);
    transition: transform 0.45s ease;
    will-change: transform;
}

.mid-card-slider .mid-card {
    flex: 0 0 100%;
    cursor: grab;
}

.mid-card-slider.dragging .mid-track {
    scroll-behavior: auto;
    cursor: grabbing;
}

.mid-slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-left: 6px;
}

.mid-dot {
    width: 26px;
    height: 6px;
    border-radius: 4px;
    border: 0;
    background: #c4c4c4;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.mid-dot.active {
    background: #620000;
    transform: none;
}

.mid-block.mid-dark .mid-dot.active {
    background: #fdd835;
    transform: none;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.mid-actions .btn-cta {
    width: 100%;
}

.btn-cta-wide {
    grid-column: 1 / -1;
}

.btn-cta i {
    font-size: 1rem;
}

.btn-whats {
    background: #1ba94c;
    color: #fff;
}

.btn-mail {
    background: #f2f2f2;
    color: #111;
    border: 1px solid #d0d0d0;
}

.btn-phone {
    background: #1e88e5;
    color: #fff;
}

@media (max-width: 1440px) {
    .mid-blocks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .mid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mid-blocks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .banner {
        padding: 24px 0 36px;
        min-height: 320px;
    }
    .hero-slide {
        align-items: center;
    }
    .banner-content {
        gap: 14px;
        text-align: left;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
    .banner-img {
        flex: 0 0 32%;
        max-width: 36vw;
        min-width: 130px;
    }
    .banner-text {
        flex: 1;
        min-width: 0;
    }
    .banner-kicker {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .banner-text h2 {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    .banner-text p,
    .banner-subtitle {
        font-size: 13px;
        line-height: 1.35;
    }
    .slogan-primary,
    .slogan-secondary {
        display: inline;
        font-size: 1em;
        line-height: 1.25;
        margin: 0;
    }

    .mid-card-slider {
        padding-bottom: 6px;
        --mid-gap: 8px;
        overflow: hidden;
    }
    .mid-card-slider .mid-card {
        padding: 10px;
        max-width: 100%;
        margin: 0;
    }
    .mid-card h3 {
        font-size: 14px;
    }
    .mid-card p {
        font-size: 12.5px;
    }

    .mid-block {
        margin-bottom: 32px;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .mid-block.mid-dark,
    .mid-block.mid-cta {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .mid-4, .mid-3, .mid-2 { grid-template-columns: 1fr; }
    .mid-blocks-grid { grid-template-columns: 1fr; }
    .mid-actions {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .btn-cta { text-align: center; }
    .mid-cta-grid { flex-direction: column; }

    .mid-slider-dots { justify-content: center; }
}
