html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(30, 64, 175, 0.15);
}

body {
    text-rendering: optimizeLegibility;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: color .2s;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #1e40af;
    transition: width .25s;
}

.nav-link:hover {
    color: #0f172a;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mega-menu-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.mega-menu-link {
    font-size: 13px;
    color: #64748b;
    transition: color .2s, padding-left .2s;
}

.mega-menu-link:hover {
    color: #1e40af;
    padding-left: 4px;
}

.mobile-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    border-radius: 6px;
    transition: all .2s;
}

.mobile-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mobile-sublink {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #64748b;
    border-radius: 6px;
    transition: all .2s;
}

.mobile-sublink:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-dot {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, .3);
    transition: background .3s, width .3s;
}

.hero-dot.active {
    background: #fff;
    width: 36px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp .9s cubic-bezier(.16, 1, .3, 1) forwards;
}

.animate-fade-in.delay-1 { animation-delay: .1s; }
.animate-fade-in.delay-2 { animation-delay: .25s; }
.animate-fade-in.delay-3 { animation-delay: .4s; }
.animate-fade-in.delay-4 { animation-delay: .55s; }
.animate-fade-in.delay-5 { animation-delay: .7s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    --glow-rgb: 30, 64, 175;
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

@keyframes floatBtnPress {
    0% { transform: scale(1); }
    35% { transform: scale(.8); }
    60% { transform: scale(1.15); }
    80% { transform: scale(.95); }
    100% { transform: scale(1); }
}

@keyframes floatBtnGlow {
    0% { box-shadow: 0 0 0 0 rgba(var(--glow-rgb), .6); }
    100% { box-shadow: 0 0 0 26px rgba(var(--glow-rgb), 0); }
}

.float-btn.pressed {
    animation: floatBtnPress .5s cubic-bezier(.34, 1.56, .64, 1), floatBtnGlow .75s ease-out;
}

.float-btn .ripple {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .85);
    animation: rippleEffect .8s cubic-bezier(.22, .61, .36, 1) forwards;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% { transform: scale(.25); opacity: .75; }
    100% { transform: scale(3); opacity: 0; }
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0a0a0a 0%, rgba(10, 10, 10, .9) 40%, rgba(10, 10, 10, .65) 100%);
}

.product-card {
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
}

.product-card img {
    transition: transform .5s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.cat-card {
    transition: transform .3s;
}

.cat-card:hover {
    transform: translateY(-4px);
}

.cat-card .cat-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s;
}

.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.filter-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all .2s;
    white-space: nowrap;
}

.filter-btn:hover {
    color: #0f172a;
    border-color: #cbd5e1;
}

.filter-btn.active {
    color: #fff;
    background: #0f172a;
    border-color: #0f172a;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    border: 2px solid #1e40af;
    background: #fff;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .08);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.tl-hidden {
    display: none !important;
}

.partner-logo-img {
    height: 34px;
    max-width: 92px;
    width: auto;
    object-fit: contain;
    opacity: .55;
    transition: opacity .3s;
}

@media (min-width: 640px) {
    .partner-logo-img {
        height: 50px;
        max-width: 132px;
    }
}

@media (min-width: 768px) {
    .partner-logo-img {
        height: 66px;
        max-width: 174px;
    }
}

.partner-logo-img:hover {
    opacity: 1;
}
