/*
 * Hoorsun Shop Enhancer 1.0.0
 * The active theme keeps full control of header and footer.
 */

body.hsep-shop-active .hst-shop-hero {
	display: none !important;
}

.hsep-hero,
.hsep-hero *,
.hsep-shop-intro,
.hsep-shop-intro *,
.hsep-shop-layout,
.hsep-shop-layout *,
.hsep-consultation,
.hsep-consultation * {
	box-sizing: border-box;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.hsep-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 24% 45%, rgba(255,107,0,.18), transparent 27%),
		linear-gradient(115deg, #061d3d, #082957 57%, #0b3264);
}

.hsep-hero__grid {
	min-height: 300px;
	display: grid;
	grid-template-columns: 52% 48%;
	align-items: stretch;
	direction: ltr;
}

.hsep-hero__visual {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.hsep-hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hsep-hero__content {
	padding: 38px 44px 38px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	direction: rtl;
	text-align: right;
}

.hsep-hero__content > span {
	color: rgba(255,255,255,.82);
	font-size: 12px;
	font-weight: 800;
}

.hsep-hero__content h1 {
	max-width: 620px;
	margin: 7px 0 8px;
	color: #fff;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 900;
	line-height: 1.5;
}

.hsep-hero__content i {
	width: 52px;
	height: 3px;
	margin-bottom: 14px;
	border-radius: 3px;
	background: #ff6b00;
}

.hsep-hero__content p {
	max-width: 600px;
	margin: 0;
	color: rgba(255,255,255,.83);
	font-size: 14px;
	line-height: 2;
}

.hsep-shop-intro {
	margin: 18px 0 16px;
}

.hsep-categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.hsep-category-card {
	min-height: 92px;
	overflow: hidden;
	border: 1px solid #e1e7ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 7px 20px rgba(8,41,87,.06);
	transition: .18s ease;
}

.hsep-category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(8,41,87,.11);
}

.hsep-category-card img {
	width: 100%;
	height: 100%;
	min-height: 92px;
	object-fit: cover;
}

.hsep-trust-bar {
	margin-top: 14px;
	padding: 14px 16px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	border: 1px solid #e1e7ef;
	border-radius: 14px;
	background: #fff;
}

.hsep-trust-item {
	padding: 4px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border-left: 1px solid #e6ebf1;
}

.hsep-trust-item:last-child {
	border-left: 0;
}

.hsep-trust-icon {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	color: #0b3264;
}

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

.hsep-trust-item strong {
	display: block;
	color: #0b3264;
	font-size: 12px;
	font-weight: 900;
}

.hsep-trust-item span {
	display: block;
	color: #637087;
	font-size: 9.5px;
	line-height: 1.7;
}

.hsep-mobile-tools {
	display: none;
}

.hsep-shop-layout {
	margin-top: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 286px;
	grid-template-areas: "products sidebar";
	gap: 18px;
	align-items: start;
	direction: ltr;
}

.hsep-shop-layout.hsep-no-sidebar {
	grid-template-columns: 1fr;
	grid-template-areas: "products";
}

.hsep-filter-sidebar,
.hsep-products-column {
	direction: rtl;
}

.hsep-filter-sidebar {
	grid-area: sidebar;
	grid-row: 1;
	position: sticky;
	top: 18px;
	padding: 18px;
	border: 1px solid #e1e7ef;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(8,41,87,.055);
}

.hsep-products-column {
	grid-area: products;
	grid-row: 1;
	min-width: 0;
}

.hsep-filter-close {
	display: none;
}

.hsep-filter-heading {
	margin-bottom: 8px;
	padding-bottom: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #e7ebf0;
	color: #0b3264;
}

.hsep-filter-heading strong {
	font-size: 14px;
	font-weight: 900;
}

.hsep-filter-heading svg,
.hsep-mobile-tools svg,
.hsep-grid-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hsep-filter-form details {
	border-bottom: 1px solid #edf0f4;
}

.hsep-filter-form summary {
	padding: 13px 0;
	color: #102c59;
	font-size: 11.5px;
	font-weight: 800;
	cursor: pointer;
}

.hsep-filter-options {
	padding: 0 2px 11px;
	display: grid;
	gap: 8px;
}

.hsep-filter-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #637087;
	font-size: 10.5px;
	cursor: pointer;
}

