/* Enhanced Styles for Bragança Box System */

/* Sidebar Styles */
.sidebar-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #0C0F26 0%, #1C6AB7 100%);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header-enhanced {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;    
}

.brand-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-nav-enhanced {
    padding: 1rem 0;
}

.nav-item-enhanced {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}




#productSearchInput:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* CORREÇÃO: Adicionando borda e estilos para o select de categoria */
#categoryFilterSelect {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

#categoryFilterSelect:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

#categoryFilterSelect:hover {
    border-color: #9ca3af;
}

/* Clear Search Button Styles */
#clearSearchBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#clearSearchBtn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

#clearSearchBtn:active {
    transform: scale(0.95);
}

#clearSearchBtn.show {
    display: flex !important;
}

#clearSearchBtn.hide {
    display: none !important;
}

/* Search Input Container */
.search-input-container {
    position: relative;
}

.search-input-container .fa-eraser {
    font-size: 14px;
}

/* Image Styles */
.img-pequena {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Loading Spinner */
.spinner-enhanced {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Section */
.page-section {
    transition: opacity 0.3s ease;
}

.page-section.hidden {
    display: none;
}

/* Table Enhancements */
.table-enhanced {
    width: 100%;
    border-collapse: collapse;
}

.table-enhanced th,
.table-enhanced td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table-enhanced th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-enhanced {
        transform: translateX(-100%);
    }
    
    .sidebar-enhanced.open {
        transform: translateX(0);
    }
}

/* Pagination styles */
#pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pagination-controls button:disabled:hover {
    background: white;
}

/* Modal styles */
#image-modal {
    backdrop-filter: blur(4px);
}

#image-modal img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Search feedback styles */
.search-feedback {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

.search-feedback.active {
    color: #059669;
}

.search-feedback.inactive {
    color: #dc2626;
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

        /* Estilos customizados para o catálogo de eletrônicos */
        .hero-section {
            background: linear-gradient(135deg, #0C0F26 0%, #1C6AB7 100%);
            min-height: 20vh;
            padding: 2rem 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero-bg-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.1;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white"/><circle cx="20" cy="20" r="1" fill="white"/><circle cx="80" cy="30" r="1.5" fill="white"/><circle cx="30" cy="80" r="1" fill="white"/><circle cx="70" cy="70" r="2" fill="white"/></svg>');
        }
        
        .contato {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 10px 0;
            color: white;
            margin-left: 8px;
        }
        
        .contato svg {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            display: inline-block;
        }        
        
        .product-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(28, 106, 183, 0.15);
        }
        
        .product-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background: #f8f9fa;
        }
        
        .price-tag {
            background: linear-gradient(135deg, #1C6AB7 0%, #0C0F26 100%);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: bold;
        }
        
        .category-filter {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .search-box {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 25px;
            padding: 0.75rem 1.5rem;
            transition: all 0.3s ease;
        }
        
        .search-box:focus {
            border-color: #1C6AB7;
            box-shadow: 0 0 0 3px rgba(28, 106, 183, 0.1);
            outline: none;
        }

        .search-box-with-icon {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 25px;
            padding: 0.75rem 1.5rem 0.75rem 3rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            z-index: 10;
        }

        .select-with-icon {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 25px;
            padding: 0.75rem 3rem 0.75rem 3rem;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 0.75rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
        }

        .select-with-icon:focus {
            border-color: #1C6AB7;
            box-shadow: 0 0 0 3px rgba(28, 106, 183, 0.1);
            outline: none;
        }

        .select-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            z-index: 10;
            pointer-events: none;
        }

        .btn-gradient {
            background: linear-gradient(135deg, #1C6AB7 0%, #0C0F26 100%);
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 25px;
            font-weight: 600;
            transition: all 0.3s ease;
            transform: scale(1);
        }

        .btn-gradient:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(28, 106, 183, 0.3);
        }

        .sidenav {
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 1000;
            top: 0;
            left: 0;
            background-color: #0C0F26;
            overflow-x: hidden;
            transition: 0.5s;
            padding: 60px 0 14px 0;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            color: #FFFFFF;
        }
        
        .sidenav .container {
            width: 200px;
        }
        
        .sidenav a {
            text-decoration: none;
            font-size: 18px;
            color: #ffffff;
            display: block;
            white-space: nowrap;
            transition: 0.3s;
        }
        
        .sidenav a:hover {
            color: #ffffff;
        }
        
        .sidenav > p {
            font-size: 14px;
            color: #ffffff;
            text-align: center;
            white-space: nowrap;
            line-height: 2em;
        }
        
        .sidenav .closebtn {
            position: absolute;
            top: 24px;
            left: 22px;
        }
        
        .sidenav img {
            vertical-align: middle;
            margin-right: 5px;
        }
        
        .sidenav .contato {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            word-break: break-all;
        }
        
        .sidenav .contato svg {
            width: 16px;
            height: 15px;
            fill: #ffffff;
            margin-right: 8px;
        }
        
        .sidenav .redes {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            margin-top: 30px;
            min-width: 200px;
        }
        
        .sidenav .redes p {
            width: 100%;
            margin: 0 0 2px 0;
            font-size: 14px;
            text-align: center;
            color: #ffffff;
        }
        
        .sidenav .redes p.tel {
            margin: 6px 0 10px 0;
        }
        
        .sidenav .redes a {
            display: block;
            padding: 0px !important;
            margin-right: 8px !important;
        }
        
        .sidenav .redes svg {
            fill: #ffffff;
        }
        
        .sidenav h3 {
            font-family: "Dosis", sans-serif;
            font-size: 14px;
            text-transform: uppercase;
            margin: 24px 0;
        }
        
        .navicon {
            width: 28px;
            height: 22px;
            color: #ffffff;
            font-weight: bold;
            text-transform: uppercase;
            position: relative;
            display: block;
        }
        
        .navicon:before {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            width: 100%;
            height: 4px;
            background: #ffffff;
            border-radius: 4px;
            box-shadow: 0 8px 0 0 #ffffff, 0 16px 0 0 #ffffff;
        }
        
        .logo-container {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
        }

        .menu-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1001;
            background: transparent;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .menu-btn:hover {
            transform: scale(1.1);
        }

        .menu-btn .hamburger {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .menu-btn .hamburger span {
            width: 20px;
            height: 2px;
            background: white !important;
            border-radius: 1px;
        }
        
        .floating-whatsapp {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #25D366;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            z-index: 1000;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .floating-whatsapp:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
        }
        
        .loading-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #2ecc71;
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1002;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 3rem;
        }
        
        .pagination button {
            background: white;
            border: 2px solid #1C6AB7;
            color: #1C6AB7;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .pagination button:hover,
        .pagination button.active {
            background: linear-gradient(135deg, #1C6AB7 0%, #0C0F26 100%);
            color: white;
        }
        
        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .brand-orange {
            color: #fc9111;
        }

        /* Modal do Carrinho */
        #cart-modal {
            backdrop-filter: blur(4px);
        }

        #cart-sidebar {
            background: white;
            box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
        }
        
        @media (max-width: 768px) {
            .hero-section {
                min-height: 50vh;
                text-align: center;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
            
            .category-filter {
                text-align: center;
            }

            .category-filter .flex {
                flex-direction: column;
                gap: 1rem;
            }

            .search-controls {
                width: 100%;
            }
        }
        
        
        
        
        