* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Динамичный светло-оранжевый градиент */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(-45deg, #ff5500, #fa9358, #f56803, #f0b37c);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-icon:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: var(--transition);
    padding: 80px 2rem 2rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #ff9966 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.feature i {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cart:hover {
    background: #3dbcb4;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Menu Section */
.menu-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dish-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dish-image {
    height: 200px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dish-content {
    padding: 1.5rem;
}

.dish-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.dish-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
}

.about-feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.about-image img {
    width: 165%;
    max-width: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-left: -20%;
}

/* Reviews Section */
.reviews-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

.reviewer-info h4 {
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #ffc107;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Contacts Section */
.contacts-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-note {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Modal Windows */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-color);
}

/* Cart Items */
.cart-items {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions button {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-actions button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.cart-total {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Forms */
.order-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Empty States */
.empty-menu {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}

.empty-menu i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-menu h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    z-index: 4000;
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease;
    font-weight: 600;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Улучшенная адаптивность для маленьких экранов и телефонов */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image img {
        width: 100%;
        margin-left: 0;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-actions {
        gap: 0.8rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dish-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .dish-content {
        padding: 1rem;
    }
    
    .dish-name {
        font-size: 1.1rem;
    }
    
    .dish-price {
        font-size: 1.3rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .cart-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .dish-card {
        min-height: auto;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Стили для ориентации телефона */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .mobile-menu {
        padding: 60px 1rem 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.7rem;
        font-size: 1rem;
    }
}

/* Стили для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .dish-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background: transparent;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .cart-icon:hover {
        background: transparent;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature i {
    color: var(--secondary-color);
}

/* Адаптивность для герой-секции */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 80vh;
    }
}

/* Вкладки дней недели */
.days-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.day-tab {
    background: white;
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-tab:hover {
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.day-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.today-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Адаптивность для вкладок */
@media (max-width: 768px) {
    .days-tabs {
        gap: 0.3rem;
    }
    
    .day-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .days-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .day-tab {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Стили для системы контроля остатков */
.stock-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.in-stock {
    color: #27ae60;
}

.low-stock {
    color: #f39c12;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: bold;
}

.btn-cart.disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
    transform: none !important;
}

.btn-cart.disabled:hover {
    background: #95a5a6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.dish-content {
    position: relative;
}

/* Стили для вложенных вкладок категорий */
.categories-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--accent-color);
    color: var(--dark-color);
}

.category-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.categories-content {
    margin-top: 1rem;
}

.category-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.category-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-category {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.empty-category i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Адаптивность для вкладок категорий */
@media (max-width: 768px) {
    .categories-tabs {
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Стили для системы контроля остатков */
.stock-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.in-stock {
    color: #27ae60;
    border: 1px solid #27ae60;
}

.low-stock {
    color: #f39c12;
    border: 1px solid #f39c12;
}

.out-of-stock {
    color: #e74c3c;
    border: 1px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.btn-cart.disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
    transform: none !important;
}

.btn-cart.disabled:hover {
    background: #95a5a6 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Улучшенные стили для изображений блюд */
.dish-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dish-image:has(img[src*="data:image/svg+xml"]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-image:has(img[src*="data:image/svg+xml"])::before {
    content: "🍽️";
    font-size: 3rem;
    opacity: 0.5;
}

/* Стили для изображений блюд на сайте */
.dish-card .dish-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.dish-card .dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dish-card .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
}

.dish-card .no-image i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Постоянно квадратные карточки */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
    justify-content: center;
    gap: 2rem;
}

.dish-card {
    min-height: 420px;
    max-width: 320px;
    margin: 0 auto;
}

.dish-card .dish-image {
    height: 220px;
    padding: 20px;
}

.dish-card .dish-image img {
    max-height: 180px;
}

.dish-content {
    min-height: 200px;
    padding: 1.5rem;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .dish-card {
        min-height: 380px;
        max-width: 100%;
    }
}

/* Стили для кнопок гарниров */
.add-garnish-btn {
    background: #4ecdc4 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    min-width: 80px !important;
    justify-content: center !important;
}

.add-garnish-btn:hover {
    background: #3dbcb4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3) !important;
}

.add-garnish-btn:active {
    transform: translateY(0) !important;
}

.add-garnish-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Улучшенные стили для секции гарниров */
.garnishes-section {
    margin-top: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.garnishes-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.garnishes-title i {
    color: #4ecdc4;
}

.garnishes-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.garnish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.garnish-item:hover {
    border-color: #4ecdc4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.garnish-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.garnish-name {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.garnish-price {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 700;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .garnish-item {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1rem;
    }
    
    .garnish-info {
        justify-content: center;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .add-garnish-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .garnishes-section {
        padding: 1rem;
    }
}