/* ======================================================
   VORUTO DESIGN SYSTEM V40 - CINEMATIC HERO & QUIET LUXURY
====================================================== */
:root {
    --v-cyan: #00E5FF;
    --v-purple: #7c4dff;
    --v-purple-dark: #5e35b1;
    --v-brand-grad: linear-gradient(135deg, var(--v-cyan) 0%, var(--v-purple) 50%, #D500F9 100%);
    --bg-page: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --v-red: #ef4444; 
}

.voruto-v13-wrapper { background: var(--bg-page); font-family: 'Inter', system-ui, sans-serif; padding-bottom: 80px; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); display: block; clear: both; margin-top: -40px !important; }
.v-container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* 1. HERO BANNER - CINEMATIC VIDEO BACKGROUND */
.voruto-hero-banner { 
    position: relative; 
    background: #020617; 
    overflow: hidden; 
    margin-top: 0 !important; 
    padding: 50px 0 0 0; 
    text-align: left; 
}

.v-hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.35; /* Suaviza o vídeo para o texto brilhar */
    pointer-events: none;
    filter: saturate(1.2) contrast(1.1); /* Deixa as cores do mascote mais vivas */
}

/* Máscara de Degradê Escuro por cima do vídeo (Efeito Vignette) */
.v-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(2,6,23,0.1) 0%, rgba(2,6,23,0.85) 100%);
    z-index: 1; 
    pointer-events: none;
}

