        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        /* iOS PWA Critical Fixes */
        html {
            height: 100%;
            overflow: hidden;
        }
        
        body {
            height: 100%;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            position: relative;
        }
        
        /* Garantir que inputs são clicáveis no iOS PWA */
        input, select, textarea, button {
            font-size: 16px !important; /* Previne zoom automático */
            -webkit-user-select: text !important;
            user-select: text !important;
            -webkit-appearance: none;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            touch-action: manipulation;
            cursor: text;
        }
        
        button {
            cursor: pointer;
        }
        
        /* Fix específico para inputs de login */
        .login-input {
            -webkit-user-select: text !important;
            user-select: text !important;
            pointer-events: auto !important;
            position: relative;
            z-index: 10;
        }
        
        /* Prevenir qualquer overlay que bloqueie */
        .login-container, .login-card, .login-wrapper {
            pointer-events: auto !important;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f4f0;
            min-height: 100vh;
        }
        
        .header {
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
            color: white;
            padding: 1rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            gap: 0.5rem;
        }
        
        .header h1 { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-shrink: 0;
        }
        
        .btn-logout, .btn-refresh {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 0.4rem 0.6rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.8rem;
            white-space: nowrap;
        }
        
        /* Tabs principais */
        .main-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        
        .main-tab {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            background: rgba(255,255,255,0.2);
            color: white;
        }
        
        .main-tab.active {
            background: white;
            color: #ca9a06;
        }
        
        /* Seletor de Tabela */
        .table-selector {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: rgba(255,255,255,0.15);
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
        }
        
        .table-selector label {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.8);
            white-space: nowrap;
        }
        
        .table-selector select {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 0.25rem;
            padding: 0.2rem 0.4rem;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            max-width: 110px;
        }
        
        .table-selector select:focus {
            outline: none;
            border-color: white;
        }
        
        .table-selector select option {
            background: #ca9a06;
            color: white;
        }
        
        .search-input {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 2.75rem;
            font-size: 1rem;
            border: none;
            border-radius: 0.75rem;
            background: white;
        }
        
        .search-container { position: relative; }
        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
        }
        
        .filters {
            display: flex;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            background: white;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .filters::-webkit-scrollbar { height: 4px; }
        .filters::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
        
        .filter-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #e5e7eb;
            border-radius: 2rem;
            background: white;
            font-size: 0.8rem;
            white-space: nowrap;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        
        .filter-btn:hover { background: #f5f4f0; }
        
        .filter-btn.active {
            background: #eab308;
            color: white;
            border-color: #eab308;
        }
        
        .stats-bar {
            padding: 0.5rem 1rem;
            background: #f9fafb;
            font-size: 0.75rem;
            color: #6b7280;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .products-list { padding: 0.75rem; }
        
        .product-card {
            background: white;
            border-radius: 0.75rem;
            margin-bottom: 0.75rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        
        .product-header { padding: 0.875rem 1rem; border-bottom: 1px solid #f3f4f6; }
        
        .product-code {
            font-size: 0.75rem;
            font-weight: 600;
            color: #eab308;
            background: #fef3c7;
            padding: 0.2rem 0.5rem;
            border-radius: 0.25rem;
            display: inline-block;
        }
        
        .product-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: #111827;
            margin-top: 0.25rem;
        }
        
        .product-meta {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 0.35rem;
        }
        
        .product-meta span {
            font-size: 0.7rem;
            color: #6b7280;
            background: #f5f4f0;
            padding: 0.15rem 0.4rem;
            border-radius: 0.25rem;
        }
        
        .price-section {
            padding: 0.5rem;
            margin: 0.5rem;
            border-radius: 0.5rem;
        }
        
        .price-section-title {
            font-size: 0.7rem;
            font-weight: 600;
            margin-bottom: 0.35rem;
            padding-left: 0.25rem;
        }
        
        .section-orcamento { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); border: 1px solid #fde047; }
        .section-orcamento .price-section-title { color: #a16207; }
        
        .section-horas { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border: 1px solid #e9d5ff; }
        .section-horas .price-section-title { color: #7e22ce; }
        
        .section-curto { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; }
        .section-curto .price-section-title { color: #1e40af; }
        
        .section-modulos { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); border: 1px solid #fbcfe8; }
        .section-modulos .price-section-title { color: #be185d; }
        
        .section-venda { background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%); border: 1px solid #bbf7d0; }
        .section-venda .price-section-title { color: #92400e; }
        
        /* Transportes */
        .section-equipamentos { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; }
        .section-equipamentos .price-section-title { color: #1e40af; }
        
        .section-modulos-trans { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 1px solid #fcd34d; }
        .section-modulos-trans .price-section-title { color: #92400e; }
        
        .section-sanitarios { background: linear-gradient(135deg, #ecfdf5 0%, #fef3c7 100%); border: 1px solid #6ee7b7; }
        .section-sanitarios .price-section-title { color: #1a1a2e; }
        
        .prices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
        .prices-grid-5 { grid-template-columns: repeat(5, 1fr); }
        .prices-grid-3 { grid-template-columns: repeat(3, 1fr); }
        .prices-grid-2 { grid-template-columns: repeat(2, 1fr); }
        
        .price-item {
            background: rgba(255,255,255,0.8);
            padding: 0.4rem 0.25rem;
            text-align: center;
            border-radius: 0.35rem;
        }
        
        .price-label { font-size: 0.55rem; color: #6b7280; text-transform: uppercase; }
        .price-value { font-size: 0.8rem; font-weight: 700; color: #111827; }
        .price-value.highlight { color: #eab308; }
        
        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 1rem;
            background: #f9fafb;
        }
        
        .caucao-info { font-size: 0.8rem; color: #6b7280; }
        .caucao-info strong { color: #dc2626; }
        
        .expand-btn {
            background: #e5e7eb;
            border: none;
            padding: 0.35rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            cursor: pointer;
        }
        
        .product-details { display: none; padding: 0.75rem; background: #f9fafb; }
        .product-details.visible { display: block; }
        
        .details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
        .details-grid > div {
            display: flex;
            justify-content: space-between;
            padding: 0.35rem 0.5rem;
            background: white;
            border-radius: 0.35rem;
            font-size: 0.8rem;
        }
        .details-grid .label { color: #6b7280; }
        .details-grid .value { font-weight: 600; }
        
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 2rem;
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
        }
        
        .login-wrapper {
            width: 100%;
            max-width: 340px;
        }
        
        .login-card {
            background: white;
            padding: 2rem;
            border-radius: 1rem;
            width: 100%;
        }
        
        .login-logo { text-align: center; font-size: 3rem; margin-bottom: 1rem; }
        .login-title { text-align: center; font-size: 1.5rem; margin-bottom: 0.5rem; }
        .login-subtitle { text-align: center; font-size: 0.9rem; color: #6b7280; margin-bottom: 1.5rem; }
        
        /* Tabs Login/Registo */
        .auth-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .auth-tab {
            flex: 1;
            padding: 0.75rem;
            font-size: 0.95rem;
            font-weight: 600;
            border: 2px solid #e5e7eb;
            border-radius: 0.5rem;
            background: white;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .auth-tab.active {
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
            color: white;
            border-color: #ca9a06;
        }
        
        .auth-tab:not(.active):hover {
            border-color: #eab308;
            color: #ca9a06;
        }
        
        .auth-form { display: none; }
        .auth-form.active { display: block; }
        
        .login-input {
            width: 100%;
            padding: 0.875rem 1rem;
            font-size: 1rem;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .login-input:focus {
            outline: none;
            border-color: #eab308;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }
        
        .login-btn {
            width: 100%;
            padding: 0.875rem;
            font-size: 1rem;
            font-weight: 600;
            color: white;
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
        }
        
        .login-btn:disabled { opacity: 0.6; }
        
        .login-error { color: #dc2626; text-align: center; margin-top: 1rem; display: none; font-size: 0.9rem; }
        .login-success { color: #ca9a06; text-align: center; margin-top: 1rem; display: none; font-size: 0.9rem; }
        
        .register-info {
            background: #fef3c7;
            border: 1px solid #f59e0b;
            border-radius: 0.5rem;
            padding: 0.75rem;
            margin-bottom: 1rem;
            font-size: 0.8rem;
            color: #92400e;
        }
        
        .register-info strong { display: block; margin-bottom: 0.25rem; }
        
        .login-footer {
            text-align: center;
            margin-top: 1.5rem;
        }
        
        .app-version {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.7);
            font-weight: 500;
        }
        
        .app-copyright {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.5);
            margin-top: 0.25rem;
        }
        
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 3rem;
            color: #6b7280;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e5e7eb;
            border-top-color: #eab308;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }
        
        @keyframes spin { to { transform: rotate(360deg); } }
        
        .empty-state { text-align: center; padding: 3rem; color: #6b7280; }
        .empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
        
        .hidden { display: none !important; }
        
        /* Transportes - Card específico */
        .transport-card {
            background: white;
            border-radius: 0.75rem;
            margin-bottom: 0.75rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        
        .transport-header {
            padding: 0.875rem 1rem;
            border-bottom: 1px solid #f3f4f6;
            background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
        }
        
        .transport-regiao {
            font-size: 1rem;
            font-weight: 700;
            color: #92400e;
        }
        
        .transport-distrito {
            font-size: 0.8rem;
            color: #15803d;
            margin-top: 0.125rem;
        }
        
        .transport-concelhos {
            font-size: 0.7rem;
            color: #6b7280;
            margin-top: 0.35rem;
            line-height: 1.4;
        }
        
        .transport-delegacao {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 600;
            color: white;
            background: #ca9a06;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            margin-top: 0.35rem;
        }
        
        /* Filtro Distrito */
        .distrito-filter {
            display: flex;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: white;
            border-bottom: 1px solid #e5e7eb;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .distrito-btn {
            padding: 0.5rem 0.875rem;
            border: 1px solid #e5e7eb;
            border-radius: 2rem;
            background: white;
            font-size: 0.75rem;
            white-space: nowrap;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        
        .distrito-btn:hover { background: #f5f4f0; }
        
        .distrito-btn.active {
            background: #ca9a06;
            color: white;
            border-color: #ca9a06;
        }
        
        /* ===== CALCULADORA DESLOCAÇÃO ===== */
        .calc-container {
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .calc-section {
            background: white;
            border-radius: 0.75rem;
            padding: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .calc-title {
            font-size: 1rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 0.25rem;
        }
        
        .calc-subtitle {
            font-size: 0.8rem;
            color: #6b7280;
            margin-bottom: 1rem;
        }
        
        .calc-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .calc-field {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .calc-field label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #374151;
        }
        
        .calc-input {
            padding: 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            font-size: 1rem;
            width: 100%;
            transition: border-color 0.2s;
        }
        
        .calc-input:focus {
            outline: none;
            border-color: #eab308;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }
        
        .calc-row {
            display: flex;
            gap: 0.75rem;
        }
        
        .flex-1 { flex: 1; }
        
        .input-suffix {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .input-suffix input {
            padding-right: 3rem;
        }
        
        .input-suffix span {
            position: absolute;
            right: 0.75rem;
            color: #6b7280;
            font-size: 0.85rem;
        }
        
        .calc-btn-primary {
            background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
            color: white;
            border: none;
            padding: 0.875rem 1rem;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 0.5rem;
        }
        
        .calc-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }
        
        .calc-btn-primary:active {
            transform: translateY(0);
        }
        
        .calc-btn-primary:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .calc-formula {
            background: #f5f4f0;
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            color: #6b7280;
            text-align: center;
        }
        
        .calc-formula span {
            font-weight: 600;
            color: #374151;
        }
        
        /* Toggle Tipo Cálculo (Hora/KM) */
        .calc-tipo-toggle {
            display: flex;
            gap: 0.5rem;
            background: #f5f4f0;
            padding: 0.25rem;
            border-radius: 0.5rem;
        }
        
        .calc-tipo-btn {
            flex: 1;
            padding: 0.6rem 0.75rem;
            border: none;
            border-radius: 0.375rem;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            background: transparent;
            color: #6b7280;
        }
        
        .calc-tipo-btn:hover {
            background: #e5e7eb;
        }
        
        .calc-tipo-btn.active {
            background: #3b82f6;
            color: white;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }
        
        .calc-resultado {
            background: linear-gradient(135deg, #ecfdf5 0%, #fef3c7 100%);
            border: 1px solid #a7f3d0;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-top: 0.5rem;
        }
        
        .resultado-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
        }
        
        .resultado-item:not(:last-child) {
            border-bottom: 1px solid #a7f3d0;
        }
        
        .resultado-label {
            font-size: 0.85rem;
            color: #1a1a2e;
        }
        
        .resultado-valor {
            font-size: 1rem;
            font-weight: 600;
            color: #1a1a2e;
        }
        
        .resultado-valor.destaque {
            font-size: 1.1rem;
            color: #ca9a06;
        }
        
        .resultado-valor.destaque-grande {
            font-size: 1.5rem;
            color: #ca9a06;
        }
        
        .resultado-final {
            background: white;
            margin: 0.5rem -0.5rem -0.5rem;
            padding: 0.75rem;
            border-radius: 0 0 0.375rem 0.375rem;
        }
        
        .calc-info {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            background: #fef3c7;
            border: 1px solid #fcd34d;
            border-radius: 0.5rem;
            padding: 0.75rem;
        }
        
        .info-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        
        .info-text {
            font-size: 0.8rem;
            color: #92400e;
            line-height: 1.4;
        }
        
        /* ===== SECÇÃO GRUAS ===== */
        .tipo-toggle {
            display: flex;
            gap: 0.5rem;
        }
        
        .tipo-btn {
            flex: 1;
            padding: 0.75rem;
            border: 2px solid #e5e7eb;
            border-radius: 0.5rem;
            background: white;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            color: #6b7280;
        }
        
        .tipo-btn.active[data-tipo="orcamento"] {
            border-color: #f59e0b;
            background: #fef3c7;
            color: #b45309;
        }
        
        .tipo-btn.active[data-tipo="dia"] {
            border-color: #8b5cf6;
            background: #ede9fe;
            color: #6d28d9;
        }
        
        .grua-info {
            background: #fffbeb;
            border: 1px solid #fcd34d;
            border-radius: 0.5rem;
            padding: 0.75rem;
        }
        
        .grua-info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .grua-info-label {
            font-size: 0.8rem;
            color: #1a1a2e;
        }
        
        .grua-info-valor {
            font-size: 1rem;
            font-weight: 700;
            color: #1a1a2e;
        }
        
        .calc-btn-secondary {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            border: none;
            padding: 0.875rem 1rem;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .calc-btn-secondary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }
        
        .calc-separator {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: #9ca3af;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .calc-separator::before,
        .calc-separator::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }
        
        .calc-resultado-grua {
            border-radius: 0.75rem;
            overflow: hidden;
            margin-top: 0.75rem;
        }
        
        .resultado-grua-titulo {
            padding: 0.75rem 1rem;
            font-weight: 700;
            font-size: 0.9rem;
            text-align: center;
        }
        
        #calc-resultado-grua-orc .resultado-grua-titulo {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #b45309;
        }
        
        #calc-resultado-grua-dia .resultado-grua-titulo {
            background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
            color: #6d28d9;
        }
        
        .resultado-grua-linha {
            display: flex;
            justify-content: space-between;
            padding: 0.6rem 1rem;
            background: white;
            border-bottom: 1px solid #f3f4f6;
            font-size: 0.9rem;
        }
        
        .resultado-grua-linha span:last-child {
            font-weight: 600;
            color: #374151;
        }
        
        .resultado-grua-total {
            display: flex;
            justify-content: space-between;
            padding: 1rem;
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        #calc-resultado-grua-orc .resultado-grua-total {
            background: #f59e0b;
            color: white;
        }
        
        #calc-resultado-grua-dia .resultado-grua-total {
            background: #8b5cf6;
            color: white;
        }
        
        /* Swipe Container */
        .swipe-container {
            overflow: hidden;
            width: 100%;
            position: relative;
        }
        
        .swipe-wrapper {
            display: flex;
            transition: transform 0.3s ease-out;
            width: 200%;
        }
        
        .swipe-page {
            width: 50%;
            flex-shrink: 0;
            min-height: calc(100vh - 180px);
        }
        
        /* Indicador de páginas */
        .swipe-indicator {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem;
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .swipe-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #d1d5db;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .swipe-dot.active {
            background: #eab308;
            transform: scale(1.2);
        }
        
        /* Hint de swipe */
        .swipe-hint {
            text-align: center;
            padding: 1rem;
            color: #9ca3af;
            font-size: 0.85rem;
        }
        
        /* Tabs da Calculadora */
        .calc-tabs {
            display: flex;
            background: #f5f4f0;
            padding: 0.5rem;
            gap: 0.5rem;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .calc-tab {
            flex: 1;
            padding: 0.75rem 1rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            background: transparent;
            color: #6b7280;
        }
        
        .calc-tab:hover {
            background: #e5e7eb;
        }
        
        .calc-tab.active {
            background: #eab308;
            color: white;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }
        
        .calc-page {
            min-height: calc(100vh - 200px);
        }
        
        .calc-page.hidden {
            display: none;
        }
        
        /* Botões de velocidade */
        .speed-input-wrapper {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            padding: 0.25rem;
        }
        
        .speed-btn {
            width: 36px;
            height: 36px;
            border: none;
            background: #f5f4f0;
            color: #374151;
            font-size: 1.25rem;
            font-weight: 600;
            border-radius: 0.375rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        
        .speed-btn:active {
            background: #eab308;
            color: white;
            transform: scale(0.95);
        }
        
        .speed-input {
            width: 50px !important;
            text-align: center;
            border: none !important;
            background: transparent !important;
            font-weight: 600;
            font-size: 1rem;
            padding: 0.25rem !important;
        }
        
        .speed-unit {
            font-size: 0.8rem;
            color: #6b7280;
            margin-right: 0.25rem;
        }
        
        /* ==================== FICHAS TÉCNICAS ==================== */
        
        /* Botão Ficha Técnica */
        .btn-ficha-tecnica {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 5px;
            font-size: 0.7rem;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
            white-space: nowrap;
        }
        
        .btn-ficha-tecnica:hover {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            transform: translateY(-1px);
        }
        
        .btn-ficha-tecnica:active {
            transform: translateY(0);
        }
        
        /* Footer do card atualizado */
        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .footer-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        /* Modal Fichas Técnicas */
        .modal-fichas-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fichaFadeIn 0.2s ease;
        }
        
        .modal-fichas-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 400px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: fichaSlideUp 0.3s ease;
        }
        
        .modal-fichas-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
        }
        
        .modal-fichas-header h3 {
            margin: 0;
            font-size: 1.1rem;
            color: #1f2937;
        }
        
        .modal-fichas-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
            padding: 0;
            line-height: 1;
        }
        
        .modal-fichas-body {
            padding: 20px;
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .modal-fichas-produto {
            margin: 0 0 16px 0;
            font-weight: 600;
            color: #374151;
            text-align: center;
        }
        
        .modal-fichas-lista {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .ficha-opcao {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            background: #f5f4f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
            gap: 10px;
        }
        
        .ficha-opcao:hover {
            background: #e5e7eb;
            border-color: #3b82f6;
        }
        
        .ficha-opcao.ficha-principal {
            background: #eff6ff;
            border-color: #93c5fd;
        }
        
        .ficha-info {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            cursor: pointer;
        }
        
        .ficha-modelo {
            font-weight: 500;
            color: #1f2937;
        }
        
        .ficha-badge {
            background: #fbbf24;
            color: #78350f;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .btn-partilhar {
            background: #eab308;
            border: none;
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        .btn-partilhar:hover {
            background: #ca9a06;
            transform: scale(1.1);
        }
        
        @keyframes fichaFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fichaSlideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
