* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
}

.banner {
    max-width: 1400px;
    margin: 25px auto;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;

    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../../img/me04-launch-169-br.png');

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
}

.banner h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.banner button {
    margin-top: 20px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
}

.categorias {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.categoria {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.categoria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.categoria h3 {
    padding: 20px;
    text-align: center;
}

.secao {
    max-width: 1400px;
    margin: 50px auto;
}

.secao h2 {
    margin-bottom: 25px;
    font-size: 30px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.produto {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.produto:hover {
    transform: translateY(-5px);
}

.produto img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: white;
}

.produto-info {
    padding: 15px;
}

.colecao {
    color: #777;
    font-size: 13px;
}

.produto h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 50px;
}

.preco {
    font-size: 24px;
    color: #ef4444;
    font-weight: bold;
}

.comprar {
    width: 100%;
    margin-top: 15px;
    border: none;
    background: #ef4444;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}
.toast {
    position: fixed;

    top: 90px;
    right: 20px;

    padding: 15px 25px;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    z-index: 9999;

    opacity: 0;

    transform: translateX(120%);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;

    transform: translateX(0);
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.checkout-card {
    background: white;

    border-radius: 18px;

    padding: 25px;

    margin-top: 25px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.checkout-card h2 {
    margin-bottom: 20px;
}

.radio-option {
    display: flex;

    gap: 15px;

    padding: 18px;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    cursor: pointer;

    margin-bottom: 15px;

    transition: 0.2s;
}

.radio-option:hover {
    border-color: #ef4444;
}

.radio-option input {
    transform: scale(1.3);

    margin-top: 5px;
}

.radio-option strong {
    display: block;
}

.radio-option span {
    color: #666;

    font-size: 14px;
}

.frete-info {
    margin-top: 20px;

    padding: 15px;

    background: #fafafa;

    border-radius: 10px;
}

.btn-secundario {
    display: inline-block;

    margin-top: 15px;

    color: white;

    background: #ef4444;

    padding: 10px 18px;

    border-radius: 8px;

    text-decoration: none;
}

.resumo-final {
    position: static;
    width: 100%;
}

.linha-total {
    display: flex;

    justify-content: space-between;

    margin: 15px 0;
}

.total {
    font-size: 22px;

    font-weight: bold;
}

.btn-finalizar {
    width: 100%;

    margin-top: 20px;

    padding: 16px;

    border: none;

    background: #ef4444;

    color: white;

    border-radius: 12px;

    font-size: 18px;

    cursor: pointer;
}

.btn-finalizar:hover {
    background: #dc2626;
}

.carrinho-item {
    display: grid;

    grid-template-columns: 110px 1fr 220px;

    gap: 25px;

    padding: 25px 0;

    border-bottom: 1px solid #ececec;

    align-items: center;
}

.carrinho-item:last-child {
    border-bottom: none;
}

.produto-img {
    width: 100px;

    border-radius: 12px;

    border: 1px solid #eee;
}

.produto-info h3 {
    margin: 0;

    font-size: 20px;
}

.colecao {
    color: #777;

    margin: 8px 0;
}

.preco-unitario {
    color: #ef4444;

    font-size: 20px;

    font-weight: bold;
}

.produto-acoes {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 12px;
}

.quantidade-box {
    display: flex;

    align-items: center;

    gap: 10px;
}

.btn-qtd {
    width: 38px;

    height: 38px;

    border: none;

    border-radius: 8px;

    background: #ef4444;

    color: white;

    cursor: pointer;

    transition: 0.2s;
}

.btn-qtd:hover {
    background: #dc2626;
}

.quantidade-box span {
    width: 35px;

    text-align: center;

    font-size: 18px;

    font-weight: bold;
}

.subtotal-item {
    font-size: 22px;

    font-weight: bold;
}

.btn-remover {
    border: none;

    background: #fafafa;

    color: #ef4444;

    padding: 10px 18px;

    border-radius: 10px;

    cursor: pointer;

    transition: 0.2s;
}

.btn-remover:hover {
    background: #fee2e2;
}

.btn-finalizar:disabled {
    background: #9ca3af;

    cursor: not-allowed;

    transform: none;

    opacity: 0.85;
}

.popup-overlay {
    position: fixed;

    inset: 0;

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

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 99999;
}

.popup-box {
    background: #fff;

    padding: 40px;

    border-radius: 18px;

    text-align: center;

    width: 420px;

    max-width: 90%;

    animation: popup 0.25s ease;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.popup-icon {
    font-size: 56px;

    color: #ef4444;

    margin-bottom: 20px;
}

.popup-box h2 {
    margin-bottom: 15px;
}

.popup-box p {
    color: #666;

    line-height: 1.6;
}

@keyframes popup {
    from {
        transform: scale(0.9);

        opacity: 0;
    }

    to {
        transform: scale(1);

        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carrinho-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: flex;
        flex-wrap: wrap;

        gap: 12px;
        padding: 15px 0;
    }

    .carrinho-item img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .carrinho-info {
        min-width: 0;
        max-width: calc(100% - 82px);
        flex: 1;
    }

    .carrinho-info h4,
    .carrinho-info p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .quantidade-controle {
        width: 100%;
        margin-top: 10px;
    }

    .btn-remover {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .carrinho-itens {
        padding: 15px 10px;
    }

    .carrinho-item {
        gap: 10px;
    }

    .carrinho-item img {
        width: 60px;
        height: 60px;
    }

    .carrinho-info {
        max-width: calc(100% - 70px);
        font-size: 14px;
    }

    .carrinho-info h4 {
        font-size: 14px;
    }

    .quantidade-controle {
        justify-content: flex-start;
    }
}
