/*
 Theme Name: IranKala Child
 Template: irankala
 Theme URI: https://zhaket.com/web/irankala-wordpress-theme
 Author: S.Reza Salehi
 Author URI: http://sreza-salehi.ir
 Version: 1.0.12
*/


/* =========================================================
   Header
   ========================================================= */

.main-header .compare,
.main-header .favorites,
.main-header .mini-cart-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}


/* =========================================================
   WooCommerce
   ========================================================= */

ul.products li.product .woocommerce-LoopProduct-link .onsale {
	background: #f4a51c !important;
	color: white !important;
	top: 0 !important;
	right: 0 !important;
	padding: 1px 10px !important;
}

.single-product .elementor-widget-irk-product-brands .brands a img {
	width: 115px;
	margin: 0 10px 0 10px;
}

.single-product .elementor-widget-irk-product-add2cart .wc-deposits-wrapper {
	display: none;
}

.woocommerce-cart .order-total,
.woocommerce-checkout .order-total {
	background: #efefef;
	padding: 0 20px;
	display: block;
	margin: 0 -20px;
}

.woocommerce-cart .product-subtotal {
	display: none;
}


/* =========================================================
   User Account
   ========================================================= */

body.user-account-page .breadcrumb {
	display: block !important;
	margin-bottom: 0;
}


/* =========================================================
   Top Navigation
   ========================================================= */

#top-navigation .e-con-inner {
	padding: 0 15px;
}


/* =========================================================
   Product Tables
   ========================================================= */

.pro-table-wrap {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.pro-product-table {
	width: 100%;
	min-width: 100%;
	border-collapse: collapse;
}

.pro-product-table th,
.pro-product-table td {
	border: 1px solid #eee;
	padding: 10px;
	text-align: right;
	white-space: nowrap;
}

.pro-product-table th {
	background: #f9f9f9;
}

.woocommerce-products-header .products-header-description table.pro-product-table th,
.woocommerce-products-header .products-header-description table.pro-product-table td {
	display: table-cell !important;
}


/* =========================================================
   Product Specification Tables
   ========================================================= */

body:not(.page) .post-content figure.wp-block-table {
	width: 100%;
	max-width: 100%;
	margin: 24px 0;
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

body:not(.page) .post-content figure.wp-block-table table {
	width: 100%;
	min-width: 900px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
}

body:not(.page) .post-content figure.wp-block-table table td,
body:not(.page) .post-content figure.wp-block-table table th {
	display: table-cell;
	width: auto;
	min-width: 110px;
	padding: 10px 13px;
	border: 0;
	border-left: 1px solid #edf0f2;
	border-bottom: 1px solid #edf0f2;
	color: #374151;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.8;
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}

/* Header */
body:not(.page) .post-content figure.wp-block-table table tr:first-child td,
body:not(.page) .post-content figure.wp-block-table table tr:first-child th {
	background: #f5f7f9;
	color: #1f2937;
	font-weight: 700;
	border-bottom: 2px solid #e2e6e9;
}

/* First Column */
body:not(.page) .post-content figure.wp-block-table table td:first-child,
body:not(.page) .post-content figure.wp-block-table table th:first-child {
	min-width: 280px;
	font-weight: 600;
	white-space: normal;
	border-left: 0;
}

/* Alternating Rows */
body:not(.page) .post-content figure.wp-block-table table tr:nth-child(even) td {
	background: #fafbfc;
}

/* Hover */
body:not(.page) .post-content figure.wp-block-table table tr:not(:first-child):hover td {
	background: #f3f6f8;
}

/* Last Row */
body:not(.page) .post-content figure.wp-block-table table tr:last-child td {
	border-bottom: 0;
}


/* =========================================================
   Product Tables - Responsive
   ========================================================= */

@media (max-width: 991.98px) {

	body:not(.page) .post-content figure.wp-block-table {
		margin: 16px 0;
		border-radius: 10px;
	}

	body:not(.page) .post-content figure.wp-block-table table {
		width: max-content;
		min-width: 900px;
	}

	body:not(.page) .post-content figure.wp-block-table table td,
	body:not(.page) .post-content figure.wp-block-table table th {
		display: table-cell;
		width: auto;
		min-width: 100px;
		padding: 10px 12px;
		font-size: 12px;
		line-height: 1.8;
		white-space: nowrap;
	}

	body:not(.page) .post-content figure.wp-block-table table td:first-child,
	body:not(.page) .post-content figure.wp-block-table table th:first-child {
		min-width: 240px;
		white-space: normal;
	}
}


/* =========================================================
   Page Background
   ========================================================= */

@media (max-width: 992px) {

	body:not(.home):not(.woocommerce-account:not(.logged-in)):not(.user-account-page:not(.logged-in)) {
		background: #fff !important;
	}
}


/* =========================================================
   Category Icons
   ========================================================= */

@media (max-width: 767px) {

	#category-icon {
		--e-con-grid-template-columns: repeat(4, 1fr);
		justify-items: center;
	}

	#category-icon > .e-con:last-child {
		grid-column: 2 / span 2;
	}

	#category-icon img {
		width: 70px;
		height: 70px;
		object-fit: contain;
	}
}


/* =========================================================
   Top Tags - Tablet / Large Mobile
   ========================================================= */

@media (max-width: 767px) and (min-width: 520px) {

	.top-tag .e-child {
		display: flex;
		flex-wrap: nowrap;
	}

	.top-tag {
		--e-con-grid-template-columns: repeat(2, 1fr) !important;
		--e-con-grid-template-rows: repeat(4, 1fr) !important;
	}

	.top-tag .e-child img {
		height: 100px;
		width: auto;
	}
}


/* =========================================================
   Top Tags - Small Mobile
   ========================================================= */

@media (max-width: 520px) {

	.top-tag {
		--e-con-grid-template-columns: repeat(1, 1fr) !important;
		--e-con-grid-template-rows: repeat(8, 1fr) !important;
	}

	.top-tag .e-child {
		display: flex;
		flex-wrap: nowrap;
	}

	.top-tag .e-child img {
		height: 97px;
		width: auto;
	}

	.top-tag .e-child > .e-child:nth-child(3n) {
		flex-direction: row;
		align-items: center;
	}
}

/* =========================================================
   Mag
   ========================================================= */
.archive-posts .post-item .img-link img {
    width: 100%;
    height: auto;
}
