/* Custom styles for MFO Web Public */

/* MFO Toast System - Custom & Modern */
.mfo-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
    max-width: 420px;
    width: 100%;
}

.mfo-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    pointer-events: all;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.mfo-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.mfo-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.mfo-toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.mfo-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfo-toast-content {
    flex: 1;
    min-width: 0;
}

.mfo-toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    font-weight: 500;
    word-break: break-word;
}

.mfo-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    color: #6b7280;
    padding: 0;
}

.mfo-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

/* Toast Types */
.mfo-toast-success {
    border-left-color: #10b981;
}

.mfo-toast-success .mfo-toast-icon {
    color: #10b981;
}

.mfo-toast-error {
    border-left-color: #ef4444;
}

.mfo-toast-error .mfo-toast-icon {
    color: #ef4444;
}

/* Segurança da Conta - cabeçalho mais compacto no acordeão */
.accordion-compact .accordion-button {
    padding: 0.65rem 1rem;
}

.mfo-toast-warning {
    border-left-color: #f59e0b;
}

.mfo-toast-warning .mfo-toast-icon {
    color: #f59e0b;
}

.mfo-toast-info {
    border-left-color: #3b82f6;
}

.mfo-toast-info .mfo-toast-icon {
    color: #3b82f6;
}

/* Responsivo */
@media (max-width: 640px) {
    .mfo-toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .mfo-toast {
        transform: translateY(-100px);
    }

    .mfo-toast-show {
        transform: translateY(0);
    }

    .mfo-toast-hide {
        transform: translateY(-100px);
    }
}

/* Mini Cart Dropdown - Remove Item Button */
.item-cart {
    position: relative;
    padding-right: 30px;
}

.btn-remove-item {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: #B6B6B6;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: #CB1C22;
    transform: scale(1.1);
}

.btn-remove-item i {
    font-size: 16px;
}

/* Cart dropdown improvements */
.dropdown-cart .item-cart:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dropdown-cart .cart-image {
    flex-shrink: 0;
}

/* Estados de validação em formulários */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.1);
}

.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.dropdown-cart .cart-info {
    flex-grow: 1;
}

