:root {
    --dark: #111111;
    --panel: #1b1b1b;
    --red: #e72d35;
    --red-dark: #bf2029;
    --green: #3ddc84;
    --text: #f3f4f6;
    --muted: #c4c8d0;
    --line: #30343b;
    --bg: #0f172a;
    --white: #ffffff;
    --yellowML: #ffe600;
}

#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 14px;
  z-index: 9999;
}

#whatsapp-button img {
  width: 50px; /* Adjust size as needed */
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.modal-open {
    overflow: hidden;
}



.carousel {
    isolation: isolate;
}

.sobre-oficina {
    scroll-margin-top: 88px;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
}


.sobre-oficina-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 56px);
}

.sobre-oficina-texto {
    max-width: 650px;
}

.sobre-local {
    color: var(--red);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sobre-oficina h1 {
    margin: 8px 0 24px;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
}

.sobre-oficina p {
    margin: 0;
    color: #5c626b;
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    line-height: 1.8;
}

.sobre-oficina p + p {
    margin-top: 18px;
}

.oficina-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 430px;
    border-radius: 8px;
    background: #111111;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
}

.oficina-carousel-track,
.oficina-slide {
    width: 100%;
    height: 100%;
}

.oficina-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.oficina-slide.active {
    opacity: 1;
    transform: scale(1);
}

.oficina-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oficina-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.48);
    color: var(--white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.oficina-carousel-btn:hover,
.oficina-carousel-btn:focus-visible {
    border-color: var(--red);
    background: var(--red);
    outline: none;
}

.oficina-carousel-prev {
    left: 14px;
}

.oficina-carousel-next {
    right: 14px;
}

.oficina-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.oficina-carousel-dots button {
    width: 30px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.oficina-carousel-dots button.active {
    width: 42px;
    background: var(--red);
}

.promocao-da-semana {
    scroll-margin-top: 88px;
    padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(231, 45, 53, 0.2), transparent 34%),
        linear-gradient(180deg, #101217 0%, #181b20 100%);
    color: var(--white);
}

.promocao-da-semana-container {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: stretch;
    gap: clamp(22px, 4vw, 44px);
    max-width: 1180px;
    margin: 0 auto;
}

.promocao-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(10, 12, 16, 0.74);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.promocao-etiqueta {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffe600;
    color: #111111;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.promocao-titulo {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    font-weight: 900;
    line-height: 0.98;
}

.promocao-chamada {
    max-width: 560px;
    margin: 18px 0 0;
    color: #e6e8ec;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
}

.promocao-destaque {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
    margin-top: 24px;
}

.promocao-destaque span {
    color: #aeb4bf;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.promocao-destaque strong {
    color: #3ddc84;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.promocao-observacao {
    max-width: 520px;
    margin: 16px 0 0;
    color: #b8bec8;
    font-size: 0.96rem;
    line-height: 1.6;
}

.promocao-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    margin-top: 26px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.promocao-cta:hover,
.promocao-cta:focus-visible {
    background: #ff3942;
    box-shadow: 0 14px 28px rgba(231, 45, 53, 0.28);
    outline: none;
    transform: translateY(-1px);
}

.promocao-banner {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0d10;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.promocao-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.48));
    pointer-events: none;
}

.promocao-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seguradoras {
    scroll-margin-top: 88px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.88) 44%, rgba(15, 23, 42, 0.38) 100%),
        linear-gradient(180deg, rgba(231, 45, 53, 0.18), transparent 38%),
        url("novas_fotos/seguradoras.png") center right / cover no-repeat;
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.seguradoras::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(231, 45, 53, 0.2), transparent 32%),
        linear-gradient(180deg, transparent 72%, rgba(15, 23, 42, 0.92));
    pointer-events: none;
}

.seguradoras-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: clamp(500px, 64vw, 680px);
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 56px);
}

.seguradoras .section-title {
    max-width: 620px;
    margin: 0;
    text-align: left;
}

.seguradoras .section-title {
    color: var(--white);
    font-size: clamp(2.6rem, 8vw, 5.6rem);
    font-weight: 900;
    line-height: 0.95;
}

.seguradoras-subtitulo {
    width: fit-content;
    margin-top: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(231, 45, 53, 0.48);
    border-radius: 8px;
    background: rgba(231, 45, 53, 0.18);
    color: #ff747a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.seguradoras-texto {
    max-width: 620px;
    margin: 22px 0 0;
    color: #d7dbe2;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.75;
}

.seguradoras-marcas {
    max-width: 720px;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    font-weight: 700;
    line-height: 1.85;
}

