/* Estilos da Loja */

/* Hero da Loja */
.hero-loja {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #333333; /* texto escuro para garantir legibilidade em mobile */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-loja h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-loja p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Seção da Loja */
.loja-section {
    padding: 40px 0;
    min-height: 600px;
}

.loja-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.loja-header h2 {
    font-size: 32px;
    color: #EC4899;
    margin: 0;
}

.btn-cart {
    background: linear-gradient(135deg, #EC4899 0%, #EC4899 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Grid de Produtos */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.produto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(50, 30, 233, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    border-color: #EC4899;
}

.produto-imagem {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    overflow: hidden;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.produto-nome {
    font-size: 20px;
    font-weight: bold;
    color: #EC4899;
    margin-bottom: 8px;
}

.produto-descricao {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.5;
}

.produto-preco {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #EC4899 0%, #EC4899 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-voltar {
    background-color: #ecf0f1;
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-voltar:hover {
    background-color: #bdc3c7;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
}

/* Carrinho Vazio */
.carrinho-vazio {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    color: #7f8c8d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carrinho-vazio p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Conteúdo do Carrinho */
.carrinho-conteudo {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tabela-carrinho {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tabela-carrinho th {
    background: linear-gradient(135deg, #EC4899 0%, #EC4899 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.tabela-carrinho td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.tabela-carrinho tbody tr:hover {
    background-color: #f9f9f9;
}

.controle-quantidade {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controle-quantidade button {
    width: 32px;
    height: 32px;
    border: 2px solid #EC4899;
    background: white;
    color: #EC4899;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
}

.controle-quantidade button:hover {
    background-color: #EC4899;
    color: white;
}

.controle-quantidade input {
    width: 50px;
    text-align: center;
    border: 2px solid #bdc3c7;
    padding: 6px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-remover {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remover:hover {
    background-color: #c0392b;
}

/* Resumo do Carrinho */
.carrinho-resumo {
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #EC4899;
}

.resumo-linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.resumo-linha.total {
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid #EC4899;
    padding-top: 12px;
    color: #27ae60;
}

/* Checkout */
.checkout-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.checkout-header h2 {
    margin: 0;
    color: #EC4899;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-resumo {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.checkout-resumo h3 {
    margin-bottom: 20px;
    color: #EC4899;
}

.resumo-pedido {
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 100%);
    padding: 20px;
    border-radius: 8px;
}

.item-pedido {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EC4899;
    font-size: 15px;
}

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

.total-pedido {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #EC4899;
    display: flex;
    justify-content: space-between;
}

/* Formulário */
.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-secao {
    margin-bottom: 25px;
}

.form-secao h3 {
    margin-bottom: 15px;
    color: #EC4899;
    font-size: 16px;
}

.form-grupo {
    margin-bottom: 15px;
}

.form-grupo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-grupo input,
.form-grupo select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-grupo input:focus,
.form-grupo select:focus {
    outline: none;
    border-color: #EC4899;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.form-linha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.opcoes-pagamento {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcao-pagamento {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.opcao-pagamento:hover {
    border-color: #EC4899;
    background-color: #f9f9f9;
}

.opcao-pagamento input[type="radio"] {
    width: auto;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #EC4899;
}

.opcao-pagamento input[type="radio"]:checked + span {
    font-weight: bold;
    color: #EC4899;
}

.form-acoes {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-acoes .btn {
    flex: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #27ae60;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.modal-acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-acoes .btn {
    width: 100%;
}

.carrinho-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.carrinho-header h2 {
    margin: 0;
    color: #EC4899;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-loja h1 {
        font-size: 36px;
    }

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

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .tabela-carrinho {
        font-size: 13px;
    }

    .tabela-carrinho th,
    .tabela-carrinho td {
        padding: 10px;
    }

    .form-linha {
        grid-template-columns: 1fr;
    }

    .form-acoes {
        flex-direction: column;
    }

    .form-acoes .btn {
        width: 100%;
    }

    .loja-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-cart {
        width: 100%;
    }

    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrinho-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }

    .hero-loja h1 {
        font-size: 28px;
    }

    .hero-loja p {
        font-size: 16px;
    }

    .produto-imagem {
        height: 180px;
        font-size: 50px;
    }

    .modal-content {
        padding: 25px;
        margin: 20px;
    }

    .tabela-carrinho {
        display: block;
        overflow-x: auto;
    }
}