.hsep-filter-options input {
	width: 16px;
	height: 16px;
	accent-color: #ff6b00;
}

.hsep-price-fields {
	padding-bottom: 12px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.hsep-price-fields input {
	width: 100%;
	height: 39px;
	padding: 7px 9px;
	border: 1px solid #dce2ea;
	border-radius: 8px;
	font-size: 10px;
}

.hsep-filter-form > button {
	width: 100%;
	min-height: 43px;
	margin-top: 14px;
	border: 0;
	border-radius: 9px;
	color: #fff;
	background: #0b3264;
	font-size: 11.5px;
	font-weight: 900;
	cursor: pointer;
}

.hsep-clear-filter {
	margin-top: 10px;
	display: block;
	color: #637087 !important;
	font-size: 10px;
	text-align: center;
}

.hsep-shop-toolbar {
	min-height: 55px;
	margin-bottom: 14px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid #e1e7ef;
	border-radius: 12px;
	background: #fff;
}

.hsep-result-count .woocommerce-result-count {
	margin: 0 !important;
	color: #637087;
	font-size: 10.5px;
}

.hsep-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hsep-grid-icon {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid #e0e6ee;
	border-radius: 8px;
	color: #0b3264;
}

.hsep-ordering-wrap .woocommerce-ordering {
	margin: 0 !important;
}

.hsep-ordering-wrap select {
	min-width: 175px;
	height: 38px;
	padding: 6px 9px;
	border: 1px solid #dce2ea;
	border-radius: 8px;
	color: #102c59;
	background: #fff;
	font-size: 10.5px;
}

body.hsep-shop-active ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px !important;
}

body.hsep-shop-active ul.products li.product {
	position: relative;
	padding: 13px 12px 14px !important;
	border-radius: 15px !important;
	box-shadow: 0 7px 22px rgba(8,41,87,.06) !important;
}

body.hsep-shop-active ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: contain !important;
}

