:root {
    --primary: #ff5a00;
    --primary-dark: #e04d00;
    --primary-light: rgba(255, 90, 0, 0.1);
    --secondary: #2c3e50;
    --accent: #f8c43a;
    --light: #f9f9f9;
    --dark: #222831;
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f1c40f;
    --text-light: #f9f9f9;
    --text-dark: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, var(--light), #f5f5f5);
    min-height: 100vh;
}

h1, h2, h3, h4, p {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-title {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.modifier-list {
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.modifier-list::-webkit-scrollbar {
    width: 8px;
}

.modifier-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modifier-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.modifier-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.modifier-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.modifier-label:hover {
    background: #f5f5f5;
}

.modifier-label input {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-confirm,
.modal-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.modal-confirm {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 90, 0, 0.3);
}

.modal-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 90, 0, 0.4);
}

.modal-cancel {
    background: var(--light);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.modal-cancel:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Additional Styles */
.logo {
    transition: all var(--transition-medium);
}

.bounce-effect {
    animation: bounce 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Floating buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(20px);
}

.floating-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 90, 0, 0.4);
}

.floating-btn i {
    font-size: 24px;
}

.floating-btn.scroll-top {
    bottom: 100px; /* Размещаем выше кнопки корзины */
    z-index: 90; /* Меньший z-index, чтобы не перекрывать корзину */
}

.floating-cart-btn .cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--text-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Медиа-запросы для оставшихся элементов */
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn i {
        font-size: 20px;
    }

    .floating-btn.scroll-top {
        bottom: 90px; /* Учитываем меньший размер кнопки корзины */
    }

    .floating-cart-btn .cart-counter {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
