/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 70px;
    z-index: 1000;
}

/* Левая часть шапки (меню) */
.header-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Правая часть шапки (корзина и логотип) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Кнопка корзины */
.cart-btn {
    padding: 8px 15px;
    background: deeppink;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: #ff1493;
}

.cart-count {
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Логотип */
.logo-img {
    width: 140px;
    height: auto;
}

/* Основное меню */
.menu ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu ul li {
    position: relative;
    margin-right: 20px;
}

.menu ul li:last-child {
    margin-right: 0;
}

.menu ul li a {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding: 15px;
    transition: color 0.3s;
    text-decoration: none;
}

.menu ul li a:hover {
    color: deeppink;
}

/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: fixed;
    white-space: nowrap;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 1200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 30px;
    border-radius: 0 0 10px 10px;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.menu ul li:hover .dropdown-content {
    display: grid;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-column a {
    display: block;
    color: #fff;
    padding: 8px 0;
    font-size: 16px;
    transition: color 0.3s;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.dropdown-column a:hover {
    color: deeppink;
    text-decoration: underline;
}

.h {
    color: rgb(238, 0, 91);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Кнопка меню для мобильных */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    margin-right: 15px;
}

.link-checkbox {
    display: none;
}

/* Модальное окно корзины */
#cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#cart-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#cart-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-name {
    flex: 1;
    font-size: 16px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.cart-item-qty {
    margin: 0 15px;
    color: #666;
    min-width: 60px;
    text-align: center;
}

.cart-item-price {
    font-weight: bold;
    color: #333;
    min-width: 100px;
    text-align: right;
}

.cart-item-plus, 
.cart-item-minus {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-plus:hover, 
.cart-item-minus:hover {
    background: #e0e0e0;
}

.cart-edit-notice {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.cart-total {
    text-align: right;
    font-size: 18px;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.close-button {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.checkout-button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .dropdown-content {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }
    
    .menu-button {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: #333;
        transition: left 0.3s;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu ul {
        flex-direction: column;
    }
    
    .menu ul li {
        width: 100%;
        margin-right: 0;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .link-checkbox:checked ~ .dropdown-content {
        display: grid;
    }
}




.mediter-shop-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
}

/* Заголовок и описание */
.mediter-shop-page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 15px;
}

.mediter-shop-page-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Сетка карточек */
.mediter-shop-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Стили карточек */
.mediter-shop-page-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mediter-shop-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mediter-shop-page-card img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.mediter-shop-page-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    color: #000;
}

/* Последняя строка с 2 карточками */
.mediter-shop-page-last-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.mediter-shop-page-last-row .mediter-shop-page-card {
    width: calc(33.333% - 15px);
}