
/* Glass Morphism Base */
.navbar-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(2, 52, 63, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Liquid Glass Effect on Scroll */
.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px 0 rgba(2, 52, 63, 0.15);
}

/* Glass Button */
.glass-button {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(170, 255, 1, 0.3), transparent);
    transition: left 0.5s ease;
}

.glass-button:hover::before {
    left: 100%;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 255, 1, 0.2);
}

/* Logo Glass Effect */
.logo-glass-effect {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(170, 255, 1, 0.2), rgba(2, 52, 63, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 255, 1, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-glass-effect:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(170, 255, 1, 0.3);
}

/* Nav Links */
.nav-link {
    position: relative;
    padding: 8px 16px;
    color: var(--c3);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c2), var(--c1));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--c1);
    background: rgba(170, 255, 1, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--c1);
    background: rgba(170, 255, 1, 0.15);
}

.nav-link.active::before {
    width: 80%;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--c2), var(--c1));
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(170, 255, 1, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Search Bar Glass */
.search-glass-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px 48px 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--c2);
    box-shadow: 0 0 0 4px rgba(170, 255, 1, 0.1);
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-overlay.active .mobile-sidebar {
    right: 0;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-menu {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--c3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(170, 255, 1, 0.1);
    border-color: rgba(170, 255, 1, 0.3);
    transform: translateX(-4px);
    color: var(--c1);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(170, 255, 1, 0.2), rgba(2, 52, 63, 0.1));
    border-color: rgba(170, 255, 1, 0.4);
    color: var(--c1);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

/* Liquid Glass Animation */
@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(170, 255, 1, 0.05),
        transparent,
        rgba(2, 52, 63, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: liquid-flow 8s ease-in-out infinite;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-glass {
        background: rgba(255, 255, 255, 0.85);
    }
}


/* product style */
* { font-family: 'Vazirmatn', sans-serif; }
:root {
    --c1: #02343f;
    --c2: #aaff01;
    --c3: #212121;
    --c4: #e6e6e6;
}
.gradient-bg {
    background: linear-gradient(135deg, var(--c1), var(--c3));
}
.gradient-text {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
}
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.filter-active {
    background-color: var(--c2);
    color: var(--c1);
    border-color: var(--c2);
}
.price-tag {
    background-color: var(--c2);
    color: var(--c1);
}
.badge-new {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.c1-bg { background-color: var(--c1); }
.c2-bg { background-color: var(--c2); }
.c3-bg { background-color: var(--c3); }
.c4-bg { background-color: var(--c4); }
.c1-text { color: var(--c1); }
.c2-text { color: var(--c2); }
.c3-text { color: var(--c3); }