/* Home storefront: compact marketplace rhythm and Bitshop accents */
.bitshop-home-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
}

.bitshop-home-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--bitshop-transparent);
	border-radius: 14px;
	background: var(--bitshop-surface-soft);
}

.bitshop-home-trust-icon {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 12px;
	background: var(--bitshop-cyan-soft);
	color: var(--bitshop-cyan-dark);
}

.bitshop-home-trust-icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.bitshop-home-trust-item > span:last-child {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.bitshop-home-trust-item strong {
	color: var(--bitshop-graphite);
	font-size: 14px;
	font-weight: 800;
}

.bitshop-home-trust-item small {
	color: var(--bitshop-graphite-muted);
	font-size: 12px;
}

@media (max-width: 767px) {
	.bitshop-home-page .workarea {
		background: #f5f7fb;
	}

	.bitshop-home-page .workarea .bx-content-section.container {
		padding-top: 8px;
	}

	.bitshop-home-page .bitshop-market-header {
		min-height: auto;
		padding-top: 0;
	}

	.bitshop-home-page .bitshop-market-logo {
		height: 58px;
	}

	.bitshop-home-page .bitshop-market-logo .bx-logo-block.d-md-none {
		width: min(158px, 52vw);
		height: 58px;
	}

	.bitshop-home-page .bitshop-market-logo .bitshop-brand-logo,
	.bitshop-home-page .bitshop-market-logo img {
		max-height: 54px;
	}

	.bitshop-home {
		background: transparent;
	}

	.bitshop-home .bitshop-hero {
		min-height: 0;
		margin: 8px 0 0;
		border-radius: 20px;
		box-shadow: none;
	}

	.bitshop-home .bitshop-hero-track {
		position: relative;
		inset: auto;
		display: grid;
	}

	.bitshop-home .bitshop-hero-slide {
		position: relative;
		inset: auto;
		grid-area: 1 / 1;
		min-width: 0;
		min-height: 240px;
		padding-top: 0;
		background: #080c16;
	}

	.bitshop-home .bitshop-hero-image {
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		object-fit: cover;
		object-position: 85% center;
		transform: none;
		mask-image: none;
	}

	.bitshop-home .bitshop-hero-slide::after {
		inset: 0;
		height: auto;
		padding: 0;
		background: linear-gradient(0deg, rgba(8, 12, 22, .94), rgba(8, 12, 22, .55) 45%, rgba(8, 12, 22, .08) 100%);
	}

	.bitshop-home .bitshop-hero-link {
		position: relative;
		inset: auto;
		min-height: 240px;
		align-items: flex-end;
		padding: 20px 18px 38px;
	}

	.bitshop-home .bitshop-hero h1,
	.bitshop-home .bitshop-hero h2 {
		max-width: none;
		margin-bottom: 10px;
		font-size: 20px;
		letter-spacing: -.025em;
		line-height: 1.08;
	}

	.bitshop-home .bitshop-hero-description {
		display: none;
	}

	.bitshop-home .bitshop-hero-button {
		min-height: 32px;
		padding: 0 12px;
		border-radius: 10px;
		font-size: 12px;
	}

	.bitshop-home .bitshop-hero-arrows {
		display: none;
	}

	.bitshop-home .bitshop-hero-dots {
		bottom: 12px;
		gap: 5px;
	}

	.bitshop-home .bitshop-hero-dot {
		width: 7px;
		height: 7px;
		border-radius: 50%;
	}

	.bitshop-home .bitshop-hero-dot.is-active {
		width: 22px;
		border-radius: 999px;
	}

	.bitshop-home .bitshop-hero-progress {
		display: none;
	}

	.bitshop-home-trust {
		gap: 7px;
		margin-top: 10px;
	}

	.bitshop-home-trust-item {
		align-items: center;
		flex-direction: column;
		gap: 6px;
		min-height: 92px;
		padding: 10px 4px 8px;
		border: 0;
		border-radius: 15px;
		box-shadow: none;
		text-align: center;
	}

	.bitshop-home-trust-icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}

	.bitshop-home-trust-icon svg {
		width: 20px;
		height: 20px;
	}

	.bitshop-home-trust-item strong {
		font-size: 11px;
		line-height: 1.1;
	}

	.bitshop-home-trust-item small {
		font-size: 9px;
		line-height: 1.15;
	}

	.bitshop-home .bitshop-popular,
	.bitshop-home .bitshop-home-panel {
		margin-top: 12px;
		padding: 18px 12px;
		border: 1px solid rgba(214, 222, 235, .75);
		border-radius: 18px;
		background: var(--bitshop-white);
		box-shadow: none;
	}

	.bitshop-home .bitshop-popular {
		padding-bottom: 12px;
	}

	.bitshop-home .bitshop-popular-heading,
	.bitshop-home .bitshop-home-section-heading {
		align-items: center;
		gap: 10px;
		margin-bottom: 14px;
	}

	.bitshop-home .bitshop-popular-heading h2,
	.bitshop-home .bitshop-home-section-heading h2 {
		font-size: 20px;
		letter-spacing: -.02em;
	}

	.bitshop-home .bitshop-home-section-heading > .bitshop-section-link-button {
		min-height: 32px;
		padding: 0 9px;
		border: 0;
		background: var(--bitshop-cyan-soft);
		font-size: 10px;
		white-space: nowrap;
	}

	.bitshop-home .catalog-section,
	.bitshop-home .catalog-products-viewed {
		gap: 9px;
		margin-right: -12px;
		margin-bottom: 0 !important;
		padding-right: 12px;
	}

	.bitshop-home .bitshop-popular .catalog-section [data-entity="items-row"] > [class*="col-"],
	.bitshop-home .bitshop-popular .catalog-section .product-item-small-card,
	.bitshop-home .bitshop-popular .catalog-section .product-item-big-card,
	.bitshop-home .bitshop-popular .catalog-products-viewed [data-entity="items-row"] > [class*="col-"] {
		flex-basis: min(46vw, 158px);
		max-width: min(46vw, 158px);
	}

	.bitshop-home :is(.catalog-section, .catalog-products-viewed) .product-item {
		padding: 9px 9px 0;
		border: 0;
		border-radius: 14px;
		background: var(--bitshop-white);
		box-shadow: none;
	}

	.bitshop-home .bitshop-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.bitshop-home .bitshop-category-card {
		display: flex;
		min-height: 150px;
		padding: 10px 10px 12px;
		border: 0;
		border-radius: 15px;
		background: var(--bitshop-surface-soft);
		flex-direction: column;
		justify-content: space-between;
	}

	.bitshop-home .bitshop-category-card:nth-child(3n + 2) {
		background: var(--bitshop-surface-soft);
	}

	.bitshop-home .bitshop-category-card:nth-child(3n) {
		background: var(--bitshop-surface-soft);
	}

	.bitshop-home .bitshop-category-card-media {
		align-self: center;
		width: 96px;
		height: 96px;
		border-radius: 0;
		background: var(--bitshop-surface-soft);
	}

	.bitshop-home .bitshop-category-card-media img {
		padding: 2px;
	}

	.bitshop-home .bitshop-category-name {
		align-self: stretch;
		font-size: 13px;
		line-height: 1.15;
		text-align: left;
	}

	.bitshop-home .bitshop-brand-scroll {
		display: grid;
		grid-template-rows: repeat(2, 78px);
		grid-auto-flow: column;
		grid-auto-columns: 116px;
		gap: 8px;
		margin-right: -12px;
		padding-right: 12px;
	}

	.bitshop-home .bitshop-brand-card {
		width: 116px;
		height: 78px;
		min-width: 116px;
		min-height: 78px;
		padding: 11px;
		border-radius: 13px;
	}

	.bitshop-home .bitshop-brand-card img {
		max-width: 92px;
		max-height: 42px;
	}

	.bitshop-home .bitshop-brand-name {
		font-size: 10px;
		line-height: 1;
	}

	.bitshop-home .bitshop-brand-card--tp-link .bitshop-brand-name,
	.bitshop-home .bitshop-brand-card--a4tech .bitshop-brand-name,
	.bitshop-home .bitshop-brand-card--ugreen .bitshop-brand-name,
	.bitshop-home .bitshop-brand-card--bloody .bitshop-brand-name,
	.bitshop-home .bitshop-brand-card--europrint .bitshop-brand-name {
		color: var(--bitshop-white);
	}

	.bitshop-catalog-products-column > .bitshop-catalog-section-title-row {
		margin: 6px 0 14px;
	}

	.bitshop-catalog-products-column > .bitshop-catalog-section-title-row .bitshop-catalog-section-heading {
		margin: 0;
		font-size: 26px;
		letter-spacing: -.025em;
		line-height: 1.12;
	}

	.bitshop-catalog-products-column > .bitshop-catalog-toolbar {
		position: relative;
		top: auto;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0 0 14px;
		padding: 0 0 14px;
		background: transparent;
	}

	.bitshop-catalog-products-column .bitshop-mobile-filter-trigger {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
	}

	.bitshop-catalog-products-column .bitshop-catalog-sort {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		min-width: 0;
	}

	.bitshop-catalog-products-column .bitshop-catalog-sort label {
		display: none;
	}

	.bitshop-catalog-products-column .bitshop-catalog-sort select {
		width: 100%;
		min-width: 0;
		height: 42px;
		padding-left: 11px;
		font-size: 12px;
	}

	/* Product cards stay visually light; horizontal rows are swipe-first on mobile. */
	.bitshop-carousel-button {
		display: none !important;
	}

	:is(.catalog-section, .catalog-products-viewed) .product-item {
		border: 0;
		box-shadow: none;
	}

	:is(.catalog-section, .catalog-products-viewed) .product-item:hover {
		box-shadow: none;
	}

	:is(.catalog-section, .catalog-products-viewed) .bitshop-product-card-benefit {
		display: none !important;
	}

	:is(.catalog-section, .catalog-products-viewed) .bitshop-catalog-compare,
	html body .bitshop-popular :is(.catalog-section, .catalog-products-viewed) .product-item-container .product-item-info-container[data-entity="buttons-block"],
	html body :is(.catalog-section, .catalog-products-viewed) .product-item-container .product-item-info-container[data-entity="buttons-block"] {
		display: none !important;
	}

	:is(.catalog-section, .catalog-products-viewed) .bitshop-catalog-favorite,
	:is(.catalog-section, .catalog-products-viewed) .bitshop-catalog-favorite:hover,
	:is(.catalog-section, .catalog-products-viewed) .bitshop-catalog-favorite:focus-visible {
		background: transparent;
	}

	/* A single compact brand header for the mobile storefront. */
	.bitshop-home-page .bx-header {
		position: relative;
		isolation: isolate;
		padding-bottom: 14px;
		overflow: visible;
		border-radius: 0 0 24px 24px;
		background:
			radial-gradient(circle at 92% 5%, rgba(63, 174, 255, .28), transparent 32%),
			linear-gradient(135deg, #0d1524 0%, #12346d 68%, #0b5cff 135%);
		box-shadow: none;
	}

	.bitshop-home-page .bitshop-city-strip {
		min-height: 38px;
		border-bottom-color: rgba(255, 255, 255, .13);
		background: transparent;
	}

	.bitshop-home-page .bitshop-city-strip-inner {
		min-height: 38px;
	}

	.bitshop-home-page .bitshop-city-trigger {
		min-height: 38px;
		padding-left: 0;
		color: var(--bitshop-white);
	}

	.bitshop-home-page .bitshop-city-trigger:hover,
	.bitshop-home-page .bitshop-city-trigger:focus-visible,
	.bitshop-home-page .bitshop-city-selector[open] .bitshop-city-trigger {
		background: transparent;
		color: var(--bitshop-white);
	}

	.bitshop-home-page .bitshop-city-reset {
		min-height: 38px;
		color: rgba(255, 255, 255, .62);
		font-weight: 600;
	}

	.bitshop-home-page .bitshop-city-reset:hover,
	.bitshop-home-page .bitshop-city-reset:focus-visible {
		color: var(--bitshop-white);
	}

	.bitshop-home-page .bitshop-header-secondary-link,
	.bitshop-home-page .bitshop-header-secondary-link:hover,
	.bitshop-home-page .bitshop-header-secondary-link:focus-visible {
		background: transparent;
		color: var(--bitshop-white);
	}

	.bitshop-home-page .bx-header-section.container {
		padding-right: 16px;
		padding-left: 16px;
		background: transparent;
	}

	.bitshop-home-page .bitshop-market-header {
		gap: 8px;
		padding: 8px 0 0;
	}

	.bitshop-home-page .bitshop-market-logo {
		justify-content: flex-start;
		height: 48px;
		gap: 12px;
	}

	.bitshop-home-page .bitshop-market-logo .bx-logo-block.d-md-none {
		flex: 0 0 126px;
		width: 126px;
		height: 46px;
	}

	.bitshop-home-page .bitshop-market-logo .bitshop-brand-logo,
	.bitshop-home-page .bitshop-market-logo img {
		max-width: 126px;
		max-height: 46px;
	}

	.bitshop-home-page .bitshop-mobile-brand-note {
		display: block;
		flex: 0 0 118px;
		width: 118px;
		height: 1px;
	}

	.bitshop-home-page .bitshop-header-search {
		position: relative;
		width: 100%;
	}

	.bitshop-home-page .bitshop-header-search input[type="text"],
	.bitshop-home-page .bitshop-header-search input[type="search"] {
		height: 48px;
		min-height: 48px;
		padding-right: 16px;
		padding-left: 44px;
		border: 1px solid var(--bitshop-border);
		border-radius: 14px;
		background-color: rgba(255, 255, 255, .98);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7785' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 4.5 4.5'/%3E%3C/svg%3E");
		background-position: 15px 50%;
		background-repeat: no-repeat;
		background-size: 20px 20px;
		box-shadow: none;
	}

	.bitshop-home-page .workarea .bx-content-section.container {
		padding-top: 12px;
	}

	.bitshop-home .bitshop-hero {
		margin-top: 0;
	}

	/* Mobile product page: edge-to-edge media and a continuous two-column feed. */
	.bitshop-product-assurances {
		display: none !important;
	}

	.bitshop-product-summary .product-item-detail-properties,
	.bitshop-product-summary .bitshop-show-all-properties {
		display: none !important;
	}

	.bx-site > .col:has(> .bx-catalog-element) {
		padding-right: 0;
		padding-left: 0;
	}

	.bx-catalog-element > .bitshop-product-hero {
		margin-right: 0;
		margin-left: 0;
	}

	.bx-catalog-element > .bitshop-product-hero > .col-md:first-child {
		flex: 0 0 calc(100% + 32px);
		width: calc(100% + 32px);
		max-width: calc(100% + 32px);
		margin-right: -16px;
		margin-left: -16px;
		padding-right: 0;
		padding-left: 0;
	}

	.bx-catalog-element > .bitshop-product-hero > div:nth-child(2) {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
		padding-left: 0;
	}

	.bx-catalog-element .product-item-detail-slider-block {
		border: 0;
		border-radius: 0;
	}

	.bx-catalog-element .product-item-detail-slider-image img {
		outline: 0;
	}

	.bx-catalog-element .bitshop-product-mobile-title-row .bitshop-product-mobile-name {
		margin: 0;
		font-size: 18px;
		font-weight: 750;
		letter-spacing: -.018em;
		line-height: 1.08;
	}

	.bitshop-product-row-popular {
		overflow: visible;
	}

	.bitshop-product-row-popular .catalog-section {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 10px;
		margin-right: 0;
		margin-left: 0;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.bitshop-product-row-popular .catalog-section [data-entity="items-row"] {
		display: contents !important;
		margin: 0;
	}

	.bitshop-product-row-popular .catalog-section [data-entity="items-row"] > [class*="col-"],
	.bitshop-product-row-popular .catalog-section .product-item-small-card,
	.bitshop-product-row-popular .catalog-section .product-item-big-card {
		width: auto;
		max-width: none;
		padding: 0;
	}

	/* Product information appears before recommendations as compact Bitshop tabs. */
	.bx-catalog-element .bitshop-product-details {
		margin: 20px 0 0;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tabs-container {
		display: block !important;
		min-height: 0;
		overflow: visible;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tabs-list {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0;
		padding: 0 0 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tabs-list::-webkit-scrollbar {
		display: none;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab {
		flex: 0 0 auto;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-link {
		min-height: 38px;
		padding: 9px 14px;
		border: 0;
		border-radius: 10px;
		background: var(--bitshop-surface-soft);
		color: var(--bitshop-graphite);
		font-size: 13px;
		font-weight: 700;
		line-height: 20px;
		white-space: nowrap;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab.active .product-item-detail-tab-link,
	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-link:hover {
		background: var(--bitshop-cyan-dark);
		color: var(--bitshop-white);
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-content {
		display: none !important;
		padding: 16px 0 6px;
		color: var(--bitshop-graphite);
		font-size: 14px;
		line-height: 1.5;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-content.active {
		display: block !important;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-content[style*="display: none"] {
		display: none !important;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-content[style*="display: block"] {
		display: block !important;
	}

	.bx-catalog-element .bitshop-product-details .product-item-detail-tab-content[data-value="properties"]:not(:has(.bitshop-properties-title))::before {
		display: block;
		margin: 0 0 8px;
		color: var(--bitshop-graphite);
		content: "Основные характеристики";
		font-size: 19px;
		font-weight: 800;
		line-height: 1.2;
	}

	.bx-catalog-element .bitshop-properties-title {
		margin: 0 0 8px;
		color: var(--bitshop-graphite);
		font-size: 19px;
		font-weight: 800;
		line-height: 1.2;
	}

	.bx-catalog-element .bitshop-full-properties-grid,
	.bx-catalog-element .bitshop-full-properties-grid.is-two-columns {
		display: block;
	}

	.bx-catalog-element .bitshop-full-properties {
		margin: 0;
		padding: 0;
	}

	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item,
	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item.bitshop-property-long {
		display: grid;
		grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
		gap: 8px;
		align-items: start;
		margin: 0;
		padding: 12px 0;
		border-bottom: 1px solid var(--bitshop-border);
	}

	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-name,
	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item:not(.bitshop-property-long) .product-item-detail-properties-name,
	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item.bitshop-property-long .product-item-detail-properties-name {
		flex: none;
		width: auto;
		max-width: 100%;
		color: var(--bitshop-graphite-muted);
		font-size: 13px;
		font-weight: 600;
		line-height: 1.32;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
	}

	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-dots {
		display: none;
	}

	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-value,
	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item:not(.bitshop-property-long) .product-item-detail-properties-value,
	.bx-catalog-element .bitshop-full-properties .product-item-detail-properties-item.bitshop-property-long .product-item-detail-properties-value {
		flex: none;
		width: auto;
		max-width: 100%;
		color: var(--bitshop-graphite);
		font-size: 13px;
		font-weight: 600;
		line-height: 1.32;
		text-align: left;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
	}

	.bx-catalog-element .bitshop-full-properties-grid.is-mobile-collapsed .bitshop-property-mobile-extra {
		display: none;
	}

	.bx-catalog-element .bitshop-properties-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
		margin-top: 12px;
		padding: 10px 16px;
		border: 1px solid var(--bitshop-cyan-dark);
		border-radius: 10px;
		background: var(--bitshop-white);
		color: var(--bitshop-cyan-dark);
		font-size: 14px;
		font-weight: 700;
		line-height: 20px;
	}

	.bitshop-product-row-viewed {
		margin-top: 8px;
		padding-top: 16px;
	}

	.bitshop-product-row-popular {
		margin-top: 22px;
		padding-top: 20px;
		border: 0;
	}

	.bitshop-home-page .bx-footer {
		margin-top: 20px;
	}
}
