/*
 * Dokan public store skin
 *
 * Dokan 5 changes the store profile at 1200px, but starts its sidebar layout at
 * 1000px. That mismatch squeezes the profile and product grid between those
 * breakpoints. Keep the store stacked until both layouts can use desktop mode.
 */

.dokan-store .woocommerce-breadcrumb {
	width: 100%;
	max-width: var(--odpx-container);
	margin: 14px auto 0;
	padding-inline: var(--odpx-gap);
	color: var(--odpx-ink-soft);
}

.dokan-store-wrap {
	width: 100%;
	max-width: var(--odpx-container);
	margin: 20px auto clamp(36px, 6vw, 72px);
	padding-inline: var(--odpx-gap);
	gap: clamp(22px, 3vw, 36px);
	align-items: flex-start;
}

.dokan-store-wrap.layout-left {
	flex-direction: column-reverse;
}

.dokan-store-wrap .dokan-store-sidebar,
.dokan-store-wrap .dokan-single-store {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.dokan-store .profile-frame,
.dokan-store .dokan-store-tabs,
.dokan-store .dokan-store-widget {
	overflow: hidden;
	border: 1px solid var(--odpx-line);
	border-radius: var(--odpx-radius);
	background: var(--odpx-bg);
	box-shadow: var(--odpx-shadow);
}

.dokan-store .profile-frame .profile-info-img {
	display: block;
	width: 100%;
	aspect-ratio: 3.2 / 1;
	object-fit: cover;
}

.dokan-store .profile-info-summery-wrapper {
	border-color: var(--odpx-line) !important;
}

.dokan-store .dokan-store-tabs {
	margin-top: 14px;
}

.dokan-store .dokan-store-tabs ul {
	margin: 0;
	padding: 0;
	border: 0;
}

.dokan-store .dokan-store-tabs ul li {
	margin: 0;
	border: 0;
}

.dokan-store .dokan-store-tabs ul li a {
	display: block;
	padding: 12px 18px;
	border-bottom: 3px solid transparent;
	color: var(--odpx-ink-soft);
	font-weight: 700;
}

.dokan-store .dokan-store-tabs ul li.active a,
.dokan-store .dokan-store-tabs ul li a:hover {
	border-color: var(--odpx-brand);
	background: var(--odpx-bg-soft);
	color: var(--odpx-brand-dark);
}

.dokan-store .dokan-store-products-filter-area {
	margin: 18px 0 24px;
}

.dokan-store .dokan-store-products-ordeby {
	display: flex;
	width: 100%;
	min-height: 42px;
	gap: 8px;
	align-items: stretch;
}

.dokan-store .dokan-store-products-filter-area .product-name-search,
.dokan-store .dokan-store-products-filter-area .orderby-search {
	height: 42px;
	margin: 0;
	border: 1px solid var(--odpx-line);
	border-radius: var(--odpx-radius-sm);
	background: var(--odpx-bg);
	color: var(--odpx-ink);
	font: inherit;
	float: none;
	box-shadow: none;
}

.dokan-store .dokan-store-products-filter-area .product-name-search {
	flex: 1 1 260px;
	width: auto;
	min-width: 0;
	padding: 8px 11px;
}

.dokan-store .dokan-store-products-filter-area .orderby-search {
	flex: 0 1 230px;
	width: auto;
	padding-inline: 10px 32px;
}

.dokan-store .dokan-store-products-filter-area .search-store-products {
	flex: 0 0 auto;
	height: 42px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--odpx-brand);
	border-radius: var(--odpx-radius-sm);
	background: var(--odpx-brand);
	color: var(--odpx-brand-ink);
	font: inherit;
	font-weight: 700;
	line-height: 40px;
	float: none;
}

.dokan-store .dokan-store-products-filter-area .search-store-products:hover,
.dokan-store .dokan-store-products-filter-area .search-store-products:focus {
	border-color: var(--odpx-brand-dark);
	background: var(--odpx-brand-dark);
	color: #fff;
}

.dokan-store .dokan-store-products-filter-area :is(.product-name-search, .orderby-search):focus {
	border-color: var(--odpx-brand-dark);
	outline: 2px solid rgba(16, 157, 22, .14);
	outline-offset: 1px;
}

