/*
Theme Name: Theme 12
Theme URI: https://seusite.com.br
Author: Seu Nome
Author URI: https://seusite.com.br
Description: Tema personalizado para venda de cursos online com integração Asaas e PagSeguro
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-12
*/

/* ========================================
   RESET E BASE
   ======================================== */
:root {
    /* Cores principais - Bordô #7f0b0d (igual ao React) */
    --primary: #7f0b0d;
    --primary-dark: #5f0809;
    --primary-light: #9a1214;
    
    /* Secondary - Gold (igual ao React) */
    --secondary: #c9a227;
    --secondary-light: #d4b84a;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Foreground - Cinza escuro #333333 (igual ao React) */
    --dark: #333333;
    --light: #f5f5f5;
    --white: #ffffff;
    
    /* Grays */
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #333333;
    --gray-900: #1a1a1a;
    
    /* Gold para destaques */
    --gold: #c9a227;
    --gold-light: #d4b84a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   CONTAINER E GRID
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

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

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

.btn-secondary {
    background: var(--secondary);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--gray-900);
}

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

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

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

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

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

/* ========================================
   CLASSES UTILITÁRIAS (Tailwind-like)
   ======================================== */

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Size utilities */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }

/* Text utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Spacing - Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Max width */
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-muted { background-color: #f3f4f6; }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-dark { background-color: var(--gray-900); }
.bg-transparent { background-color: transparent; }

/* Text colors */
.text-white { color: #ffffff; }
.text-foreground { color: var(--gray-800); }
.text-muted { color: var(--gray-500); }
.text-muted-foreground { color: #6b7280; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-green-500 { color: #10b981; }
.text-yellow-500 { color: #eab308; }
.text-yellow-400 { color: #facc15; }

/* Border utilities */
.border { border: 1px solid var(--gray-200); }
.border-2 { border: 2px solid var(--gray-200); }
.border-y { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-border { border-color: var(--gray-200); }
.border-white { border-color: #ffffff; }
.border-primary { border-color: var(--primary); }

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.1); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Visibility */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Flex shrink */
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* ========================================
   ÍCONES SVG
   ======================================== */

/* Tamanhos de ícones */
svg.icon-xs { width: 0.75rem; height: 0.75rem; }
svg.icon-sm { width: 1rem; height: 1rem; }
svg.icon-md { width: 1.25rem; height: 1.25rem; }
svg.icon-lg { width: 1.5rem; height: 1.5rem; }
svg.icon-xl { width: 2rem; height: 2rem; }
svg.icon-2xl { width: 2.5rem; height: 2.5rem; }
svg.icon-3xl { width: 3rem; height: 3rem; }

/* Fallback para SVGs inline em botões */
.btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn-lg svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Ícones em feature cards */
.feature-icon svg {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* Ícones em social proof */
.social-proof-bar svg,
.trust-elements svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Ícones em listas de features */
.feature-list svg,
.trust-list svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ========================================
   CARDS DE CURSO
   ======================================== */
.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.course-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-card-content {
    padding: 20px;
}

.course-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-description {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--gray-500);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 15px;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.instructor-title {
    font-size: 12px;
    color: var(--gray-500);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    display: flex;
    flex-direction: column;
}

.price-original {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    color: var(--success);
    font-size: 24px;
    font-weight: 700;
}

.price-installment {
    font-size: 12px;
    color: var(--gray-500);
}

/* ========================================
   PÁGINA DO CURSO (SINGLE)
   ======================================== */
.course-hero {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 60px 0;
}

.course-hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .course-hero-content {
        grid-template-columns: 1fr;
    }
}

.course-hero-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.course-hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.course-hero-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.course-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    color: var(--gray-800);
    position: sticky;
    top: 100px;
}

.course-sidebar-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.course-sidebar-price {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.sidebar-price-original {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 16px;
}

.sidebar-price-current {
    color: var(--success);
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.sidebar-price-installment {
    color: var(--gray-600);
    font-size: 14px;
}

.course-sidebar .btn {
    margin-bottom: 10px;
}

.course-features {
    margin-top: 20px;
}

.course-features h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gray-700);
}

.course-features ul {
    list-style: none;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.course-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ========================================
   CHECKOUT
   ======================================== */
.checkout-page {
    padding: 60px 0;
    background: var(--gray-100);
    min-height: 100vh;
}

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

@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.checkout-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.payment-methods {
    margin-top: 30px;
}

.payment-methods h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.payment-option:hover,
.payment-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.payment-option.active .radio-custom {
    border-color: var(--primary);
}

.payment-option.active .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.payment-option-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.payment-option-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.order-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gray-900);
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.order-item-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--success);
    font-weight: 700;
}

.order-totals {
    margin-top: 20px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.order-total-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
}

.order-total-row.total .amount {
    color: var(--success);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-about p {
    color: var(--gray-400);
    margin-top: 20px;
    line-height: 1.8;
}

.footer-widget h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-muted { color: var(--gray-500); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }

.section { padding: 80px 0; }
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 18px;
}

/* ========================================
   MENSAGENS E ALERTAS
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

/* ========================================
   LOADING
   ======================================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========================================
   GUTENBERG BLOCKS - SUPORTE COMPLETO
   ======================================== */

/* Alinhamentos Wide e Full */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* Container padrão para blocos */
.entry-content > *,
.page-content > *,
.fullwidth-content > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignwide,
.page-content > .alignwide,
.fullwidth-content > .alignwide {
    max-width: 1400px;
}

.entry-content > .alignfull,
.page-content > .alignfull,
.fullwidth-content > .alignfull {
    max-width: none;
}

/* Blocos de Capa (Cover) */
.wp-block-cover {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-cover.alignfull {
    min-height: 500px;
}

.wp-block-cover__inner-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* Blocos de Colunas */
.wp-block-columns {
    margin-bottom: 30px;
}

.wp-block-column {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .wp-block-columns {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .wp-block-column {
        flex: 1;
        margin-bottom: 0;
    }
}

/* Blocos de Grupo */
.wp-block-group {
    padding: 40px 20px;
}

.wp-block-group.has-background {
    padding: 60px 20px;
}

.wp-block-group__inner-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Blocos de Botão */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--primary);
    color: var(--white);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: var(--primary-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cores personalizadas do tema */
.has-primary-color { color: var(--primary) !important; }
.has-primary-dark-color { color: var(--primary-dark) !important; }
.has-secondary-color { color: var(--secondary) !important; }
.has-success-color { color: var(--success) !important; }
.has-danger-color { color: var(--danger) !important; }
.has-dark-color { color: var(--dark) !important; }
.has-light-color { color: var(--light) !important; }
.has-white-color { color: var(--white) !important; }

.has-primary-background-color { background-color: var(--primary) !important; }
.has-primary-dark-background-color { background-color: var(--primary-dark) !important; }
.has-secondary-background-color { background-color: var(--secondary) !important; }
.has-success-background-color { background-color: var(--success) !important; }
.has-danger-background-color { background-color: var(--danger) !important; }
.has-dark-background-color { background-color: var(--dark) !important; }
.has-light-background-color { background-color: var(--light) !important; }
.has-white-background-color { background-color: var(--white) !important; }

/* Blocos de Mídia e Texto */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 30px;
    margin: 40px 0;
}

.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 50%;
}

.wp-block-media-text__media img {
    border-radius: 12px;
}

.wp-block-media-text__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }
}

/* Blocos de Citação */
.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-600);
}

