/**
 * Сетка Dokan без Bootstrap: dokan-w3 / dokan-w8 и очистка потока.
 *
 * @see https://dokan.co/docs/wordpress/how-to-make-a-theme-dokan-compatible/
 */
.dokan-clearfix::after {
	content: "";
	display: block;
	clear: both;
}

@media (min-width: 768px) {
	.dokan-w3 {
		float: left;
		width: 28%;
		max-width: 18rem;
	}

	.dokan-w8 {
		float: left;
		width: calc(72% - 1rem);
	}
}

.dokan-single-store::after,
.store-page-wrap::after {
	content: "";
	display: block;
	clear: both;
}

.seller-items .woocommerce-loop-product__title {
	font-size: 1rem;
}

@media (max-width: 767px) {
	.dokan-w3,
	.dokan-w8 {
		float: none;
		width: 100%;
		max-width: none;
	}
}

/**
 * Vendor storefront (desktop) styles based on Figma node 6706:7474.
 */
.rg-vendor-store {
	position: relative;
	width: 100vw;
	min-height: calc(100vh - 67px);
	margin-inline: calc(50% - 50vw);
	padding: 20px 0 120px;
	background-color: #0b0d11 !important;
	background:
		radial-gradient(ellipse at 22% 22%, rgba(33, 160, 120, 0.28) 0%, rgba(11, 13, 17, 0) 36%),
		linear-gradient(180deg, #0b0d11 0%, #1c1d1e 56%, #292929 100%);
}

.rg-vendor-store::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(15, 17, 20, 0.2) 0%, rgba(15, 17, 20, 0.84) 100%);
	pointer-events: none;
}

.rg-vendor-store__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--regagro-max-width, 1296px);
	padding: 0;
	margin: 0 auto;
}

.rg-vendor-store .woocommerce-breadcrumb,
.rg-vendor-store__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-bottom: 40px;
	font-family: "DM Sans", sans-serif;
	font-size: 17px;
	line-height: 20px;
	letter-spacing: -0.02em;
	color: #fff;
}

.rg-vendor-store .woocommerce-breadcrumb a,
.rg-vendor-store__breadcrumbs a {
	color: #fff;
	opacity: 0.5;
	text-decoration: none;
}

.rg-vendor-store .woocommerce-breadcrumb .breadcrumb-delimiter,
.rg-vendor-store .woocommerce-breadcrumb .breadcrumb-separator {
	color: #fff;
	opacity: 0.5;
	flex-shrink: 0;
}

.rg-vendor-store .woocommerce-breadcrumb a:last-of-type,
.rg-vendor-store__breadcrumbs a:last-child {
	opacity: 1;
}

.rg-vendor-store__breadcrumbs span {
	color: rgba(255, 255, 255, 0.5);
}

.rg-vendor-store__hero {
	position: relative;
	height: 270px;
	margin-bottom: 30px;
}

.rg-vendor-store__banner {
	height: 220px;
	border-radius: 15px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(52, 53, 55, 0.25) 0%, rgba(52, 53, 55, 0.45) 100%);
}

.rg-vendor-store__banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rg-vendor-store__banner-fallback {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 70% 30%, rgba(22, 156, 117, 0.28) 0%, rgba(22, 156, 117, 0) 44%),
		linear-gradient(120deg, #0f3c35 0%, #156450 50%, #0c2f2c 100%);
}

.rg-vendor-store__avatar-wrap {
	position: absolute;
	left: 46px;
	bottom: 0;
	width: 150px;
	height: 150px;
	border: 1px solid #434343;
	border-radius: 10px;
	overflow: hidden;
	background: #202224;
}

.rg-vendor-store__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rg-vendor-store__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 108px;
	margin-bottom: 60px;
	width: 100%;
}

.rg-vendor-store__title {
	margin: 0;
	flex: 0 0 416px;
	max-width: 416px;
	font-family: "Montserrat", sans-serif;
	font-size: 50px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #fff;
}

.rg-vendor-store__contacts {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	flex: 0 0 746px;
	column-gap: 30px;
	gap: 12px;
	width: 746px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 20px;
	letter-spacing: -0.02em;
	color: #949494;
}

.rg-vendor-store__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.rg-vendor-store__contact-phone {
	flex: 0 0 131px;
}

.rg-vendor-store__contact-email {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	flex: 0 0 100%;
}

