/* ============================================
   ESTILOS GERAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   FONTES - BOOMANIA
   ============================================ */
@font-face {
    font-family: 'Boomania';
    src: url('/Boomania-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boomania';
    src: url('/Boomania-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boomania';
    src: url('/Boomania-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CORPO DA PÁGINA
   ============================================ */
body {
    font-family: 'Boomania', Arial, Roboto, sans-serif;
    background: #f5f7fa;
    font-weight: 400;
    color: #1a1a2e;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    display: block;
    margin: 0 auto 15px;
    max-width: 180px;
    height: auto;
}

h1 {
    font-size: 28px;
    color: #2d3436;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    color: #636e72;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   GRID DE PRODUTOS - RESPONSIVO
   ============================================ */
.produtos-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   CARD DO PRODUTO
   ============================================ */
.produto-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0984e3;
}

.produto-card.selecionado {
    border-color: #0984e3;
    background: #e3f0ff;
}

/* ============================================
   WRAPPER DA IMAGEM (hover + lupa + clique)
   ============================================ */
.produto-img-wrap {
    position: relative;
    width: 100%;
    max-width: 150px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: zoom-in;
}

.produto-img-wrap .produto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.35s ease;
}

.produto-img-wrap:hover .produto-img {
    transform: scale(1.06);
}

/* Ícone de lupa (overlay) */
.produto-img-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 132, 227, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: 8px;
}

.produto-img-wrap:hover .produto-img-zoom {
    opacity: 1;
}

.produto-img-zoom i {
    transform: scale(0.8);
    transition: transform 0.25s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.produto-img-wrap:hover .produto-img-zoom i {
    transform: scale(1);
}

/* ============================================
   NOME E PREÇO
   ============================================ */
.produto-nome {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #2d3436;
    width: 100%;
}

.produto-preco {
    font-weight: 700;
    color: #0984e3;
    font-size: 16px;
    width: 100%;
}

/* ============================================
   QUANTIDADE (BOTÕES + E -)
   ============================================ */
.produto-qtd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.produto-qtd button {
    background: #dfe6e9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3436;
    line-height: 1;
    flex: 0 0 auto;
}

.produto-qtd button:hover {
    background: #b2bec3;
}

.produto-qtd button:focus-visible {
    outline: 2px solid #0984e3;
    outline-offset: 2px;
}

.produto-qtd span {
    font-weight: 600;
    font-size: 18px;
    min-width: 45px;
    text-align: center;
}

/* Placeholder da quantidade */
.produto-qtd .qtd-placeholder {
    font-family: 'Boomania', Arial, sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #b2bec3;
    min-width: 90px;
    text-align: center;
    font-style: italic;
}

/* ============================================
   INFORMAÇÕES DO PEDIDO
   ============================================ */
.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.info-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3436;
}

.info-section select,
.info-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    background: white;
    transition: border-color 0.2s;
    font-family: inherit;
    color: #1a1a2e;
}

.info-section select:focus,
.info-section input:focus {
    outline: none;
    border-color: #0984e3;
}

.frete-info {
    background: #dfe6e9;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    color: #2d3436;
    font-weight: 500;
}

/* ============================================
   TOTAL DO PEDIDO
   ============================================ */
.total-box {
    background: #2d3436;
    color: white;
    padding: 18px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    margin-top: 30px;
}

.total-box .label {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.total-box .valor {
    font-size: 28px;
    font-weight: 700;
}

/* ============================================
   BOTÃO WHATSAPP
   ============================================ */
.btn-whats-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.btn-whats {
    width: 100%;
    padding: 18px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    font-family: inherit;
}

.btn-whats:hover {
    background: #128C7E;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whats:focus-visible {
    outline: 3px solid #0984e3;
    outline-offset: 3px;
}

.btn-whats i {
    font-size: 22px;
}

/* ============================================
   RODAPÉ
   ============================================ */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #b2bec3;
    font-size: 14px;
}

/* ============================================
   LIGHTBOX / POPUP (420x300)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    padding: 20px;
}

.lightbox.ativo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.lightbox-content {
    position: relative;
    width: 420px;
    height: 300px;
    max-width: 95vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.lightbox.ativo .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f7fa;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0984e3;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: #d63031;
    transform: rotate(90deg);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet (2 colunas) */
@media screen and (max-width: 992px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .total-box .valor {
        font-size: 24px;
    }
}

/* Celular (1 coluna) */
@media screen and (max-width: 576px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .produto-card {
        padding: 15px;
    }

    .produto-nome {
        font-size: 13px;
    }

    h1 {
        font-size: 22px;
    }

    .logo {
        max-width: 130px;
    }

    .total-box {
        padding: 12px 15px;
        flex-direction: column;
        gap: 5px;
    }

    .total-box .label {
        font-size: 12px;
    }

    .total-box .valor {
        font-size: 22px;
    }

    .btn-whats-container {
        padding: 0;
        margin: 15px auto 0;
    }

    .btn-whats {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .btn-whats i {
        font-size: 18px;
    }

    .produto-qtd .qtd-placeholder {
        font-size: 10px;
        min-width: 70px;
    }

    .lightbox-content {
        width: 92vw;
        height: auto;
        aspect-ratio: 420 / 300;
    }

    .lightbox-close {
        top: -12px;
        right: -8px;
    }

    .produto-img-zoom {
        font-size: 22px;
    }
}

/* Acessibilidade: respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}