/* =====================================================================================================
   Sharovar — оновлений вигляд (варіант D): червона шапка з орнаментом, власні іконки розділів і категорій,
   легші плитки й картки, рекламні смуги внизу головної. Підключається після base.css та adaptive_*.css.
   Дані й адмінка не змінюються — лише вигляд.
   ===================================================================================================== */

/* орнаментна смуга (під шапкою — біла на червоному; над підвалом — червона на білому) */
.sh_orn_band {position:relative; float:left; width:100%; height:14px; background:#e3000f url(../images/redesign/orn-band-white.svg) repeat-x center / 28px 14px; z-index:2;}
.sh_orn_band.red {background:#fff url(../images/redesign/orn-band-red.svg) repeat-x center / 28px 14px; opacity:0.85;}

/* головне меню під шапкою: читабельніші підписи, «Коло» замість зірочки для Клубу */
.for_main_menu UL LI A {color:#6a615c;}
.for_main_menu UL LI A.mm_4 {background-image:url(../images/redesign/ico-kolo.svg); background-size:26px 26px; background-position:10px 34px; background-repeat:no-repeat;}

/* бокове меню головної: білі заголовки з червоними іконками, іконки категорій */
.left_main_menu UL LI A.lmm {background-color:#fff; color:#26211f; border-bottom:2px solid #e3000f; border-radius:6px 6px 0 0; padding:10px 4px 10px 46px; background-repeat:no-repeat; background-size:24px auto;}
.left_main_menu UL LI A.lmm:hover,.left_main_menu UL LI A.lmm.active {background-color:#f6edec; color:#26211f;}
.left_main_menu UL LI A.lmm_1 {background-image:url(../images/redesign/ico-gavel.png); background-position:12px center;}
.left_main_menu UL LI A.lmm_2 {background-image:url(../images/redesign/ico-cart.png); background-position:12px center;}
.left_main_menu UL LI A.lmm_3 {background-image:url(../images/redesign/ico-brief.png); background-position:12px center;}
.left_main_menu UL LI A.lmm_4 {background-image:url(../images/redesign/ico-kolo.svg); background-position:12px center;}
.left_main_menu UL LI UL LI A {display:flex; align-items:center; gap:8px; margin:10px 0 0 10px;}
	.left_main_menu UL LI UL LI A Img.lmm_icon {width:20px; height:20px; object-fit:contain; flex:0 0 20px;}
A.book {background-color:#26211f; border-radius:6px;}
A.book:hover {background-color:#e3000f;}

/* заголовки блоків — з ромбиком-орнаментом */
.right_col .common_tit, .sh_orn_tit {padding-left:26px; background:url(../images/redesign/orn-badge.png) no-repeat 0 4px / 16px auto; border-bottom-color:#ece6e1;}

/* плитки розділів: фото без темної завіси, назва на білій смужці */
.rcc_one_item Figure {border-radius:6px; background:#fff; border:1px solid #ece6e1;}
.rcc_one_item Figure B {background-image:none;}
Figure.effect-sadie Span {top:auto; bottom:0; padding:8px 10px; background:rgba(255,255,255,0.94); color:#26211f; font:13px/16px Open_b; letter-spacing:0.03em;}
.rcc_one_item:hover Figure.effect-sadie Span {color:#e3000f;}

/* картки оголошень: фото, «Нове / Б/в», назва, початок опису, ціна */
.sh_cards_block .sh_cards {display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:16px; width:100%; margin:0 0 24px 0;}
.right_col .sh_cards_block .sh_cards {width:698px;}
.sh_card {position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid #ece6e1; border-radius:6px; overflow:hidden; transition:box-shadow 0.2s, transform 0.2s;}
.sh_card:hover {box-shadow:0 8px 20px rgba(38,33,31,0.10); transform:translateY(-2px);}
	.sh_card_img {position:relative; display:block; aspect-ratio:1 / 1; background:#f3eeea; overflow:hidden;}
		.sh_card_img Img {width:100%; height:100%; object-fit:cover; display:block;}
		.sh_card_state {position:absolute; top:8px; left:8px; background:#fff; color:#26211f; font:12px/16px Open_b; padding:3px 8px; border-radius:4px;}
		.sh_card_hot {position:absolute; top:8px; right:8px; width:22px; height:22px; background:#fff url(../images/sprite.png) no-repeat -63px -446px; border-radius:4px;}
	.sh_card A.sh_card_fav {position:absolute; top:8px; right:8px; width:30px; height:30px; background:rgba(255,255,255,0.95); border-radius:15px; opacity:0; transition:opacity 0.2s;}
		.sh_card A.sh_card_fav::before {width:15px; height:13px; position:absolute; top:50%; left:50%; margin:-6px 0 0 -7px; background:url(../images/sprite.png) no-repeat -475px -169px; content:"";}
		.sh_card:hover A.sh_card_fav {opacity:1;}
	.sh_card_body {display:flex; flex-direction:column; gap:6px; padding:10px 12px 14px;}
		.sh_card_title {color:#26211f; font:14px/19px Open_b; text-decoration:none; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
		.sh_card_title:hover {color:#e3000f;}
		.sh_card_desc {color:#5e5651; font:13px/18px Open_n; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
		.sh_card_price {color:#e3000f; font:17px/22px Open_b;}

/* рекламні смуги, що розкриваються (компонент «Слайдер»), — внизу головної */
.promo_strips_place {width:100%; margin:8px 0 40px 0;}
	.promo_strips_head {width:100%; display:flex; align-items:center; justify-content:space-between; margin:0 0 10px 0;}
		.promo_label {font:12px/16px Open_b; letter-spacing:0.08em; text-transform:uppercase; color:#8a817c;}
		.promo_bars {display:flex; gap:6px;}
			.promo_bar {width:44px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; display:flex; align-items:center;}
				.promo_bar Span {display:block; width:100%; height:3px; border-radius:2px; background:#dcd4ce; transition:background 0.4s;}
				.promo_bar.active Span {background:#e3000f;}
	.promo_strips {width:100%; display:flex; gap:10px; height:300px;}
		.promo_strip {position:relative; display:block; flex:1 1 0; min-width:56px; overflow:hidden; border-radius:8px; background-color:#efe1d6; background-size:cover; background-position:center; text-decoration:none; transition:flex 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);}
		.promo_strip.active {flex:6 1 0;}
		.promo_strips.single .promo_strip {flex:1 1 auto;}
			.promo_orn {position:absolute; left:0; right:0; top:0; height:14px; background:url(../images/redesign/orn-band-white.svg) repeat-x center / 28px 14px;}
			.promo_short {position:absolute; left:50%; bottom:20px; transform:translateX(-50%) rotate(-90deg); transform-origin:center; white-space:nowrap; color:#fff; font:14px/18px Open_b; letter-spacing:0.05em; text-transform:uppercase; text-shadow:0 1px 6px rgba(0,0,0,0.45); width:260px; text-align:left; margin-left:0; transition:opacity 0.3s;}
			.promo_strip:not(.active) .promo_short {bottom:auto; top:50%; transform:translate(-50%, -50%) rotate(-90deg); text-align:center;}
			.promo_strip.active .promo_short {opacity:0;}
			.promo_body {position:absolute; left:0; right:0; bottom:0; padding:28px 32px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; background:linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0) 100%); opacity:0; transform:translateY(16px); transition:opacity 0.5s 0.15s, transform 0.6s 0.1s;}
			.promo_strip.active .promo_body {opacity:1; transform:translateY(0);}
				.promo_kicker {font:12px/16px Open_b; letter-spacing:0.08em; text-transform:uppercase; color:#e3000f;}
				.promo_title {font:28px/32px Open_b; color:#26211f; max-width:16em;}
				.promo_cta {display:inline-flex; align-items:center; height:40px; padding:0 18px; border-radius:6px; background:#26211f; color:#fff; font:14px/18px Open_b;}
@media (prefers-reduced-motion: reduce) {
	.promo_strip, .promo_body {transition:none;}
}

/* підвал — світлий, з орнаментом */
Footer {background:#fff; color:#26211f; border-top:1px solid #ece6e1;}
	.copy A.sitemap, Nav.fn_menu LI A, .language A {color:#5e5651;}
	.foo_socials Span {color:#5e5651;}
	A.foo_fb {color:#e3000f; background:none; padding-left:0;}

/* телефони й планшети */
@media (max-width: 999px) {
	.right_col .sh_cards_block .sh_cards {width:100%;}
	.sh_cards_block .sh_cards {grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px;}
	.promo_bars {display:none;}
	.promo_strips {flex-direction:column; height:auto;}
	.promo_strip {flex:none; height:56px; transition:height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);}
	.promo_strip.active {flex:none; height:240px;}
	.promo_short, .promo_strip:not(.active) .promo_short {top:50%; left:16px; bottom:auto; transform:translateY(-50%); width:auto;}
	.promo_title {font-size:22px; line-height:26px;}
}

/* ---------------------------------------------------------------------------------------------------
   Ширший сайт: 1200 px на великих екранах (раніше 1000). Менші екрани — як було (adaptive_768/320).
   --------------------------------------------------------------------------------------------------- */
@media screen and (min-width: 1240px) {
	.centre {width:1220px;}

	/* шапка */
	.for_search {width:600px;}
		.for_search Input {width:600px; height:40px;}
		.for_search B {height:40px; background-position:14px 10px;}
		A.search_but {height:40px; padding-top:11px; width:110px;}
		.for_search .dropdown {right:110px; height:38px;}
		.for_search .dropdown UL {width:1180px; margin-left:-583px;}
	.for_mini_profile {width:280px;}
	.for_main_menu {width:920px;}
		.for_main_menu UL LI A {width:230px; padding-left:52px;}
			.for_main_menu UL LI A Span {font-size:19px; line-height:22px;}
	.cp_place {width:1068px;}

	/* головна: бокове меню + права колонка */
	.left_col {width:240px; margin-right:32px;}
	.right_col {width:928px;}
		.right_col .common_tit, .right_col .our_recomendation, .right_col .last_public, .right_col Article,
		.right_col .sh_cards_block .sh_cards, .rcc_place {width:928px;}
		.right_col .sh_cards_block .sh_cards {grid-template-columns:repeat(4, minmax(0, 1fr));}
		.club_narrow .common_tit, .club_narrow .rcc_all {width:928px;}
		.rc_category .rcc_all {height:444px;}
		.rcc_one_col {width:288px; margin-right:32px;}
			.rcc_one_item Figure, .rcc_one_item Figure Img, .rcc_one_item:hover Figure Img {width:288px; height:192px; object-fit:cover;}

	/* сторінка розділу: фільтри + оголошення */
	.filter_col {width:260px;}
	.item_col {width:940px;}

	/* сторінка оголошення */
	.dt_top H1 {width:960px;}
	.det_options {width:400px;}
	.det_price {width:300px;}
		.seller_info {width:300px;}

	/* пошук */
	.search_list .catalog {width:1172px;}

	/* підвал */
	.foo_nav {width:966px;}
}

/* сторінка оголошення: заголовок «Коментарі» — як заголовки бокового меню */
.dr_tit {background:#fff; color:#26211f; border-bottom:2px solid #e3000f; border-radius:6px 6px 0 0;}

/* будь-який список карток — сітка */
*:has(> .sh_card) {display:grid !important; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:16px; width:100%; float:none; clear:both;}
.item_col .catalog:has(> .sh_card) {grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));}


/* Блок «увійдіть, щоб коментувати» — спокійний замість рожевого */
.comment_block {background:#f6f3f1; border:1px solid #e7e0dc; border-left:3px solid #E3000F; border-radius:6px; color:#3f3f3f;}

/* Графітова шапка (альтернатива червоній): клас hdr_grey на <html>, вмикається перемикачем — js/components/header_theme.js */
html.hdr_grey .main_part {background:#57606A;}
html.hdr_grey .sh_orn_band:not(.red) {background-color:#57606A; background-image:url(../images/redesign/orn-band-red.svg);}
html.hdr_grey A.search_but {background:#3b4148;}
html.hdr_grey A.search_but:hover {background:#2f343a;}

/* Перемикач шапки (лише на dev і локально) */
.hdr_switch {position:fixed; right:16px; bottom:16px; z-index:50; display:flex; gap:4px; padding:4px; background:#fff; border:1px solid #ddd; border-radius:20px; box-shadow:0 2px 8px rgba(0,0,0,.12); font:12px/16px Open_n;}
.hdr_switch button {border:0; background:none; padding:5px 10px 5px 26px; border-radius:16px; cursor:pointer; color:#3f3f3f; position:relative; font:inherit;}
.hdr_switch button::before {content:''; position:absolute; left:8px; top:50%; width:12px; height:12px; margin-top:-6px; border-radius:50%;}
.hdr_switch button[data-theme=red]::before {background:#E3000F;}
.hdr_switch button[data-theme=grey]::before {background:#57606A;}
.hdr_switch button.on {background:#f1efef; font-weight:bold;}

/* Бордова шапка #92373D (ще один варіант для порівняння) */
html.hdr_wine .main_part {background:#92373D;}
html.hdr_wine .sh_orn_band:not(.red) {background-color:#92373D;}
html.hdr_wine A.search_but {background:#5e2328;}
html.hdr_wine A.search_but:hover {background:#4c1c20;}
.hdr_switch button[data-theme=wine]::before {background:#92373D;}

/* Шапка: кармін #C42330 — основний колір (енергійний, але глибший і спокійніший за яскраво-червоний).
   Інші варіанти лишаються для порівняння на dev: html.hdr_red (колишній #E3000F), hdr_wine, hdr_grey. */
.main_part {background:#C42330;}
.sh_orn_band:not(.red) {background-color:#C42330;}
A.search_but {background:#8f1820;}
A.search_but:hover {background:#76131a;}
html.hdr_red .main_part {background:#E3000F;}
html.hdr_red .sh_orn_band:not(.red) {background-color:#E3000F;}
html.hdr_red A.search_but {background:#333;}
html.hdr_red A.search_but:hover {background:#3f3f3f;}
.hdr_switch button[data-theme=carmine]::before {background:#C42330;}

/* «Останні опубліковані» у розділах: заголовок з орнаментом не перекривається, картки дрібніші (6 в ряд на широкому екрані) */
.last_public .common_tit.sh_orn_tit {padding-left:26px;}
.sh_cards_block .sh_cards {grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));}
@media (max-width: 999px) {
	.sh_cards_block .sh_cards {grid-template-columns:repeat(2, minmax(0, 1fr));}
}

/* Список «усі категорії» під пагінацією: 4 рівні колонки на всю ширину (на широкому екрані) */
@media screen and (min-width:1240px) {
	.all_categories > div.fm {display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); column-gap:30px; float:none; clear:both;}
	.all_categories > div.fm > UL {width:auto; margin:0;}
	.all_categories UL LI UL {width:100%;}
	.all_categories UL LI Span {width:auto;}
}

/* Продавець давно не заходив: тиха примітка на сторінці оголошення й сторінці продавця */
.seller_info .si_sleep {margin-top:8px; padding:8px 10px; border-radius:6px; background:#f6f3f1; color:#6b6560; font:13px/18px Open_n;}
.sd_text .sd_sleep {color:#6b6560; font:13px/18px Open_n;}