body .sobre-oficina p {
    color: #c4c8d0;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-title span,
.contact-strip span
{
    color: var(--red);
    text-transform: uppercase;
    font-weight: 700;
}

.login-label 
{
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn,
.login-submit,
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--red-dark);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.login-submit:hover,
.logout-btn:hover,
.btn:focus-visible,
.login-submit:focus-visible,
.logout-btn:focus-visible {
    background: var(--red-dark);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(231, 45, 53, 0.26);
}

.produtos {
    padding: 54px clamp(16px, 5vw, 72px) 64px;
}

.section-title {
    max-width: 880px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-title h2 {
    margin: 8px 0 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1320px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body .card {
    background-color: #181b20;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.card:hover {
    border-color: rgba(231, 45, 53, 0.42);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 152px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f8f8;
    object-fit: contain;
}

body .card img {
    background: #101217;
}

.card h3 {
    margin: 14px 0 8px;
    font-size: 1.02rem;
    line-height: 1.25;
}

.card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.price {
    margin: 14px 0;
    color: var(--green);
    font-size: 1.14rem;
    font-weight: 800;
}

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 10px 14px;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--yellowML);
    transform: scaleX(0.1);
    transform-origin: right;
    transition: transform 0.28s ease;
}

.btn:hover,
.btn:focus-visible {
    color: var(--dark);
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: scaleX(1);
}

.btn:disabled {
    cursor: default;
    opacity: 0.82;
    transform: none;
}

.btn:disabled::before {
    transform: scaleX(0.1);
}

.like {
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #f0b3b6;
    border-radius: 8px;
    background: #fff4f4;
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body .like {
    border-color: #743139;
    background: #251417;
}

.like:hover,
.like.active,
.like:focus-visible {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
    outline: none;
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 26px clamp(16px, 5vw, 72px);
    background: var(--panel);
}

.contact-strip div {
    min-width: 0;
}

.contact-strip span,
.contact-strip strong {
    display: block;
}

.contact-strip strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.58);
}

.login-overlay[hidden] {
    display: none;
}

.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    width: min(420px, 100%);
    height: 100vh;
    padding: 34px;
    background: var(--white);
    box-shadow: -16px 0 34px rgba(0, 0, 0, 0.22);
    transform: translateX(105%);
    transition: transform 0.28s ease;
}

body .login-panel {
    background: #181b20;
}

.login-panel.open {
    transform: translateX(0);
}

.close-login {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

body .close-login {
    background: #181b20;
}

.close-login:hover,
.close-login:focus-visible {
    border-color: var(--red);
    color: var(--red);
    outline: none;
}

.login-panel h2 {
    margin: 10px 0 8px;
    font-size: 2rem;
}

.login-panel p {
    margin: 0 0 24px;
    color: var(--muted);
}

.login-panel form {
    display: grid;
    gap: 10px;
}

.login-panel label {
    font-weight: 700;
}

.login-panel input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

body .login-panel input {
    background: #101217;
    color: var(--text);
}

.login-panel input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231, 45, 53, 0.14);
}

.login-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px 18px;
}

.logout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    background: var(--dark);
}

.logout-btn:hover,
.logout-btn:focus-visible {
    background: #333333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.logout-btn[hidden] {
    display: none;
}

.form-message {
    min-height: 24px;
    margin: 6px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-message.success {
    color: var(--green);
}

.form-message.error {
    color: var(--red);
}

@media (max-width: 860px) {
    .promocao-da-semana-container {
        grid-template-columns: 1fr;
    }

    .promocao-conteudo,
    .promocao-banner {
        min-height: 340px;
    }

    .sobre-oficina-container {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 48px;
        padding-bottom: 52px;
    }

    .sobre-oficina-texto {
        max-width: 100%;
    }

    .oficina-carousel {
        min-height: 360px;
    }

    .seguradoras {
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.9) 54%, rgba(15, 23, 42, 0.74) 100%),
            linear-gradient(180deg, rgba(231, 45, 53, 0.16), transparent 42%),
            url("novas_fotos/seguradoras.png") center bottom / cover no-repeat;
    }

    .seguradoras-container {
        min-height: 620px;
        justify-content: flex-start;
        padding-top: 52px;
        padding-bottom: 340px;
    }

    .contact-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 18px 92px;
    }

    .contact-strip div {
        text-align: center;
    }

    .contact-strip strong {
        font-size: clamp(1rem, 4.6vw, 1.16rem);
        line-height: 1.35;
    }

    #whatsapp-button {
        right: 16px;
        bottom: 92px;
    }
}

@media (max-width: 520px) {
    .promocao-da-semana {
        padding: 38px 18px;
    }

    .promocao-conteudo {
        min-height: auto;
        padding: 24px 20px;
    }

    .promocao-banner {
        min-height: 250px;
    }

    .promocao-cta {
        width: 100%;
    }

    .sobre-oficina-container {
        padding: 40px 18px 44px;
    }

    .sobre-oficina h1 {
        margin-bottom: 18px;
        font-size: 2.7rem;
        line-height: 1.04;
    }

    .sobre-oficina p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .oficina-carousel {
        min-height: 300px;
    }

    .seguradoras {
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.99) 0%, rgba(15, 23, 42, 0.94) 58%, rgba(15, 23, 42, 0.82) 100%),
            url("novas_fotos/seguradoras.png") center bottom / 135% auto no-repeat;
    }

    .seguradoras-container {
        min-height: 640px;
        padding: 42px 18px 300px;
    }

    .seguradoras .section-title {
        font-size: 2.85rem;
        line-height: 1;
    }

    .seguradoras-subtitulo {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .seguradoras-texto {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .seguradoras-marcas {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .oficina-carousel-btn {
        top: auto;
        bottom: 14px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .oficina-carousel-dots {
        bottom: 31px;
    }

    .produtos {
        padding-top: 38px;
    }

    .login-panel {
        padding: 30px 20px;
    }

    .contact-strip {
        gap: 20px;
        padding: 24px 18px 96px;
    }

    .contact-strip span {
        font-size: 1rem;
    }

    .contact-strip strong {
        font-size: 1.08rem;
    }

    .contact-strip .text-\[8px\] {
        margin-top: 6px;
        font-size: 0.62rem;
    }

    #whatsapp-button {
        right: 16px;
        bottom: 92px;
    }

    #whatsapp-button img {
        width: 48px;
    }
}
