        :root {
            --primary: #4a6fa5;
            --primary-light: #6a8bc5;
            --secondary: #f8f9fa;
            --accent: #ff7e5f;
            --text: #333;
            --text-light: #666;
            --border: #e0e0e0;
            --success: #2ecc71;
            --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f9fafc;
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Header Mobile */
        .mobile-header {
            display: none;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 1rem;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .mobile-header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        .mobile-logo img {
            height: 35px;
            max-width: 120px;
            object-fit: contain;
        }
        
        .mobile-menu-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Mobile Menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            padding: 1rem;
            overflow-y: auto;
        }
        
        .mobile-menu.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }
        
        .mobile-menu-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mobile-menu-items {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .mobile-menu-link {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
            text-decoration: none;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            font-size: 1.1rem;
            transition: background 0.3s;
        }
        
        .mobile-menu-link:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .mobile-menu-link i {
            font-size: 1.3rem;
            width: 24px;
            text-align: center;
        }
        
        /* Header Desktop */
        header {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 1.5rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo img {
            height: 50px;
            max-width: 150px;
            object-fit: contain;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        /* Carrinho de Cotação */
        .quote-cart-btn {
            position: relative;
            background: white;
            color: var(--primary);
            padding: 10px 15px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            box-shadow: var(--card-shadow);
            border: none;
            cursor: pointer;
        }
        
        .quote-cart-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--accent);
            color: white;
            font-size: 0.8rem;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* Modal do Carrinho */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 500px;
            height: 100%;
            background: white;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
            z-index: 2000;
            overflow-y: auto;
        }
        
        .cart-modal.active {
            display: block;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }
        
        .cart-header {
            background: var(--primary);
            color: white;
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .close-cart {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .cart-items {
            padding: 1.5rem;
        }
        
        .cart-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid var(--border);
            align-items: center;
        }
        
        .cart-item-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }
        
        .cart-item-details {
            flex: 1;
        }
        
        .cart-actions {
            display: flex;
            gap: 10px;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            text-align: center;
            justify-content: center;
            font-size: 1rem;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
        }
        
        .btn-success {
            background: var(--success);
            color: white;
        }
        
        .btn-success:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        .btn-danger {
            background: #e74c3c;
            color: white;
        }
        
        /* Barra de Pesquisa e Filtros */
        .search-section {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin: 2rem 0;
        }
        
        .search-form {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .search-input {
            flex: 1;
            min-width: 200px;
            padding: 12px 15px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .category-select {
            padding: 12px 15px;
            border: 2px solid var(--border);
            border-radius: 8px;
            background: white;
            min-width: 180px;
        }
        
        .search-btn {
            padding: 12px 25px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* Grid de Itens */
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 3rem;
        }
        
        .item-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        .item-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--card-shadow-hover);
        }
        
        .item-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
            cursor: pointer;
        }
        
        .item-card:hover .item-image img {
            transform: scale(1.05);
        }
        
        .item-content {
            padding: 1.25rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .item-name {
            font-size: 1.1rem;
            color: var(--primary);
            margin-bottom: 8px;
            font-weight: 700;
            line-height: 1.3;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .item-name:hover {
            color: var(--primary-light);
        }
        
        .item-description {
            color: var(--text-light);
            margin-bottom: 15px;
            flex: 1;
            line-height: 1.5;
            font-size: 0.95rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .item-category {
            display: inline-flex;
            align-items: center;
            background: var(--secondary);
            color: var(--primary);
            padding: 12px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 15px;
            width: fit-content;
        }
        
        .item-ref {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 10px;
        }
        
        /* Botão Adicionar à Cotação */
        .add-quote-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.95rem;
            width: 100%;
            justify-content: center;
            margin-top: auto;
        }
        
        .add-quote-btn:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
        }
        
        /* Botão Ver Detalhes */
        .view-details-btn {
            background: var(--secondary);
            color: var(--primary);
            border: 2px solid var(--border);
            border-radius: 8px;
            padding: 8px 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            width: 100%;
            justify-content: center;
        }
        
        .view-details-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* Modal de Quantidade */
        .quantity-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 5000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        
        .quantity-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        
        .quantity-content {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            max-width: 400px;
            width: 100%;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .quantity-input {
            width: 100%;
            padding: 12px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 1.1rem;
            text-align: center;
            margin: 1.5rem 0;
        }
        
        .quantity-actions {
            display: flex;
            gap: 10px;
            margin-top: 1.5rem;
        }
        
        .quantity-actions .btn {
            flex: 1;
        }
        
        /* Modal de Detalhes do Produto */
        .product-details-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 4000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            overflow-y: auto;
        }
        
        .product-details-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        
        .product-details-content {
            background: white;
            border-radius: 12px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        }
        
        .product-details-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 1.5rem;
            border-radius: 12px 12px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .close-details {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s;
        }
        
        .close-details:hover {
            transform: rotate(90deg);
        }
        
        .product-details-body {
            padding: 2rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        
        @media (max-width: 768px) {
            .product-details-body {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }
        
        .product-details-image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 300px;
        }
        
        .product-details-image img {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            cursor: pointer;
        }
        
        .product-details-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .product-details-name {
            font-size: 1.8rem;
            color: var(--primary);
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 0.5rem;
        }
        
        .product-details-category {
            display: inline-flex;
            align-items: center;
            background: var(--secondary);
            color: var(--primary);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.95rem;
            font-weight: 600;
            width: fit-content;
            margin-bottom: 1rem;
        }
        
        .product-details-ref {
            font-size: 1.1rem;
            color: var(--text);
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
        }
        
        .product-details-ref strong {
            color: var(--primary);
        }
        
        .product-details-description {
            color: var(--text);
            line-height: 1.8;
            font-size: 1.05rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
            max-height: 300px;
            overflow-y: auto;
            white-space: pre-line;
        }
        
        .product-details-actions {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        /* Paginação */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 2rem 0;
            flex-wrap: wrap;
        }
        
        .page-link {
            padding: 10px 16px;
            background: white;
            color: var(--primary);
            border: 2px solid var(--border);
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 0.95rem;
            min-width: 44px;
            text-align: center;
        }
        
        .page-link:hover,
        .page-link.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* Footer */
        footer {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 2.5rem 0 1.5rem;
            margin-top: 3rem;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: #ffd166;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.9;
            transition: opacity 0.3s;
            font-size: 0.95rem;
        }
        
        .footer-links a:hover {
            opacity: 1;
        }
        
        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.8;
            font-size: 0.9rem;
        }
        
        /* Modal de Copiar WhatsApp */
        .whatsapp-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 6000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        
        .whatsapp-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .whatsapp-content {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            max-width: 450px;
            width: 100%;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        /* Overlay para modais */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1500;
        }
        
        /* Estatísticas */
        .stats-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 1rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .stats-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text);
            font-size: 0.95rem;
        }
        
        .stats-item i {
            color: var(--primary);
            font-size: 1.1rem;
        }
        
        /* Botão Voltar no Lightbox */
        .lightbox-back-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 10000;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            opacity: 0;
            pointer-events: none;
        }
        
        .lightbox-back-btn.visible {
            opacity: 1;
            pointer-events: all;
        }
        
        .lightbox-back-btn:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1);
        }
        
        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
            color: var(--text-light);
        }
        
        .loading.active {
            display: block;
        }
        
        .loading-spinner {
            border: 4px solid var(--border);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Botão Expandir Imagem */
        .expand-image-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            z-index: 10;
        }
        
        .expand-image-btn:hover {
            background: white;
            transform: scale(1.1);
        }
        
        /* Responsividade */
        @media (max-width: 768px) {
            .mobile-header {
                display: block;
            }
            
            header {
                display: none;
            }
            
            .container {
                margin-top: 70px;
                padding: 0 12px;
            }
            
            .items-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 15px;
            }
            
            .search-form {
                flex-direction: column;
            }
            
            .search-input,
            .category-select,
            .search-btn {
                width: 100%;
            }
            
            .cart-modal {
                max-width: 100%;
            }
            
            .stats-bar {
                padding: 0.75rem;
                gap: 10px;
            }
            
            .stats-item {
                font-size: 0.85rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .page-link {
                padding: 8px 12px;
                min-width: 40px;
                font-size: 0.9rem;
            }
            
            .item-image {
                height: 180px;
            }
            
            .item-content {
                padding: 1rem;
            }
            
            .item-name {
                font-size: 1rem;
            }
            
            .item-description {
                font-size: 0.9rem;
            }
            
            .product-details-body {
                padding: 1.5rem;
            }
            
            .product-details-name {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .items-grid {
                grid-template-columns: 1fr;
            }
            
            .mobile-logo h1 {
                font-size: 1.1rem;
            }
            
            .mobile-logo img {
                height: 30px;
            }
            
            .cart-header h2 {
                font-size: 1.2rem;
            }
            
            .quantity-content,
            .whatsapp-content,
            .product-details-content {
                padding: 1.5rem;
            }
            
            .stats-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .search-section {
                padding: 1rem;
                margin: 1rem 0;
            }
            
            .item-image {
                height: 160px;
            }
            
            .product-details-actions {
                flex-direction: column;
            }
            
            .product-details-actions .btn {
                width: 100%;
            }
        }
        
        @media (min-width: 769px) {
            .mobile-header {
                display: none;
            }
            
            header {
                display: block;
            }
            
            .container {
                margin-top: 0;
            }
        }
        
        /* Efeito de toque para mobile */
        @media (hover: none) and (pointer: coarse) {
            .item-card:hover {
                transform: none;
            }
            
            .quote-cart-btn:hover,
            .btn:hover,
            .add-quote-btn:hover,
            .expand-image-btn:hover,
            .view-details-btn:hover {
                transform: none;
            }
            
            .item-card:active {
                transform: scale(0.98);
            }
            
            .quote-cart-btn:active,
            .btn:active,
            .add-quote-btn:active,
            .expand-image-btn:active,
            .view-details-btn:active {
                transform: scale(0.95);
            }
        }
        
        /* Melhorias para telas muito pequenas */
        @media (max-width: 360px) {
            .item-image {
                height: 140px;
            }
            
            .expand-image-btn {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }
            
            .quantity-content {
                padding: 1.25rem;
            }
            
            .btn {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .search-btn {
                padding: 10px 15px;
            }
        }
        
        /* Estilo para Lightbox customizado */
        .lb-nav a.lb-prev,
        .lb-nav a.lb-next {
            opacity: 0.9;
        }
        
        .lb-data .lb-close {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            top: 20px;
            right: 20px;
        }