.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: var(--gray-500);
}

.wp-block-quote.is-style-large {
    border: none;
    padding: 40px;
    background: var(--gray-100);
    border-radius: 16px;
    font-size: 24px;
}

/* Blocos de Separador */
.wp-block-separator {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 40px auto;
    width: 100px;
}

.wp-block-separator.is-style-wide {
    width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: "···";
    font-size: 24px;
    letter-spacing: 10px;
    color: var(--gray-400);
}

/* Blocos de Imagem */
.wp-block-image {
    margin: 30px 0;
}

.wp-block-image img {
    border-radius: 12px;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 10px;
}

/* Blocos de Galeria */
.wp-block-gallery {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .wp-block-gallery.columns-3,
    .wp-block-gallery.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wp-block-gallery .wp-block-image img {
    border-radius: 8px;
}

/* Blocos de Tabela */
.wp-block-table {
    margin: 30px 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.wp-block-table th {
    background: var(--gray-100);
    font-weight: 600;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--gray-100);
}

/* Blocos de Espaçador */
.wp-block-spacer {
    display: block;
}

/* Blocos de Vídeo */
.wp-block-video,
.wp-block-embed {
    margin: 30px 0;
}

.wp-block-video video,
.wp-block-embed iframe {
    border-radius: 12px;
    max-width: 100%;
}

/* Blocos de Arquivo */
.wp-block-file {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--gray-100);
    border-radius: 8px;
    margin: 20px 0;
}

.wp-block-file a:first-child {
    flex: 1;
    font-weight: 500;
}

.wp-block-file .wp-block-file__button {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* ========================================
   PAGE TEMPLATES
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 0 20px 60px;
}

.page-content > .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Full Width Template */
.template-fullwidth .fullwidth-content {
    /* Remove padding para page builders */
}

.template-fullwidth .site-main {
    /* Sem margens extras */
}

/* Front Page */
.front-page .front-page-content {
    /* Sem header de página para home */
}

/* Singular (Posts) */
.singular-main {
    padding: 60px 0;
}

