/*h1 {
  font-weight: bold;
  font-size: 24px;
  color: #152b41; 
}*/
/* Базовые стили */
.header {
    /*background-color: #f8f9fa;*/
    background-image: url("../images/brick-wall.png");
    /*background-image: url("../images/bright-squares.png");*/
    padding: 20px 0;
    margin-bottom: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

}

.information {
  display: flex;
  justify-content: space-between;
  flex-flow: row nowrap;
  background-color:#cdcdcd22;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("../images/brick-wall.png");
}

.name {
  height: 50px;
  font-size: 20px;
  font-weight:bold;
  color: rgb(101, 51, 14);
  margin-left: 10px;
  padding-left: 20px;
  text-shadow: 2px 2px 4px rgba(96, 66, 43, 0.758);
}

.contacts {
  text-align: left;
  font-size: 14px;
  color: darkblue;
  margin-right: 20px;
  font-weight:200;
  text-shadow: 1px 1px 4px rgba(42, 42, 132, 0.8);
}

/* Стили формы поиска */
.search-form {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
}

.search-button {
    padding: 10px 20px;
    background-color: #729cc5;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-button:hover {
    background-color: #0056b3;
}

.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.search-message {
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 18px;
}

/* Информационное поле */
.info-container-1, .info-container-2 {
    display: flex;
    flex-direction: row;    
    flex-wrap: wrap;
    align-items: center;
    justify-content:center;
    gap: 20px 20px;
    width: 100%;
}

.info-panel-1 {
    min-height: 70px;
    width: 220px;
    font-family: Times, 'Times New Roman', serif;
    font-size: 15px;
    text-align: center;
    /*background-color: #55555516;*/
    color:saddlebrown;
    margin-bottom: 10px;
    padding: 10px 20px;
    border-top: 1px solid saddlebrown;
    border-right: 1px solid saddlebrown;
    /*border-right: 1px solid saddlebrown;
    border-left: 1px solid saddlebrown;*/
}

.info-panel-2 {
    min-height: 150px; 
    width: 220px;
    font-family: Times, 'Times New Roman', serif;
    font-size: 15px;
    text-align: center;
    /*background-color: #55555516;*/
    color:rgb(139, 41, 19);
    margin-bottom: 10px;
    padding: 10px 10px;    
    border-top: 1px solid rgb(139, 41, 19);
    border-right: 1px solid rgb(139, 41, 19);
}

/*.info-panel-1.not-active, .info-panel-2.not-active {
display:none;
}*/

/* Стили для категорий */
#catalog {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items:center;
    text-align: center;
    justify-content: space-around;
    gap: 15px;
    /*height: 150px;*/
    padding: 20px;
    background-image: url("../images/low-contrast-linen.png");
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
    width: 250px;
    min-height: 256px;
    transition: all 0.3s ease;
    padding: 10px;
    
    background-color: #f0e7df;
    
    background-image: url("../images/concrete-wall.png");
    box-shadow: 2px 3px 5px 1px rgba(34, 60, 80, 0.3); 
   /*
   border: 1px solid #8f6d51;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   box-shadow: 3px 4px 7px 2px rgba(34, 60, 80, 0.3);
   url("../images/purty-wood.png");
   background-color: #d7c3ac;
   */
   
}

.category-tile:hover {
    /*box-shadow: 0 6px 12px rgba(0,0,0,0.2);*/
    transform: scale(1.01);
    box-shadow: 8px 10px 19px 5px rgba(34, 60, 80, 0.3);
}

.category-tile h3 {
    font-family: 'Roboto', sans-serif; /* Семейство шрифтов */
    font-size: 0.8rem;                 /* Размер */
    font-weight: 1000;                 /* Насыщенность */
    text-align: center;
    color: #333;                     /* Цвет текста */
    margin: 10px 5px;                  /* Отступы */
    text-transform: capitalize;        /* Регистр букв */
}

.category-tile.active {
        width: 80%;
        margin: auto;
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-image-wrapper {
    width: 100%;
    height: 150px;
    /*background-color: #e7e7e73c;*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    font-size: 1em;
    padding: 15px 0px;
}
.category-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохраняет пропорции, не обрезает */
}
.placeholder-text {
    font-size: 1.2em;
    color: #888;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* Располагаем карточки вертикально */
    gap: 20px; /* Отступы между карточками */
    padding: 20px;
    /*background-image: url("../images/concrete-wall.png");*/
    background-image: url("../images/low-contrast-linen.png");
}

.product-card {
    width: 95%; /* Каждая карточка занимает всю ширину */
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    border: 1px solid #cecece;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff;
    /*background-image: url("../images/concrete-wall.png");*/
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-details {
    flex: 1;
}

.product-image-wrapper {
    order: -1;
    flex: 0 0 100px; /* Фиксированная ширина изображения */
    max-width: 100px;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.price, .cost {
    font-weight: 600;
    font-size: 14px;
}

.price {
    color: #007bff;
}

.cost {
    color: #555;
}

.back-button {
    display: block;
    margin: 0px auto;
    padding: 10px;
    background-color: #729cc5;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;

}

.back-button:hover {

    background-color: #0056b3;
}
.button-container{
    background-image: url("../images/low-contrast-linen.png");    
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .product-card {
        flex: 1 1 calc(50% - 20px); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 100%; /* 1 колонка на мобильных */
    }
}

@media (max-width: 480px) {
    .category-tile {
        width: 100%;
    }
}
