/*-------------body------------*/
#mainContent {
   height: 100%;
   margin-bottom: 20px;
}
.part-pic {
    margin: 5px;
    max-height: 50px;
}

#content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two products in a row, equal width */
    grid-auto-rows: minmax(auto, auto); /* Adaptive height */
    gap: 10px; /* Gap between products */
    width: 60%; /* 60% of the screen width */
    margin: auto; /* Center the grid horizontally */
}

/* Style for each product card */
.product-card {
    display: grid;
    grid-template-rows: min-content 1fr 1fr; /* Автоматически адаптирует высоту */
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;

}


.product-card h3, p {
    font-family: 'Roboto', sans-serif;
}

.nameLeftBlock {
    width: 100%;
    /*max-height: 100px;*/ /* Ограничивает высоту блока */
   /* overflow-y: auto; *//* Добавляет прокрутку, если текст слишком длинный */
    word-wrap: break-word; /* Переносит длинные слова */
    padding-right: 10px; /* Отступ, чтобы текст не примыкал к краю */
}

.topBlock {
    display: flex;
}
.topBlock p {
    white-space: pre-wrap; /* Разрешает перенос текста на новую строку */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.priceorderBlock {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btnbasket {
    width: 40%;
    border: none;
    color: white;
    font-size: 25px;
    padding: 10px;
    transition: 0.3s ease all;
}

.btnbasket:active {
    width: 250px
}

/*.btnbasket {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    border: 3px solid #14dd50;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
    color: #14dd50;
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 1;
}

.btnbasket:before {
    !*transition: 0.5s all ease;*!
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    opacity: 0;
    content: '';
    background-color: #14dd50;
    z-index: -1;
}

.btnbasket:hover, .btnbasket:focus {
    color: white;
}

.btnbasket:hover:before, .btnbasket:focus:before {
    transition: 0.5s all ease;
    left: 0;
    right: 0;
    opacity: 1;
}

.btnbasket:active {
    transform: scale(0.9);
}*/

button.out_basket {
    background: #39ec72;
}

.in_basket {
    background: #c0c0c0;
    color: #390606;
}

.priceorderBlock p {
    font-size: 27px;

}

.in-stock {
    color: #28a133;
    font-size: 22px;
    font-family: "Segoe UI Semibold";
}
.out-of-stock {
    color: #a12828;
    font-size: 22px;
    font-family: "Segoe UI Semibold";
}
.customOrder {
   background: #2c3e50;
    color: white;
}

.oldprice {
   /* text-decoration:line-through;
    text-decoration-color: black;*/
    color: black;

}



.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination {
    display: inline-flex;
    border-radius: 5px;
    overflow: hidden;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-right: none;
    background-color: #f1f1f1;
    transition: background-color 0.3s ease-in-out;
}

.pagination a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.pagination a:last-child {
    border-right: 1px solid #ddd;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.pagination a.active {
    background-color: #4caf50;
    color: white;
    border: none;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

#pagination-numbers a {
    color: white;
    margin: 5px;
    padding: 5px;
    border: 1px white solid;
    text-underline: none ;
}

#pagination-numbers {
    max-width: 300px;
    overflow: hidden;
    height: 40px;
    display: flex;
}

a.active {
    background: red;
}

#searchDiv {
    width: 60%;
    margin: auto;
}

#searchInput {
    box-sizing: border-box;
    background: none;
    border: none;
    border-bottom: 1px solid #ff1515;
    color: white;
    font-size: 27px;
    outline: none;
    padding: 10px;
    width: 100%;
    margin: 20px;

}


