@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');


:root {

    --color-bg: #1f1f23;
    --color-surface: #25252b;
    --color-surface-soft: #29292f;

    --color-text: #f8fafc;
    --color-text-soft: #a1a1aa;

    --color-border:
        rgba(255, 255, 255, 0.08);

    --purple: #6d28d9;
    --purple-light: #8b5cf6;
    --purple-dark: #4c1d95;

    --page-width: 1200px;

}


/* ========================================
   LIGHT
======================================== */

body.light-theme {

    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-soft: #f1f1f4;

    --color-text: #1f1f23;
    --color-text-soft: #66666f;

    --color-border:
        rgba(31, 31, 35, 0.10);

}


/* ========================================
   RESET
======================================== */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    font-family:
        "Space Grotesk",
        sans-serif;

    color: var(--color-text);

    background: var(--color-bg);

}


button,
input,
textarea {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;
    text-decoration: none;

}


/* ========================================
   HEADER
======================================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(31, 31, 35, 0.90);

    border-bottom:
        1px solid var(--color-border);

    backdrop-filter:
        blur(18px);

}


.light-theme .site-header {

    background:
        rgba(248, 250, 252, 0.90);

}


.header-container {

    width:
        min(90%, var(--page-width));

    height: 84px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;

}


.brand-symbol {

    width: 44px;

}


.brand-title {

    width: 135px;

    height: auto;

}


.brand-title-black {

    display: none;

}


.light-theme .brand-title-white {

    display: none;

}


.light-theme .brand-title-black {

    display: block;

}


.main-nav {

    display: flex;

    align-items: center;

    gap: 30px;

}


.main-nav a {

    color: var(--color-text-soft);

    font-size: 13px;

}


.main-nav a:hover {

    color: var(--color-text);

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.theme-toggle {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--color-text);

    background: var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 9px;

}


.header-cta {

    min-height: 42px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--purple);

    border-radius: 9px;

    font-size: 12px;

    font-weight: 600;

}


/* ========================================
   PRODUTO
======================================== */

.product-section {

    padding:
        55px 0 120px;

}


.product-container {

    width:
        min(90%, var(--page-width));

    margin: 0 auto;

}


.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 38px;

    color: var(--color-text-soft);

    font-size: 12px;

}


.back-link:hover {

    color: var(--purple-light);

}


.product-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(350px, 0.75fr);

    gap: 75px;

    align-items: start;

}


/* ========================================
   GALERIA
======================================== */

.product-gallery {

    min-width: 0;

}


.main-media {

    overflow: hidden;

    width: 100%;

    aspect-ratio: 4 / 5;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 20px;

}


.main-media img {

    width: 100%;
    height: 100%;

    object-fit: contain;

}


.main-media video {

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #111;

}


.media-loading {

    color: var(--color-text-soft);

    font-size: 12px;

}


.thumbnail-list {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 9px;

    margin-top: 12px;

}


.thumbnail {

    position: relative;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: var(--color-surface);

    border: 2px solid transparent;

    border-radius: 10px;

    cursor: pointer;

}


.thumbnail:hover {

    border-color:
        rgba(139, 92, 246, 0.5);

}


.thumbnail.active {

    border-color:
        var(--purple-light);

}


.thumbnail img,
.thumbnail-video video {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.video-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, 0.35);

}


.video-overlay span {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--purple);

    border-radius: 50%;

    font-size: 11px;

}


/* ========================================
   INFO
======================================== */

.product-info {

    position: sticky;

    top: 115px;

}