.rg-vendor-store__contact-address {
	display: inline-flex;
	align-items: flex-start;
	gap: 12px;
	flex: 0 0 585px;
	max-width: 585px;
}

.rg-vendor-store__contact-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rg-vendor-store__contact-icon {
	display: inline-block;
	flex: 0 0 auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.rg-vendor-store__contact-icon--phone {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background-image: url("../icons/vendor-phone.svg");
}

.rg-vendor-store__contact-icon--address {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background-image: url("../icons/vendor-address.svg");
}

.rg-vendor-store__products-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 50px;
}

.rg-vendor-store__products-title {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #fff;
}

.rg-vendor-store__toolbar {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 966px;
}

.rg-vendor-store__search,
.rg-vendor-store__orderby {
	border: 1px solid #72706e;
	color: #a2a2a2;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0;
	outline: none;
	box-sizing: border-box;
}

.rg-vendor-store__toolbar input.rg-vendor-store__search {
	width: 636px !important;
	height: 41px !important;
	padding: 10px 36px 10px 10px !important;
	border: 0 !important;
	border-bottom: 1px solid #72706e !important;
	border-radius: 0 !important;
	background-color: rgba(52, 53, 55, 0.06) !important;
	background-image: url("../icons/vendor-search.svg") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 16px 16px !important;
	-webkit-appearance: none;
	appearance: none;
}

.rg-vendor-store__search::placeholder {
	color: #a2a2a2;
	opacity: 1;
}

.rg-vendor-store__toolbar input.rg-vendor-store__search::-webkit-search-decoration,
.rg-vendor-store__toolbar input.rg-vendor-store__search::-webkit-search-cancel-button,
.rg-vendor-store__toolbar input.rg-vendor-store__search::-webkit-search-results-button,
.rg-vendor-store__toolbar input.rg-vendor-store__search::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.rg-vendor-store__orderby {
	width: 306px;
	height: 41px;
	padding: 10px 44px 10px 15px;
	border: 0;
	border-radius: 10px;
	background: rgba(52, 53, 55, 0.36);
	-webkit-appearance: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #a2a2a2 50%), linear-gradient(135deg, #a2a2a2 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.rg-vendor-store__items ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	align-items: start;
}

.rg-vendor-store__items ul.products li.product .star-rating,
.rg-vendor-store__items ul.products li.product .onsale,
.rg-vendor-store__items ul.products li.product .added_to_cart {
	display: none !important;
}

.rg-vendor-store__items ul.products::before,
.rg-vendor-store__items ul.products::after {
	display: none;
}

.rg-vendor-store__items ul.products li.product {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

/**
 * Карточка товара на витрине вендора — Figma node 6718:7060 (вертикальные gap 20 / 30, медиа 416×420, скругления 30 / 100).
 */
.rg-vendor-store__items .rg-vendor-product-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
	height: 594px;
	min-height: 594px;
	box-sizing: border-box;
}

.rg-vendor-store__items .rg-vendor-product-card__top {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	height: 521px;
	box-sizing: border-box;
}

.rg-vendor-store__items .rg-vendor-product-card__media-link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 0;
	aspect-ratio: 416 / 420;
	overflow: hidden;
	text-decoration: none;
	border-radius: 30px;
	background-color: rgba(180, 180, 180, 0.09);
	position: relative;
}

.rg-vendor-store__items .rg-vendor-product-card__media-link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.65);
	outline-offset: 3px;
}

.rg-vendor-store__items .rg-vendor-product-card__media-link img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	border: 0;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
	vertical-align: top;
}

.rg-vendor-store__items ul.products li.product a img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	object-fit: contain !important;
	border-radius: 0 !important;
}

.rg-vendor-store__items .rg-vendor-product-card__media-link .woocommerce-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	font-family: "DM Sans", sans-serif;
	color: rgba(255, 255, 255, 0.45);
	background-color: rgba(52, 53, 55, 0.35);
}

.rg-vendor-store__items .rg-vendor-product-card__meta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 81px;
}

.rg-vendor-store__items .rg-vendor-product-card__title-price {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 31px;
}

.rg-vendor-store__items .rg-vendor-product-card .woocommerce-loop-product__title {
	flex: 1 1 auto;
	align-self: flex-start;
	margin: 0;
	padding: 0;
	min-width: 0;
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: -0.02em;
}

