/* ============================================
   SERVIÇOS - ESTILOS MODERNOS
   ============================================ */

.servicos-page {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* ============================================
   HEADER DA PÁGINA
   ============================================ */
.servicos-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicos-header .badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.servicos-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.servicos-header h1 .highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servicos-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FILTROS
   ============================================ */
.servicos-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.servicos-filters .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.servicos-filters .search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 150px;
    background: #f8fafc;
}

.servicos-filters .search-box input:focus {
    border-color: #2563eb;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.servicos-filters .search-box button {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.servicos-filters .search-box button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.servicos-filters .filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.servicos-filters .filter-options select {
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.servicos-filters .filter-options select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ============================================
   GRID DE SERVIÇOS
   ============================================ */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ============================================
   CARD DE SERVIÇO MODERNO
   ============================================ */
.servico-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.servico-card:nth-child(1) { animation-delay: 0.05s; }
.servico-card:nth-child(2) { animation-delay: 0.1s; }
.servico-card:nth-child(3) { animation-delay: 0.15s; }
.servico-card:nth-child(4) { animation-delay: 0.2s; }
.servico-card:nth-child(5) { animation-delay: 0.25s; }
.servico-card:nth-child(6) { animation-delay: 0.3s; }
.servico-card:nth-child(7) { animation-delay: 0.35s; }
.servico-card:nth-child(8) { animation-delay: 0.4s; }
.servico-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

/* ============================================
   BADGE DE DESTAQUE E DESCONTO
   ============================================ */
.servico-card .card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.servico-card .card-badge.popular {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.servico-card .card-badge.discount {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.servico-card .card-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============================================
   IMAGEM DO CARD
   ============================================ */
.servico-card .card-image {
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.servico-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servico-card:hover .card-image img {
    transform: scale(1.08);
}

.servico-card .card-image .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 4rem;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* ============================================
   CORPO DO CARD
   ============================================ */
.servico-card .card-body {
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servico-card .card-body .card-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
    transition: all 0.3s;
}

.servico-card:hover .card-body .card-category {
    background: rgba(37, 99, 235, 0.15);
}

.servico-card .card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.servico-card:hover .card-body h3 {
    color: #2563eb;
}

.servico-card .card-body .card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 60px;
}

/* ============================================
   PREÇO - VALOR CORTADO ACIMA (SERVIÇOS)
   ============================================ */
.servico-card .card-body .card-price {
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.servico-card .card-body .card-price .price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Wrapper do valor original (cortado) */
.servico-card .card-body .card-price .price-original-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 0;
}

/* Valor original riscado */
.servico-card .card-body .card-price .price-original {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.servico-card .card-body .card-price .price-original-period {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Wrapper do valor com desconto */
.servico-card .card-body .card-price .price-discount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
    order: 1;
}

/* Valor com desconto (principal) */
.servico-card .card-body .card-price .price-value.discount-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.5px;
}

.servico-card .card-body .card-price .price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.servico-card .card-body .card-price .price-period {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   ECONOMIZE - ESTILO PROFISSIONAL
   ============================================ */
.servico-card .card-body .card-price .price-savings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid #a7f3d0;
    transition: all 0.3s ease;
    order: 2;
}

.servico-card .card-body .card-price .price-savings::before {
    content: '🎯';
    font-size: 0.9rem;
}

.servico-card:hover .card-body .card-price .price-savings {
    background: #b8f5d9;
    transform: scale(1.02);
}

/* ============================================
   TOTAL DO PERÍODO - ESTILO PROFISSIONAL
   ============================================ */
.servico-card .card-body .card-price .price-total-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.8rem;
    color: #475569;
    margin-top: 4px;
    padding: 5px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    border-left: 3px solid #2563eb;
    transition: all 0.3s ease;
    order: 3;
}

.servico-card .card-body .card-price .price-total-period::before {
    content: '📋';
    font-size: 0.8rem;
}

.servico-card:hover .card-body .card-price .price-total-period {
    background: #e8edf5;
    border-left-color: #1d4ed8;
}

/* ============================================
   FLEXIBILIDADE DE PAGAMENTO
   ============================================ */
.servico-card .card-body .payment-flexibility {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    padding: 4px 0;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.servico-card .card-body .payment-flexibility i {
    color: #2563eb;
    font-size: 0.7rem;
}

/* ============================================
   PLANOS DISPONÍVEIS - MESMO ESTILO DA HOME
   ============================================ */
.servico-card .card-body .planos-disponiveis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px 0;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.servico-card .card-body .planos-disponiveis .planos-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.servico-card .card-body .planos-disponiveis .planos-label i {
    margin-right: 4px;
    color: #2563eb;
}

.servico-card .card-body .planos-disponiveis .plano-item {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.servico-card .card-body .planos-disponiveis .plano-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.servico-card .card-body .planos-disponiveis .plano-item.plano-ativo {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.servico-card .card-body .planos-disponiveis .plano-item.plano-destaque {
    background: #059669;
    color: white;
    border-color: #059669;
}

.servico-card .card-body .planos-disponiveis .plano-item.plano-destaque.plano-ativo {
    background: #2563eb;
    border-color: #2563eb;
}

/* Badge de desconto no plano */
.servico-card .card-body .planos-disponiveis .plano-item .plano-badge {
    background: rgba(255,255,255,0.2);
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 600;
}

/* Plano com desconto em destaque */
.servico-card .card-body .planos-disponiveis .plano-item.plano-destaque .plano-badge {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   RESPONSIVO - PLANOS
   ============================================ */
@media (max-width: 768px) {
    .servico-card .card-body .planos-disponiveis .plano-item {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
    
    .servico-card .card-body .planos-disponiveis .plano-item .plano-badge {
        font-size: 0.5rem;
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .servico-card .card-body .planos-disponiveis .plano-item {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
}

/* ============================================
   CARACTERÍSTICAS
   ============================================ */
.servico-card .card-body .card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.servico-card .card-body .card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
}

.servico-card .card-body .card-features li:last-child {
    border-bottom: none;
}

.servico-card .card-body .card-features li i {
    color: #2563eb;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================
   BOTÕES - VERSÃO CORRIGIDA E MODERNA
   ============================================ */
.servico-card .card-body .card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

/* Botão Detalhes */
.servico-card .card-body .card-actions .btn-details {
    flex: 1;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.servico-card .card-body .card-actions .btn-details:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.servico-card .card-body .card-actions .btn-details:active {
    transform: translateY(0);
}

/* Botão Adicionar ao Carrinho */
.servico-card .card-body .card-actions .btn-cart {
    flex: 1.5;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.servico-card .card-body .card-actions .btn-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.servico-card .card-body .card-actions .btn-cart:hover {
    background: linear-gradient(135deg, #1d4ed8, #1a3f9e);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.servico-card .card-body .card-actions .btn-cart:hover::before {
    left: 100%;
}

.servico-card .card-body .card-actions .btn-cart:active {
    transform: scale(0.96);
}

.servico-card .card-body .card-actions .btn-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.servico-card .card-body .card-actions .btn-cart i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.servico-card .card-body .card-actions .btn-cart:hover i {
    transform: translateX(2px);
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   END OF LIST
   ============================================ */
.end-of-list {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    display: none;
}

.end-of-list.active {
    display: block;
}

.end-of-list i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: #2563eb;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1024px) {
    .servicos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .servicos-header h1 {
        font-size: 2rem;
    }
    
    .servicos-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }
    
    .servicos-filters .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .servicos-filters .search-box input {
        width: 100%;
    }
    
    .servicos-filters .filter-options {
        flex-direction: column;
    }
    
    .servicos-filters .filter-options select {
        width: 100%;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .servico-card .card-body .card-actions {
        flex-direction: column;
    }
    
    .servico-card .card-body .card-actions .btn-cart,
    .servico-card .card-body .card-actions .btn-details {
        flex: 1;
        width: 100%;
        justify-content: center;
    }
    
    .servico-card .card-image {
        height: 180px;
    }
    
    .servico-card {
        min-height: 420px;
    }
    
    .servico-card .card-body .card-price .price-value.discount-price {
        font-size: 1.7rem;
    }
    
    .servico-card .card-body .card-price .price-value {
        font-size: 1.5rem;
    }
    
    .servico-card .card-body .card-price .price-savings {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .servico-card .card-body .card-price .price-total-period {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .servico-card .card-body .planos-disponiveis .plano-item {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .servicos-header h1 {
        font-size: 1.6rem;
    }
    
    .servico-card {
        min-height: 380px;
    }
    
    .servico-card .card-image {
        height: 160px;
    }
    
    .servico-card .card-body {
        padding: 16px;
    }
    
    .servico-card .card-body .card-price .price-value.discount-price {
        font-size: 1.5rem;
    }
    
    .servico-card .card-body .card-price .price-value {
        font-size: 1.3rem;
    }
    
    .servico-card .card-body .card-actions .btn-details,
    .servico-card .card-body .card-actions .btn-cart {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-height: 42px;
    }
    
    .servico-card .card-body .planos-disponiveis .plano-item {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}
/* ============================================
   TOAST / NOTIFICAÇÃO - FLOAP
   ============================================ */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    z-index: 99999;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    cursor: pointer;
}

.toast-message i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message.success {
    background: linear-gradient(135deg, #059669, #047857);
    border-left: 4px solid #34d399;
}

.toast-message.error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-left: 4px solid #f87171;
}

.toast-message.info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-left: 4px solid #60a5fa;
}

/* Animação de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animação de saída */
.toast-message.fade-out {
    animation: fadeOutRight 0.3s ease forwards;
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: 100%;
        font-size: 14px;
        padding: 14px 18px;
    }
}