.product-category {

    display: block;

    margin-bottom: 15px;

    color: var(--purple-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;

}


.product-info > h1 {

    margin-bottom: 20px;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.055em;

}


.product-description {

    color: var(--color-text-soft);

    font-size: 15px;

    line-height: 1.75;

}


.material-info {

    margin-top: 18px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 10px;

    background:
        var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 7px;

}


.material-info[hidden] {

    display: none;

}


.material-info span {

    color: var(--color-text-soft);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.1em;

}


.material-info strong {

    font-size: 10px;

}


.product-divider {

    height: 1px;

    margin: 30px 0;

    background: var(--color-border);

}


/* ========================================
   PREÇO / STATUS
======================================== */

.product-price-block {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.price-label {

    color: var(--color-text-soft);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.12em;

}


.product-price {

    font-size: 27px;

    font-weight: 500;

}


.product-status {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: var(--color-text-soft);

    font-size: 11px;

}


.status-dot {

    width: 7px;
    height: 7px;

    background: #22c55e;

    border-radius: 50%;

}


.product-status.unavailable
.status-dot {

    background: #ef4444;

}


/* ========================================
   CONFIGURADOR
======================================== */

.product-configurator {

    margin-top: 35px;

    padding-top: 30px;

    border-top:
        1px solid var(--color-border);

}


.configurator-heading {

    margin-bottom: 25px;

}


.configurator-heading > span {

    display: block;

    margin-bottom: 6px;

    color: var(--purple-light);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.16em;

}


.configurator-heading h2 {

    font-size: 23px;

    font-weight: 500;

    letter-spacing: -0.03em;

}


.configuration-group {

    margin-top: 24px;

}


.configuration-group[hidden] {

    display: none;

}


.configuration-label {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;

}


.configuration-label strong {

    font-size: 12px;

}


.configuration-label span {

    color: var(--color-text-soft);

    font-size: 9px;

    text-align: right;

}


/* ========================================
   OPÇÕES
======================================== */

.option-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.product-option {

    min-height: 40px;

    padding: 0 14px;

    color: var(--color-text);

    background: var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 8px;

    font-size: 11px;

}


.product-option:hover {

    border-color:
        var(--purple-light);

}


.product-option.selected {

    color: white;

    background: var(--purple);

    border-color: var(--purple);

}


/* ========================================
   QUANTIDADE
======================================== */

.quantity-control {

    width: 135px;

    height: 43px;

    display: grid;

    grid-template-columns:
        43px 1fr 43px;

    overflow: hidden;

    background: var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 9px;

}


.quantity-control button {

    color: var(--color-text);

    background: transparent;

    border: none;

    font-size: 18px;

}


.quantity-control button:hover {

    background:
        var(--color-surface-soft);

}


.quantity-control span {

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 600;

}


/* ========================================
   PERSONALIZAÇÃO
======================================== */

.customization-group {

    padding: 17px;

    background:
        rgba(109, 40, 217, 0.06);

    border:
        1px solid
        rgba(139, 92, 246, 0.14);

    border-radius: 10px;

}


.customization-toggle {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 14px;

    font-size: 11px;

    cursor: pointer;

}


.customization-toggle input {

    width: 17px;
    height: 17px;

    accent-color: var(--purple);

}


.customization-request {

    margin-top: 15px;

}


.customization-request[hidden] {

    display: none;

}


.customization-request label {

    display: block;

    margin-bottom: 7px;

    color: var(--color-text-soft);

    font-size: 10px;

}


.customization-request textarea {

    width: 100%;

    padding: 12px;

    color: var(--color-text);

    background: var(--color-bg);

    border:
        1px solid var(--color-border);

    border-radius: 8px;

    outline: none;

    resize: vertical;

}


.customization-request textarea:focus {

    border-color: var(--purple-light);

}


/* ========================================
   ORÇAMENTO
======================================== */

.order-box {

    margin-top: 35px;

    padding: 25px;

    background: var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius: 15px;

}


.order-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--purple-light);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.15em;

}


.order-box h2 {

    margin-bottom: 9px;

    font-size: 23px;

    font-weight: 500;

}


.order-box p {

    margin-bottom: 20px;

    color: var(--color-text-soft);

    font-size: 12px;

    line-height: 1.6;

}


.whatsapp-button {

    width: 100%;

    min-height: 51px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    color: white;

    background: var(--purple);

    border: none;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 600;

}


.whatsapp-button:hover {

    background: var(--purple-light);

}


