/* Demo look on the Elementor and WooCommerce markup that is already on the page.
   Values are the same as the HTML demo (main.css). Product-card PHP is not changed. */

body.djrb-demo {
	background: #f4f7fa;
	color: #111318;
	font-family: "Vazirmatn", Tahoma, sans-serif;
}

body.djrb-demo .elementor-widget-sidebar .widget,
body.djrb-demo .djrb-filters,
body.djrb-demo .woocommerce-cart .cart_totals,
body.djrb-demo .woocommerce-checkout #order_review,
body.djrb-demo .woocommerce-MyAccount-content,
body.djrb-demo .woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid #e2e7ed;
	border-radius: 24px;
	box-shadow: 0 20px 40px rgba(17, 19, 24, .06);
}

body.djrb-demo .elementor-widget-sidebar .widget {
	padding: 18px 20px 20px;
}

body.djrb-demo .widget_product_categories ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.djrb-demo .widget_product_categories li,
body.djrb-demo .product-categories > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	border-bottom: 1px solid #e2e7ed;
}

body.djrb-demo .widget_product_categories a,
body.djrb-demo .product-categories > li > a {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	color: #111318;
	font-size: 14px;
	text-decoration: none;
}

body.djrb-demo .widget_product_categories .count,
body.djrb-demo .product-categories > li > .count {
	margin-inline-start: auto;
	font-size: 11px;
	color: #5c6770;
}

body.djrb-demo .product-categories .children {
	flex: 1 1 100%;
	margin: 0;
	padding-inline-start: 14px;
}

body.djrb-demo .widget_product_categories a:hover,
body.djrb-demo .widget_product_categories .current-cat > a {
	color: #00a3b5;
}

body.djrb-demo .widget_price_filter .ui-slider {
	height: 4px;
	border: 0;
	background: #e2e7ed;
	border-radius: 999px;
}

body.djrb-demo .widget_price_filter .ui-slider-range,
body.djrb-demo .widget_price_filter .ui-slider-handle {
	background: #00a3b5;
}

body.djrb-demo .widget_price_filter .ui-slider-handle {
	width: 16px;
	height: 16px;
	top: -6px;
	border: 0;
	border-radius: 999px;
}

body.djrb-demo .widget_price_filter .button,
body.djrb-demo .djrb-filters .djrb-btn,
body.djrb-demo .woocommerce a.button,
body.djrb-demo .woocommerce button.button,
body.djrb-demo .woocommerce input.button,
body.djrb-demo .elementor-location-single .elementor-button,
body.djrb-demo .elementor-widget-button .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #00a3b5;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

body.djrb-demo .woocommerce a.button.alt,
body.djrb-demo .woocommerce button.button.alt {
	background: #111318;
}

body.djrb-demo .woocommerce a.button.alt:hover,
body.djrb-demo .woocommerce button.button.alt:hover,
body.djrb-demo .widget_price_filter .button:hover {
	background: #00a3b5;
	color: #fff;
}

body.djrb-demo .woocommerce form .form-row input.input-text,
body.djrb-demo .woocommerce form .form-row textarea,
body.djrb-demo .woocommerce form .form-row select,
body.djrb-demo .woocommerce-ordering select,
body.djrb-demo .djrb-field {
	height: 52px;
	border: 1px solid #e2e7ed;
	border-radius: 14px;
	background: #fff;
	color: #111318;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
}

body.djrb-demo .woocommerce form .form-row textarea {
	height: auto;
	min-height: 140px;
	padding: 14px 16px;
}

body.djrb-demo .woocommerce form .form-row label {
	margin-bottom: 8px;
	color: #5c6770;
	font-size: 12px;
}

body.djrb-demo ul.products li.product {
	float: none;
	margin: 0;
	padding: 0 0 16px;
	background: #fff;
	border: 1px solid #e2e7ed;
	border-radius: 24px;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 20px 40px rgba(17, 19, 24, .04);
}

body.djrb-demo ul.products li.product img {
	width: 100%;
	height: 176px;
	object-fit: cover;
	border-radius: 0;
}

