:root {
    --primary: #0066CC;
    --primary-dark: #003366;
    --primary-light: #E8F4FD;
    --accent: #0099FF;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Button lift effect */
.btn-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 102, 204, 0.25);
}

/* Product card enhancements */
.product-card-shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card-shadow:hover {
    box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

/* Card badges */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Price tag */
.price-tag {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Mega menu hover delay */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}
.nav-dropdown.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Mega menu category icon backgrounds */
.mega-icon-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile nav overlay */
.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-panel {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-overlay.active .mobile-panel {
    transform: translateX(0);
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer {
    max-height: 600px;
}
.faq-item .arrow {
    transition: transform 0.3s ease;
}
.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* Counter animation helper */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Product gallery */
.thumb { transition: all 0.2s ease; }
.thumb.active { ring: 2px solid var(--primary); }

/* Related slider with fade shadows */
.related-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.related-slider::-webkit-scrollbar { display: none; }
.related-slider .product-card { scroll-snap-align: start; }

.slider-fade-left,
.slider-fade-right {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 5;
}
.slider-fade-left {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.slider-fade-right {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Sticky sidebar */
.sidebar-stuck { position: sticky; }

/* Lightbox */
.lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Tab panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phone pulse for floating CTA */
@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.phone-pulse { animation: phonePulse 2s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile bottom bar spacing */
@media (max-width: 1023px) {
    body { padding-bottom: 60px; }
}

/* Comparison table sticky first column */
.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.comparison-table-wrap::-webkit-scrollbar { height: 6px; }
.comparison-table-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.comparison-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.comparison-table-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.comparison-table th:first-child,
.comparison-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}
.comparison-table td:first-child {
    background: #ffffff;
    font-weight: 600;
    color: #1e293b;
}

/* Mobile: disable sticky column on very small screens to prevent layout issues */
@media (max-width: 640px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: relative;
        left: auto;
        z-index: auto;
    }
}

/* Pre-footer trust bar */
.pre-footer-bar {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print */
@media print {
    .site-header, .site-footer, .whatsapp-float, .mobile-bottom-bar, .sticky-sidebar { display: none !important; }
    main { margin: 0 !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
