/**
 * Maletinha Educativa Plugin Styles
 * Versão WordPress/WooCommerce
 */

/* Reset e base */
.maletinha-educativa-container * {
    box-sizing: border-box;
}

.maletinha-educativa-container {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.maletinha-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Banner */
.maletinha-hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.maletinha-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.maletinha-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.maletinha-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.maletinha-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.maletinha-hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.maletinha-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.maletinha-feature i {
    font-size: 1.2rem;
    color: #ffd54f;
}

.maletinha-cta-button {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(255,107,107,0.3);
}

.maletinha-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,107,107,0.4);
}

.maletinha-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.maletinha-maleta-visual {
    position: relative;
    text-align: center;
}

.maletinha-maleta-visual > i {
    font-size: 8rem;
    color: #ffd54f;
    animation: maletinhaFloat 3s ease-in-out infinite;
}

.maletinha-maleta-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: maletinhaFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.maletinha-maleta-image:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.maletinha-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.maletinha-floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: #fff;
    animation: maletinhaFloatAround 4s ease-in-out infinite;
}

.maletinha-floating-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.maletinha-floating-icons i:nth-child(2) {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.maletinha-floating-icons i:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.maletinha-floating-icons i:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes maletinhaFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes maletinhaFloatAround {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(-5px) scale(0.9); }
    75% { transform: translateY(-15px) scale(1.05); }
}

/* How it Works */
.maletinha-how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.maletinha-how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.maletinha-section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.maletinha-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.maletinha-step {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.maletinha-step:hover {
    transform: translateY(-10px);
}

.maletinha-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd54f, #ffb74d);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.maletinha-step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.maletinha-step-content h3 i {
    margin-right: 10px;
    color: #ffd54f;
}

/* Filters Section */
.maletinha-filters-section {
    padding: 80px 0 40px;
    background: #f8f9fa;
}

.maletinha-filters-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.maletinha-filters-section .maletinha-section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.maletinha-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.maletinha-filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.maletinha-filter-btn:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.maletinha-filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border-color: transparent;
}

/* Loading */
.maletinha-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.maletinha-loading.show {
    display: block;
}

.maletinha-spinner {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 20px;
}

.maletinha-spinner i {
    animation: fa-spin 2s infinite linear;
}

.maletinha-loading p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Products Section */
.maletinha-products-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.maletinha-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.maletinha-product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.maletinha-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
}

.maletinha-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.maletinha-product-card.selected {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5, #fff8f0);
}

.maletinha-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.maletinha-product-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maletinha-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.maletinha-product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.maletinha-see-more-btn {
    background: rgba(0, 124, 186, 0.1) !important;
    border: 1px solid #007cba !important;
    color: #007cba !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    margin: 5px 0 10px 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.maletinha-see-more-btn:hover {
    background: #007cba !important;
    color: white !important;
    border-color: #005a87 !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3) !important;
}

.maletinha-see-more-btn i {
    font-size: 0.7rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.maletinha-see-more-btn:hover i {
    transform: rotate(15deg) !important;
}

.maletinha-product-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.maletinha-select-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.maletinha-select-btn:hover {
    transform: translateY(-2px);
}

.maletinha-select-btn.selected {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
}

/* Cart Sidebar */
.maletinha-cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.maletinha-cart-sidebar.open {
    right: 0;
}

.maletinha-cart-header {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maletinha-cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.maletinha-close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.maletinha-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.maletinha-empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.maletinha-empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.maletinha-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.maletinha-cart-item:last-child {
    border-bottom: none;
}

.maletinha-cart-item-info {
    flex: 1;
}

.maletinha-cart-item-name {
    font-weight: 600;
    color: #333;
}

.maletinha-cart-item-category {
    font-size: 0.8rem;
    color: #666;
}

.maletinha-remove-item {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.maletinha-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.maletinha-cart-summary {
    text-align: center;
}

.maletinha-price-info {
    margin-bottom: 15px;
}

.maletinha-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.maletinha-price-info small {
    display: block;
    color: #666;
    margin-top: 5px;
}

.maletinha-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.maletinha-checkout-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.3);
}

.maletinha-checkout-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
}

/* Barra de Progresso Fixa Inferior */
.maletinha-progress-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border-top: 3px solid transparent;
    background-clip: padding-box;
    animation: maletinhaSlideUp 0.5s ease-out;
}

.maletinha-progress-fixed-bottom::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #4caf50, #2196f3, #9c27b0);
    background-size: 200% 100%;
    animation: maletinhaRainbowFlow 3s ease-in-out infinite;
}

.maletinha-progress-container-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.maletinha-progress-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
    padding: 20px 0;
}

.maletinha-progress-icon {
    font-size: 2.5rem;
    color: #ffd54f;
    animation: maletinhaFloat 3s ease-in-out infinite;
}

