/* QUANTIX CORE — Clinical Light theme utilities */
html, body { max-width: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.technical-grid {
    background-image:
        linear-gradient(to right, rgba(229, 231, 235, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(229, 231, 235, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.surgical-grid {
    background-image: radial-gradient(#e5e7eb 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

.clinical-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.clinical-shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.border-technical {
    border: 1px solid #E5E7EB;
}

.status-dot, .amber-status-dot {
    width: 6px;
    height: 6px;
    background-color: #f59e0b;
    border-radius: 50%;
    display: inline-block;
}

.amber-dot::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #F59E0B;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.btn-clinical {
    background: #1F2937;
    color: #fff;
}
.btn-clinical:hover { opacity: 0.9; }

.btn-hover-effect:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.rim-light {
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

.amber-glow:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Search overlay — clinical light */
.search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(248, 249, 250, 0.97);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d8c3ad;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}
.search-input-wrapper input {
    width: 100%;
    padding: 15px;
    font-size: 1.25rem;
    background: transparent;
    border: none;
    outline: none;
    color: #191c1d;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-close-btn {
    position: absolute;
    top: 40px; right: 40px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #855300;
    cursor: pointer;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f8f9fa; }
::-webkit-scrollbar-thumb { background: #d1d5db; }
::-webkit-scrollbar-thumb:hover { background: #1F2937; }

input:focus {
    outline: none;
}

.crosshair { position: relative; }
.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #855300;
    border-style: solid;
    pointer-events: none;
}
.crosshair-tl::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.crosshair-br::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.scanline {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #f59e0b, transparent);
    position: absolute;
    animation: qx-scan 4s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}
@keyframes qx-scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.hud-scanline {
    background: linear-gradient(to bottom, transparent 50%, rgba(245, 158, 11, 0.05) 50.5%, transparent 51%);
    background-size: 100% 4px;
    pointer-events: none;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.scan-effect::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.05), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@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;
    }
    .qx-reveal { opacity: 1 !important; transform: none !important; }
}

html { scroll-behavior: smooth; }

body.qx-page-loading { overflow: hidden; }
body.qx-page-loading main { opacity: 0; }
body.qx-page-ready main {
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal */
.qx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.qx-reveal.qx-visible {
    opacity: 1;
    transform: translateY(0);
}
.qx-reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.qx-reveal-left.qx-visible { opacity: 1; transform: translateX(0); }
.qx-reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.qx-reveal-right.qx-visible { opacity: 1; transform: translateX(0); }
.qx-reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.qx-reveal-scale.qx-visible { opacity: 1; transform: scale(1); }
.qx-reveal-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.qx-reveal-fade.qx-visible { opacity: 1; }

.qx-delay-1 { transition-delay: 0.08s; }
.qx-delay-2 { transition-delay: 0.16s; }
.qx-delay-3 { transition-delay: 0.24s; }
.qx-delay-4 { transition-delay: 0.32s; }
.qx-delay-5 { transition-delay: 0.40s; }
.qx-delay-6 { transition-delay: 0.48s; }

/* Hero entrance */
@keyframes qx-hero-rise {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.qx-hero-in {
    animation: qx-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.qx-hero-in-d1 { animation-delay: 0.12s; }
.qx-hero-in-d2 { animation-delay: 0.24s; }
.qx-hero-in-d3 { animation-delay: 0.36s; }
.qx-hero-in-d4 { animation-delay: 0.48s; }

/* Nav scroll state */
#qx-nav {
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#qx-nav.qx-nav-scrolled {
    background: rgba(10, 10, 11, 0.95) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Search overlay motion — merged above */

/* Mobile nav slide */
#mobile-nav-panel {
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: none;
}
#mobile-nav-panel.qx-nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Card hover lift */
.qx-card-hover {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.qx-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Button press + shimmer */
.qx-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.qx-btn:active { transform: scale(0.97); }
.qx-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.qx-btn:hover::after { transform: translateX(100%); }

/* Cart badge bump */
@keyframes qx-badge-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.qx-badge-bump { animation: qx-badge-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Counter tick */
.qx-counter { font-variant-numeric: tabular-nums; }

/* Toast slide */
#toast.qx-toast-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Progress scan bar */
@keyframes qx-progress-scan {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.qx-progress-scan {
    position: relative;
    overflow: hidden;
}
.qx-progress-scan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.35), transparent);
    animation: qx-progress-scan 2.5s ease-in-out infinite;
}

/* Ambient pulse dot */
@keyframes qx-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
.qx-pulse-dot { animation: qx-pulse-dot 2s ease-in-out infinite; }

/* Page progress bar */
#qx-scroll-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #855300, #F59E0B);
    z-index: 60;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Image reveal on load */
.qx-img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.qx-img-reveal.qx-visible { clip-path: inset(0 0 0 0); }

/* Legacy aos compat */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-aos="fade-up"].qx-visible,
[data-aos="fade-up"].opacity-100 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Policy / content pages */
.qx-prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffc174;
}
.qx-prose p, .qx-prose li {
    color: #d8c3ad;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.qx-prose ul { list-style: none; padding-left: 0; }
.qx-prose ul li::before {
    content: '■';
    color: #f59e0b;
    margin-right: 0.5rem;
    font-size: 0.5rem;
    vertical-align: middle;
}
