/* Responsive fixes for metall41.ru (loaded after style.css / header.css / pages.css). */

/* ---- Cart: delivery block (vehicle cards, map, hint) ----
   style.css (max-width:1100px) put cards, map and hint into one row of three
   ~300px columns, so card text broke word by word. Keep them stacked. */
.prk_map.select_typ_ov_car:not(.mobile-delivery-open) {
	flex-direction: column;
}
.prk_map.select_typ_ov_car:not(.mobile-delivery-open) > .cart_dos_left,
.prk_map.select_typ_ov_car:not(.mobile-delivery-open) > .a_mp,
.prk_map.select_typ_ov_car:not(.mobile-delivery-open) > .note_info {
	width: 100%;
	max-width: 100%;
}
@media (min-width: 701px) and (max-width: 1180px) {
	.prk_map.select_typ_ov_car .dost_types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* ---- Header menu: on 1101-1240px "Контакты" went past the right edge ---- */
@media (min-width: 1101px) and (max-width: 1280px) {
	.mainmenu .second_ul > li > a {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* ---- Footer: fixed width 1280px gave a horizontal scroll on 1101-1330px screens ---- */
.copyright .copy_middle {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- Breadcrumbs: overflow:scroll showed scrollbar arrows on desktop ---- */
#breadcrumbs ol,
#breadcrumbs ul {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}
#breadcrumbs ol::-webkit-scrollbar,
#breadcrumbs ul::-webkit-scrollbar {
	display: none;
}

/* ---- Product page, desktop markup on tablets (701-1100px):
   thumbnails went into a tall column under the main photo ---- */
@media (min-width: 701px) and (max-width: 1100px) {
	#product-media ul#thumbnails {
		flex-direction: row;
		justify-content: flex-start;
		width: 100%;
		margin-top: 10px;
		overflow-x: auto;
		scrollbar-width: thin;
	}
	#product-media ul#thumbnails li.thumbnail {
		flex: 0 0 96px;
		width: 96px;
		height: 72px;
	}
}

/* ---- Home: catalog categories, one per row on tablets ---- */
@media (min-width: 601px) and (max-width: 1100px) {
	.product:has(> .product-inner.ripple_spec) {
		column-gap: 2%;
	}
	.product > .product-inner.ripple_spec {
		width: 49%;
	}
}
@media (min-width: 901px) and (max-width: 1100px) {
	.product > .product-inner.ripple_spec {
		width: 32%;
	}
}

/* window resized from desktop to phone width without reload: the inline
   (not opened) block must not show the full-screen modal header */
@media (max-width: 900px) {
	.prk_map.select_typ_ov_car:not(.mobile-delivery-open) > .mobile-delivery-header {
		display: none;
	}
}
