/* Кастомные стили поверх Tailwind */
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);
}

.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); }