/* Equal-height product cards, centered images, compact text stack */
.products.elements-grid,
.wd-products-holder .products,
.wd-products .products,
ul.products,
.wd-carousel-container .products {
	align-items: stretch;
}

.products .product-grid-item:not(.product-list-item),
.wd-carousel-container .product-grid-item:not(.product-list-item) {
	display: flex;
	align-items: stretch;
	height: auto;
}

.products .product-grid-item:not(.product-list-item) .product-wrapper,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.products .product-grid-item:not(.product-list-item) .product-element-top,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-element-top {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
}

.products .product-grid-item:not(.product-list-item) .product-element-top > a,
.products .product-grid-item:not(.product-list-item) .product-image-link,
.products .product-grid-item:not(.product-list-item) .product-image-wrap,
.products .product-grid-item:not(.product-list-item) .hover-img-wrap,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-element-top > a,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-image-link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.products .product-grid-item:not(.product-list-item) .product-element-top img,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-element-top img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	object-position: center center;
	margin: 0 auto;
}

.products .product-grid-item:not(.product-list-item) .product-element-bottom,
.products .product-grid-item:not(.product-list-item) .product-information,
.wd-carousel-container .product-grid-item:not(.product-list-item) .product-element-bottom {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	gap: 6px;
	padding-top: 10px;
}

.products .product-grid-item:not(.product-list-item) .wd-entities-title,
.products .product-grid-item:not(.product-list-item) .woocommerce-loop-product__title,
.wd-carousel-container .product-grid-item:not(.product-list-item) .wd-entities-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
	margin: 0 !important;
	line-height: 1.25;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.products .product-grid-item:not(.product-list-item) .star-rating,
.products .product-grid-item:not(.product-list-item) .wd-star-rating,
.products .product-grid-item:not(.product-list-item) .product-rating-price {
	margin: 0 !important;
}

.products .product-grid-item:not(.product-list-item) .wrap-price,
.products .product-grid-item:not(.product-list-item) .wrapp-product-price,
.products .product-grid-item:not(.product-list-item) .price {
	margin: 0 !important;
}

.products .product-grid-item:not(.product-list-item) .wd-add-btn,
.products .product-grid-item:not(.product-list-item) .wd-bottom-actions,
.products .product-grid-item:not(.product-list-item) .wd-add-btn-replace,
.products .product-grid-item:not(.product-list-item) .add_to_cart_button {
	margin-top: 2px !important;
	margin-bottom: 0 !important;
}

/* Shop: hide crowded title categories; modern sidebar list instead */
.seen-shop-cats-on .title-shop .wd-nav-product-cat,
.seen-shop-cats-on .title-shop .wd-btn-show-cat {
	display: none !important;
}

.seen-shop-cats-on .title-shop {
	padding-top: 28px;
	padding-bottom: 28px;
	min-height: 0;
}

.seen-shop-cats-on .wd-widget-stock-status {
	display: none !important;
}

.seen-shop-cats {
	background: #F3F6F4;
	border-radius: 16px;
	padding: 14px 12px 12px;
	margin-bottom: 18px;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.seen-shop-cats .widget-title {
	margin: 0 8px 12px !important;
	font-size: 13px !important;
	letter-spacing: 0.08em;
	color: #64748b !important;
}

.seen-shop-cats__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: min(78vh, 760px);
	overflow: auto;
}