.maletinha-progress-main {
    flex: 1;
}

.maletinha-progress-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.maletinha-progress-text-bottom {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.maletinha-progress-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.maletinha-progress-subtitle {
    font-size: 1rem;
    color: #bdc3c7;
    font-weight: 400;
}

.maletinha-progress-percentage-bottom {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd54f;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    min-width: 80px;
    text-align: center;
}

.maletinha-progress-bar-bottom {
    position: relative;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
}

.maletinha-progress-fill-bottom {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #cddc39);
    border-radius: 30px;
    width: 0%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.maletinha-progress-fill-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: maletinhaShimmer 2.5s infinite;
}

.maletinha-progress-fill-bottom.warning {
    background: linear-gradient(90deg, #ff9800, #ffc107, #ffeb3b);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.maletinha-progress-fill-bottom.success {
    background: linear-gradient(90deg, #4caf50, #8bc34a, #cddc39);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
}

.maletinha-progress-fill-bottom.complete {
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #ffd54f, #4caf50, #2196f3, #9c27b0);
    background-size: 400% 100%;
    animation: maletinhaRainbowFlow 3s ease-in-out infinite, maletinhaPulse 1.5s infinite;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
}

.maletinha-progress-steps-bottom {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    height: 30px;
}

.maletinha-step-marker-bottom {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    min-width: 35px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.maletinha-step-marker-bottom.active {
    background: linear-gradient(135deg, #ffd54f, #ffb74d);
    color: #333;
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 5px 15px rgba(255, 213, 79, 0.6);
}

.maletinha-progress-action {
    display: flex;
    align-items: center;
}

.maletinha-quick-checkout-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    min-width: 120px;
    justify-content: center;
    font-family: inherit;
}

.maletinha-quick-checkout-btn:enabled:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.maletinha-quick-checkout-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

.maletinha-quick-checkout-btn.ready {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    animation: maletinhaPulse 2s infinite;
}

/* Cart Toggle Button */
.maletinha-cart-toggle {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,107,107,0.3);
    transition: all 0.3s ease;
    z-index: 10000;
}

.maletinha-cart-toggle:hover {
    transform: scale(1.1);
}

.maletinha-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animações */
@keyframes maletinhaSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes maletinhaRainbowFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes maletinhaRainbowGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
    }
    25% { 
        box-shadow: 0 0 30px rgba(255, 167, 38, 0.8);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 213, 79, 0.8);
    }
    75% { 
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
    }
}

@keyframes maletinhaShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes maletinhaPulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

@keyframes maletinhaCelebracao {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) rotate(0.5deg); }
    50% { transform: scale(1.01) rotate(-0.5deg); }
    75% { transform: scale(1.02) rotate(0.5deg); }
}

/* Animações de Celebração */

/* Balançar a tela */
.maletinha-screen-shake {
    animation: maletinhaScreenShake 1s ease-in-out;
}

@keyframes maletinhaScreenShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Pulsação na barra de progresso durante celebração */
.maletinha-celebration-pulse {
    animation: maletinhaCelebrationPulse 2s ease-in-out infinite;
}

@keyframes maletinhaCelebrationPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 -10px 50px rgba(255,107,107,0.6);
    }
}

/* Brilho nos botões durante celebração */
.maletinha-celebration-glow {
    animation: maletinhaCelebrationGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255,215,0,0.8) !important;
}

@keyframes maletinhaCelebrationGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255,215,0,0.6) !important;
    }
    50% { 
        box-shadow: 0 0 40px rgba(255,215,0,1) !important;
    }
}

/* Overlay de Parabéns */
.maletinha-congratulations-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.maletinha-congratulations-overlay.show {
    opacity: 1;
    visibility: visible;
}

.maletinha-congratulations-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    max-width: 400px;
    margin: 20px;
}

.maletinha-congratulations-overlay.show .maletinha-congratulations-content {
    transform: scale(1);
}

.maletinha-congratulations-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: maletinhaCongratsBounce 2s ease-in-out infinite;
}

@keyframes maletinhaCongratsBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.maletinha-congratulations-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.maletinha-congratulations-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.maletinha-congratulations-content p.small {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.maletinha-congratulations-close {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,107,107,0.3);
}

.maletinha-congratulations-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,107,107,0.5);
}

/* Confetes melhorados */
.maletinha-confetti {
    animation: maletinhaConfettiSpin 3s linear infinite;
}

@keyframes maletinhaConfettiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.maletinha-confetti-spin {
    animation: maletinhaConfettiSpin 2s linear infinite;
}

