.bodym {
    font-family: Arial, sans-serif;
    /* background: linear-gradient(135deg, #ff4e4e, #ff9100, #f3f021); */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: absolute;
}
.product-card {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}
/* .product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    position: relative;
    max-width: 800px;
    top: -60%;
    width: 90%;
    overflow: hidden;
    z-index: 1001; 
    
 } */
.product-card.hidden {
    display: none;
}
.product-image {
    background-color: #222;
    width: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 20px; */
    overflow: hidden;
}
.image-footer {
    display: none;
}
.product-image img {
    max-width: 100%;
    height: auto;
    /* transition: transform 0.3s ease; */
    transition: all 0.5s ease;
}
.product-image img:hover {
    transform: scale(1.05);
}
.product-info {
    padding: 30px;
    width: 50%;
}
.close-btn, .open-btn {
    font-size: 24px;
    color: #aaa;
    /* cursor: pointer; */
    background: none;
    border: none;
    /* padding: 5px 10px; */
    transition: color 0.3s ease;
}
.close-btn {
    float: right;
}
/* .open-btn { */
    /* position: fixed; */
    /* top: 20px;
    right: 20px; */
    /* z-index: 1000; */
    /* display: none; */
/* } */
.close-btn:hover, .open-btn:hover {
    color: #ffb958;
}
.product-info h2 {
    margin-top: 0;
    color: #333;
}
.product-info p {
    color: #666;
    line-height: 1.6;
}
.price {
    font-size: 24px;
    font-weight: bold;
    /* color: #2196f3; */
    color: rgb(252, 173, 45);
    margin: 20px 0;
}
.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding-bottom: 10px;
  }
  
.link {
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius:5px;
  }
  @media (min-width: 769px) {
    .link {
      flex: 1; /* Равномерное распределение ширины */
      min-width: calc(20% - 5px); /* Минимальная ширина для 4 ссылок в строке */
    }
    .link img{
        width: 100%;
    }
  }
@media (max-width: 768px) {
    .link-container{
        flex-wrap: wrap;
        padding-bottom: 0;
        gap: 10px;
    }
    .link{
        flex: none;
    }
    .link img{
        width: 60%;
    }
    .link-1 {
        flex: 0 0 calc(30% - 5px);
      }
      
    .link-2 {
        flex: 0 0 calc(70% - 5px);
      }
      
    .link-3 {
        flex: 0 0 calc(70% - 5px);
      }
      
    .link-4 {
        flex: 0 0 calc(30% - 5px);
        margin-right: 0;
      }
}
.buy-btn {
    /* background-color: #2196f3; */
    background-color: rgb(252, 173, 45);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.buy-btn:hover {
    /* background-color: #1976d2; */
    color:#f1e7e7;
    background-color:black;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.overlay.hidden {
    display: none;
}
body.modal-open {
    overflow: hidden;
}
.product-text.hidden{
    opacity: 0;
    right: 200000px;
}
.product-text{
    display: block;
    transition: all 0.5s ease;
    opacity: 1;
    font-weight: bolder;
    color:white;
    position: absolute;
}
.product-image.hidden img{
    opacity: 0.1;
    filter: blur(3px);
    transition: all 0.5s ease;
}
.mobile-title{
        position: absolute;
        color:#f1e7e7;
        margin-bottom: 86vh;
        font-weight: bold;
}
.mobile{
    display: none;
}
.comp{
    display: block;
}
.compaside{
    display: flex;
}
@media (max-width: 768px) {
    .mobile{
        display: block;
    }
    .compaside{
        display: none;
    }
    .comp{
        display: none;
    }
    .product-card {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow: hidden; /* Изменено с overflow-y: auto */
    }

    .product-image {
        width: 100%;
        height: 100vh;
        transition: transform 0.3s ease;
    }
    .product-image img{
        border:#666 1px solid;
        border-radius:20px;
        padding: 10px;
        margin: 5px auto;
        background-color:#66666624;
    }

    .image-footer {
        display:block;
        position: absolute;
        margin-top: 90vh ; /* Отступы сверху и снизу */
        color: rgb(61, 61, 61);
        text-align: center; /* Центрирование текста */
        font-size: 90px;
    }
    .product-info {
        width: 100%;
        height: 100vh;
        padding: 20px;
        background: white;
        position: absolute;
        bottom: -100vh; /* Начальная позиция за пределами экрана */
        transition: transform 0.3s ease;
    }
    .product-info h2,
    .product-info p {
        position: relative; /* Для позиционирования псевдоэлементов */
        z-index: 1; /* Убедимся, что текст выше фона */
        padding: 10px; /* Отступы для текста */
        border-radius: 5px; /* Закругленные углы */
}
    /* .product-info h2::before, */
    .product-info p::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(252, 173, 45, 0.274); /* Полупрозрачный фон */
        z-index: -1; /* Псевдоэлемент под текстом */
        border-radius: 20px; /* Закругленные углы */
        padding: 10px; /* Отступы для псевдоэлемента */
}
    .product-info h2 {
        margin-top: 3.5vh;
        color: #333;
        text-align: center;
        font-size: 24px;
        font-weight: bold;
    }
    .product-info p {
        color: #666;
        line-height: 1.6;
        margin: 10px 0;
        text-align: center;
        font-size: large;
    }
    .price {
        font-size: 36px;
        font-weight: bold;
        /* color: #2196f3; */
        color: rgb(252, 173, 45);
        margin: 20px 0;
        text-align: center;
    }
    .buy-btn {
        /* background-color: #2196f3; */
        
        background-color: rgb(252, 173, 45);
        color: white;
        border: none;
        padding: 10px 100px;
        font-size: 18px;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        display: block; /* Блок для центрирования */
        margin: 20px auto; /* Центрирование кнопки */
        margin-top: 20vh;
        

    }
    .close-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 10022;
        color: rgb(0, 0, 0);
    }

    /* Новые классы для управления слайдами */
    .slide-up {
        transform: translateY(-100vh);
    }

    .slide-down {
        transform: translateY(0);
    }
}