/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.language-selector select {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.language-selector option {
    background: #2d5016;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Banners */
.main-banners {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.banner-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.banner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.banner-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    padding: 25px;
}

.banner-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2d5016;
}

.banner-content p {
    color: #666;
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    padding: 40px 0;
    background: white;
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    font-weight: bold;
    min-width: 200px;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.menu-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.menu-btn:hover {
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.book-btn {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.book-btn:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Menu Section */
.menu-section, .products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.menu-section h2, .products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d5016;
}

.menu-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.menu-item, .product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover, .product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dish-image, .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image {
    height: 250px;
}

.dish-image svg, .product-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-info-overlay, .product-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.menu-item:hover .menu-info-overlay,
.product-item:hover .product-info-overlay {
    opacity: 1;
}

.menu-info-overlay h4, .product-info-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.menu-info-overlay p, .product-info-overlay p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
}

.quantity-selector {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.quantity-selector input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: center;
}

/* Order/Purchase Banners */
.order-banner, .purchase-banner {
    text-align: center;
    padding: 40px 0;
}

.order-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    font-size: 1.5rem;
    padding: 20px 50px;
}

.buy-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    font-size: 1.5rem;
    padding: 20px 50px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.buy-btn:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Gallery Styles */
.gallery-section {
    padding: 60px 0;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2d5016;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #27ae60;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item svg {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: white;
}

.upload-instructions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.upload-instructions h3 {
    color: #2d5016;
    margin-bottom: 15px;
}

.upload-instructions ul {
    margin-left: 20px;
}

.upload-instructions li {
    margin-bottom: 10px;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 25px;
    color: #2d5016;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #27ae60;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .banners-grid {
        grid-template-columns: 1fr;
    }
    
    .buttons-row {
        flex-direction: column;
        align-items: center;
    }
    
    .main-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .menu-grid, .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .menu-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Стили для счётчика количества */
.quantity-selector {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

#productQuantity {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #45a049;
}

/* Уведомления */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Модальное окно */
.modal-product {
  display: flex;
  gap: 30px;
}

.modal-product img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.modal-product-info {
  flex: 1;
}

.modal-price {
  font-size: 24px;
  font-weight: bold;
  color: #4CAF50;
  margin: 10px 0;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

/* Плавающая кнопка "На главную" */
.floating-home-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-home-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #2d5016;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-home-btn a:hover {
    background: #3a6b1d;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

}
/* Адаптация панелей информации о товарах/блюдах */
.menu-info-overlay, .product-info-overlay {
    padding: 15px;
    overflow-y: auto;
    max-height: 100%;
}

.menu-info-overlay h4, .product-info-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.menu-info-overlay p, .product-info-overlay p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
    word-wrap: break-word;
}

/* Компактные панели заказа */
.purchase-banner, .order-banner {
    padding: 20px 0;
}

.compact-order-panel {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.order-summary {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.order-total {
    font-weight: bold;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

.compact-order-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .menu-info-overlay, .product-info-overlay {
        padding: 10px;
    }
    
    .menu-info-overlay h4, .product-info-overlay h4 {
        font-size: 1.1rem;
    }
    
    .menu-info-overlay p, .product-info-overlay p {
        font-size: 0.9rem;
        max-height: 100px;
    }
    
    .menu-info-overlay, .product-info-overlay {
        justify-content: flex-start;
        text-align: left;
    }
    
    .compact-order-panel {
        margin: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .menu-item, .product-item {
        margin: 0 10px;
    }
    
    .menu-info-overlay p, .product-info-overlay p {
        max-height: 80px;
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
}
/* Адаптация модального окна для мобильных устройств */
@media (max-width: 768px) {
  .modal {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
    overflow-y: auto;
  }
  
  .modal-content {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .modal-product img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
  }
  
  .modal-product-info {
    width: 100%;
    text-align: left;
  }
  
  .modal-product-info h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .modal-product-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    max-height: 150px;
    overflow-y: auto;
  }
  
  .modal-price {
    font-size: 1.5rem !important;
    text-align: center;
    margin: 10px 0 !important;
  }
  
  .quantity-selector {
    justify-content: center;
    margin: 15px 0;
  }
  
  .add-to-cart-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
  
  .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .modal-content {
    padding: 12px;
    width: 98%;
  }
  
  .modal-product img {
    width: 100px !important;
    height: 100px !important;
  }
  
  .modal-product-info h2 {
    font-size: 1.1rem;
  }
  
  .modal-product-info p {
    font-size: 0.85rem;
    max-height: 120px;
  }
  
  .modal-price {
    font-size: 1.3rem !important;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    width: 98%;
    margin: 2% auto;
  }
  
  .modal-product img {
    max-width: 200px;
  }
  
  #modalDescription {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