/* Efeitos especiais para quando confetes estão caindo */
body.maletinha-confetti-active {
    overflow-x: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .maletinha-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .maletinha-hero-text h1 {
        font-size: 2rem;
    }
    
    .maletinha-hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .maletinha-maleta-image {
        max-width: 300px;
    }
    
    .maletinha-steps {
        grid-template-columns: 1fr;
    }
    
    .maletinha-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .maletinha-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .maletinha-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .maletinha-progress-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
        text-align: center;
    }
    
    .maletinha-progress-icon {
        font-size: 2rem;
        order: 1;
    }
    
    .maletinha-progress-main {
        order: 2;
    }
    
    .maletinha-progress-action {
        order: 3;
        justify-content: center;
    }
    
    .maletinha-progress-info-bottom {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .maletinha-progress-title {
        font-size: 1.1rem;
    }
    
    .maletinha-progress-subtitle {
        font-size: 0.9rem;
    }
    
    .maletinha-progress-percentage-bottom {
        font-size: 1.5rem;
    }
    
    .maletinha-progress-bar-bottom {
        height: 16px;
    }
    
    .maletinha-progress-steps-bottom {
        top: -30px;
    }
    
    .maletinha-step-marker-bottom {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 25px;
    }
    
    .maletinha-quick-checkout-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 100px;
    }
    
    .maletinha-cart-toggle {
        bottom: 120px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .maletinha-cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .maletinha-congratulations-content {
        padding: 30px 25px;
        margin: 15px;
    }
    
    .maletinha-congratulations-content h2 {
        font-size: 2rem;
    }
    
    .maletinha-congratulations-content p {
        font-size: 1rem;
    }
    
    .maletinha-congratulations-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .maletinha-progress-container-bottom {
        padding: 0 15px;
    }
    
    .maletinha-progress-content {
        padding: 12px 0;
        gap: 10px;
    }
    
    .maletinha-progress-title {
        font-size: 1rem;
    }
    
    .maletinha-progress-subtitle {
        font-size: 0.8rem;
    }
    
    .maletinha-progress-percentage-bottom {
        font-size: 1.3rem;
    }
    
    .maletinha-progress-bar-bottom {
        height: 14px;
    }
    
    .maletinha-progress-steps-bottom {
        display: none;
    }
    
    .maletinha-quick-checkout-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .maletinha-quick-checkout-btn span {
        display: none;
    }
    
    .maletinha-quick-checkout-btn i {
        margin: 0;
    }
    
    .maletinha-maleta-image {
        max-width: 250px;
    }
    
    .maletinha-congratulations-content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .maletinha-congratulations-content h2 {
        font-size: 1.8rem;
    }
    
    .maletinha-congratulations-icon {
        font-size: 2.5rem;
    }
}

/* Error Messages */
.maletinha-error {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    color: #c53030;
}

.maletinha-error h3 {
    color: #c53030;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.maletinha-error p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.maletinha-error ul {
    text-align: left;
    max-width: 400px;
    margin: 15px auto;
    padding-left: 20px;
}

.maletinha-error li {
    margin-bottom: 8px;
}

.maletinha-error .button {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: all 0.3s ease;
}

.maletinha-error .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.maletinha-error details {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
}

.maletinha-error summary {
    cursor: pointer;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.maletinha-error pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.maletinha-no-products {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #4a5568;
    margin: 20px 0;
}

.maletinha-no-products h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.maletinha-no-products p {
    margin-bottom: 10px;
}

/* Debug Info Styles */
.maletinha-debug-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    max-width: 300px;
    z-index: 9998;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
}

.maletinha-debug-panel.show {
    display: block;
}

.maletinha-debug-panel h4 {
    color: #ffd54f;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.maletinha-debug-panel .debug-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 2px 0;
    border-bottom: 1px solid #4a5568;
}

.maletinha-debug-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2d3748;
    color: #ffd54f;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 9999;
    display: none;
}

.maletinha-debug-toggle.show {
    display: block;
}

/* Melhorias para Ícones */
.maletinha-educativa-container i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback para ícones quando Font Awesome não carrega */
.maletinha-educativa-container .fa,
.maletinha-educativa-container .fas,
.maletinha-educativa-container .far,
.maletinha-educativa-container .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", fallback;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Ícones específicos com emojis como fallback */
.maletinha-educativa-container .fa-briefcase:before,
.maletinha-educativa-container .fas.fa-briefcase:before {
    content: "\f0b1";
}

.maletinha-educativa-container .fa-gamepad:before,
.maletinha-educativa-container .fas.fa-gamepad:before {
    content: "\f11b";
}

.maletinha-educativa-container .fa-brain:before,
.maletinha-educativa-container .fas.fa-brain:before {
    content: "\f5dc";
}

.maletinha-educativa-container .fa-lightbulb:before,
.maletinha-educativa-container .fas.fa-lightbulb:before {
    content: "\f0eb";
}

.maletinha-educativa-container .fa-hand-paper:before,
.maletinha-educativa-container .fas.fa-hand-paper:before {
    content: "\f256";
}

