body {
    background: url('/media/products/banner.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Делает фон фиксированным */
    font-family: Arial, sans-serif;
    color: #000;
    padding: 20px;
    margin: 0;
    transition: background-position 0.2s ease-out;
}

.title {
    color: white;
    text-align: center;
    font-size: 28px;
    margin: 60px auto 30px auto;
    padding: 0 10px;
    max-width: 100%;
    word-wrap: break-word;
}

.product-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    width: 18%; /* уменьшено с 20% */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    min-width: 220px;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 300px; /* увеличено */
    object-fit: contain;
    border-radius: 6px;
}

.price-tag {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: orange;
    font-size: 26px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
}

.availability {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: orange;
    font-size: 26px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
}

.description {
    margin-top: 12px;
    font-size: 14px;
    color: #111;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid black;
    cursor: pointer;
    text-decoration: none;
    color: black;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn:hover {
    background: #ddd;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid white;
    transition: background 0.2s, color 0.2s;
    z-index: 1000;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .product-row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .panel {
        width: 95%; /* чуть шире для мобильных */
        min-width: unset;
        margin-bottom: 20px;
    }

    .image-wrapper img {
        max-height: 280px; /* на мобильных чуть меньше */
    }

    .price-tag,
    .availability {
        font-size: 20px;
        padding: 4px 10px;
    }

    .title {
        font-size: 22px;
        margin-top: 80px;
        padding: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .back-button {
        position: fixed;
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 15px;
        z-index: 1000;
    }
}