.rg-vendor-store__items .rg-vendor-product-card .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.rg-vendor-store__items .rg-vendor-product-card .woocommerce-loop-product__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rg-vendor-store__items .rg-vendor-product-card .price {
	display: inline-flex;
	flex: 0 0 auto;
	align-self: flex-start;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "DM Sans", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: right;
}

.rg-vendor-store__items .rg-vendor-product-card .price del {
	opacity: 0.65;
	font-weight: 400;
}

.rg-vendor-store__items .rg-vendor-product-card .price ins {
	font-weight: 400;
	text-decoration: none;
}

.rg-vendor-store__items .rg-vendor-product-card__subtitle {
	margin: 0;
	max-width: 100%;
	min-height: 42px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.5);
}

.rg-vendor-store__items .rg-vendor-product-card .button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 43px;
	padding: 10px 40px;
	border: none;
	border-radius: 100px;
	background: #18785b;
	color: #fff;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.rg-vendor-store__items ul.products li.product .button,
.rg-vendor-store__items ul.products li.product .add_to_cart_button,
.rg-vendor-store__items ul.products li.product .ajax_add_to_cart {
	width: 100%;
	height: 43px;
	min-height: 43px;
	margin: 0;
}

.rg-vendor-store__items .rg-vendor-product-card .button:hover {
	background-color: #1f8f6f;
	color: #fff;
	text-decoration: none;
}

.rg-vendor-store__items .rg-vendor-product-card .button:disabled,
.rg-vendor-store__items .rg-vendor-product-card .button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.rg-vendor-store__products .woocommerce-breadcrumb,
.rg-vendor-store .woocommerce-result-count,
.rg-vendor-store .woocommerce-ordering,
.rg-vendor-store .dokan-store-products-filter-area,
.rg-vendor-store .dokan-store-products-ordeby,
.rg-vendor-store .dokan-store-products-filter-button {
	display: none !important;
}

body .site-main .rg-vendor-store + .woocommerce-notices-wrapper {
	display: none;
}

.rg-vendor-store-page .site-inner {
	max-width: 100%;
	padding: 0;
}

.rg-vendor-store-page .site-main {
	background: transparent;
}

.rg-vendor-store__sidebar {
	display: none;
}

/**
 * Узкий вьюпорт: без горизонтального скролла и фиксированных ширин из макета.
 */
@media (max-width: 1280px) {
	.rg-vendor-store {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		box-sizing: border-box;
		overflow-x: hidden;
	}

	body.rg-vendor-store-page #page.site,
	body.rg-vendor-store-page .site-inner,
	body.rg-vendor-store-page .site-main {
		max-width: 100%;
		min-width: 0;
	}

	.rg-vendor-store__container {
		padding-inline: 10px;
	}

	.rg-vendor-store__head {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		margin-bottom: 2.5rem;
	}

	.rg-vendor-store__title {
		flex: 1 1 auto;
		max-width: 100%;
		font-size: clamp(1.75rem, 6vw, 2.5rem);
	}

	.rg-vendor-store__contacts {
		flex: 1 1 auto;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		column-gap: 0;
		row-gap: 1rem;
	}

	.rg-vendor-store__contact-phone,
	.rg-vendor-store__contact-email {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.rg-vendor-store__contact-address {
		flex: 1 1 auto;
		max-width: 100%;
		width: auto;
	}

	.rg-vendor-store__contact-text {
		display: block;
		overflow: visible;
		overflow-wrap: break-word;
		word-break: break-word;
		-webkit-box-orient: unset;
		-webkit-line-clamp: unset;
	}

	.rg-vendor-store__hero {
		height: auto;
		min-height: 220px;
		margin-bottom: 1.75rem;
	}

	.rg-vendor-store__avatar-wrap {
		left: min(46px, 4vw);
	}

	.rg-vendor-store__products-head {
		flex-direction: column;
		align-items: stretch;
		gap: 1.25rem;
		margin-bottom: 2rem;
	}

	.rg-vendor-store__products-title {
		font-size: clamp(1.5rem, 5vw, 2rem);
	}

	.rg-vendor-store__toolbar {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		gap: 1rem;
	}

	.rg-vendor-store__toolbar input.rg-vendor-store__search {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		min-width: 0;
	}

	.rg-vendor-store__orderby {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		min-width: 0;
	}

	.rg-vendor-store__items ul.products {
		grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
		gap: clamp(1rem, 3vw, 1.25rem);
	}
}