body.hsep-shop-active ul.products li.product .woocommerce-loop-product__title {
	min-height: 67px;
	font-size: 13px !important;
	line-height: 1.75 !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.hsep-product-badge {
	position: absolute;
	z-index: 4;
	top: 10px;
	right: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	color: #fff;
	font-size: 9px;
	font-weight: 900;
}

.hsep-product-badge-sale {
	background: #ff6b00;
}

.hsep-product-badge-stock {
	background: #29984a;
}

.hsep-product-specs {
	margin: 6px 0 10px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 5px;
}

.hsep-product-specs span {
	min-height: 29px;
	padding: 5px 4px;
	display: grid;
	place-items: center;
	border: 1px solid #e2e7ed;
	border-radius: 6px;
	color: #4f5d73;
	background: #fff;
	font-size: 8.5px;
	text-align: center;
}

body.hsep-shop-active ul.products li.product .price {
	color: #ff6b00 !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	text-align: center;
}

.hsep-details-button,
body.hsep-shop-active ul.products li.product .button {
	width: calc(50% - 4px) !important;
	min-height: 39px;
	margin-top: 5px !important;
	padding: 7px 6px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 8px !important;
	font-size: 10px !important;
	font-weight: 900 !important;
	vertical-align: top;
}

.hsep-details-button {
	margin-left: 4px;
	border: 1px solid #0b3264;
	color: #0b3264 !important;
	background: #fff;
}

body.hsep-shop-active ul.products li.product .button {
	margin-right: 4px !important;
	color: #fff !important;
	background: #ff6b00 !important;
}

.hsep-consultation {
	margin: 18px 0 28px;
	min-height: 105px;
	padding: 13px 18px;
	display: grid;
	grid-template-columns: 140px 1fr auto;
	align-items: center;
	gap: 18px;
	overflow: hidden;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(100deg, #061d3d, #0b3264);
}

.hsep-consultation__image {
	height: 84px;
	overflow: hidden;
	border-radius: 10px;
}

.hsep-consultation__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hsep-consultation__copy h2 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 17px;
	font-weight: 900;
}

.hsep-consultation__copy p {
	margin: 0;
	color: rgba(255,255,255,.77);
	font-size: 10.5px;
	line-height: 1.8;
}

.hsep-consultation > a {
	min-height: 45px;
	padding: 9px 19px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	color: #fff !important;
	background: #ff6b00;
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
}

@media (max-width: 980px) {
	.hsep-hero__grid {
		grid-template-columns: 48% 52%;
	}

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

	.hsep-trust-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hsep-trust-item:nth-child(2) {
		border-left: 0;
	}

	body.hsep-shop-active ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 820px) {
	.hsep-hero__grid {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.hsep-hero__visual {
		order: 2;
		height: 205px;
	}

	.hsep-hero__content {
		order: 1;
		padding: 27px 20px 15px;
		text-align: center;
		align-items: center;
	}

	.hsep-hero__content h1 {
		font-size: 29px;
	}

	.hsep-hero__content p {
		font-size: 12px;
	}

	.hsep-mobile-tools {
		margin: 14px 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.hsep-mobile-tools button {
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		border: 1px solid #dfe5ed;
		border-radius: 10px;
		color: #0b3264;
		background: #fff;
		font-size: 11px;
		font-weight: 900;
	}

	.hsep-shop-layout {
		display: block;
	}

	.hsep-filter-sidebar {
		position: fixed;
		z-index: 99999;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(350px, 88vw);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateX(105%);
		border-radius: 0;
		transition: .22s ease;
	}

	body.hsep-filter-open {
		overflow: hidden;
	}

	body.hsep-filter-open .hsep-filter-sidebar {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.hsep-filter-close {
		position: absolute;
		top: 10px;
		left: 10px;
		width: 34px;
		height: 34px;
		display: grid;
		place-items: center;
		border: 0;
		border-radius: 8px;
		color: #0b3264;
		background: #f3f5f8;
	}

	.hsep-filter-close svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
	}

	.hsep-shop-toolbar {
		display: none;
	}

	.hsep-sort-popover {
		position: fixed;
		z-index: 99998;
		right: 12px;
		left: 12px;
		bottom: 12px;
		padding: 14px;
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 20px 60px rgba(0,0,0,.23);
	}
}

@media (max-width: 600px) {
	.hsep-categories {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.hsep-category-card {
		flex: 0 0 215px;
		scroll-snap-align: start;
	}

	.hsep-trust-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 11px 8px;
	}

	.hsep-trust-item {
		padding: 8px 6px;
		flex-direction: column;
		text-align: center;
		border-left: 0;
		border-bottom: 1px solid #e6ebf1;
	}

	.hsep-trust-item:nth-last-child(-n+2) {
		border-bottom: 0;
	}

	.hsep-trust-icon {
		width: 35px;
		height: 35px;
		flex-basis: 35px;
	}

	body.hsep-shop-active ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	body.hsep-shop-active ul.products li.product {
		padding: 10px 8px 11px !important;
	}

	body.hsep-shop-active ul.products li.product .woocommerce-loop-product__title {
		min-height: 76px;
		font-size: 11.5px !important;
	}

	.hsep-product-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hsep-product-specs span:nth-child(3) {
		display: none;
	}

	.hsep-details-button {
		display: none !important;
	}

	body.hsep-shop-active ul.products li.product .button {
		width: 100% !important;
		margin: 5px 0 0 !important;
	}

	.hsep-consultation {
		grid-template-columns: 82px 1fr;
		gap: 12px;
	}

	.hsep-consultation > a {
		grid-column: 1 / -1;
		width: 100%;
	}

	.hsep-consultation__copy h2 {
		font-size: 14px;
	}

	.hsep-consultation__copy p {
		font-size: 9.5px;
	}
}


/* Layout correction — version 1.0.1 */
body.hsep-shop-active .hsep-products-column > ul.products,
body.hsep-shop-active .hsep-products-column .products {
	margin-top: 14px !important;
}

@media (min-width: 821px) {
	.hsep-filter-sidebar,
	.hsep-products-column {
		align-self: start;
	}
}

@media (max-width: 820px) {
	.hsep-shop-layout,
	.hsep-shop-layout.hsep-no-sidebar {
		display: block;
	}
}


/* Shop mobile actions override — theme 1.6.0 */
@media (max-width: 820px) {
	.hsep-details-button {
		display: inline-flex !important;
		width: calc(50% - 3px) !important;
		margin: 5px 3px 0 0 !important;
	}

	body.hsep-shop-active ul.products li.product .button {
		width: calc(50% - 3px) !important;
		margin: 5px 0 0 3px !important;
	}
}


/* Hoorsun Shop desktop density — theme 1.9.3 */
@media (min-width: 981px) {
	body.hsep-shop-active ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}
