/*
Theme Name: Clube Helen Luxury Frame
Theme URI: https://clubedahelen.com.br/
Description: Tema exclusivo e minimalista de alta performance para o Clube da Helen. Focado em conversão e experiência de luxo.
Author: Antigravity
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: clube-helen-theme
*/

/* =========================================================================
   1. RESET & FUNDO GLOBAL
   ========================================================================= */
:root {
    --helen-gold: #ffd700;
    --helen-gold-dark: #b8860b;
    --helen-black: #000000;
    --helen-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f3f3f3;
    font-family: var(--helen-font) !important;
    margin: 0;
    padding: 0;
    color: #252525;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
}

* {
    box-sizing: border-box;
}

/* =========================================================================
   2. CHECKOUT INDEPENDENTE (LUXURY)
   ========================================================================= */
.helen-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.helen-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.helen-checkout-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
}

.helen-checkout-logo .premium-tag {
    font-size: 10px;
    background: #000;
    color: var(--helen-gold);
    padding: 4px 10px;
    border-radius: 100px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 1px;
}

.helen-checkout-steps {
    display: flex;
    align-items: center;
    gap: 15px;
}

.helen-checkout-steps .step {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.helen-checkout-steps .step.active {
    color: #000;
}

.helen-checkout-steps .separator {
    width: 30px;
    height: 1px;
    background: #e2e8f0;
}

.helen-checkout-stack {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CARDS LUXURY */
.helen-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
    overflow: hidden;
}

.helen-checkout-top-summary .helen-card {
    border-bottom: 2px solid var(--helen-gold);
}

.helen-checkout-top-summary .mini-order-review table tr {
    padding: 15px 32px;
}

.helen-checkout-top-summary .recurring-total {
    padding: 20px 32px;
}

.helen-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.helen-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.helen-card-header h3 i {
    color: var(--helen-gold-dark);
}

.helen-card-body {
    padding: 32px;
}

/* SIDEBAR STICKY - Removed for Stack Layout */
.sticky-sidebar {
    display: none;
}

/* Ocultar cabeçalho e rodapé do tema no checkout para foco total */
.woocommerce-checkout header#masthead, 
.woocommerce-checkout .site-header,
.woocommerce-checkout footer,
.woocommerce-checkout .site-footer {
    display: none !important;
}

/* INPUTS PREMIUM */
.helen-input-wrapper {
    margin-bottom: 25px !important;
    width: 100% !important;
}

.helen-input-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #64748b;
}

.helen-input {
    background: #ffffff !important;
    border: 1px solid #e1e8f0 !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
    transition: all 0.2s ease-in-out !important;
    width: 100% !important;
    color: #1a1a1a !important;
}

.helen-input:focus {
    border-color: var(--helen-gold) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.08) !important;
    outline: none !important;
    transform: translateY(-1px);
}

/* Estado de Validação Real-time */
.woocommerce-validated .helen-input {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.woocommerce-invalid .helen-input {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* RESUMO DO PEDIDO - LUXURY REFINEMENT (ULTRA CLEAN) */
.helen-summary-content {
    margin: 0 -32px -32px;
}

.mini-order-review table {
    width: 100% !important;
    border-collapse: collapse;
}

.mini-order-review table thead {
    display: none; /* Esconder cabeçalho Produto/Subtotal para mais foco */
}

/* RESUMO ULTRA-MINIMALISTA (REFINAMENTO DE MARGENS) */
.mini-order-review table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0 !important; /* Margem externa para não colar no topo/fundo */
}

.mini-order-review table tr.helen-minimal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 32px !important; /* Recuo interno generoso */
    width: 100%;
}

.mini-order-review td {
    padding: 0 !important; /* Limpamos paddings nativos para usar o do TR */
}

.mini-order-review .product-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    max-width: 60%;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    padding-right: 20px; /* Margem interna para descolar do preço */
}

.mini-order-review .product-total {
    color: var(--helen-gold-dark);
    font-size: 28px; /* Reduzi levemente para não quebrar em telas menores */
    font-weight: 900;
    text-align: right;
}

/* Pequeno ajuste para o selo de garantia embaixo do pagamento */
.helen-guarantee-box {
    margin-top: 20px;
}

/* Estilo do Produto */
.mini-order-review .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    max-width: 60%;
    line-height: 1.4;
}

.mini-order-review .product-total {
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
}