/* Ensure dropdown stays open with animation */
.dropdown-cart.dropdown-open {
    animation: fadeInDown 0.25s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close dropdown when clicking outside */
.box-dropdown-cart {
    position: relative;
}

/* Sticky Header - Floating Header Implementation */
.header.sticky-bar {
    transition: all 0.3s ease-in-out;
}

.sticky-bar.stick {
    animation: 700ms ease-in-out 0s normal none 1 running fadeInDown;
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    transition: all 0.3s ease 0s;
    border-bottom: 1px solid #DDE4F0;
    background: #fff;
}

/* Animação de fade in para o header flutuante */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Garantir que o header não sobrepõe o conteúdo quando está fixo */
body.header-sticky-active {
    padding-top: 100px;
}

/* Ajuste para o header stick em diferentes tamanhos de tela */
@media (max-width: 1199px) {
    .sticky-bar.stick {
        padding: 10px 0;
    }
}

@media (max-width: 767px) {
    .sticky-bar.stick {
        padding: 8px 0;
    }

    body.header-sticky-active {
        padding-top: 80px;
    }
}

/* Auth Status Indicator - Indicador de Status de Autenticação */
.auth-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.auth-status-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

/* Estado Online - Verde */
.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-online 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* Estado Offline - Vermelho */
.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

.status-text {
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Cores do texto baseadas no estado */
.auth-status-indicator .status-dot.online ~ .status-text {
    color: #10b981;
}

.auth-status-indicator .status-dot.offline ~ .status-text {
    color: #ef4444;
}

/* Responsivo - Ocultar texto em telas pequenas */
@media (max-width: 991px) {
    .auth-status-indicator .status-text {
        display: none;
    }

    .auth-status-indicator {
        padding: 6px;
    }

    .status-dot {
        width: 10px;
        height: 10px;
    }
}

/* Ajuste para TopBar */
.topbar .auth-status-indicator {
    margin-left: 15px;
}

@media (max-width: 1199px) {
    .topbar .auth-status-indicator {
        margin-left: 10px;
    }
}

/* ============================================
   Account Area Styles - Área de Conta do Cliente
   ============================================ */

/* Account Container - Full Width Layout */
.account-area-container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1400px) {
    .account-area-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1600px) {
    .account-area-container {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Account Layout Sidebar */
.account-sidebar {
    position: sticky;
    top: 100px;
}

.account-sidebar .card {
    border-radius: 12px;
    overflow: hidden;
}

.account-nav .list-group-item {
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent !important;
}

.account-nav .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
    border-left-color: rgba(59, 183, 126, 0.3) !important;
}

.account-nav .list-group-item.active {
    font-weight: 600;
    position: relative;
    background-color: rgba(59, 183, 126, 0.05);
    border-left-color: var(--bs-primary, #3BB77E) !important;
}

.account-nav .list-group-item i {
    width: 20px;
    text-align: center;
}

/* Account Main Content */
.account-main-content {
    min-height: 500px;
}

/* Orders Card Improvements */
.orders-card {
    border-radius: 12px;
    overflow: hidden;
}

.orders-table {
    border-radius: 8px;
    overflow: hidden;
}

.orders-table table {
    font-size: 0.925rem;
}

.orders-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.orders-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.orders-table .order-row {
    transition: all 0.2s ease;
}

.orders-table .order-row:hover {
    background-color: rgba(59, 183, 126, 0.02);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Dashboard Stats Cards */
.card.bg-light {
    transition: all 0.3s ease;
}

.card.bg-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile Avatar Upload */
.img-avatar {
    border: 3px solid #f0f2f5;
}

/* Security Page - Active Sessions */
.active-session-item {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.active-session-item:hover {
    background-color: #f8f9fa;
}

/* Notifications - Notification Items */
.notification-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.notification-item.unread {
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary, #3BB77E);
    font-weight: 500;
}

.notification-item:hover {
    background-color: #e9ecef;
}

/* Form Switches */
.form-check-input:checked {
    background-color: var(--bs-success, #10b981);
    border-color: var(--bs-success, #10b981);
}

/* Account Avatar Initials */
.bg-brand-2 {
    background: linear-gradient(135deg, var(--bs-primary, #3BB77E) 0%, #2e9963 100%);
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.2);
}

/* Mobile Sidebar - Collapsible */
@media (max-width: 991px) {
    .account-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .account-sidebar .card-body.text-center {
        padding: 1.5rem 1rem !important;
    }

    .account-sidebar .rounded-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .account-sidebar .rounded-circle span {
        font-size: 1.75rem !important;
    }

    .account-nav .list-group-item {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
}

/* Tablet Adjustments */
@media (max-width: 767px) {
    .account-area-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .orders-card .card-body {
        padding: 1.5rem !important;
    }

    .orders-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .orders-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Hide less important columns on mobile */
    .orders-table th:nth-child(4),
    .orders-table td:nth-child(4),
    .orders-table th:nth-child(5),
    .orders-table td:nth-child(5),
    .orders-table th:nth-child(6),
    .orders-table td:nth-child(6) {
        display: none;
    }

    /* Make table more compact on mobile */
    .orders-table .badge {
        font-size: 0.7rem;
        padding: 0.25em 0.5em;
    }

    .orders-table .btn-sm {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .account-area-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .orders-card .card-body {
        padding: 1rem !important;
    }

    .orders-card h4 {
        font-size: 1.1rem;
    }

    .orders-card h4 i {
        font-size: 1rem;
    }

    /* Stack table for very small screens */
    .orders-table {
        font-size: 0.8rem;
    }

    /* Further hide columns on very small screens */
    .orders-table th:nth-child(3),
    .orders-table td:nth-child(3) {
        display: none;
    }
}

/* Card Hover Effects */
.card.border:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Button Transitions */
.btn {
    transition: all 0.3s ease;
}

.btn-brand {
    background-color: var(--bs-primary, #3BB77E);
    border-color: var(--bs-primary, #3BB77E);
    color: white;
}

.btn-brand:hover {
    background-color: #2e9963;
    border-color: #2e9963;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
}

.btn-outline-brand {
    color: var(--bs-primary, #3BB77E);
    border-color: var(--bs-primary, #3BB77E);
}

.btn-outline-brand:hover {
    background-color: var(--bs-primary, #3BB77E);
    border-color: var(--bs-primary, #3BB77E);
    color: white;
}

/* Text Brand Color */
.text-brand {
    color: var(--bs-primary, #3BB77E) !important;
}

/* Page Content Spacing */
.page-content {
    min-height: 70vh;
}

/* Loading Spinner Brand Color */
.spinner-border.text-brand {
    color: var(--bs-primary, #3BB77E) !important;
}

/* Alert Improvements */
.alert {
    border-radius: 8px;
    border-left-width: 4px;
}

.alert-success {
    border-left-color: #10b981;
    background-color: #f0fdf4;
    color: #065f46;
}

.alert-danger {
    border-left-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-info {
    border-left-color: #3b82f6;
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
    color: #92400e;
}

/* Badge Improvements */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* Table Improvements */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .page-content {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .card-body h4 {
        font-size: 1.25rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   Auth Badge - Badge de Status de Autenticação
   ============================================ */

/* Wrapper do ícone de conta com badge */
.account-link-wrapper {
    position: relative;
    display: inline-block;
}

/* Ícone de conta com badge */
.icon-account.has-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Badge de autenticação */
.auth-badge {
    position: absolute;
    top: -10px;
    left: 22px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Badge online (autenticado) - Verde */
.badge-online {
    background-color: #28a745;
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-online:hover {
    background-color: #218838;
    transform: scale(1.1);
}

/* Badge offline (não autenticado) - Vermelho */
.badge-offline {
    background-color: #dc3545;
}

.badge-offline:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Animação de pulsação suave para o badge online */
@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.6);
    }
}

/* Responsividade dos badges */
@media (max-width: 1199px) {
    .auth-badge {
        font-size: 9px;
        width: 18px;
        height: 18px;
        top: -8px;
        left: 20px;
    }
}

@media (max-width: 767px) {
    .auth-badge {
        font-size: 8px;
        width: 16px;
        height: 16px;
        top: -6px;
        left: 18px;
        padding: 1px 4px;
    }
}

/* ============================================
   Account Dropdown Icons - Ícones do Menu de Conta
   ============================================ */

/* Espaçamento e alinhamento dos ícones no dropdown */
.dropdown-account ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-account ul li a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #425A8B;
    transition: all 0.3s ease;
}

.dropdown-account ul li a:hover i {
    color: #0BA9ED;
    transform: scale(1.1);
}

/* Ícones específicos com cores temáticas no hover */
.dropdown-account ul li a[href*="profile"]:hover i {
    color: #3b82f6;
}

.dropdown-account ul li a[href*="order-tracking"]:hover i {
    color: #f59e0b;
}

.dropdown-account ul li a[href*="orders"]:hover i {
    color: #8b5cf6;
}

.dropdown-account ul li a[href*="wishlist"]:hover i {
    color: #ef4444;
}

.dropdown-account ul li a[href*="logout"]:hover i {
    color: #dc2626;
}

.dropdown-account ul li a[href*="login"]:hover i {
    color: #10b981;
}

/* Mobile Menu Icons */
.mobile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mobile-menu li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu li a:hover i {
    transform: scale(1.1);
}

/* ============================================
   Confirm Dialog Styles - Enhanced Modal
   ============================================ */

/* Backdrop */
.mfo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    backdrop-filter: blur(2px);
}

.mfo-modal-backdrop.mfo-modal-show {
    opacity: 1;
}

.mfo-modal-backdrop.mfo-modal-hide {
    opacity: 0;
}

/* Modal Container */
.mfo-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    padding: 24px;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.mfo-modal-backdrop.mfo-modal-show .mfo-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.mfo-modal-backdrop.mfo-modal-hide .mfo-modal {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
}

/* Modal Sizes */
.mfo-modal-small {
    max-width: 400px;
    padding: 20px;
}

.mfo-modal-medium {
    max-width: 480px;
    padding: 24px;
}

.mfo-modal-large {
    max-width: 600px;
    padding: 28px;
}

/* Modal Header */
.mfo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.mfo-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 20px;
}

.mfo-modal-title {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1.4;
    flex: 1;
}

.mfo-modal-header .btn-close {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 4px;
    margin: -4px -4px -4px 0;
}

.mfo-modal-header .btn-close:hover {
    opacity: 1;
}

.mfo-modal-header .btn-close:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Modal Body */
.mfo-modal-body {
    margin-bottom: 20px;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mfo-modal-body p {
    margin: 0;
}

/* Modal Buttons */
.mfo-modal-buttons {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 4px;
}

.mfo-modal-buttons .btn {
    min-width: 100px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mfo-modal-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botão único - centralizado e mais largo */
.mfo-modal-buttons.justify-content-center .btn {
    min-width: 120px;
}

/* Estilos específicos para botões de ação destrutiva */
.mfo-modal-buttons .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.mfo-modal-buttons .btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.mfo-modal-buttons .btn-danger:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}

/* Estilos para botão de sucesso */
.mfo-modal-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.mfo-modal-buttons .btn-success:hover:not(:disabled) {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

/* Estilos para botão de aviso */
.mfo-modal-buttons .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.mfo-modal-buttons .btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.mfo-modal-buttons .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Modal Types - Colors and Icons */
.mfo-modal-type-info .mfo-modal-icon {
    background-color: #eff6ff;
    color: #3b82f6;
}

.mfo-modal-type-info .mfo-modal-buttons .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.mfo-modal-type-info .mfo-modal-buttons .btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
}

.mfo-modal-type-warning .mfo-modal-icon {
    background-color: #fffbeb;
    color: #f59e0b;
}

.mfo-modal-type-warning .mfo-modal-buttons .btn-primary {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.mfo-modal-type-warning .mfo-modal-buttons .btn-primary:hover:not(:disabled) {
    background-color: #d97706;
    border-color: #d97706;
}

.mfo-modal-type-error .mfo-modal-icon {
    background-color: #fef2f2;
    color: #ef4444;
}

.mfo-modal-type-error .mfo-modal-buttons .btn-primary {
    background-color: #ef4444;
    border-color: #ef4444;
}

.mfo-modal-type-error .mfo-modal-buttons .btn-primary:hover:not(:disabled) {
    background-color: #dc2626;
    border-color: #dc2626;
}

.mfo-modal-type-success .mfo-modal-icon {
    background-color: #f0fdf4;
    color: #10b981;
}

.mfo-modal-type-success .mfo-modal-buttons .btn-primary {
    background-color: #10b981;
    border-color: #10b981;
}

.mfo-modal-type-success .mfo-modal-buttons .btn-primary:hover:not(:disabled) {
    background-color: #059669;
    border-color: #059669;
}

.mfo-modal-type-confirm .mfo-modal-icon {
    background-color: #f9fafb;
    color: #6b7280;
}

.mfo-modal-type-confirm .mfo-modal-buttons .btn-primary {
    background-color: var(--bs-primary, #3BB77E);
    border-color: var(--bs-primary, #3BB77E);
}

.mfo-modal-type-confirm .mfo-modal-buttons .btn-primary:hover:not(:disabled) {
    background-color: #2e9963;
    border-color: #2e9963;
}

/* Responsive Design */
@media (max-width: 767px) {
    .mfo-modal-backdrop {
        padding: 12px;
    }

    .mfo-modal {
        padding: 20px;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .mfo-modal-small,
    .mfo-modal-medium,
    .mfo-modal-large {
        max-width: 100%;
        padding: 20px;
    }

    .mfo-modal-title {
        font-size: 1.1rem;
    }

    .mfo-modal-header {
        margin-bottom: 12px;
    }

    .mfo-modal-body {
        margin-bottom: 16px;
        font-size: 0.9rem;
    }

    .mfo-modal-buttons {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .mfo-modal-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .mfo-modal-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .mfo-modal {
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }

    .mfo-modal-title {
        font-size: 1rem;
    }

    .mfo-modal-header {
        margin-bottom: 10px;
    }

    .mfo-modal-body {
        margin-bottom: 14px;
        font-size: 0.875rem;
    }
}

/* Animation States */
.mfo-modal-animating {
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.mfo-modal:focus-within {
    outline: none;
}

.mfo-modal-buttons .btn:focus-visible {
    outline: 2px solid var(--bs-primary, #3BB77E);
    outline-offset: 2px;
}

.mfo-modal-header .btn-close:focus-visible {
    outline: 2px solid var(--bs-primary, #3BB77E);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Sidebar Menu Icons - Ícones do Menu Lateral
   ============================================ */

/* Coluna apenas de ícones (menu-icons) - Centralização forçada */
.sidebar-left .menu-icons li a {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 50px;
    width: 100%;
}

.sidebar-left .menu-icons li a i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px;
    background-color: #E5EDF7;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px;
    color: #425A8B;
    transition: all 0.3s ease;
    margin: 0 !important;
    flex-shrink: 0;
}

.sidebar-left .menu-icons li a:hover i {
    background-color: #FD9636;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Menu com texto (menu-texts) */
.sidebar-left .menu-texts li a .img-link {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background-color: #E5EDF7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.sidebar-left .menu-texts li a .img-link i {
    font-size: 16px;
    color: #425A8B;
    transition: all 0.3s ease;
}

.sidebar-left .menu-texts li a:hover .img-link,
.sidebar-left .menu-texts li a.active .img-link {
    background-color: #FD9636;
}

.sidebar-left .menu-texts li a:hover .img-link i,
.sidebar-left .menu-texts li a.active .img-link i {
    color: #ffffff;
}

/* ============================================
   Price Range Slider - Slider de Faixa de Preço
   ============================================ */

/* Container do slider de preço */
.box-slider-range {
    padding: 0;
}

/* Slider de preço - estilo template original */
.price-range-slider {
    margin: 20px 0;
}

/* Ajustes específicos para o slider de preço */
.price-range-slider .noUi-handle {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background-color: #FD9636 !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
    cursor: grab;
    top: -6px !important;
    left: -7px !important;
}

.price-range-slider .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24) !important;
}

.price-range-slider .noUi-connect {
    background: #FD9636 !important;
    height: 6px !important;
}

.price-range-slider .noUi-background {
    background: #E5E5E5 !important;
    height: 6px !important;
}

/* Estilos do texto do range de preço - Template original */
.box-slider-range .lb-slider {
    display: inline;
    margin-right: 4px;
}

.box-slider-range .min-value-money {
    display: inline;
    font-weight: 500;
    margin-right: 4px;
}

.box-slider-range .max-value-money {
    display: inline;
    font-weight: 500;
}

.box-slider-range .row:last-child {
    margin-top: 8px;
}

/* Garantir que os valores sejam atualizados visualmente */
.box-slider-range .min-value,
.box-slider-range .max-value {
    display: none;
}

/* ============================================
   Product Card Prices - Preços dos Cards de Produto
   ============================================ */

/* Evitar quebra de linha nos preços - Garantir que símbolo e valor fiquem juntos */
.card-grid-style-3 .card-grid-inner .price-info,
.card-grid-style-2 .price-info {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    column-gap: 8px;
    overflow: hidden;
}

.card-grid-style-3 .card-grid-inner .price-info .price-main,
.card-grid-style-2 .price-info .price-main {
    white-space: nowrap !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-grid-style-3 .card-grid-inner .price-info .price-line,
.card-grid-style-2 .price-info .price-line {
    white-space: nowrap !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    word-break: keep-all;
}

/* Garantir que o símbolo da moeda e o número não se separem */
.card-grid-style-3 .card-grid-inner .price-info .price-main *,
.card-grid-style-2 .price-info .price-main * {
    white-space: nowrap;
    display: inline;
}

/* Ajuste fino do espaçamento entre elementos do texto */
.box-slider-range .col-lg-12 {
    line-height: 1.5;
}

/* ============================================
   Discount Badges - Badges de Desconto
   ============================================ */

/* Garantir que TODOS os badges de desconto usem a cor laranja do tema - Regra máxima prioridade */
.card-grid-style-3 .card-grid-inner .image-box .label,
.card-grid-style-2 .image-box .label,
.card-grid-style-2.card-grid-none-border .image-box .label,
.hurry-up .label,
.hurry-up-2 .label,
.top-deals .label,
.list-products-5 .card-style-full-image .card-grid-inner .image-box .label,
.home6-style .card-grid-inner .image-box .label,
.style-label-right .card-grid-style-2 > .label,
.slide-shop .card-grid-style-2 .image-box .label,
.image-box .label,
.card-grid-inner .image-box .label {
    background-color: #FD9636 !important;
    background: #FD9636 !important;
    color: #ffffff !important;
}

/* Específico para badges com classe bg-brand-2 */
.card-grid-style-3 .card-grid-inner .image-box .label.bg-brand-2,
.card-grid-style-2 .image-box .label.bg-brand-2,
.label.bg-brand-2,
.image-box .label.bg-brand-2 {
    background-color: #FD9636 !important;
    background: #FD9636 !important;
    color: #ffffff !important;
}

/* Override para qualquer estilo inline ou mais específico */
[class*="card-grid"] .image-box .label,
[class*="card-grid"] .card-grid-inner .image-box .label {
    background-color: #FD9636 !important;
    background: #FD9636 !important;
    color: #ffffff !important;
}

/* ============================================
   MODERN LOADER - Preloader Animado
   ============================================ */

/* Variáveis CSS para o loader */
:root {
    --loader-orange: #FD9636;
    --loader-orange-alt: #FC862C;
    --loader-blue: #0B7C85;
    --loader-blue-alt: #1D7882;
}

/* Container principal do preloader */
#preloader-active,
#preloader-active .preloader,
.preloader {
    background-color: rgba(247, 247, 247, 0.85) !important;
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999999999 !important;
    transition: opacity 0.6s ease-out !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Gradiente animado de fundo */
.preloader-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--loader-orange) 0%, var(--loader-blue) 50%, var(--loader-orange) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    opacity: 0.12;
    will-change: background-position;
}

/* Container do conteúdo (logo + spinner) */
.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    z-index: 2;
}

/* Logo pulsante */
.preloader-logo {
    position: relative;
    max-width: 150px !important;
    width: auto !important;
    height: auto !important;
    z-index: 3;
    animation: pulse-logo 2s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 20px rgba(253, 150, 54, 0.3));
    margin: 0 !important;
}

/* Spinner circular ao redor da logo */
.preloader-spinner {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 5px solid transparent;
    border-top-color: var(--loader-orange);
    border-right-color: var(--loader-blue);
    border-radius: 50%;
    animation: rotate-spinner 1.5s linear infinite;
    will-change: transform;
    filter: drop-shadow(0 0 8px rgba(253, 150, 54, 0.4));
}

.preloader-spinner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 220px;
    height: 220px;
    border: 5px solid transparent;
    border-bottom-color: var(--loader-blue);
    border-left-color: var(--loader-orange);
    border-radius: 50%;
    animation: rotate-spinner-reverse 2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(11, 124, 133, 0.4));
}

/* Keyframes - Animação do gradiente */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Keyframes - Pulsação da logo */
@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.95;
    }
}

/* Keyframes - Rotação do spinner (sentido horário) */
@keyframes rotate-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Keyframes - Rotação do spinner interno (sentido anti-horário) */
@keyframes rotate-spinner-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .preloader-content {
        width: 180px;
        height: 180px;
    }
    
    .preloader-logo {
        max-width: 110px;
    }
    
    .preloader-spinner {
        width: 170px;
        height: 170px;
    }
    
    .preloader-spinner::before {
        width: 170px;
        height: 170px;
    }
}
