:root {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #afafaf;
    --border: #333;
}

* {
    box-sizing: border-box
}

html,
body {
    font-family: 'Archivo', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--fg)
}


header {
    display: flex;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    justify-content: space-between;
    align-items: center;
    padding: 30px 18px;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.galeria {
    align-items: center;
    text-align: center;
}

.produto-img {
    width: 400px;
}

.titulo {
    text-align: center;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase
}

.card-prod {
    max-width: 1000px;
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px
}

/* Backdrop do drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1040;
}

/* Container do drawer (folha que sobe) */
.drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    padding: 16px;
    z-index: 1050;
    max-width: 640px;
    margin: 0 auto;
}

/* Estados visíveis */
.drawer.is-open {
    transform: translateY(0);
    opacity: 1;
}

.drawer-backdrop.is-open {
    opacity: 1;
}

/* Header do drawer */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.btn-close {
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Grade de tamanhos no estilo "pills" */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.size-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.size-pill:hover {
    border-color: #000;
}

.size-pill.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.size-pill input:checked+span,
.size-pill.border-primary {
    /* fallback para sua classe anterior */
    background: #111;
    color: #fff;
    border-color: #111;
}


@media(min-width:640px) {
    .grid {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 20px
    }


}

@media(min-width:1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 30px;
        display: grid;
        text-align: center;
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 30px;
        justify-content: center;
        /* 🟢 Centraliza os itens horizontalmente */

    }
}