/* Selos de Confiança Alinhados */
.helen-trust-badges {
    padding: 32px;
    background: transparent;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.helen-trust-badges.minimalist .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.helen-trust-badges .badge span {
    font-size: 24px !important;
    color: #10b981;
}

.helen-trust-badges .badge strong {
    font-size: 14px;
    display: block;
    color: #000;
}

.helen-trust-badges .badge small {
    font-size: 12px;
    color: #94a3b8;
}

/* Fix para o texto "year" e datas de renovação */
.mini-order-review .wcs-first-renewal-date {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
    font-weight: 400;
}

/* REMOVER CAMPOS SHIP TO DIFFERENT ADDRESS */
#ship-to-different-address, .woocommerce-additional-fields {
    display: none !important;
}

@media (max-width: 900px) {
    .helen-checkout-grid {
        grid-template-columns: 1fr;
    }
    .helen-checkout-sidebar {
        order: -1;
    }
}

/* WOOCOMMERCE SPECIFIC OVERRIDES FOR LUXURY */
/* Ocultar a tabela redundante na coluna principal de pagamento */
.helen-checkout-main .woocommerce-checkout-review-order-table,
.helen-checkout-main .woocommerce-checkout-review-order .recurring-totals {
    display: none !important;
}

/* Ajustar padding para que o pagamento comece logo após o título */
.helen-checkout-main #order_review {
    padding-top: 10px !important;
}

/* BOTÃO FINAL - CONVERSION CTA */
.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    color: #000 !important;
    padding: 24px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    border-radius: 16px !important;
    letter-spacing: 1px;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3) !important;
    border: none !important;
    width: 100% !important;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.woocommerce-checkout #place_order:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4) !important;
}

/* GARANTIA DE SATISFAÇÃO */
.helen-guarantee-box {
    background: #fafaf9;
    border: 1px dashed #d6d3d1;
    border-radius: 20px;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.helen-guarantee-box img, .helen-guarantee-box span {
    font-size: 40px;
    color: var(--helen-gold-dark);
}

.helen-guarantee-box h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.helen-guarantee-box p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
}

.wc_payment_method {
    margin-bottom: 15px !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
}

.wc_payment_method:has(input:checked) {
    border-color: #000;
    background: #fafafa;
}

.wc_payment_method label {
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}

.payment_box {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

/* =========================================================================
   3. MINHA CONTA (DASHBOARD PREMIUM)
   ========================================================================= */
.woocommerce-MyAccount-navigation {
    float: left !important;
    width: 280px !important;
    background: #000 !important;
    padding: 20px !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px !important;
}

.woocommerce-MyAccount-navigation li a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 16px !important;
    transition: 0.3s !important;
    font-size: 14px !important;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.woocommerce-MyAccount-navigation-link--meu-mini-site.is-active a,
.woocommerce-MyAccount-navigation-link--meu-mini-site a:hover {
    background: var(--helen-gold) !important;
    color: #000 !important;
}

.woocommerce-MyAccount-content {
    float: right !important;
    width: calc(100% - 300px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #fff !important;
}

/* =========================================================================
   4. FLUENT COMMUNITY (CURSOS) - PREMIUM SKIN
   ========================================================================= */
.fcom-button,
.fcom-btn-primary,
.fcom-course-enroll-btn {
    background: var(--helen-gold) !important;
    color: #000 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.2) !important;
}

.fcom-course-card,
.fcom-space-card,
.fcom-lesson-item {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.fcom-course-card:hover {
    border-color: var(--helen-gold) !important;
    transform: translateY(-5px);
}

/* Fallback para fotos quebradas */
.fcom-course-card .fcom-card-image:empty,
.fcom-course-card img[src*="broken"],
.fcom-course-card img[onerror] {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--helen-gold);
}

/* =========================================================================
   5. UTILS & HEADER
   ========================================================================= */
.helen-minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.helen-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #000;
}

.helen-back-btn {
    text-decoration: none;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.helen-back-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* =========================================================================
   6. INSÍGNIAS DE LUXO (BADGES)
   ========================================================================= */
.helen-badge-container {
    display: flex;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.helen-badge {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.4s;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    padding: 10px;
}

.helen-badge:hover {
    transform: scale(1.1) rotate(5deg);
    z-index: 10;
}

/* Tipos de Medalha */
.badge-gold {
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.badge-silver {
    border-color: #c0c0c0 !important;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.15);
}

.badge-diamond {
    border-color: #b9f2ff !important;
    box-shadow: 0 0 25px rgba(185, 242, 255, 0.3);
    background: linear-gradient(135deg, #000 0%, #001a1a 100%);
}

.helen-badge i,
.helen-badge svg {
    font-size: 30px !important;
    margin-bottom: 5px !important;
}

.badge-gold i {
    color: #ffd700 !important;
}

.badge-silver i {
    color: #c0c0c0 !important;
}

.badge-diamond i {
    color: #b9f2ff !important;
    text-shadow: 0 0 10px #b9f2ff;
}

.helen-badge .badge-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.1;
}

.helen-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}