.singular-article {
    background: var(--white);
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.entry-meta {
    color: var(--gray-500);
    font-size: 14px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-thumbnail {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.entry-categories,
.entry-tags {
    margin-bottom: 10px;
}

.entry-categories a,
.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   ELEMENTOR COMPATIBILITY
   ======================================== */

/* Remove margens extras quando Elementor está ativo */
.elementor-page .page-header {
    display: none;
}

.elementor-page .page-content {
    padding: 0;
}

/* Container do Elementor */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
}

/* ========================================
   COURSE TAG FILTERS
   ======================================== */
.course-tags-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.course-tags-wrapper::-webkit-scrollbar {
    display: none;
}

.course-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.course-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    white-space: nowrap;
}

.course-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.02);
}

.course-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.course-tag.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 768px) {
    .course-tags {
        flex-wrap: nowrap;
    }
}

/* ========================================
   CHECKOUT PAGE - Layout igual React/Lovable
   ======================================== */

.checkout-page {
    min-height: 100vh;
    background: var(--gray-100);
}

.checkout-header {
    padding: 2rem 0;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.checkout-back-link:hover {
    color: var(--primary);
}

.checkout-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.checkout-content {
    padding: 3rem 0;
}

.checkout-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkout-alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.checkout-alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.checkout-alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.checkout-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.checkout-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--gray-900);
}

.checkout-card-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--gray-800);
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .checkout-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 11, 13, 0.1);
}

.input-with-badge {
    position: relative;
}

.input-with-badge input {
    padding-right: 5rem;
}

.card-brand-badge {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.email-suggestion {
    font-size: 0.875rem;
    color: #ca8a04;
    margin-top: 0.25rem;
}

.email-suggestion button {
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

/* Student Section */
.checkout-student-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.checkout-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkout-checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.checkout-checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-student-icon {
    color: var(--primary);
}

.checkout-checkbox-text {
    font-weight: 500;
    color: var(--gray-800);
}

.checkout-checkbox-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Upload Section */
.checkout-upload-section {
    margin-top: 1rem;
}

.checkout-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    background: var(--gray-50);
    transition: border-color 0.2s;
}

.checkout-upload-area:hover {
    border-color: var(--primary);
}

.checkout-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.checkout-upload-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
}

.checkout-upload-info {
    flex: 1;
    min-width: 0;
}

.checkout-upload-filename {
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-upload-filesize {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.checkout-upload-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
}

.checkout-upload-progress {
    margin-top: 0.75rem;
}

.checkout-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.checkout-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s;
}

.checkout-progress-status {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--gray-600);
    text-align: center;
}

.checkout-upload-success {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #d1fae5;
    border-radius: 0.5rem;
    text-align: center;
    color: #065f46;
    font-size: 0.875rem;
}

.checkout-upload-error {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    text-align: center;
    color: #991b1b;
    font-size: 0.875rem;
}

/* Payment Methods */
.checkout-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-payment-option:hover {
    border-color: var(--primary);
}

.checkout-payment-option.selected {
    border-color: var(--primary);
    background: rgba(127, 11, 13, 0.05);
}

.checkout-payment-option input {
    display: none;
}

.checkout-payment-option svg {
    color: var(--primary);
    flex-shrink: 0;
}

.checkout-payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.checkout-payment-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.checkout-payment-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.checkout-payment-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    width: fit-content;
}

/* Card Fields */
.checkout-card-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Terms */
.checkout-terms {
    margin-top: 0.5rem;
}

.checkout-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkout-terms-label input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
}

.checkout-terms-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkout-terms-text a {
    color: var(--primary);
    text-decoration: none;
}

.checkout-terms-text a:hover {
    text-decoration: underline;
}

/* Summary Column */
.checkout-summary-column {
    position: relative;
}

.checkout-summary-card {
    position: sticky;
    top: 6rem;
}

/* Order Item */
.checkout-order-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.checkout-order-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-order-info {
    flex: 1;
    min-width: 0;
}

.checkout-order-name {
    margin: 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-order-qty {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.checkout-order-price {
    font-weight: 500;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Coupon */
.checkout-coupon {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.checkout-coupon-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.checkout-coupon-input {
    display: flex;
    gap: 0.5rem;
}

.checkout-coupon-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.checkout-coupon-input button {
    white-space: nowrap;
}

.checkout-coupon-message {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.checkout-coupon-message .success {
    color: #15803d;
}

.checkout-coupon-message .error {
    color: #dc2626;
}

.checkout-coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: #d1fae5;
    border-radius: 0.375rem;
    color: #065f46;
}

.checkout-coupon-applied button {
    background: none;
    border: none;
    color: #065f46;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

/* Totals */
.checkout-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.375rem 0;
}

.checkout-discount-row {
    color: #15803d;
}

.checkout-total-final {
    font-weight: 700;
    font-size: 1.125rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.checkout-total-amount {
    color: var(--primary);
}

.checkout-installment-display {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Submit Button */
.checkout-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-submit-btn:hover {
    background: var(--primary-dark);
}

.checkout-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-secure-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}