.maletinha-educativa-container .fa-palette:before,
.maletinha-educativa-container .fas.fa-palette:before {
    content: "\f53f";
}

.maletinha-educativa-container .fa-th:before,
.maletinha-educativa-container .fas.fa-th:before {
    content: "\f00a";
}

.maletinha-educativa-container .fa-plus:before,
.maletinha-educativa-container .fas.fa-plus:before {
    content: "\f067";
}

.maletinha-educativa-container .fa-check:before,
.maletinha-educativa-container .fas.fa-check:before {
    content: "\f00c";
}

.maletinha-educativa-container .fa-times:before,
.maletinha-educativa-container .fas.fa-times:before {
    content: "\f00d";
}

.maletinha-educativa-container .fa-shopping-cart:before,
.maletinha-educativa-container .fas.fa-shopping-cart:before {
    content: "\f07a";
}

.maletinha-educativa-container .fa-credit-card:before,
.maletinha-educativa-container .fas.fa-credit-card:before {
    content: "\f09d";
}

.maletinha-educativa-container .fa-play:before,
.maletinha-educativa-container .fas.fa-play:before {
    content: "\f04b";
}

.maletinha-educativa-container .fa-external-link-alt:before,
.maletinha-educativa-container .fas.fa-external-link-alt:before {
    content: "\f35d";
}

/* Spinner removido */

/* Sistema de fallback quando Font Awesome falha completamente */
@supports not (font-family: "Font Awesome 6 Free") {
    .maletinha-educativa-container .fa-briefcase:before,
    .maletinha-educativa-container .fas.fa-briefcase:before { content: '💼'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-gamepad:before,
    .maletinha-educativa-container .fas.fa-gamepad:before { content: '🎮'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-brain:before,
    .maletinha-educativa-container .fas.fa-brain:before { content: '🧠'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-lightbulb:before,
    .maletinha-educativa-container .fas.fa-lightbulb:before { content: '💡'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-hand-paper:before,
    .maletinha-educativa-container .fas.fa-hand-paper:before { content: '✋'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-palette:before,
    .maletinha-educativa-container .fas.fa-palette:before { content: '🎨'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-th:before,
    .maletinha-educativa-container .fas.fa-th:before { content: '▦'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-plus:before,
    .maletinha-educativa-container .fas.fa-plus:before { content: '+'; font-family: inherit; font-weight: bold; }
    
    .maletinha-educativa-container .fa-check:before,
    .maletinha-educativa-container .fas.fa-check:before { content: '✓'; font-family: inherit; font-weight: bold; }
    
    .maletinha-educativa-container .fa-times:before,
    .maletinha-educativa-container .fas.fa-times:before { content: '×'; font-family: inherit; font-weight: bold; }
    
    .maletinha-educativa-container .fa-shopping-cart:before,
    .maletinha-educativa-container .fas.fa-shopping-cart:before { content: '🛒'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-credit-card:before,
    .maletinha-educativa-container .fas.fa-credit-card:before { content: '💳'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-play:before,
    .maletinha-educativa-container .fas.fa-play:before { content: '▶'; font-family: inherit; }
    
    .maletinha-educativa-container .fa-external-link-alt:before,
    .maletinha-educativa-container .fas.fa-external-link-alt:before { content: '🔗'; font-family: inherit; }
    
    /* Spinner fallback removido */
}

/* Animações de loading removidas */

/* Botão "Conheça o jogo" */
.maletinha-video-btn {
    width: 100%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.maletinha-video-content::before {
    display: none!important;
}

.maletinha-video-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.maletinha-video-btn i {
    font-size: 0.8rem;
}

/* Popup de Vídeo */
.maletinha-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
}

.maletinha-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.maletinha-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.maletinha-video-container.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.maletinha-video-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maletinha-video-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.maletinha-video-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maletinha-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.maletinha-video-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
}

.maletinha-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Prevenir scroll quando popup está aberto */
body.maletinha-video-open {
    overflow: hidden;
}

/* Responsive para o popup de vídeo */
@media (max-width: 768px) {
    .maletinha-video-container {
        width: 95%;
        max-height: 80vh;
    }
    
    .maletinha-video-header {
        padding: 15px 20px;
    }
    
    .maletinha-video-title {
        font-size: 1.1rem;
    }
    
    .maletinha-video-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .maletinha-video-container {
        width: 98%;
        border-radius: 10px;
    }
    
    .maletinha-video-header {
        padding: 12px 15px;
    }
    
    .maletinha-video-title {
        font-size: 1rem;
    }
    
    .maletinha-video-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Efeito hover melhorado para cards com vídeo */
.maletinha-product-card:has(.maletinha-video-btn) {
    position: relative;
}

.maletinha-product-card:has(.maletinha-video-btn)::after {
    content: '🎬';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} 