body.djrb-demo ul.products li.product .woocommerce-loop-product__title {
	padding: 0 16px;
	color: #111318;
	font-size: 16px;
	font-weight: 600;
}

body.djrb-demo ul.products li.product .price {
	color: #00a3b5;
	font-weight: 700;
}

body.djrb-demo ul.products li.product .button {
	margin: 12px 16px 0;
	background: #fff;
	color: #111318;
	border: 1px solid #e2e7ed;
}

body.djrb-demo .woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 6px;
	border: 0;
}

body.djrb-demo .woocommerce-pagination a.page-numbers,
body.djrb-demo .woocommerce-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	border: 1px solid #e2e7ed;
	border-radius: 999px;
	background: #fff;
	color: #5c6770;
}

body.djrb-demo .woocommerce-pagination span.current {
	background: #111318;
	border-color: #111318;
	color: #fff;
}

body.djrb-demo .woocommerce-breadcrumb,
body.djrb-demo .woocommerce-breadcrumb a {
	color: #5c6770;
	font-size: 12px;
	text-decoration: none;
}

body.djrb-demo .woocommerce-breadcrumb a:hover {
	color: #00a3b5;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children {
	position: static !important;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu {
	position: absolute !important;
	top: calc(100% + 8px) !important;
	right: max(16px, calc((100% - 1280px) / 2)) !important;
	left: max(16px, calc((100% - 1280px) / 2)) !important;
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: auto !important;
	max-width: 1280px !important;
	padding: 32px !important;
	border-radius: 24px !important;
	background: #fff !important;
	border: 1px solid #e2e7ed !important;
	box-shadow: 0 24px 60px rgba(17, 19, 24, .1) !important;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children:hover > ul.sub-menu,
body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children:focus-within > ul.sub-menu {
	display: grid !important;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #111318 !important;
	font-size: 14px;
	font-weight: 700;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu > li > a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #00a3b5;
	flex: none;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu ul.sub-menu {
	position: static !important;
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu ul.sub-menu a {
	padding: 6px 0;
	color: #5c6770 !important;
	font-size: 13px;
	font-weight: 400;
	background: transparent !important;
}

body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu ul.sub-menu a:hover {
	color: #00a3b5 !important;
}

.djrb-mega-promo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 180px;
	padding: 20px;
	border-radius: 20px;
	background: linear-gradient(to top, rgba(17, 19, 24, .82), rgba(17, 19, 24, .2)), #111318;
	color: #fff !important;
	text-decoration: none;
}

.djrb-mega-promo span {
	color: #00a3b5;
	font-size: 12px;
}

.djrb-mega-promo strong {
	margin-top: 6px;
	font-size: 18px;
}

.djrb-mega-promo em {
	margin-top: 4px;
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
	font-style: normal;
}

@media (max-width: 1023px) {
	body .elementor-location-header .elementor-nav-menu--main > li.menu-item-has-children > ul.sub-menu {
		position: static !important;
		left: auto !important;
		right: auto !important;
		display: none !important;
		box-shadow: none !important;
	}

	body .elementor-location-header .elementor-nav-menu--dropdown li.menu-item-has-children > ul.sub-menu,
	body .elementor-nav-menu--dropdown .sub-menu {
		display: block !important;
		position: static !important;
	}
}

/* Shop toolbar: sort, count and the grid/list switch on one row. */
.djrb-shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
}

.djrb-shop-bar .woocommerce-ordering,
.djrb-shop-bar .woocommerce-result-count {
	float: none !important;
	margin: 0 !important;
}

.djrb-shop-bar .woocommerce-ordering select,
body.djrb-demo .djrb-shop-bar .woocommerce-ordering select {
	height: 42px !important;
	min-width: 170px;
	border-radius: 12px !important;
	border: 1px solid #e2e7ed !important;
	background: #fff !important;
	color: #111318 !important;
	padding: 0 14px !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

.djrb-shop-bar .woocommerce-result-count {
	font-size: 12px;
	color: #5c6770;
}

.djrb-view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-inline-start: auto;
	padding: 4px;
	border: 1px solid #e2e7ed;
	border-radius: 999px;
	background: #fff;
}

.djrb-view-toggle button,
.djrb-view-toggle button:hover,
.djrb-view-toggle button:focus {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: #5c6770 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.djrb-view-toggle button[aria-pressed="true"],
.djrb-view-toggle button[aria-pressed="true"]:hover,
.djrb-view-toggle button[aria-pressed="true"]:focus {
	background: #111318 !important;
	color: #fff !important;
}

body.woocommerce-shop .elementor-widget-theme-archive-title,
body.tax-product_cat .elementor-widget-theme-archive-title,
body.tax-product_tag .elementor-widget-theme-archive-title,
body.tax-product_brand .elementor-widget-theme-archive-title {
	width: 100% !important;
	max-width: none !important;
}

.djrb-archive-head .djrb-skin-chips {
	display: flex;
	flex: 1 1 280px;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-content: flex-end;
	margin: 0;
}

body.djrb-demo .djrb-filters {
	padding: 8px 22px 22px;
}

body.djrb-demo .djrb-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
}

body.djrb-demo .djrb-filters__head p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

body.djrb-demo .djrb-filters__head a {
	color: #00a3b5;
	font-size: 12px;
	text-decoration: none;
}

body.djrb-demo .djrb-filters .djrb-field {
	width: 100%;
	height: 42px;
	margin: 8px 0 4px;
	border-radius: 12px;
	font-size: 13px;
}

body.djrb-demo .djrb-fgroup {
	border-bottom: 1px solid #e2e7ed;
}

body.djrb-demo .djrb-fgroup summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

body.djrb-demo .djrb-fgroup summary::-webkit-details-marker {
	display: none;
}

body.djrb-demo .djrb-fbody {
	padding-bottom: 12px;
}

body.djrb-demo .djrb-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 14px;
	color: #111318;
}

body.djrb-demo .djrb-check > span:first-of-type {
	flex: 1;
	min-width: 0;
}

body.djrb-demo .djrb-check__count {
	margin-inline-start: auto;
	font-size: 11px;
	color: #5c6770;
}

body.djrb-demo .djrb-filters > .djrb-btn {
	width: 100%;
	margin-top: 16px;
}

body.djrb-demo ul.products.is-list {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: 1fr !important;
	gap: 16px !important;
}

body.djrb-demo ul.products.is-list li.product {
	width: 100% !important;
	max-width: none !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 16px !important;
	padding: 12px !important;
	text-align: start !important;
}

body.djrb-demo ul.products.is-list li.product .woocommerce-loop-product__link {
	display: grid !important;
	grid-template-columns: 200px minmax(0, 1fr) !important;
	grid-template-rows: auto auto;
	column-gap: 16px;
	row-gap: 6px;
	align-items: center;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
}

body.djrb-demo ul.products.is-list li.product img {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 200px !important;
	height: 150px !important;
	border-radius: 16px !important;
	object-fit: cover;
}

body.djrb-demo ul.products.is-list li.product .woocommerce-loop-product__title {
	grid-column: 2;
	grid-row: 1;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	padding: 0 !important;
	text-align: start;
}

body.djrb-demo ul.products.is-list li.product .price {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	text-align: start;
}

body.djrb-demo ul.products.is-list li.product .button {
	width: auto !important;
	max-width: 180px;
	margin: 0 !important;
	flex: 0 0 auto !important;
}

body.djrb-demo ul.products.is-list li.product .djrb-card-actions {
	top: 24px !important;
	right: 24px !important;
	left: auto !important;
}

@media (max-width: 639px) {
	body.djrb-demo ul.products.is-list li.product,
	body.djrb-demo ul.products.is-list li.product .woocommerce-loop-product__link {
		display: block !important;
	}

	body.djrb-demo ul.products.is-list li.product img {
		width: 100% !important;
		height: 160px !important;
	}
}