.banner-content-split { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; }
.banner-title-area { display: flex; flex-direction: column; }
.banner-title { font-size: 3.8rem; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 5px; text-transform: uppercase; line-height: 1; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.banner-subtitle { color: #e2e8f0; font-size: 15px; font-weight: 500; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.text-gradient { background: var(--v-brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-outline { color: transparent; -webkit-text-stroke: 1.5px var(--v-cyan); position: relative; display: inline-block; filter: drop-shadow(0 0 8px rgba(0,229,255,0.4)); }

/* MENUS */
.v-hero-nav-base { position: relative; z-index: 2; background: rgba(15, 23, 42, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px); width: 100%; }
.v-hero-categories { display: flex; justify-content: center; align-items: center; gap: 40px; }
.v-hero-tab { display: inline-flex; align-items: center; padding: 18px 0; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; position: relative; transition: 0.3s; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.v-hero-tab::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px; background: var(--v-cyan); transition: 0.3s; border-radius: 3px 3px 0 0; }
.v-hero-tab:hover, .v-hero-tab.active { color: #fff; }
.v-hero-tab.active::after { width: 100%; box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.4); }

.v-sub-nav-bar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 30px; position: sticky; top: var(--header-height, 105px); z-index: 98; }
.v-nav-flex { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; flex-wrap: wrap; gap: 15px; }
.v-cat-scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: center; scrollbar-width: none; }
.v-cat-scroller::-webkit-scrollbar { display: none; }
.v-cat-pill { display: inline-flex; align-items: center; padding: 8px 18px; background: #F8FAFC; border-radius: 10px; text-decoration: none; color: var(--text-main); font-size: 13px; font-weight: 700; white-space: nowrap; transition: 0.2s; border: 1px solid transparent; letter-spacing: 0.3px;}
.v-cat-pill:hover, .v-cat-pill.active { background: #F5F3FF; color: var(--v-purple); border-color: #DDD6FE; box-shadow: 0 2px 8px rgba(124, 77, 255, 0.1); }
.v-cat-pill.back-pill { background: #e2e8f0; color: #475569; }

.v-filters-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.v-filter-dropdown select, .woocommerce-ordering select { margin: 0 !important; padding: 8px 30px 8px 14px; border-radius: 10px; border: 1px solid #CBD5E1; font-size: 13px; color: var(--text-main); background-color: #fff; cursor: pointer; outline: none; height: 40px; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.02); box-sizing: border-box; }

/* THE STORE CARD */
.pro-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.v-card-pro { 
    background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; 
    position: relative; display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
}
.v-card-pro:hover { transform: translateY(-6px); border-color: #cbd5e1; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); z-index: 10; }

.v-card-image { position: relative; padding-top: 142%; background: #F8FAFC; display: block; overflow: hidden; border-bottom: 1px solid var(--border); } 
.v-card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.5s; z-index: 2; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
.v-card-pro:hover .v-card-image img { transform: scale(1.08); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); }

.holo-glare { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); z-index: 3; transition: 0s; pointer-events: none; }
.v-holo-sale:hover .holo-glare { animation: iridescentSwipe 1.5s ease-out; }
@keyframes iridescentSwipe { 0% { left: -100%; } 100% { left: 200%; } }

/* SMART BADGES (QUIET LUXURY COLORS) */
.v-smart-badge { position: absolute; font-size: 10px; padding: 4px 8px; border-radius: 6px; font-weight: 800; z-index: 10; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); pointer-events: none; }
.v-smart-badge.discount { top: 8px; left: 8px; background: var(--v-red); color: #ffffff; border: none; font-size: 11px; }

/* Peça Única Branco e Vermelho */
.v-smart-badge.fomo-subtle { 
    bottom: 8px; left: 8px; 
    background: #ffffff; color: var(--v-red); border: 1px solid var(--v-red); 
    font-size: 10px; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15); 
}

.v-smart-badge.cond-badge { bottom: 8px; right: 8px; font-weight: 900; font-size: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* ======================================================
   TI WISHLIST - O CORAÇÃO VORUTO DEFINITIVO
====================================================== */
/* 1. Coração inline — sem posição absoluta, sem badge */
.v-btn-wishlist-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
}

/* 2. Força o código do plugin a aparecer na tela */
.v-btn-wishlist-wrapper .tinv-wraper {
    display: block !important;
    margin: 0 !important;
}

/* 3. Ghost — sem bg, sem borda, sem sombra */
.v-btn-wishlist-wrapper a {
    background: none !important; 
    border: none !important; 
    width: 30px !important; 
    height: 30px !important; 
    border-radius: 0 !important; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    backdrop-filter: none !important; 
    transition: 0.25s !important; 
    box-shadow: none !important; 
    padding: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
}

/* 4. Hover: sem movimento, apenas o coração muda */
.v-btn-wishlist-wrapper a:hover {
    background: none !important; 
    transform: none !important; 
    box-shadow: none !important; 
}

/* 5. Destrói ícones, textos e tooltips velhas do plugin */
.v-btn-wishlist-wrapper a img, 
.v-btn-wishlist-wrapper a::before, 
.v-btn-wishlist-wrapper .tinvwl-tooltip,
.v-btn-wishlist-wrapper .tinvwl_add_to_wishlist-text {
    display: none !important;
}

/* 6. Coração outline — cinza médio, discreto mas visível */
.v-btn-wishlist-wrapper a::after {
    content: "" !important; 
    display: block !important;
    width: 16px !important; 
    height: 16px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') !important;
    background-size: contain !important; 
    background-repeat: no-repeat !important; 
    background-position: center !important;
    transition: 0.25s !important;
}

/* 7. Hover / Salvo: preenche vermelho */
.v-btn-wishlist-wrapper a.tinvwl-product-in-list::after,
.v-btn-wishlist-wrapper a:hover::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ef4444" stroke="%23ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') !important;
}

/* ======================================================
   CONDITION BADGES (UNITS SYSTEM)
====================================================== */

.v-unit-badges {
    position: absolute; bottom: 6px; right: 6px;
    display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
    z-index: 10; pointer-events: none;
}
.v-unit-cond-badge {
    font-size: 10px; padding: 2px 6px; border-radius: 4px;
    font-weight: 800; letter-spacing: 0.2px; white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12); line-height: 1.5;
    font-family: 'Inter', system-ui, sans-serif;
}
.v-unit-cond-badge sup { font-size: 8px; font-weight: 700; vertical-align: super; margin-left: 1px; }

/* ======================================================
   CARD CONTENT — LAYOUT COMPACTO (V25)
   Fonte única: Inter. Escala: 10 / 12 / 13 / 15px
====================================================== */

.v-card-content {
    font-family: 'Inter', system-ui, sans-serif;
    padding: 6px 10px 8px;
    flex: 1; display: flex; flex-direction: column;
    gap: 0; background: #fff; position: relative;
}

/* Suprimir qualquer saída de categoria do WooCommerce */
.v-card-content .woocommerce-loop-category__title,
.v-card-content .posted_in,
.v-card-content .product_meta { display: none !important; }

/* Linha de meta: número + flag */
.v-meta-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1px;
}
.v-meta-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.v-card-number {
    font-size: 10px; font-weight: 500; color: #94a3b8;
    letter-spacing: 0.3px; line-height: 1;
}
.v-card-flag { font-size: 14px; line-height: 1; }
.v-admin-edit-badge { font-size: 12px; text-decoration: none; opacity: 0.7; }
.v-admin-edit-badge:hover { opacity: 1; }

