/* ============================================
   Reset e Variáveis
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #030608;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: #ffffff;
    line-height: 1.6;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

table tr:hover {
    background: #f9fafb;
}

table tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.plano-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.plano-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.badge-processando {
    background: #dbeafe;
    color: #1e40af;
}

.badge-pago {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.badge-reembolsado {
    background: #f3f4f6;
    color: #374151;
}

.badge-ativa {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelada {
    background: #fee2e2;
    color: #991b1b;
}

.badge-suspensa {
    background: #fef3c7;
    color: #92400e;
}

.badge-expirada {
    background: #f3f4f6;
    color: #374151;
}

.badge-recebido {
    background: #d1fae5;
    color: #065f46;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-user {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--light);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-name {
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    min-width: 200px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Pages
   ============================================ */
.page {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    background: #ffffff;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* ============================================
   Cards Grid
   ============================================ */
.cursos-grid,
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.curso-card,
.projeto-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.curso-card:hover,
.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.curso-card-image,
.projeto-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.curso-card-body,
.projeto-card-body {
    padding: 1.5rem;
}

.curso-card-title,
.projeto-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.curso-card-desc,
.projeto-card-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.curso-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.curso-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--warning);
}

/* ============================================
   Loading & Toast
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#toastContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Curso Detalhes
   ============================================ */
.curso-detalhes {
    max-width: 1000px;
    margin: 0 auto;
}

.curso-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.curso-capa {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.curso-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.curso-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
}

.aulas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aula-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.aula-item:hover {
    box-shadow: var(--shadow-lg);
}

.aula-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.aula-content {
    flex: 1;
}

.aula-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.aula-content p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* ============================================
   Formulários
   ============================================ */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0.5rem 0;
}

.stat-detail {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Arquivos com drag and drop */
.arquivos-lista {
    min-height: 50px;
}

.arquivo-item {
    user-select: none;
}

.arquivo-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    z-index: 1000;
}

.arquivo-item:hover {
    background: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arquivo-drag-handle {
    cursor: grab !important;
}

.arquivo-drag-handle:active {
    cursor: grabbing !important;
}

.arquivo-drag-handle:hover {
    color: var(--primary) !important;
}

.arquivo-nome:hover {
    background: rgba(0,0,0,0.05) !important;
}

.arquivo-thumbnail img {
    transition: transform 0.2s;
}

.arquivo-item:hover .arquivo-thumbnail img {
    transform: scale(1.05);
}

/* Aulas expansíveis */
.aula-header {
    transition: background 0.2s;
}

.aula-header:hover {
    background: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aula-chevron {
    color: var(--gray);
    transition: transform 0.3s;
}

.aula-concluida .aula-header {
    background: rgba(76, 175, 80, 0.1) !important;
    border-left: 4px solid var(--success);
}

.aula-concluida .aula-content h3 {
    color: var(--success);
}

.badge-concluida {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.arquivos-lista-visualizacao {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arquivo-item-visualizacao {
    transition: all 0.2s;
}

.arquivo-item-visualizacao:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ============================================
   Avaliação com Estrelas
   ============================================ */
.estrela {
    transition: all 0.2s ease;
}

.estrela:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.5));
}

.estrelas-container {
    user-select: none;
}

.estrelas-container .estrelas {
    position: relative;
}

.estrelas-container .estrelas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* ============================================
   Formulário de Aulas
   ============================================ */
.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.aulas-form-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aula-form-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.aula-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.aula-form-header h3 {
    margin: 0;
    color: var(--primary);
}

.aula-form-actions {
    display: flex;
    gap: 0.5rem;
}

.aula-arquivos {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.arquivos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arquivo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.arquivo-item i {
    font-size: 1.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cursos-grid,
    .projetos-grid {
        grid-template-columns: 1fr;
    }

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

    .curso-header {
        grid-template-columns: 1fr;
    }

    .aula-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Módulo de Vendas - Cliente
   ============================================ */

/* Carrinho Badge */
.cart-badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ============================================
   LOJA - Layout Moderno e Profissional
   ============================================ */

#loja {
    background: #ffffff;
}

#loja .container {
    background: #ffffff;
}

#lojaList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    background: #ffffff;
}

.produto-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.produto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.produto-card:hover::before {
    opacity: 1;
}

.produto-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.produto-card-image img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.produto-card:hover .produto-card-image img {
    transform: scale(1.05);
}

.produto-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.produto-card-title {
    font-size: 1.1rem;
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.produto-card-desc {
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 2.625em;
}

.produto-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.produto-card-preco {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
}

.produto-card-preco .preco-atual {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.produto-card-preco .preco-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.produto-card-preco .preco-promocional {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.produto-card .btn-carrinho {
    width: 100%;
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #5a67d8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    letter-spacing: 0.3px;
}

.produto-card .btn-carrinho::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.produto-card .btn-carrinho:hover::before {
    width: 300px;
    height: 300px;
}

.produto-card .btn-carrinho:hover {
    background: linear-gradient(135deg, #5a67d8 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.produto-card .btn-carrinho:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.produto-card .btn-carrinho i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.produto-card .btn-carrinho span {
    position: relative;
    z-index: 1;
}

/* Badge de promoção */
.produto-card-image::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.produto-card[data-promocao="true"] .produto-card-image::after {
    content: 'PROMOÇÃO';
    width: auto;
    height: auto;
    opacity: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

/* Responsivo */
@media (max-width: 768px) {
    #lojaList {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .produto-card-image {
        height: 200px;
    }
    
    .produto-card-image img {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
}

/* Carrinho */
.carrinho-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.carrinho-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantidade-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantidade-input button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantidade-input input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

/* Cupom */
.cupom-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.cupom-input {
    display: flex;
    gap: 1rem;
}

.cupom-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Resumo do Carrinho */
.carrinho-resumo {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.carrinho-resumo .resumo-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.carrinho-resumo .resumo-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary);
}

/* Checkout */
.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.checkout-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.checkout-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--gray);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.checkout-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Sidebar Menu */
.sidebar-menu {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--primary);
    color: white;
    border-left-color: var(--primary-dark);
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

/* Pedido Card */
.pedido-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.pedido-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pedido-status.pago {
    background: var(--success-light);
    color: var(--success);
}

.pedido-status.pendente {
    background: #fef3c7;
    color: var(--warning);
}

.pedido-status.cancelado {
    background: #fee2e2;
    color: var(--danger);
}

/* Plano Card Cliente */
.plano-card-cliente {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.plano-card-cliente.ativo {
    border-left-color: var(--success);
}

.plano-card-cliente.cancelado {
    border-left-color: var(--danger);
    opacity: 0.7;
}