.whatsapp-button:disabled {

    opacity: 0.45;

    cursor: not-allowed;

}


.whatsapp-note {

    display: block;

    margin-top: 10px;

    color: var(--color-text-soft);

    font-size: 9px;

    text-align: center;

}


/* ========================================
   DETALHES
======================================== */

.product-details {

    margin-top: 25px;

}


.detail-item {

    display: flex;

    gap: 12px;

    padding: 15px 0;

    border-bottom:
        1px solid var(--color-border);

}


.detail-icon {

    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--purple-light);

    background:
        rgba(109, 40, 217, 0.10);

    border-radius: 7px;

}


.detail-item div {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.detail-item strong {

    font-size: 11px;

}


.detail-item div span {

    color: var(--color-text-soft);

    font-size: 10px;

    line-height: 1.5;

}


/* ========================================
   NOT FOUND
======================================== */

.not-found {

    min-height:
        calc(100vh - 84px);

    padding: 80px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.not-found[hidden] {

    display: none;

}


.not-found > div {

    max-width: 560px;

}


.not-found img {

    width: 90px;

    margin-bottom: 30px;

}


.not-found > div > span {

    display: block;

    margin-bottom: 10px;

    color: var(--purple-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.16em;

}


.not-found h1 {

    margin-bottom: 15px;

    font-size:
        clamp(
            38px,
            6vw,
            65px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;

}


.not-found p {

    margin-bottom: 28px;

    color: var(--color-text-soft);

    line-height: 1.7;

}


.not-found a {

    min-height: 46px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--purple);

    border-radius: 9px;

}


/* ========================================
   FOOTER
======================================== */

.site-footer {

    padding: 30px 0;

    background: var(--color-surface);

    border-top:
        1px solid var(--color-border);

}


.footer-container {

    width:
        min(90%, var(--page-width));

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.footer-brand img {

    width: 34px;

}


.footer-brand div {

    display: flex;

    flex-direction: column;

}


.footer-brand strong {

    font-size: 12px;

    letter-spacing: 0.12em;

}


.footer-brand span,
.footer-text {

    color: var(--color-text-soft);

    font-size: 9px;

}


/* ========================================
   RESPONSIVO
======================================== */

@media (max-width: 900px) {

    .main-nav {

        display: none;

    }


    .product-layout {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .product-gallery {

        max-width: 650px;

        margin: 0 auto;

    }


    .product-info {

        position: static;

    }

}


@media (max-width: 600px) {

    .header-container {

        width: 92%;

    }


    .brand-title {

        width: 110px;

    }


    .header-cta {

        display: none;

    }


    .product-section {

        padding: 35px 0 80px;

    }


    .product-container {

        width: 92%;

    }


    .thumbnail-list {

        grid-template-columns:
            repeat(4, 1fr);

    }


    .product-info > h1 {

        font-size:
            clamp(
                39px,
                13vw,
                58px
            );

    }


    .configuration-label {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;

    }


    .configuration-label span {

        text-align: left;

    }


    .order-box {

        padding: 20px;

    }


    .footer-container {

        flex-direction: column;

        align-items: flex-start;

    }

}


@media (max-width: 440px) {

    .brand-title {

        width: 92px;

    }

}


/* ========================================
   ÍCONE DO WHATSAPP
======================================== */

.whatsapp-button svg.whatsapp-icon {
    width: 21px;
    height: 21px;
    min-width: 21px;
    max-width: 21px;
    min-height: 21px;
    max-height: 21px;
    flex: 0 0 21px;
    display: block;
}


/* ========================================
   ORIGEM DO MODELO — INFORMAÇÃO SECUNDÁRIA
======================================== */

.model-info {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--color-text-soft);
}

.model-info[hidden] {
    display: none;
}

.model-info span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.model-info strong {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-soft);
}

/* ========================================
   FICHA COMERCIAL
======================================== */

.commercial-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.commercial-specs[hidden] {
    display: none;
}

.commercial-spec {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.commercial-spec[hidden] {
    display: none;
}

.commercial-spec span {
    color: var(--color-text-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.commercial-spec strong {
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .commercial-specs {
        grid-template-columns: 1fr;
    }
}

.demand-notice{max-width:1180px;margin:18px auto;padding:14px 18px;border:1px solid var(--purple-light,#8B5CF6);border-radius:12px}.demand-notice.paused{font-weight:700}.category-checkboxes{display:flex;flex-wrap:wrap;gap:10px}.category-manager{display:grid;gap:8px;margin-top:12px}.category-manage-item,.inline-editor-row{display:flex;gap:10px;align-items:center}.category-manage-item{justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(128,128,128,.2)}

/* ========================================
   GALERIA E APRESENTAÇÃO VISUAL
======================================== */

.main-product-image {
    cursor: zoom-in;
}

.main-product-image:focus-visible,
.thumbnail:focus-visible,
.media-lightbox button:focus-visible {
    outline: 3px solid var(--purple-light);
    outline-offset: 3px;
}

.thumbnail img {
    background: var(--color-surface);
}

body.lightbox-open {
    overflow: hidden;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(8px);
}

.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    height: min(88vh, 900px);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 12px;
}

.media-lightbox-figure {
    min-width: 0;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    justify-items: center;
}

.media-lightbox-figure img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

.media-lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-align: center;
}

.media-lightbox-close,
.media-lightbox-nav {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(31, 31, 35, 0.86);
    color: #fff;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
    background: var(--purple);
    border-color: var(--purple-light);
}

.media-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.media-lightbox-nav {
    width: 52px;
    height: 64px;
    border-radius: 14px;
    font-size: 38px;
    line-height: 1;
}

@media (max-width: 600px) {
    .main-media {
        aspect-ratio: 1 / 1.12;
    }

    .thumbnail-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 2px 2px 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .thumbnail {
        flex: 0 0 76px;
        width: 76px;
        scroll-snap-align: start;
    }

    .media-lightbox {
        padding: 14px;
    }

    .media-lightbox-dialog {
        width: 100%;
        height: 90vh;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 6px;
    }

    .media-lightbox-nav {
        width: 42px;
        height: 54px;
        font-size: 32px;
    }

    .media-lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .media-lightbox-close,
    .media-lightbox-nav {
        transition: none;
    }
}

/* ========================================
   MOBILE + ACESSIBILIDADE
======================================== */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #A78BFA;
    outline-offset: 3px;
}

.theme-toggle,
.quantity-control button,
.product-option,
.thumbnail,
.whatsapp-button,
.header-cta {
    min-height: 44px;
}

.quantity-control button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .site-header { position: relative; z-index: 50; }
    .header-container { position: relative; }
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,.18);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 9px;
    }
}

@media (max-width: 600px) {
    html, body { max-width: 100%; overflow-x: clip; }
    .header-container { gap: 8px; }
    .header-actions { gap: 7px; }
    .theme-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
    .product-info > h1 { font-size: clamp(34px, 11vw, 48px); overflow-wrap: anywhere; }
    .product-price { overflow-wrap: anywhere; }
    .option-buttons { gap: 8px; }
    .product-option { padding: 10px 13px; }
    .quantity-control { min-height: 48px; }
    .order-box { padding: 18px; }
    .whatsapp-button { width: 100%; justify-content: center; text-align: center; }
    .thumbnail-list { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 6px; }
    .thumbnail { flex: 0 0 72px; width: 72px; }
}

@media (max-width: 360px) {
    .brand-title { width: 84px; }
    .header-container { width: 94%; }
    .product-container { width: 94%; }
    .order-box { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   HIERARQUIA MOBILE + FOOTER
======================================== */

/* O resumo comercial é um bloco independente da galeria. */
.product-layout {
    grid-template-areas:
        "gallery summary"
        "gallery info";
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.75fr);
    column-gap: 75px;
    row-gap: 26px;
}

.product-summary { grid-area: summary; min-width: 0; }
.product-gallery { grid-area: gallery; min-width: 0; }
.product-info { grid-area: info; min-width: 0; }

.product-summary > h1 {
    margin: 10px 0 18px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.product-summary .product-description { margin-bottom: 24px; }
.product-summary .product-price-block { margin-top: 0; }

/* Rodapé usa a mesma estrutura visual da home. */
.site-footer {
    padding: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.site-footer .footer-container {
    width: min(90%, var(--page-width));
    margin: 0 auto;
    padding: 54px 0 28px;
    display: block;
}

.site-footer .footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer .footer-symbol {
    display: block;
    width: 46px;
    height: auto;
}

.site-footer .footer-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.site-footer .footer-title {
    width: 126px;
    height: auto;
}

.site-footer .footer-title-dark { display: block; }
.site-footer .footer-title-light { display: none; }
body.light-theme .site-footer .footer-title-dark { display: none; }
body.light-theme .site-footer .footer-title-light { display: block; }

.site-footer .footer-brand-copy span {
    color: var(--color-text-soft);
    font-size: 10px;
}

.site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.site-footer .footer-nav a {
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 500;
}

.site-footer .footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--color-border);
}

.site-footer .footer-bottom p {
    color: var(--color-text-soft);
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-areas:
            "summary"
            "gallery"
            "info";
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .product-summary {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .product-gallery {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .product-info {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .product-section { padding-bottom: 52px; }
    .back-link { margin-bottom: 24px; }

    .product-layout { gap: 22px; }

    .product-summary > h1 {
        margin: 8px 0 14px;
        font-size: clamp(34px, 11vw, 48px);
        overflow-wrap: anywhere;
    }

    .product-summary .product-description { margin-bottom: 18px; }

    .main-media {
        aspect-ratio: auto;
        min-height: 0;
        height: min(54vh, 500px);
    }

    .main-media img,
    .main-media video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .site-footer .footer-container {
        width: 92%;
        padding: 46px 0 26px;
    }

    .site-footer .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .site-footer .footer-brand { justify-content: center; }

    .site-footer .footer-brand-copy {
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-nav {
        justify-content: center;
        gap: 18px 24px;
    }

    .site-footer .footer-bottom {
        margin-top: 34px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .site-footer .footer-bottom p { text-align: center; }
}

@media (max-width: 440px) {
    .site-footer .footer-title { width: 112px; }
}


/* Estados técnicos */
.media-fallback {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    background: var(--color-surface, #25252b);
    color: var(--color-text, #f8fafc);
}
.media-fallback span { opacity: .7; }
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 600px) {
    .media-fallback { min-height: 240px; }
    .not-found-actions { flex-direction: column; align-items: stretch; }
}


/* Navegação da galeria */
.main-media {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(20, 20, 24, .72);
    color: #fff;
    font: inherit;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.gallery-arrow:hover {
    background: rgba(109, 40, 217, .92);
    transform: translateY(-50%) scale(1.06);
}

.gallery-arrow:focus-visible {
    outline: 3px solid var(--color-primary, #8b5cf6);
    outline-offset: 3px;
}

.gallery-arrow-previous { left: 14px; }
.gallery-arrow-next { right: 14px; }

@media (max-width: 600px) {
    .gallery-arrow {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
    .gallery-arrow-previous { left: 10px; }
    .gallery-arrow-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-arrow { transition: none; }
}


/* Play central do vídeo principal */
.main-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(20, 20, 24, .76);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.main-video-play span {
    margin-left: 5px;
    font-size: 30px;
    line-height: 1;
}

.main-video-play:hover {
    background: rgba(109, 40, 217, .94);
    transform: translate(-50%, -50%) scale(1.06);
}

.main-video-play:focus-visible {
    outline: 3px solid var(--color-primary, #8b5cf6);
    outline-offset: 3px;
}

.main-video-play.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .main-video-play {
        width: 66px;
        height: 66px;
    }

    .main-video-play span {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-video-play { transition: none; }
}

/* ========================================
   KRYVIA — SISTEMA GRÁFICO
   A identidade acompanha o produto sem competir com a galeria.
======================================== */

.product-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Malha ambiental: fragmentos grandes derivados dos ângulos do K. */
.product-section::before,
.product-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.product-section::before {
    width: 520px;
    height: 760px;
    top: 110px;
    right: -300px;
    opacity: .72;
    background:
        linear-gradient(126deg, transparent 47.8%, rgba(139, 92, 246, .11) 48%, rgba(139, 92, 246, .11) 48.55%, transparent 48.75%),
        linear-gradient(54deg, transparent 54.3%, rgba(109, 40, 217, .075) 54.5%, rgba(109, 40, 217, .075) 55.1%, transparent 55.3%),
        linear-gradient(126deg, transparent 62.1%, rgba(139, 92, 246, .045) 62.3%, rgba(139, 92, 246, .045) 62.65%, transparent 62.85%);
    transform: rotate(-3deg);
}

.product-section::after {
    width: 650px;
    height: 500px;
    left: -390px;
    bottom: 70px;
    opacity: .58;
    background:
        linear-gradient(43deg, transparent 44.6%, rgba(109, 40, 217, .08) 44.8%, rgba(109, 40, 217, .08) 45.35%, transparent 45.55%),
        linear-gradient(137deg, transparent 58.1%, rgba(139, 92, 246, .055) 58.3%, rgba(139, 92, 246, .055) 58.75%, transparent 58.95%);
}

.product-container,
.not-found > div {
    position: relative;
    z-index: 1;
}

/* A galeria continua protagonista; apenas herda a assinatura de canto. */
.main-media {
    border-radius: 18px 18px 18px 5px;
}

.thumbnail {
    border-radius: 9px 9px 9px 3px;
}

.thumbnail.active {
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .18);
}

/* Pequena assinatura no início da área comercial. */
.product-summary {
    position: relative;
}

.product-summary::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--purple-light) 0 72%, transparent 72%);
    transform: skewX(-28deg);
    transform-origin: left center;
}

.material-info,
.model-info,
.commercial-spec,
.quantity-control,
.customization-request {
    border-radius: 8px 8px 8px 3px;
}

.product-option {
    border-radius: 8px 8px 8px 3px;
}

.product-option.selected {
    position: relative;
}

.product-option.selected::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 2px;
    background: var(--purple-light);
    transform: rotate(-45deg);
    transform-origin: right center;
    pointer-events: none;
}

/* CTA comercial: mais KRYVIA, menos card SaaS. */
.order-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 16px 5px;
}

.order-box::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -82px;
    top: -88px;
    pointer-events: none;
    opacity: .72;
    background:
        linear-gradient(132deg, transparent 48%, rgba(139, 92, 246, .17) 48.4%, rgba(139, 92, 246, .17) 49.1%, transparent 49.5%),
        linear-gradient(48deg, transparent 56%, rgba(109, 40, 217, .10) 56.4%, rgba(109, 40, 217, .10) 57.1%, transparent 57.5%);
}

.order-box > * {
    position: relative;
    z-index: 1;
}

.whatsapp-button,
.header-cta {
    border-radius: 9px 9px 9px 3px;
}

.whatsapp-button {
    position: relative;
    overflow: hidden;
}

.whatsapp-button::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 3px;
    background: rgba(255, 255, 255, .7);
    transform: rotate(-45deg);
    transform-origin: right center;
    pointer-events: none;
}

.detail-icon {
    border-radius: 7px 7px 7px 2px;
}

/* Estado sem produto também pertence à mesma família visual. */
.not-found {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.not-found::before,
.not-found::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.not-found::before {
    width: 520px;
    height: 520px;
    right: -270px;
    top: 50px;
    background:
        linear-gradient(128deg, transparent 47%, rgba(139, 92, 246, .10) 47.3%, rgba(139, 92, 246, .10) 47.9%, transparent 48.2%),
        linear-gradient(52deg, transparent 58%, rgba(109, 40, 217, .06) 58.3%, rgba(109, 40, 217, .06) 58.9%, transparent 59.2%);
}

.not-found::after {
    width: 420px;
    height: 420px;
    left: -250px;
    bottom: -80px;
    background: linear-gradient(42deg, transparent 48%, rgba(139, 92, 246, .055) 48.3%, rgba(139, 92, 246, .055) 49%, transparent 49.3%);
}

/* Footer: o momento gráfico mais expressivo, como na home. */
.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.site-footer::before {
    width: 430px;
    height: 330px;
    left: -145px;
    bottom: -145px;
    background:
        linear-gradient(132deg, transparent 38%, rgba(139, 92, 246, .20) 38.4%, rgba(139, 92, 246, .20) 39.5%, transparent 39.9%),
        linear-gradient(48deg, transparent 53%, rgba(109, 40, 217, .13) 53.4%, rgba(109, 40, 217, .13) 54.2%, transparent 54.6%),
        linear-gradient(132deg, transparent 65%, rgba(139, 92, 246, .055) 65.3%, rgba(139, 92, 246, .055) 65.8%, transparent 66.1%);
}

.site-footer::after {
    width: 560px;
    height: 380px;
    right: -185px;
    top: -145px;
    background:
        linear-gradient(128deg, transparent 36%, rgba(139, 92, 246, .18) 36.4%, rgba(139, 92, 246, .18) 37.4%, transparent 37.8%),
        linear-gradient(52deg, transparent 49%, rgba(109, 40, 217, .12) 49.4%, rgba(109, 40, 217, .12) 50.2%, transparent 50.6%),
        linear-gradient(128deg, transparent 62%, rgba(139, 92, 246, .06) 62.3%, rgba(139, 92, 246, .06) 62.8%, transparent 63.1%),
        linear-gradient(78deg, transparent 70%, rgba(109, 40, 217, .05) 70.3%, rgba(109, 40, 217, .05) 70.7%, transparent 71%);
}

.site-footer .footer-container {
    position: relative;
    z-index: 1;
}

.site-footer .footer-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 2px;
    background: var(--purple-light);
    transform: skewX(-30deg);
}

.light-theme .product-section::before,
.light-theme .product-section::after,
.light-theme .not-found::before,
.light-theme .not-found::after {
    opacity: .42;
}

@media (max-width: 900px) {
    .product-section::before {
        width: 390px;
        height: 560px;
        right: -280px;
        top: 250px;
        opacity: .5;
    }

    .product-section::after {
        width: 420px;
        height: 340px;
        left: -320px;
        bottom: 160px;
        opacity: .38;
    }

    .site-footer::before { left: -255px; opacity: .65; }
    .site-footer::after { right: -330px; opacity: .65; }
}

@media (max-width: 600px) {
    .product-section::before {
        width: 310px;
        height: 430px;
        right: -245px;
        top: 360px;
        opacity: .38;
    }

    .product-section::after {
        display: none;
    }

    .product-summary::before {
        width: 28px;
        margin-bottom: 13px;
    }

    .order-box::after {
        opacity: .48;
    }

    .site-footer::before,
    .site-footer::after {
        opacity: .42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-section::before,
    .product-section::after,
    .site-footer::before,
    .site-footer::after {
        transform: none;
    }
}

/* ========================================
   PRESENÇA DA MARCA NO HEADER
   Mantém home e produto com a mesma escala visual de assinatura.
======================================== */
.brand-symbol {
    width: 52px;
}

.brand-title {
    width: 160px;
}

@media (max-width: 900px) {
    .brand-symbol { width: 48px; }
    .brand-title { width: 148px; }
}

@media (max-width: 600px) {
    .brand-symbol { width: 44px; }
    .brand-title { width: 128px; }
}

@media (max-width: 440px) {
    .brand-title { width: 116px; }
}

@media (max-width: 360px) {
    .brand-symbol { width: 40px; }
    .brand-title { width: 106px; }
}
