/* Основные стили для страницы морепродуктов */
:root {
    --primary-yellow: #FFD700;
    --primary-black: #1A1A1A;
    --dark-yellow: #E6C200;
    --light-black: #2D2D2D;
    --gray-dark: #333333;
    --gray-light: #555555;
    --text-light: #F5F5F5;
    --text-gray: #AAAAAA;
    --ocean-blue: #1E3A5F;
    --sea-green: #2E8B57;
    --coral-red: #FF6B6B;
    --shrimp-pink: #FFA07A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
    background-color: var(--primary-black);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
}

/* Боковая панель навигации */
.sidebar {
    width: 280px;
    background-color: var(--light-black);
    border-right: 2px solid var(--primary-yellow);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-dark);
}

.min-order {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.min-order i {
    color: var(--primary-yellow);
}

.min-order strong {
    color: var(--primary-yellow);
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--primary-yellow);
}

.sidebar-nav {
    padding: 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.5rem;
}

.nav-section a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border-left: 3px solid var(--primary-yellow);
}

.nav-section a i {
    width: 20px;
    text-align: center;
}

.featured-item-link {
    background: linear-gradient(45deg, var(--ocean-blue), var(--sea-green)) !important;
    border-left: 3px solid var(--primary-yellow) !important;
}

.featured-item-link:hover {
    background: linear-gradient(45deg, var(--sea-green), var(--ocean-blue)) !important;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-dark);
    margin-top: auto;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary-yellow);
    width: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-yellow);
}

/* Основной контент */
.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
    margin-left: 280px;
}

/* Шапка */
.main-header {
    background-color: var(--light-black);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--primary-yellow);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidebar-toggle:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.black-text {
    color: var(--text-light);
}

.gold-text {
    color: var(--primary-yellow);
}

.tagline {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.cart i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.cart-count {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-total {
    font-weight: 600;
    color: var(--primary-yellow);
}

.reserve-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.reserve-btn:hover {
    background-color: var(--dark-yellow);
}

/* Заголовок морепродуктов */
.seafood-header {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('https://images.unsplash.com/photo-1519708227418-c8fd9a32b7a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.seafood-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.seafood-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.seafood-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.seafood-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.seafood-info i {
    color: var(--primary-yellow);
}

/* Контейнер морепродуктов */
.seafood-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--light-black);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-dark);
    position: relative;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ocean-blue), var(--sea-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-badge.hot {
    background-color: var(--coral-red);
    color: white;
}

.product-badge.new {
    background-color: var(--shrimp-pink);
    color: white;
}

.product-badge.fresh {
    background-color: var(--sea-green);
    color: white;
}

.product-badge.premium {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.product-badge.vip {
    background-color: var(--ocean-blue);
    color: white;
}

.product-badge.exclusive {
    background: linear-gradient(45deg, var(--primary-yellow), var(--coral-red));
    color: white;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
    min-height: 60px;
}

.product-card p {
    padding: 0 1.2rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 70px;
}

.price {
    padding: 1.2rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-yellow);
    text-align: right;
}

.buy-btn {
    width: 100%;
    padding: 1rem;
    background-color: rgba(30, 58, 95, 0.2);
    color: var(--primary-yellow);
    border: none;
    border-top: 1px solid var(--gray-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background-color: var(--ocean-blue);
    color: white;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--light-black);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 2px solid var(--primary-yellow);
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-yellow);
}

.modal-header h2 {
    color: var(--primary-yellow);
    font-size: 2rem;
}

.close {
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: var(--text-light);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
}

.modal-price {
    font-size: 2rem;
    color: var(--primary-yellow);
    text-align: right;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.modal-order-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.modal-order-btn:hover {
    background-color: var(--dark-yellow);
}

/* Модальное окно корзины */
.cart-modal-content {
    background-color: var(--light-black);
    margin: 2% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    border: 2px solid var(--primary-yellow);
    animation: modalAppear 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-dark);
}

.cart-modal-header h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--primary-yellow);
}

.cart-modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
    width: 100%;
    padding: 3rem 0;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.2rem;
}

.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-dark);
}

.cart-total-sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-price {
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-gold {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.btn-gold:hover {
    background-color: var(--dark-yellow);
}

.min-order-info {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.min-order-info i {
    color: var(--primary-yellow);
}

/* Стили для элементов корзины */
.cart-items {
    width: 100%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--gray-dark);
}

.cart-item-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-yellow);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: var(--light-black);
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 350px;
    display: none;
}

.notification.show {
    transform: translateX(0);
    display: block;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification-content i {
    color: var(--primary-yellow);
    font-size: 1.3rem;
}

.notification-content span {
    color: var(--text-light);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .seafood-header h1 {
        font-size: 2.8rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .cart span:not(.cart-count) {
        display: none;
    }
    
    .reserve-btn span {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .seafood-header {
        padding: 3rem 1rem;
    }
    
    .seafood-header h1 {
        font-size: 2.2rem;
    }
    
    .seafood-header p {
        font-size: 1rem;
    }
    
    .seafood-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .seafood-container {
        padding: 0 1rem 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .cart-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    /* Добавить в конец файла style.css (после медиа-запросов) */

/* Классы для main-unified.js */
.sidebar.open {
    transform: translateX(0);
}

.main-content.shifted {
    margin-left: 280px;
}

/* Индикатор корзины */
.cart-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--light-black);
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    padding: 10px 15px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.cart-indicator:hover {
    transform: scale(1.05);
}

.cart-indicator-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-indicator-content i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.cart-count-indicator {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-total-indicator {
    color: var(--primary-yellow);
    font-weight: bold;
}

/* Уведомление */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light-black);
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: var(--primary-yellow);
}

/* Модальное окно из main-unified.js */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    background: var(--light-black);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    padding: 30px;
    border: 2px solid var(--primary-yellow);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-yellow);
}

.product-modal-header h2 {
    color: var(--primary-yellow);
    font-size: 1.8rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary-yellow);
}

.modal-description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-price {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    font-weight: bold;
    text-align: right;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 15px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

.add-to-cart-btn:hover {
    background: var(--dark-yellow);
}

/* Удаляем наши старые модальные окна, так как используем те из main-unified.js */
#modal, #cart-modal {
    display: none !important;
}

/* Отключаем наши старые уведомления */
.notification[style*="display: block"] {
    display: none !important;
}

/* Адаптивность для индикатора корзины */
@media (max-width: 768px) {
    .cart-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .cart-total-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-modal-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .product-modal-header h2 {
        font-size: 1.4rem;
    }
}
}