.seen-shop-cats__group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.seen-shop-cats__toggle {
	width: 100%;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.seen-shop-cats__caret {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-left: 4px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.seen-shop-cats__group.is-open > .seen-shop-cats__toggle .seen-shop-cats__caret,
.seen-shop-cats__group:hover > .seen-shop-cats__toggle .seen-shop-cats__caret {
	transform: rotate(-135deg);
	border-color: #263A2F;
}

.seen-shop-cats__sub {
	display: none;
	flex-direction: column;
	gap: 2px;
	padding: 4px 0 6px 12px;
	margin: 0 0 4px 16px;
	border-left: 2px solid #DCE8E1;
}

.seen-shop-cats__group.is-open > .seen-shop-cats__sub {
	display: flex;
}

@media (hover: hover) and (pointer: fine) {
	.seen-shop-cats__group:hover > .seen-shop-cats__sub {
		display: flex;
	}

	.seen-shop-cats__group:hover > .seen-shop-cats__toggle {
		background: #fff;
		box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
		color: #263A2F !important;
	}
}

.seen-shop-cats__item.is-child {
	padding: 7px 10px;
	font-weight: 500;
	font-size: 13px;
}

.seen-shop-cats__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 12px;
	color: #1e293b !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.seen-shop-cats__item:hover {
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	color: #263A2F !important;
}

.seen-shop-cats__item.is-active {
	background: #fff;
	box-shadow: 0 6px 18px rgba(38, 58, 47, 0.14);
	color: #263A2F !important;
}

.seen-shop-cats__mark {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #EEF3F0;
	color: #263A2F;
	font-size: 12px;
	font-weight: 800;
}

.seen-shop-cats__mark--all {
	background: #263A2F;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.seen-shop-cats__mark--all::before {
	content: "";
	width: 12px;
	height: 12px;
	background:
		radial-gradient(circle at 3px 3px, #fff 1.4px, transparent 1.5px),
		radial-gradient(circle at 9px 3px, #fff 1.4px, transparent 1.5px),
		radial-gradient(circle at 3px 9px, #fff 1.4px, transparent 1.5px),
		radial-gradient(circle at 9px 9px, #fff 1.4px, transparent 1.5px);
}

.seen-shop-cats__name {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: capitalize;
	letter-spacing: 0;
}

.seen-shop-cats__count {
	margin-left: auto;
	min-width: 28px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

.seen-shop-cats__item.is-active .seen-shop-cats__count {
	background: #DCE8E1;
	color: #1E2E26;
}

@media (max-width: 1024px) {
	.seen-shop-cats {
		margin-top: 8px;
	}
}

@media (max-width: 767px) {
	.wd-nav-tabs,
	.products-tabs-title {
		max-width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.promo-banner .banner-title,
	.wd-promo-banner .banner-title,
	.banner-inner .banner-title {
		overflow-wrap: anywhere !important;
		word-break: break-word;
		max-width: 100%;
	}

	.wd-bottom-nav .wd-nav-text,
	.wd-toolbar .wd-toolbar-label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}
}

/* Category sheet: opened only from the mobile Do'kon toolbar button */
.seen-mcat,
.seen-mcat-root {
	display: none;
}

@media (max-width: 1024px) {
	.wd-toolbar {
		z-index: 500;
	}

	.seen-mcat-root.is-open {
		display: block;
	}

	.seen-mcat__backdrop {
		position: fixed;
		inset: 0;
		z-index: 480;
		border: 0;
		padding: 0;
		background: rgba(15, 23, 42, 0.4);
	}

	.seen-mcat-root.is-open .seen-mcat {
		display: flex;
		flex-direction: column;
		position: fixed;
		z-index: 490;
		left: 8px;
		right: 8px;
		bottom: calc(62px + env(safe-area-inset-bottom, 0px));
		max-height: min(70vh, 560px);
		overflow: auto;
		margin: 0;
		padding: 12px 10px 14px;
		border-radius: 18px;
		background: #f4f7fb;
		box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
	}

	.seen-mcat__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin: 0 4px 10px;
	}

	.seen-mcat__title {
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #64748b;
	}

	.seen-mcat__close {
		border: 0;
		background: transparent;
		color: #263A2F;
		font: inherit;
		font-size: 13px;
		font-weight: 700;
		padding: 4px 2px;
		cursor: pointer;
	}

	.seen-mcat__grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	button.seen-mcat__tile {
		appearance: none;
		-webkit-appearance: none;
		width: auto;
		min-height: 0;
		line-height: 1.15;
		box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
	}

	.seen-mcat__tile {
		aspect-ratio: 1;
		margin: 0;
		padding: 8px 4px 6px;
		border: 1px solid #e6eef6;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
		color: #1e293b !important;
		font: inherit;
		font-weight: 700;
		text-decoration: none !important;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		cursor: pointer;
		transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
	}

	.seen-mcat__tile:active {
		transform: scale(0.97);
	}

	.seen-mcat__tile.is-active,
	.seen-mcat__tile.is-open {
		border-color: #263A2F;
		box-shadow: 0 8px 18px rgba(0, 123, 196, 0.16);
		color: #263A2F !important;
	}

	.seen-mcat__icon {
		width: 36px;
		height: 36px;
		border-radius: 12px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: #e8f3fb;
		color: #263A2F;
		flex: 0 0 auto;
	}

	.seen-mcat__tile.is-active .seen-mcat__icon,
	.seen-mcat__tile.is-open .seen-mcat__icon {
		background: #263A2F;
		color: #fff;
	}

	.seen-mcat__label {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		max-width: 100%;
		font-size: 11px;
		line-height: 1.15;
		text-align: center;
		text-transform: capitalize;
	}

	.seen-mcat__panel {
		display: none;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-top: 10px;
		padding: 10px;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
		animation: seen-mcat-in 0.2s ease;
	}

	.seen-mcat__panel.is-open {
		display: grid;
	}

	.seen-mcat__chip {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 36px;
		padding: 6px 8px;
		border-radius: 12px;
		background: #f4f7fb;
		color: #1e293b !important;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-decoration: none !important;
	}

	.seen-mcat__chip.is-active {
		background: #263A2F;
		color: #fff !important;
	}
}

@keyframes seen-mcat-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* BroSkin homepage category carousel: one size for every photo */
.broskin-cats .owl-stage {
	display: flex;
}
.broskin-cats .owl-item {
	display: flex;
}
.broskin-cats .owl-item > .category-grid-item {
	display: flex;
	width: 100%;
}
.broskin-cats .wrapp-category {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 12px 12px 14px;
	border: 1px solid #e6eee8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(38, 58, 47, 0.06);
}
.broskin-cats .category-image-wrapp {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	max-width: none !important;
	overflow: hidden;
	border-radius: 14px;
	background: #f4f6f4;
	box-shadow: none;
}
.broskin-cats .category-image {
	position: absolute;
	inset: 14px;
	display: block;
	margin: 0 !important;
	transform: none !important;
}
.broskin-cats .category-image img,
.broskin-cats.products .cat-design-alt img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	object-position: center;
}
.broskin-cats .wd-entities-title {
	margin: 12px 4px 0;
	min-height: 2.5em;
	color: #263A2F;
	font-size: 13px;
	line-height: 1.25;
	letter-spacing: 0.04em;
}
