.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.produto-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    width: 100%;
}

/* GALERIA */
.img-principal {
    width: 100%;
    border-radius: 10px;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbs img {
    width: 70px;
    cursor: pointer;
}

/* DESCRIÇÃO */
.descricao-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}

/* COMPRA */
.box-compra {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 120px;
    width: 100%;
    box-sizing: border-box;
}

.col-galeria {
    padding: 20px;
}

.img-principal {
    border: 1px solid #ddd;
    width: 100%;
    max-width: 400px;
    /* 🔥 controla tamanho */

    display: block;
    margin: 0 auto;
    /* 🔥 centraliza */

    border-radius: 10px;

    cursor: zoom-in;
    /* 🔥 indica interação */
    transition: 0.2s;
}

.img-principal:hover {
    transform: scale(1.02);
}

.thumbs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;

    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    border: 1px solid #eee;
}

.thumbs img:hover {
    opacity: 1;
}

.modal-img {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.8);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.modal-img img {
    max-width: 90%;
    max-height: 90%;

    border-radius: 10px;
    animation: zoomIn 0.2s ease;
}


@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.col-compra {
    max-width: 320px;
    width: 100%;
    justify-self: end;
}

.preco {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* QUANTIDADE */
.qtd-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
}

.qtd-box button {
    width: 35px;
    height: 35px;
    border: none;
    background: #ddd;
    cursor: pointer;
    font-size: 18px;
}

.qtd-box input {
    width: 60px;
    text-align: center;
    height: 35px;
}

/* BOTÃO */
.btn-comprar {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.tag-tamanho:hover {
    background: #000;
    color: #fff;
}

.tag-tamanho.ativo {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 0 0 2px #000 inset;
}

.tag-tamanho {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;

    text-decoration: none;
    color: #000;
    background: #fff;

    font-size: 14px;
    line-height: 1;

    white-space: nowrap;
    transition: 0.2s;

    min-width: 70px;
}

.lista-tamanhos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}