/* Título */
.v-title-link { text-decoration: none; color: inherit; display: block; margin-bottom: 2px; }
.v-product-title {
    font-size: 13px; font-weight: 800; color: #1e293b;
    margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Linha de exemplares */
.v-units-line {
    font-size: 10px; font-weight: 600; color: #7c4dff;
    background: #f5f3ff; border-radius: 4px;
    padding: 1px 6px; display: inline-block;
    margin-bottom: 3px; margin-top: 2px; align-self: flex-start;
}

/* Rodapé: preço + ações */
.v-card-footer {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-top: 4px;
}
.v-price-box {
    font-size: 15px; font-weight: 900; color: #0f172a;
    line-height: 1.2;
}
.v-price-box del {
    font-size: 10px; color: #94a3b8; font-weight: 500;
    display: block; text-decoration: line-through; margin-bottom: 1px;
}
.v-price-box ins { text-decoration: none; color: #059669; }
.v-price-from {
    font-size: 10px; color: #94a3b8; font-weight: 500;
    display: block; margin-bottom: 1px; line-height: 1;
}

.v-action-wrap { display: flex; align-items: center; gap: 8px; }

.v-btn-buy-voruto {
    background: #ffffff; color: #7c4dff !important; border: none;
    width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s ease; text-decoration: none !important; box-shadow: none;
}
.v-btn-buy-voruto svg { width: 16px; height: 16px; }
.v-btn-buy-voruto:hover { background: #f5f3ff; color: #5e35b1 !important; border-color: #5e35b1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,77,255,0.15); }

.v-btn-buy-voruto.added { opacity: 0.5; pointer-events: none; transform: none; box-shadow: none; background: #f1f5f9; }

.added_to_cart {
    background: #f8fafc; color: #059669 !important; border: 1px solid #bbf7d0;
    width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    transition: 0.3s; font-size: 0 !important; text-decoration: none !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.added_to_cart::after { content: "✓"; font-size: 16px; font-weight: 900; }
.added_to_cart:hover { background: #dcfce7; transform: translateY(-2px); }

.v-btn-notify {
    background: none; color: #6b7280 !important; border: none;
    width: 30px; height: 30px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.25s; text-decoration: none !important; box-shadow: none;
}
.v-btn-notify:hover { color: #374151 !important; transform: none; }

/* Botão "ver unidades" (múltiplos preços → vai para produto) */
.v-btn-view-units {
    background: #ffffff; color: #7c4dff !important; border: none;
    width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s ease; text-decoration: none !important; box-shadow: none;
}
.v-btn-view-units svg { width: 16px; height: 16px; stroke: #7c4dff; }
.v-btn-view-units:hover { background: #f5f3ff; color: #5e35b1 !important; transform: translateX(2px); }

/* ======================================================
   RADAR VORUTO - LOADING PREMIUM (ADEUS AMPULHETA)
====================================================== */
/* 1. Esconde a ampulheta/gif padrão do plugin */
.cwginstock-subscribe-form img.cwginstock-ajax-loader,
.cwginstock-ajax-loader img,
img.cwginstock-ajax-loader {
    display: none !important;
}

/* 2. Transforma a div vazia em um anel de luz rodando */
.cwginstock-ajax-loader {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    border: 3px solid rgba(0, 229, 255, 0.1) !important;
    border-radius: 10px !important;
    border-top-color: var(--v-cyan) !important; /* Brilho Ciano */
    animation: vSpinner 0.8s linear infinite !important;
    margin: 15px auto 0 auto !important;
}

/* 3. A animação giratória suave */
@keyframes vSpinner {
    to { transform: rotate(360deg); }
}

/* 4. Opacidade na caixa toda enquanto carrega (Toque de Luxo) */
.cwginstock-subscribe-form.processing {
    opacity: 0.6;
    pointer-events: none; /* Impede do cliente clicar 2 vezes */
}

@media(max-width: 1280px) { .pro-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media(max-width: 960px)  { .pro-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media(max-width: 640px)  { .pro-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media(max-width: 400px)  { .pro-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

@media(max-width: 900px) {
    .voruto-hero-banner { padding: 30px 0 0 0; }
    .banner-content-split { flex-direction: column; text-align: center; gap: 20px; padding: 0 15px 25px 15px; }
    .banner-title { font-size: 2.5rem; }
    .v-sub-nav-bar { padding: 10px 0; margin-bottom: 20px; top: 65px; }
    .v-nav-flex { padding: 0 15px; gap: 10px; }
    .v-filters-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }

    .v-container { padding: 0 12px; }
    
    .v-card-pro { border-radius: 10px; }
    .v-card-image { padding-top: 145%; }
    .v-card-content { padding: 10px; }
    .v-card-content { padding: 6px 10px 8px; }
    .v-product-title { font-size: 12px; min-height: 32px; -webkit-line-clamp: 2; line-height: 1.3; }
    .v-price-box { font-size: 13px; }
    .v-units-line { font-size: 10px; padding: 1px 6px; }
    .v-unit-cond-badge { font-size: 9px; padding: 2px 5px; }
    .v-card-flag { font-size: 13px; }
    
    .v-btn-buy-voruto, .v-btn-notify, .added_to_cart, .v-btn-view-units { width: 30px; height: 30px; }
    .v-btn-buy-voruto svg, .v-btn-notify svg, .v-btn-view-units svg { width: 14px; height: 14px; }

    .v-smart-badge { font-size: 8px; padding: 3px 6px; }
    .v-smart-badge.cond-badge { bottom: 8px; right: 8px; }
    .v-smart-badge.fomo-subtle { bottom: 8px; left: 8px; }
    .v-btn-wishlist { width: 26px; height: 26px; top: 6px; right: 6px; }
    .v-btn-wishlist svg { width: 12px; height: 12px; }
}

.v-empty-state-premium { text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto; grid-column: 1 / -1; }
.v-empty-icon { font-size: 40px; margin-bottom: 15px; opacity: 0.3; filter: grayscale(1); }
.v-empty-title { font-size: 24px; font-weight: 900; text-transform: uppercase; color: var(--text-main); letter-spacing: -1px; margin-bottom: 10px; }
.v-empty-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.v-btn-empty-cta { background: #0f172a; color: #fff !important; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: 1px; transition: 0.3s; display: inline-block; }
.v-btn-empty-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }

/* ======================================================
   RADAR VORUTO - O FIM DA AMPULHETA E DO VERDE HORROROSO
====================================================== */

/* 1. MATA A AMPULHETA DE VEZ */
.cwginstock-subscribe-form img, 
img.cwginstock-ajax-loader, 
.cwginstock-ajax-loader,
.cwginstock-subscribe-form .cwginstock-ajax-loader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* 2. FEEDBACK DE CARREGAMENTO ELEGANTE NO BOTÃO */
.cwginstock-subscribe-form.processing .cwginstock-btn,
.cwginstock-subscribe-form .cwginstock-btn[disabled],
.cwginstock-btn.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    transform: scale(0.98) !important;
    transition: 0.3s !important;
}

/* 3. A CAIXA DE SUCESSO PREMIUM (FIM DO VERDE) */
.cwginstock_msg_wrapper, 
.cwg-alert, 
.cwg-alert-success,
.cwginstock-subscribe-form .woocommerce-message {
    background-color: #0f172a !important; /* Fundo Dark Luxo */
    color: #00E5FF !important; /* Texto Ciano Brilhante */
    border: 1px solid rgba(0, 229, 255, 0.3) !important; /* Borda Ciano Suave */
    border-radius: 12px !important; /* Bordas Arredondadas */
    padding: 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1) !important;
    margin-top: 20px !important;
    text-transform: none !important;
    background-image: none !important; /* Remove qualquer ícone velho do plugin */
}

/* Deixa o nome da carta em branco para dar contraste com o texto ciano */
.cwginstock_msg_wrapper strong,
.cwginstock_msg_wrapper b {
    color: #ffffff !important;
    font-weight: 900 !important;
}

#v-btn-loadmore {
    background: #ffffff;
    color: #7c4dff;
    border: 1.5px solid #7c4dff;
    padding: 13px 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: none;
}
#v-btn-loadmore:hover {
    background: #f5f3ff;
    border-color: #5e35b1;
    color: #5e35b1;
    box-shadow: 0 4px 16px rgba(124,77,255,0.15);
    transform: translateY(-1px);
}
#v-btn-loadmore:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
