* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
body { font-family: 'Cairo', sans-serif; background-color: #f8f9ff; }
.font-sora { font-family: 'Cairo', sans-serif; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8f9ff; }
::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ===== NAV LINK ===== */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: currentColor; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* ===== CURSOR EFFECTS ===== */
.cursor-dot { position: fixed; width: 8px; height: 8px; background: #0ea5e9; border-radius: 50%; pointer-events: none; z-index: 99999; mix-blend-mode: difference; transition: transform 0.1s ease; }
.cursor-ring { position: fixed; width: 40px; height: 40px; border: 1.5px solid rgba(14, 165, 233, 0.5); border-radius: 50%; pointer-events: none; z-index: 99998; transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.15s ease; }
.cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(14, 165, 233, 0.8); background: rgba(14, 165, 233, 0.06); }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ===== LOADER ===== */
.logo-loader-wrapper { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.logo-loader-center { position: relative; z-index: 10; animation: logo-scale-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; }
.logo-loader-center img { width: 110px; height: 110px; object-fit: contain; border-radius: 18px; animation: logo-shimmer 2.5s ease-in-out 1s infinite; }
@keyframes logo-scale-in { 0% { transform: scale(0.15); opacity: 0; } 50% { transform: scale(1.08); opacity: 1; } 70% { transform: scale(0.95); } 100% { transform: scale(1); opacity: 1; } }
@keyframes logo-shimmer { 0%, 100% { filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3)) brightness(1); } 50% { filter: drop-shadow(0 0 35px rgba(14, 165, 233, 0.8)) brightness(1.2) drop-shadow(0 0 60px rgba(13, 148, 136, 0.4)); } }
.orbit-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1.5px dashed rgba(14, 165, 233, 0.2); animation: orbit-spin 10s linear infinite; }
.orbit-bracket { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; animation: bracket-float 2.5s ease-in-out infinite; }
.orbit-bracket svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4)); }
.orbit-ring-2 { position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 1px dashed rgba(13, 148, 136, 0.15); animation: orbit-spin-reverse 14s linear infinite; }
.orbit-bracket-2 { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; animation: bracket-float 3s ease-in-out 0.8s infinite; }
.orbit-bracket-2 svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(13, 148, 136, 0.4)); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes bracket-float { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.18); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.loader-text { animation: float 2s ease-in-out infinite; }
.loader-dots span { display: inline-block; width: 6px; height: 6px; background: #006591; border-radius: 50%; animation: loader-dot 1.4s ease-in-out infinite; }
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-dot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1.2); opacity: 1; } }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(50px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.85); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.scale-in.visible { opacity: 1; transform: scale(1); }
.clip-up { clip-path: inset(100% 0 0 0); transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.clip-up.visible { clip-path: inset(0 0 0 0); }

/* ===== HERO TEXT STAGGER ===== */
.hero-text>* { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.hero-text.active>*:nth-child(1) { transition-delay: 0ms; }
.hero-text.active>*:nth-child(2) { transition-delay: 120ms; }
.hero-text.active>*:nth-child(3) { transition-delay: 240ms; }
.hero-text.active>*:nth-child(4) { transition-delay: 360ms; }
.hero-text.active>* { opacity: 1; transform: translateY(0); }

/* ===== KEN BURNS ===== */
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.kenburns { animation: kenburns 7s ease-out forwards; }

/* ===== PARALLAX ===== */
@media (min-width: 1024px) { .parallax-bg { background-attachment: fixed; } }

/* ===== GRADIENT SHIFT ===== */
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== PERSPECTIVE / TILT ===== */
.perspective-container { perspective: 1200px; }
.tilt-card { transition: transform 0.15s ease-out, box-shadow 0.3s ease; transform-style: preserve-3d; will-change: transform; }
.tilt-card .tilt-inner { transform: translateZ(30px); }

/* ===== PRODUCT SLIDER ===== */
@keyframes slide-loop { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.product-slider { animation: slide-loop 45s linear infinite; will-change: transform; }
.product-slider:hover { animation-play-state: paused; }
.product-slider-wrapper { -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%); }
.product-panel { transform: translateY(100%); transition: transform 0.4s ease-out; }
.product-card:hover .product-panel { transform: translateY(0); }
.product-card:hover .product-name { opacity: 0; transform: translateY(-20px); }
.product-name { transition: opacity 0.3s ease, transform 0.3s ease; }
.product-card:hover .product-img { transform: scale(1.08); }
.product-img { transition: transform 0.5s ease; }

/* ===== CATEGORY CARD ===== */
.category-card { transform: translateY(0); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13, 28, 46, 0.25); }
.category-card .category-img { transition: transform 0.6s ease; }
.category-card:hover .category-img { transform: scale(1.1); }
.category-card .category-link { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.category-card:hover .category-link { opacity: 1; transform: translateY(0); }
.category-card:hover .category-overlay { background: rgba(13, 28, 46, 0.62); }
.category-card .category-icon { opacity: 0; transform: scale(0.8); transition: opacity 0.3s ease, transform 0.3s ease; }
.category-card:hover .category-icon { opacity: 1; transform: scale(1); }
.category-overlay { transition: background 0.3s ease; }

/* ===== HERO SLIDER ===== */
.hero-slide { position: absolute; inset: 0; will-change: transform, opacity; opacity: 0; z-index: 0; pointer-events: none; transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide.active-slide { opacity: 1; transform: translateX(0) !important; z-index: 2; pointer-events: auto; }
.hero-slide.pos-right { transform: translateX(100%); }
.hero-slide.pos-left { transform: translateX(-100%); }

/* ===== JOURNEY TABS ===== */
.journey-tab { background: rgba(14, 165, 233, 0.08); color: #475569; border: 1px solid transparent; }
.journey-tab:hover { background: rgba(14, 165, 233, 0.15); color: #0284C7; }
.journey-tab.active { background: #0ea5e9; color: white; box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3); }

/* ===== MASONRY ===== */
.masonry { column-count: 1; column-gap: 16px; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 16px; }

/* ===== BACK TO TOP ===== */
#back-to-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #006591); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 80; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 8px 24px rgba(14,165,233,0.3); border: none; }
#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 12px 32px rgba(14,165,233,0.4); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px); background: linear-gradient(135deg, #0d1c2e, #006591); color: white; padding: 16px 28px; border-radius: 16px; z-index: 99999; font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,0.3); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease; opacity: 0; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== PRODUCT CATALOG STYLES ===== */
.filter-section-header { cursor: pointer; user-select: none; }
.filter-section-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.filter-section-content.open { max-height: 400px; }
.filter-chevron { transition: transform 0.3s ease; }
.filter-chevron.rotated { transform: rotate(180deg); }
.filter-checkbox-custom { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; transition: color 0.2s; }
.filter-checkbox-custom:hover { color: #0ea5e9; }
.filter-checkbox-custom input[type="checkbox"] { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #bec8d2; appearance: none; -webkit-appearance: none; cursor: pointer; transition: all 0.2s; position: relative; flex-shrink: 0; }
.filter-checkbox-custom input[type="checkbox"]:checked { background: #0ea5e9; border-color: #0ea5e9; }
.filter-checkbox-custom input[type="checkbox"]:checked::after { content: ''; position: absolute; top: 2px; left: 5px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: #eff4ff; font-size: 11px; font-weight: 700; color: #0ea5e9; padding: 0 7px; }
.catalog-card { background: white; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 2px 12px rgba(13,28,46,0.06); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); opacity: 1; transform: scale(1); }
.catalog-card:hover { box-shadow: 0 16px 48px rgba(13,28,46,0.14); transform: translateY(-6px); }
.catalog-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.catalog-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.catalog-card:hover .card-img-wrap img { transform: scale(1.07); }
.catalog-card .category-pill { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; backdrop-filter: blur(8px); }
.pill-brackets { background: rgba(14,165,233,0.9); color: white; }
.pill-wires { background: rgba(13,148,136,0.9); color: white; }
.pill-instruments { background: rgba(245,158,11,0.9); color: white; }
.pill-bands { background: rgba(0,101,145,0.9); color: white; }
.pill-elastics { background: rgba(139,92,246,0.9); color: white; }
.pill-accessories { background: rgba(34,197,94,0.9); color: white; }
.cert-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.cert-fda { background: #DCFCE7; color: #16A34A; }
.cert-iso { background: #f0f9ff; color: #0284C7; }
.cert-ce { background: #FEF3C7; color: #D97706; }
.cert-sgs { background: #F3E8FF; color: #9333EA; }
.material-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; background: #f1f5f9; color: #475569; }
.filter-drawer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(13,28,46,0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.filter-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.filter-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 71; width: 300px; max-width: 85vw; background: white; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto; box-shadow: 8px 0 32px rgba(13,28,46,0.15); }
.filter-drawer.active { transform: translateX(0); }
.active-filter-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #0ea5e9; color: white; animation: pillIn 0.25s ease; }
.active-filter-pill button { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; color: white; font-size: 10px; line-height: 1; }
@keyframes pillIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.view-btn { transition: all 0.2s; }
.view-btn.active { background: #0ea5e9; color: white; }
.view-btn:not(.active):hover { background: #eff4ff; }
.product-grid.list-view { grid-template-columns: 1fr !important; }
.product-grid.list-view .catalog-card { display: flex; flex-direction: row; }
.product-grid.list-view .card-img-wrap { width: 240px; min-width: 240px; aspect-ratio: auto; height: auto; }
.product-grid.list-view .card-img-wrap img { height: 100%; }
.sort-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
