/* Автокомплит в шапке (2026-09-05, финал): Денис попросил буквально ТУ ЖЕ
   карточку, что в каталоге/на /search/ (а не параллельный "похожий" дизайн),
   просто маленькую — 1-в-1 разметка+классы `.product-list__item` из
   cards-uniform.css, уменьшена через zoom (та же техника, что и у
   books_filter.js для десктоп-zoom карточки/каталога — не transform,
   реально сжимает раскладку, а не просто визуально). Даёт кнопку
   "Подробнее" как на настоящей карточке. */
#search-results{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  color: black;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  padding: 8px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
#search-results .search-results-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100%;
}
#search-results .product-list__item {
  cursor: pointer;
  transition: 0.2s ease background;
  border-radius: 6px;
}
#search-results .product-list__item + .product-list__item {
  border-top: 1px solid rgba(49, 1, 1, 0.12);
}
#search-results .product-list__item:hover {
  background: rgba(206, 169, 124, 0.25);
}
#search-form:has(#search-query:target) #search-results
, #search-form:has(#search-query:focus) #search-results
, #search-form:has(a:hover) #search-results
, #search-form:hover #search-results
, .sorting-block_flex {
  display: flex;
}
#search-form #search-results{
  background-color: #f9e5c5;
  filter: drop-shadow(1px 1px 4px #000000);
}
.sorting-block_flex{
  gap: 20px;
  justify-content: center;
  align-items: center;
  background-size: 90% 100%;
  padding: 20px 40px;
}

.sorting__left, .sorting__right{
  max-width: 230px;
}
.sorting__left img, .sorting__right img{
  max-width: 100%;
  height: auto;
}
.sorting-block_gravures{
  display: flex;
}
.sorting-block_flex .sorting__item
, .sorting-block_gravures .gravures__block:nth-child(2) .sorting__list .sorting__item{
  width: 100%;
}

.gravures__block{
  background-size: 100% 100%;
  padding: 5px 25px 5px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.gravures__block_title{
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #310101;
  flex-wrap: wrap;
  font-size: 20px;
  text-align: center;
}
.product-info__image{
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  background-image: url(../images/main/ramkaleft.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}
.gravures__block{
  max-width: 100%;
}
.product * {
  padding: initial !important;
  margin: revert !important;
  border: initial !important;
  line-height: initial !important;
}
.template
, .hide {
	display: none !important;
}
.show {
	display: block !important;
}
.both
, .page__search .search-pages {
	clear: both;
}
.page__search .search-pages .search-pages-item {
    display: inline-block;
    padding: 0.5%;
    margin: 0.5%;
    border: 1px #fafafa solid;
    border-radius: 10%;
    width: 4%;
    text-align: center;
}
.page__search .search-pages .search-pages-item.result-row-selected {
	cursor: initial;
	color: #000000;
	background-color: #f0f0f0;
}
/* :before/:after content убраны — теперь label/значение реальным HTML
   внутри .product-list__year (как на каталоге), см. шаблон карточки.
   Раньше дублировало текст ("Год издания - Год издания - ...г. г."). */
.page__search .navigation__page.ellipsis {
	width: auto;
	border: 0;
}
.page__search .navigation__page.ellipsis:hover {
	background-color: transparent;
}
.page__search .navigation__page.ellipsis:after {
	content: "...";
}
.search-results-alles {
	font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #310101;
  background: #cea97c;
  padding: 10px 25px;
  transition: 0.2s ease all;
  display: inline-block;
  margin-top: 6px;
  text-align: center;
  border-radius: 6px;
}
.search-results-alles:hover {
  background: #ad8758;
}
.header__form {
	width: 30%;
}
#search-results:empty {
    display: none !important;
}
.navigation__pages {
	float: left;
}
.page__navigation.navigation {
	margin-bottom: 20px;
}
.basket-form__message {
	display: block;
	font-size: 2rem;
	color: #000000;
	padding: 5px;
	text-align: center;
}
.header__search-mobile-hide
, .header__search-mobile-show {
	cursor: pointer;
}
.header__search-mobile-hide {
	width: 20px;
	height: 21px;
}
.header__search-mobile-visible {
	display: none;
}
.page__navigation_loading {
	height: 64px;
	background-image: url(/assets/images/loading.png);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 64px;
	position: fixed;
	left: calc(50% + 64px);
	top: calc(50% + 64px);
	z-index: 100;
	animation: rotate 3.0s linear infinite;
}

@keyframes rotate {
	to {
		transform: rotate(360deg);
	}
}
.product-list__category-href:not(.template) {
	display: block;
	margin: 0 5px 0 0;
	font-size: 80%;
}
.product-list__name
, .product-list__category-href:not(.template) {
	hyphens: auto;
}
.product-list__category {
	margin: 5px 0;
	line-height: 90%;
}
.product-list__category:has(.product-list__category-href ~ .product-list__category-href ~ .product-list__category-href):before {
	content: attr(title) ":";
	font-weight: bold;
	font-size: 90%;
}
@media (max-width: 51.9988em) {
	.page__navigation_loading {
		left: 50%;
		top: calc(20%);
	}
	#search-form
	, #search-form * {
		transition-property: height;
		transition-timing-function: ease-in-out;
		transition-duration: 0.5s;
	}
	#search-form {
	}
	#search-results .product-list__item {
		zoom: 0.42 !important;
	}
	.header__search-input {
		padding: 10px 10px 10px 70px;
	}
	.header__phone {
		margin-left: initial;
	}
	.header__search-mobile.mobile {
		margin-left: auto;
	}
	.header__search-mobile-hide {
		position: fixed;
		right: 43px;
		top: 80px;
	}
	.header__search-mobile-visible:checked ~ #search-form {
		display: block;
		position:fixed;
		top: 70px;
		width: 100%;
		background-color: #2a0601;
		left: 0;
	}
	.header__search-mobile-visible ~ .header__search-mobile .header__search-mobile-hide
	, .header__search-mobile-visible:checked ~ .header__search-mobile .header__search-mobile-show {
		display: none;
	}
	.header__search-mobile-visible:checked ~ .header__search-mobile .header__search-mobile-hide {
		display: inline-block;
	}
}