.dokan-store .seller-items ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 28px) clamp(12px, 1.7vw, 22px);
	margin: 0;
}

.dokan-store .seller-items ul.products::before,
.dokan-store .seller-items ul.products::after {
	display: none;
	content: none;
}

.dokan-store .seller-items ul.products li.product {
	display: flex;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: 12px;
	border: 1px solid var(--odpx-line);
	border-radius: var(--odpx-radius);
	background: var(--odpx-bg);
	flex-direction: column;
	float: none !important;
	box-shadow: var(--odpx-shadow);
}

.dokan-store .seller-items ul.products li.product .woocommerce-LoopProduct-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.dokan-store .seller-items ul.products li.product img {
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 12px;
	object-fit: contain;
}

.dokan-store .seller-items ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 8px;
	color: var(--odpx-ink);
	font-size: .94rem;
	line-height: 1.45;
}

.dokan-store .seller-items ul.products li.product .price {
	margin-top: auto;
	color: var(--odpx-brand-dark);
	font-weight: 800;
}

.dokan-store .seller-items ul.products li.product .button {
	width: 100%;
	margin-top: 12px;
	text-align: center;
}

.dokan-store .dokan-store-widget {
	padding: 18px;
}

.dokan-store .dokan-store-widget .widget-title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--odpx-line);
	color: var(--odpx-ink);
	font-size: 1rem;
}

.dokan-store .dokan-store-widget ul {
	margin: 0;
	padding-left: 18px;
}

.dokan-store .dokan-store-widget > ul {
	padding-left: 0;
	list-style: none;
}

.dokan-store .dokan-store-widget > ul > li {
	padding-block: 7px;
	border-bottom: 1px solid var(--odpx-line);
}

.dokan-store .dokan-store-widget > ul > li:last-child {
	border-bottom: 0;
}

.dokan-store .dokan-store-widget a {
	color: var(--odpx-ink-soft);
}

.dokan-store .dokan-store-widget a:hover {
	color: var(--odpx-brand-dark);
}

@media (min-width: 900px) {
	.dokan-store .dokan-single-store .profile-frame .profile-info-box.profile-layout-default {
		min-height: 310px;
	}

	.dokan-store .dokan-single-store .profile-frame .profile-info-box.profile-layout-default img.profile-info-img {
		position: absolute;
		inset: 0;
		height: 100% !important;
		aspect-ratio: auto;
	}

	.dokan-store .dokan-single-store .profile-frame .profile-info-box.profile-layout-default .profile-info-summery-wrapper {
		position: relative;
		height: 100%;
		border: 0 !important;
		background: transparent;
		color: #fff;
	}

	.dokan-store .dokan-single-store .profile-frame .profile-info-box.profile-layout-default .profile-info-summery-wrapper .profile-info-summery {
		display: flex;
		width: 320px;
		min-height: 310px;
		padding: 22px 0;
		background: rgba(14, 67, 36, .9);
		flex-direction: column;
		justify-content: center;
	}
}

@media (min-width: 1200px) {
	.dokan-store-wrap.layout-left {
		flex-direction: row;
	}

	.dokan-store-wrap.layout-right {
		flex-direction: row-reverse;
	}

	.dokan-store-wrap .dokan-store-sidebar {
		flex: 0 0 260px;
		margin: 0 !important;
	}

	.dokan-store-wrap .dokan-single-store {
		flex: 1 1 auto;
	}

	.dokan-store .profile-frame .profile-info-box .profile-info-summery-wrapper .profile-info-summery {
		background: rgba(14, 67, 36, .9);
	}
}

@media (max-width: 899px) {
	.dokan-store .seller-items ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.dokan-store-wrap .dokan-store-sidebar,
	.dokan-store-wrap .dokan-single-store {
		width: 100% !important;
	}

	.dokan-store .dokan-store-products-ordeby {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.dokan-store .dokan-store-products-filter-area .product-name-search,
	.dokan-store .dokan-store-products-filter-area .search-store-products {
		width: 100% !important;
	}

	.dokan-store .dokan-store-products-filter-area .orderby-search {
		width: 100%;
		max-width: none;
		grid-column: 1 / -1;
	}

	.dokan-store .seller-items ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 430px) {
	.dokan-store .seller-items ul.products {
		grid-template-columns: 1fr;
	}
}
