body { background-color: #fafafa; color: #18181b; }

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

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.cart-panel { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cart-panel.open { transform: translateX(0); }

.overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.loader {
    border: 2px solid #f4f4f5;
    border-top: 2px solid #18181b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
    background: white; border-radius: 20px; max-width: 600px; width: 100%;
    max-height: 85vh; overflow-y: auto; padding: 24px; position: relative;
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.open .modal-content { transform: scale(1); }

@keyframes loading-bar {
    0% { width: 0%; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 0%; margin-left: 100%; }
}
.loading-bar { animation: loading-bar 2s ease-in-out infinite; }

.wave-pulse {
    animation: wavePulse 2s ease-in-out infinite;
    transform-origin: center;
}
@keyframes wavePulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-2px) scale(1.05); opacity: 0.9; }
}

.lazy-img {
    background: linear-gradient(135deg, #f4f4f5 0%, #e4e4e7 50%, #f4f4f5 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* Кнопка скидки 10% OFF */
.sale-badge {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: salePulse 2.5s ease-in-out infinite;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.sale-badge-text {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .sale-badge-text {
        background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.sale-badge:hover { border-color: rgba(212, 175, 55, 0.6); }

@keyframes salePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(212, 175, 55, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(212, 175, 55, 0);
        transform: scale(1.03);
    }
}

@media (max-width: 380px) {
    .sale-badge { padding: 6px 10px; }
    .sale-badge-text { font-size: 11px; }
}

#saleModal .modal-content { max-width: 28rem; }