/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #28a745, #34c759);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Formulários */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Tabelas */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Seções */
section {
    padding: 3rem 0;
}

/* Hero Section (index.php) */
.hero {
    background: linear-gradient(135deg, #28a745, #34c759);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.social-proof {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Easy Section (index.php) */
.easy-section {
    background-color: #fff;
    padding: 4rem 0;
}

.easy-step {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.easy-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Module Section (index.php) */
.module-section {
    background-color: #f5f7fa;
    padding: 4rem 0;
}

.module-section h4 {
    color: #2c3e50;
}

/* Planos (index.php) */
.plan-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-plan {
    border: 2px solid #28a745;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    color: #34c759;
    text-decoration: underline;
}

/* Estilos para editar_loja.php */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.template-option {
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ced4da;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.template-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.template-option.selected {
    border-color: #28a745;
    background-color: #e9f7ef;
}

.template-option img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.logo-preview {
    max-width: 120px;
    max-height: 120px;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Estilos para dashboard.php */
.list-group-item {
    border: none;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.list-group-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.list-group-item a:hover {
    color: #007bff;
}

/* Estilos para loja.php */
.store-header {
    background: linear-gradient(135deg, #28a745, #34c759);
    color: #fff;
    text-align: center;
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
}

.store-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.store-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.store-logo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img, .product-card .no-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-card .no-image {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.product-card h5 {
    font-size: 1.25rem;
    color: #2c3e50;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
}

.cart-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img, .cart-item .no-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item .no-image {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
}

.cart-item .quantity-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1rem;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1rem;
}

.pix-info {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pix-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 2v20M2 12h20"/%3E%3C/svg%3E') repeat;
    opacity: 0.1;
    pointer-events: none; /* Corrige o problema de cliques */
}
.pix-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.pix-info p {
    margin: 0;
    font-size: 1rem;
    color: #e9ecef;
}

.pix-info .pix-code {
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-all;
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.pix-info .btn-copy {
    background-color: #fff;
    color: #007bff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.pix-info .btn-copy:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Estilo para "Sem Imagem" em produtos.php */
.no-image {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1, .store-header h1 {
        font-size: 2rem;
    }

    .hero .lead, .store-header p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .template-option img {
        height: 120px;
    }

    .product-card img, .product-card .no-image {
        height: 120px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img, .cart-item .no-image {
        margin-bottom: 0.5rem;
    }

    .cart-item .quantity-controls {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero, .store-header {
        padding: 3rem 0;
    }

    .plan-card, .product-card {
        margin: 0 1rem;
    }

    .product-card img, .product-card .no-image {
        height: 100px;
    }
}