/* MotoGP Brasil 2026 - Página do produto (layout compacto) */
:root {
    --color-bg: #0f0f0f;
    --color-surface: #191919;
    --color-border: #2d2d2d;
    --color-text: #e5e5e5;
    --color-text-muted: #a3a3a3;
    --color-primary: #e11919;
    --color-primary-hover: #c41414;
    --color-accent: #fff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 6px;
    --header-h: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
}
.nav-main {
    display: flex;
    gap: 1rem;
}
.nav-main a {
    color: var(--color-text);
}
.nav-main a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Main */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 12px 24px;
}

.breadcrumb {
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}
.breadcrumb .sep {
    margin: 0 4px;
}
.breadcrumb a {
    color: var(--color-text-muted);
}

/* Product */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .product {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 8px);
}

/* Carrossel */
.product-gallery.carousel {
    position: relative;
    width: 100%;
}
.carousel-track-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: 16 / 9;
    position: relative;
}
.carousel-track {
    display: flex;
    position: absolute;
    inset: 0;
    transition: transform 0.35s ease-out;
}
.carousel-slide {
    margin: 0;
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.carousel-slide-zoom {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
}
.carousel-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.carousel-slide-zoom:hover .carousel-zoom-hint {
    opacity: 1;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: var(--color-primary);
}
.carousel-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.carousel-dot:hover {
    background: var(--color-text-muted);
}
.carousel-dot.active {
    background: var(--color-primary);
}
/* Imagens fora do carrossel (fallback) */
.product-gallery:not(.carousel) img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    display: flex;
    flex-direction: column;
}
.product-title {
    margin: 0 0 6px;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
}
.product-price-range {
    margin: 0 0 10px;
    font-size: 1.125rem;
}
.product-price-range .price {
    font-weight: 600;
}
.product-short-desc {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Form */
.form-compra {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.variations-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
.variations-table td {
    padding: 4px 0;
    vertical-align: middle;
}
.variations-table .label {
    width: 72px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.variations-table select {
    width: 100%;
    max-width: 280px;
    padding: 8px 10px;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
}
.variations-table select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    margin-bottom: 10px;
}
.form-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"] {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
}
.form-row input:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-row.preco-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.form-row.preco-total input#quantidade {
    max-width: 72px;
}
.total-label {
    margin-left: 4px;
    font-size: 1rem;
}
.total-label strong {
    color: var(--color-primary);
}

.dados-cliente {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.form-actions {
    margin: 14px 0 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    width: 100%;
    max-width: 320px;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-secondary {
    background: var(--color-border);
    color: var(--color-text);
    margin-top: 6px;
}
.btn-secondary:hover {
    background: #3d3d3d;
}

/* Cartão de crédito */
.card-content {
    margin-top: 8px;
}
.card-row {
    display: flex;
    gap: 12px;
}
.card-row .form-row {
    flex: 1;
    margin-bottom: 0;
}
.card-resumo {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.card-resumo strong {
    color: var(--color-primary);
}
.card-actions {
    margin-top: 12px;
}

.envio-info {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Description */
.product-description {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.product-description h2 {
    margin: 0 0 10px;
    font-size: 1.125rem;
}
.product-description h3 {
    margin: 16px 0 8px;
    font-size: 1rem;
}
.product-description p {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.setores-list {
    margin: 0 0 14px;
    padding-left: 1.125rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.setores-list li {
    margin-bottom: 4px;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.info-table th,
.info-table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.info-table th {
    width: 100px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Footer */
.site-footer {
    margin-top: 24px;
    padding: 14px 12px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
.footer-inner p {
    margin: 0 0 4px;
}
.copy {
    margin-top: 8px !important;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.modal-box {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius);
}
.modal-close:hover {
    color: var(--color-text);
    background: var(--color-border);
}

/* Modal zoom imagem */
.modal-zoom {
    padding: 0;
    align-items: stretch;
    justify-content: center;
}
.modal-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}
.modal-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    z-index: 2;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-zoom-close:hover {
    background: var(--color-primary);
}
.modal-zoom-controls {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 999px;
}
.modal-zoom-btn {
    width: 34px;
    height: 34px;
    font-size: 1.125rem;
    border: none;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modal-zoom-btn:hover {
    background: var(--color-primary);
    color: #fff;
}
.modal-zoom-level {
    min-width: 52px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text);
}
.modal-zoom-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    cursor: grab;
    touch-action: none;
}
.modal-zoom-wrap:active {
    cursor: grabbing;
}
.modal-zoom-wrap.zoomed {
    cursor: grab;
}
#modal-zoom-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

.modal-box h2 {
    margin: 0 0 6px;
    font-size: 1.125rem;
}
.modal-subtitle {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}
.pix-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pix-qr {
    text-align: center;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius);
}
.pix-qr img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.pix-copia label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
#pix-copiaecola {
    width: 100%;
    padding: 10px;
    font-size: 0.75rem;
    font-family: monospace;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    resize: vertical;
}
.pix-valor {
    margin: 10px 0 0;
    font-size: 1rem;
}
.pix-valor strong {
    color: var(--color-primary);
}
.pix-aviso {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 16px;
    font-size: 0.8125rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 0.875rem;
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
    z-index: 1001;
    max-width: 90vw;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile: ainda mais compacto */
@media (max-width: 600px) {
    .main-content {
        padding: 8px 10px 16px;
    }
    .breadcrumb {
        margin-bottom: 8px;
        font-size: 0.75rem;
    }
    .product-title {
        font-size: 1.25rem;
    }
    .product-short-desc {
        margin-bottom: 10px;
        font-size: 0.8125rem;
    }
    .form-compra {
        padding: 12px;
    }
    .product {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .product-gallery {
        order: 1;
        position: relative;
        top: 0;
    }
    .product-info {
        order: 2;
    }
    .variations-table td {
        padding: 2px 0;
    }
    .variations-table,
    .variations-table tbody,
    .variations-table tr,
    .variations-table td {
        display: block;
        width: 100%;
    }
    .variations-table .label {
        margin-bottom: 2px;
    }
    .variations-table .value {
        margin-bottom: 8px;
    }
    .variations-table select {
        max-width: 100%;
    }
    .form-row {
        margin-bottom: 8px;
    }
    .form-row input[type='text'],
    .form-row input[type='email'],
    .form-row input[type='tel'],
    .form-row input[type='number'] {
        max-width: 100%;
    }
    .form-row.preco-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .total-label {
        margin-left: 0;
    }
    .btn-primary {
        max-width: 100%;
    }
    .card-row {
        flex-direction: column;
        gap: 8px;
    }
    .card-row {
        flex-direction: column;
        gap: 8px;
    }
    .product-description {
        padding-top: 12px;
    }
    .product-description h2 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .product-description h3 {
        margin: 12px 0 6px;
        font-size: 0.9375rem;
    }
    .site-footer {
        margin-top: 16px;
        padding: 10px;
        font-size: 0.75rem;
    }
    .carousel-zoom-hint {
        font-size: 0.6875rem;
        padding: 4px 8px;
        bottom: 8px;
    }
}

/* Banner de consentimento de cookies (LGPD/GDPR) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 14px 16px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-consent--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.cookie-consent__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}
.cookie-consent__text a {
    color: var(--color-primary);
}
.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-consent__btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.cookie-consent__btn--reject {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.cookie-consent__btn--reject:hover {
    background: var(--color-border);
    color: var(--color-text);
}
.cookie-consent__btn--accept {
    background: var(--color-primary);
    color: #fff;
}
.cookie-consent__btn--accept:hover {
    background: var(--color-primary-hover);
    color: #fff;
}



