:root {
    --primary-color: #236a73;
    --primary-dark: #173f48;
    --secondary-color: #e94b8b;
    --accent-color: #f2b84b;
    --background-color: #faf9f5;
    --surface-color: #ffffff;
    --soft-color: #e9f4f2;
    --text-color: #1f2933;
    --muted-color: #5f6c72;
    --border-color: #d8e2df;
    --footer-bg-color: #1f2a32;
    --footer-text-color: #ffffff;
    --shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
    --font-family: "Lato", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text-color);
    background: var(--background-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    background-image: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url("img/bg-header-3d.svg");
    background-size: 520px;
    background-position: center;
    text-align: center;
    padding: 14px 20px 18px;
    font-family: "Raleway", var(--font-family);
}

.logo {
    display: inline-flex;
}

.logo img {
    width: min(390px, 82vw);
    height: auto;
}

.site-header p {
    max-width: 840px;
    margin: 8px auto 0;
    color: var(--primary-dark);
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 800;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-weight: 900;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--soft-color);
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
}

.menu-icon {
    display: none;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.35rem;
    cursor: pointer;
}

main {
    min-height: 58vh;
}

h1,
h2,
h3 {
    font-family: "Raleway", var(--font-family);
    letter-spacing: 0;
}

.eyebrow {
    display: inline-flex;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 10px 0 12px;
    color: var(--primary-dark);
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.04;
}

.page-heading p {
    color: var(--muted-color);
    font-size: 1.08rem;
    line-height: 1.65;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn.secondary:hover {
    border-color: var(--primary-color);
}

.text-link {
    color: var(--primary-color);
    font-weight: 900;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(31, 41, 51, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.28);
}

.whatsapp-float i {
    font-size: 1.45rem;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-color);
    font: inherit;
    font-size: 16px;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin: 0;
    accent-color: var(--primary-color);
}

textarea {
    resize: vertical;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(35, 106, 115, 0.16);
    border-color: var(--primary-color);
}

footer {
    margin-top: 44px;
    padding: 28px 20px;
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
}

footer p {
    margin: 6px 0;
}

footer .footer-links a {
    color: var(--footer-text-color);
    font-weight: 900;
    text-decoration: underline;
}

footer .redes-sociais {
    margin-top: 12px;
}

footer .redes-sociais a {
    color: var(--footer-text-color);
    margin: 0 10px;
    font-size: 1.35rem;
    transition: color 0.2s ease;
}

footer .redes-sociais a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px 14px;
        background-size: 360px;
    }

    .logo img {
        width: min(300px, 78vw);
    }

    .site-header p {
        font-size: 0.96rem;
        line-height: 1.35;
    }

    nav {
        top: 0;
        padding: 0;
        box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
    }

    .menu-icon {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: min(calc(100% - 24px), 360px);
        max-width: 360px;
        margin: 8px auto;
        border: 1px solid rgba(35, 106, 115, 0.18);
        border-radius: 8px;
        background: var(--primary-color);
        color: #ffffff;
        font: inherit;
        font-weight: 900;
        box-shadow: 0 10px 22px rgba(35, 106, 115, 0.22);
        transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .menu-icon::after {
        content: "Menu";
    }

    .menu-icon[aria-expanded="true"] {
        background: var(--primary-dark);
        box-shadow: 0 14px 28px rgba(23, 63, 72, 0.26);
    }

    .menu-icon[aria-expanded="true"]::after {
        content: "Fechar";
    }

    .menu-icon:active {
        transform: scale(0.98);
    }

    .menu-icon i {
        width: 20px;
        text-align: center;
    }

    .menu {
        width: 100%;
        max-height: 0;
        display: grid;
        gap: 8px;
        overflow: hidden;
        padding: 0 12px;
        border-top: 1px solid transparent;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .menu.active {
        max-height: 420px;
        padding: 4px 12px 12px;
        border-top-color: var(--border-color);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu li {
        width: 100%;
    }

    nav ul li a {
        min-height: 52px;
        justify-content: center;
        padding: 13px 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(31, 41, 51, 0.05);
    }

    nav ul li a i {
        width: 20px;
        text-align: center;
    }

    nav ul li a.active {
        border-color: rgba(35, 106, 115, 0.28);
    }

    .page-heading {
        margin-bottom: 22px;
    }

    .page-heading h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .page-heading p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .btn {
        min-height: 48px;
        padding: 13px 16px;
    }

    .whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 54px;
        justify-content: center;
        padding: 0;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    footer {
        margin-top: 34px;
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    }
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 20, 25, 0.88);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-content {
    max-width: min(880px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52);
    transform: scale(0.94);
    transition: transform 0.22s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
}

[data-lightbox] {
    cursor: zoom-in;
}

/* ── Carrinho flutuante global ── */
.global-cart-badge {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 20;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(31, 41, 51, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-cart-badge[hidden] {
    display: none;
}

.global-cart-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.28);
}

.global-cart-badge i {
    font-size: 1.1rem;
}

/* ── Validação de formulário ── */
.field-error {
    display: block;
    color: #c0021a;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 1em;
}

input.is-invalid,
textarea.is-invalid {
    border-color: #c0021a;
}

input.is-invalid:focus,
textarea.is-invalid:focus {
    outline: 3px solid rgba(192, 2, 26, 0.16);
    border-color: #c0021a;
}

input.is-valid,
textarea.is-valid {
    border-color: #22823a;
}

/* ── Skip to content ── */
.skip-link {
    position: absolute;
    left: 0;
    top: -100%;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--primary-dark);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
}

/* ── Scroll to top ── */
.scroll-to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(88px, calc(88px + env(safe-area-inset-bottom)));
    z-index: 19;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 41, 51, 0.12);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-to-top[hidden] {
    display: none;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 41, 51, 0.16);
}

/* ── Loading spinner animation ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-loading .product-symbol i {
    animation: spin 1s linear infinite;
}

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 430px) {
    .site-header p {
        font-size: 0.9rem;
    }

    nav ul li a {
        padding: 13px 14px;
    }

    .page-heading h1 {
        font-size: clamp(1.85rem, 9.5vw, 2.35rem);
    }

    .page-heading p {
        font-size: 0.98rem;
    }
}
