/* Mobile layout hardening */
.bitshop-mobile-nav {
	display: none;
}

@media (max-width: 767px) {
	body:not(.bitshop-home-page) .bx-footer {
		display: none !important;
	}

	/* Breadcrumbs and their layout wrappers are desktop-only. */
	.bitshop-breadcrumb-row,
	#navigation > .bx-breadcrumb,
	nav[aria-label="Хлебные крошки"] {
		display: none !important;
	}

	.bitshop-breadcrumb-row {
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#pagetitle.bitshop-catalog-page-title {
		margin-top: 0;
	}

	#pagetitle:empty {
		display: none !important;
		margin: 0 !important;
	}

	#bx_eshop_wrap {
		padding-bottom: calc(68px + env(safe-area-inset-bottom));
	}

	.bx-header {
		position: static;
		box-shadow: none;
	}

	.workarea .bx-content-section.container {
		padding: 10px 16px 0;
	}

	.bitshop-market-header {
		grid-template-columns: 1fr;
	}

	.bitshop-market-logo,
	.bitshop-header-catalog,
	.bitshop-header-search,
	.bitshop-market-actions {
		grid-column: 1;
	}

	.bitshop-market-logo {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 72px;
	}

	.bitshop-market-logo .bx-logo-block.d-md-block {
		display: none !important;
	}

	.bitshop-market-logo .bx-logo-block.d-md-none {
		display: flex !important;
		width: min(180px, 60vw);
		height: 72px;
	}

	.bitshop-market-logo .bitshop-brand-logo,
	.bitshop-market-logo img {
		max-height: 68px;
	}

	.bitshop-header-catalog {
		height: 0;
		min-height: 0;
		margin: 0;
	}

	.bitshop-header-catalog-button {
		display: none;
	}

	.bitshop-market-actions {
		display: none;
	}

	.bitshop-header-search input[type="text"],
	.bitshop-header-search input[type="search"],
	.bitshop-location-suggestions button {
		font-size: 16px;
	}

	.bitshop-city-trigger,
	.bitshop-city-reset {
		min-height: 40px;
	}

	.bitshop-hero {
		margin-right: -16px;
		margin-left: -16px;
	}

	.bitshop-catalog-backdrop {
		bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.bitshop-catalog-dropdown {
		height: calc(100dvh - var(--bitshop-catalog-top, 60px) - 64px - env(safe-area-inset-bottom));
	}

	.bitshop-mobile-nav {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 300;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: stretch;
		height: calc(64px + env(safe-area-inset-bottom));
		padding: 0 8px env(safe-area-inset-bottom);
		border-top: 1px solid var(--bitshop-border);
		background: rgba(255, 255, 255, .97);
		box-shadow: none;
		backdrop-filter: blur(14px);
	}

	.bitshop-mobile-nav > a,
	.bitshop-mobile-nav > button {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 0;
		min-height: 56px;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: transparent;
		color: var(--bitshop-graphite-muted);
		text-decoration: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.bitshop-mobile-nav > a:hover,
	.bitshop-mobile-nav > a:focus-visible,
	.bitshop-mobile-nav > button:hover,
	.bitshop-mobile-nav > button:focus-visible,
	.bitshop-mobile-nav > [aria-current="page"],
	.bitshop-mobile-nav > .is-current,
	.bitshop-mobile-nav > .is-active {
		background: var(--bitshop-cyan-soft);
		color: var(--bitshop-cyan-dark);
		outline: none;
	}

	.bitshop-mobile-nav svg {
		width: 25px;
		height: 25px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.bitshop-mobile-nav-label {
		display: none !important;
	}

	[data-bitshop-compare-link],
	[data-bitshop-compare-product],
	.bitshop-catalog-compare,
	.product-item-compare-container,
	.product-item-detail-compare-container,
	.bitshop-product-detail-compare {
		display: none !important;
	}

	.bitshop-mobile-nav > a,
	.bitshop-mobile-nav > button {
		flex-direction: row;
		gap: 0;
		padding-top: 0;
	}

	.bitshop-mobile-nav .bitshop-cart-count {
		top: 7px;
		right: calc(50% - 24px);
		border-color: var(--bitshop-white);
	}

}

@media (max-width: 991.98px) {
	.product-item-detail-short-card-fixed {
		display: none !important;
	}

	.bx-catalog-element,
	.bitshop-product-hero,
	.bitshop-product-hero > [class*="col-"],
	.bitshop-product-summary,
	.bitshop-product-details,
	.bitshop-product-details .product-item-detail-tab-content,
	.bitshop-full-properties-grid,
	.product-item-detail-properties,
	.product-item-detail-properties-item,
	.product-item-detail-properties-name,
	.product-item-detail-properties-value {
		min-width: 0;
		max-width: 100%;
	}

	.bx-catalog-element .product-item-detail-properties-item.bitshop-property-long {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 3px 8px;
	}

	.bx-catalog-element .product-item-detail-properties-item.bitshop-property-long .product-item-detail-properties-name,
	.bx-catalog-element .product-item-detail-properties-item.bitshop-property-long .product-item-detail-properties-value {
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.bx-catalog-element .product-item-detail-properties-item.bitshop-property-long .product-item-detail-properties-value {
		margin-left: auto;
	}

	.bx-catalog-element .product-item-detail-properties-item:not(.bitshop-property-long) .product-item-detail-properties-name {
		flex: 0 1 42%;
		max-width: 42%;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.bx-catalog-element .product-item-detail-properties-item:not(.bitshop-property-long) .product-item-detail-properties-value {
		flex: 0 1 58%;
		max-width: 58%;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.catalog-section .product-item-title a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.bitshop-carousel-button-right {
		right: 0;
	}

	.bitshop-carousel-button-left {
		left: 0;
	}

	.bitshop-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bitshop-footer-brand {
		grid-column: 1 / -1;
	}

	.bitshop-footer-contacts {
		grid-column: 1 / -1;
		display: block;
	}

	.bitshop-footer-contacts h2 {
		margin-bottom: 14px;
	}

	.bitshop-footer-contacts p {
		margin: 10px 0 16px;
	}
}

@media (max-width: 479px) {
	.bitshop-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.bitshop-footer-brand,
	.bitshop-footer-contacts {
		grid-column: 1;
	}

}

/* Compact footer */
.bitshop-footer-desktop {
	display: block;
}

.bitshop-footer-compact {
	display: none;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
}

.bitshop-footer-compact .bx-footer-logo {
	width: 138px;
	margin: 0;
}

.bitshop-footer-compact-contacts {
	display: flex;
	align-items: center;
	gap: 12px 24px;
	min-width: 0;
}

.bitshop-footer-compact-contacts a {
	font-size: 14px;
	font-weight: 800;
}

.bitshop-footer-compact-contacts span,
.bitshop-footer-compact-copy {
	color: rgba(255, 255, 255, .5);
	font-size: 12px;
}

.bitshop-footer-compact-copy {
	color: rgba(255, 255, 255, .76);
	font-weight: 700;
	white-space: nowrap;
}

.bitshop-footer-compact .bitshop-footer-composite {
	display: none;
}

@media (max-width: 767px) {
	body:not(.bitshop-home-page) .bx-header-section {
		display: none;
	}

	body.bitshop-catalog-page-context .bx-header-section,
	body.bitshop-search-results-page .bx-header-section {
		display: block;
		height: 60px;
		padding-top: 0;
		padding-bottom: 0;
	}

	body.bitshop-catalog-page-context .bitshop-market-header,
	body.bitshop-search-results-page .bitshop-market-header {
		display: block;
		min-height: 60px;
		padding: 0;
		margin: 0;
	}

	body.bitshop-catalog-page-context .bitshop-market-header > :not(.bitshop-header-search),
	body.bitshop-search-results-page .bitshop-market-header > :not(.bitshop-header-search) {
		display: none;
	}

	.bitshop-footer-main {
		padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
	}

	.bitshop-footer-desktop {
		display: none;
	}

	.bitshop-footer-compact {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 14px 20px;
	}

	.bitshop-footer-compact .bx-footer-logo {
		width: 118px;
	}

	.bitshop-footer-compact-contacts {
		align-items: flex-end;
		flex-direction: column;
		gap: 5px;
		text-align: right;
	}

	.bitshop-footer-compact-contacts a {
		font-size: 13px;
	}

	.bitshop-footer-compact-contacts span {
		font-size: 11px;
	}

	.bitshop-footer-compact-copy {
		grid-column: 1 / -1;
		padding-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, .1);
		white-space: normal;
	}
}
