/**
 * Shop archive styling for the Nawaf site.
 *
 * The theme renders the WooCommerce loop with deep selectors, so layout
 * critical declarations are marked !important on purpose.
 */

body.woocommerce-shop,
body.post-type-archive-product {
	background-color: #FAFAFA;
}

/* Breadcrumb strip ------------------------------------------------------- */
body.woocommerce-shop .top_heading,
body.post-type-archive-product .top_heading {
	background-color: #FFFFFF !important;
	border-bottom: 1px solid #E2E8F0;
}

body.woocommerce-shop .top_heading .banner-wrapper,
body.post-type-archive-product .top_heading .banner-wrapper {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

body.woocommerce-shop #breadcrumbs,
body.post-type-archive-product #breadcrumbs {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 14px 0 !important;
	list-style: none !important;
	font-size: 12.5px !important;
	font-weight: 600;
	color: #94A3B8 !important;
	background: transparent !important;
}

body.woocommerce-shop #breadcrumbs li,
body.post-type-archive-product #breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #94A3B8;
}

body.woocommerce-shop #breadcrumbs li:first-child::before,
body.post-type-archive-product #breadcrumbs li:first-child::before {
	content: "\f015";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 11px;
	color: #D97706;
}

body.woocommerce-shop #breadcrumbs li + li::before,
body.post-type-archive-product #breadcrumbs li + li::before {
	content: "\f054";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 9px;
	color: #CBD5E1;
}

body.woocommerce-shop #breadcrumbs li:last-child,
body.post-type-archive-product #breadcrumbs li:last-child {
	color: #0F172A;
	font-weight: 700;
}

body.woocommerce-shop #breadcrumbs a,
body.post-type-archive-product #breadcrumbs a {
	color: #64748B;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.woocommerce-shop #breadcrumbs a:hover,
body.post-type-archive-product #breadcrumbs a:hover {
	color: #B45309;
}

/* Layout ----------------------------------------------------------------- */
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 24px 64px !important;
}

body.woocommerce-shop .site-content .row,
body.post-type-archive-product .site-content .row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 310px !important;
	gap: 32px !important;
	align-items: start;
	margin: 0 !important;
}

body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

body.woocommerce-shop aside.widget-area,
body.post-type-archive-product aside.widget-area {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Page heading ----------------------------------------------------------- */
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header {
	margin: 0 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.woocommerce-shop .woocommerce-products-header__title.page-title,
body.post-type-archive-product .woocommerce-products-header__title.page-title {
	position: relative;
	margin: 0 !important;
	padding: 0 0 14px !important;
	font-size: 34px !important;
	font-weight: 800 !important;
	color: #0F172A !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

body.woocommerce-shop .woocommerce-products-header__title.page-title::after,
body.post-type-archive-product .woocommerce-products-header__title.page-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background-image: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

/* Toolbar ---------------------------------------------------------------- */
body.woocommerce-shop .wrapper-result-count,
body.post-type-archive-product .wrapper-result-count {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 22px !important;
	padding: 13px 18px !important;
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 30px -30px rgba(15, 23, 42, 0.5);
}

body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #64748B !important;
}

body.woocommerce-shop form.woocommerce-ordering,
body.post-type-archive-product form.woocommerce-ordering {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.woocommerce-shop form.woocommerce-ordering select.orderby,
body.post-type-archive-product form.woocommerce-ordering select.orderby {
	height: 40px !important;
	padding: 0 14px !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 11px !important;
	background-color: #FFFFFF !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0F172A !important;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease;
}

body.woocommerce-shop form.woocommerce-ordering select.orderby:hover,
body.woocommerce-shop form.woocommerce-ordering select.orderby:focus,
body.post-type-archive-product form.woocommerce-ordering select.orderby:hover,
body.post-type-archive-product form.woocommerce-ordering select.orderby:focus {
	border-color: #D97706 !important;
}

/* Product grid ----------------------------------------------------------- */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	gap: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	clear: none !important;
}

/* Bootstrap's clearfix pseudo-elements would become real grid items and
   occupy the first cell (leaving a hole in row one). */
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after {
	content: none !important;
	display: none !important;
}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product {
	position: relative !important;
	display: flex !important;
	flex-direction: column;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0;
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
	transform: translateY(-5px);
	border-color: rgba(217, 119, 6, 0.55);
	box-shadow: 0 26px 50px -30px rgba(15, 23, 42, 0.5);
}

body.woocommerce-shop ul.products li.product .inner-item-product,
body.post-type-archive-product ul.products li.product .inner-item-product {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	padding: 0 !important;
}

/* Product image ---------------------------------------------------------- */
body.woocommerce-shop ul.products li.product .product-image,
body.post-type-archive-product ul.products li.product .product-image {
	position: relative !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	overflow: hidden;
	background-image: linear-gradient(135deg, #FEF9EE 0%, #F8FAFC 100%);
	border-bottom: 1px solid #F1F5F9;
}

body.woocommerce-shop ul.products li.product .product-image img,
body.post-type-archive-product ul.products li.product .product-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block !important;
	border-radius: 0 !important;
	box-shadow: none;
	transition: transform 0.5s ease;
}

body.woocommerce-shop ul.products li.product:hover .product-image img,
body.post-type-archive-product ul.products li.product:hover .product-image img {
	transform: scale(1.05);
}

/* Sale badge ------------------------------------------------------------- */
body.woocommerce-shop ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .onsale {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	z-index: 4;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 12px !important;
	border-radius: 8px !important;
	background-image: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
	background-color: #DC2626 !important;
	color: #FFFFFF !important;
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	box-shadow: 0 8px 18px -12px rgba(185, 28, 28, 0.9);
}

/* Wishlist / quick view / compare icons ---------------------------------- */
body.woocommerce-shop ul.products li.product .shopengine-wishlist,
body.post-type-archive-product ul.products li.product .shopengine-wishlist {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	right: auto !important;
	z-index: 5;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	color: #475569 !important;
	font-size: 13px !important;
	text-decoration: none;
	box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.6);
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-shop ul.products li.product .shopengine-quickview-trigger,
body.post-type-archive-product ul.products li.product .shopengine-quickview-trigger {
	position: absolute !important;
	top: 12px !important;
	left: 52px !important;
	z-index: 5;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	color: #475569 !important;
	font-size: 13px !important;
	text-decoration: none;
	box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.6);
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-shop ul.products li.product .shopengine-comparison,
body.post-type-archive-product ul.products li.product .shopengine-comparison {
	display: none !important;
}

body.woocommerce-shop ul.products li.product .shopengine-wishlist:hover,
body.woocommerce-shop ul.products li.product .shopengine-quickview-trigger:hover,
body.post-type-archive-product ul.products li.product .shopengine-wishlist:hover,
body.post-type-archive-product ul.products li.product .shopengine-quickview-trigger:hover {
	background: #D97706 !important;
	color: #FFFFFF !important;
}

/* Buy button overlays the image bottom */
body.woocommerce-shop ul.products li.product .product-image > .button,
body.post-type-archive-product ul.products li.product .product-image > .button {
	position: absolute !important;
	right: 14px !important;
	bottom: 14px !important;
	left: 14px !important;
	z-index: 4;
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 11px !important;
	background-image: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
	background-color: #D97706 !important;
	color: #FFFFFF !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: 0 12px 24px -14px rgba(217, 119, 6, 0.95);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-image 0.2s ease;
}

body.woocommerce-shop ul.products li.product:hover .product-image > .button,
body.woocommerce-shop ul.products li.product .product-image > .button:focus,
body.post-type-archive-product ul.products li.product:hover .product-image > .button,
body.post-type-archive-product ul.products li.product .product-image > .button:focus {
	opacity: 1;
	transform: translateY(0);
}

body.woocommerce-shop ul.products li.product .product-image > .button:hover,
body.post-type-archive-product ul.products li.product .product-image > .button:hover {
	background-image: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
	color: #FFFFFF !important;
}

/* Keep the buttons reachable on touch devices and small screens. */
@media (hover: none) {
	body.woocommerce-shop ul.products li.product .product-image > .button,
	body.post-type-archive-product ul.products li.product .product-image > .button {
		opacity: 1;
		transform: none;
	}
}

/* Card content ----------------------------------------------------------- */
body.woocommerce-shop ul.products li.product .wrapper-content-item,
body.post-type-archive-product ul.products li.product .wrapper-content-item {
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	padding: 18px 18px 20px !important;
}

body.woocommerce-shop ul.products li.product .cat_product,
body.post-type-archive-product ul.products li.product .cat_product {
	margin: 0 !important;
	min-height: 0 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
}

body.woocommerce-shop ul.products li.product .cat_product a,
body.post-type-archive-product ul.products li.product .cat_product a {
	display: inline-flex !important;
	align-items: center;
	padding: 5px 11px !important;
	border: 1px solid #FDE68A;
	border-radius: 999px;
	background-color: #FFFBEB !important;
	color: #92400E !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-shop ul.products li.product .cat_product a:hover,
body.post-type-archive-product ul.products li.product .cat_product a:hover {
	background-color: #D97706 !important;
	border-color: #D97706;
	color: #FFFFFF !important;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.6em);
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.6 !important;
	color: #0F172A !important;
	text-transform: none !important;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title a,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title a {
	color: #0F172A !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

body.woocommerce-shop ul.products li.product:hover .woocommerce-loop-product__title a,
body.post-type-archive-product ul.products li.product:hover .woocommerce-loop-product__title a {
	color: #B45309 !important;
}

body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
	margin: auto 0 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #0F172A !important;
}

body.woocommerce-shop ul.products li.product .price del,
body.post-type-archive-product ul.products li.product .price del {
	order: 2;
	font-size: 12px !important;
	font-weight: 500 !important;
	color: #94A3B8 !important;
	text-decoration: line-through;
}

body.woocommerce-shop ul.products li.product .price ins,
body.post-type-archive-product ul.products li.product .price ins {
	order: 1;
	text-decoration: none !important;
	color: #B45309 !important;
}

body.woocommerce-shop ul.products li.product .price .woocommerce-Price-amount,
body.post-type-archive-product ul.products li.product .price .woocommerce-Price-amount {
	font-weight: 800 !important;
	color: inherit;
}

body.woocommerce-shop ul.products li.product .price .woocommerce-price-suffix,
body.post-type-archive-product ul.products li.product .price .woocommerce-price-suffix {
	order: 3;
	width: 100%;
	font-size: 10.5px !important;
	font-weight: 500 !important;
	color: #94A3B8 !important;
}

/* Legacy action links hidden inside the card */
body.woocommerce-shop ul.products li.product .product-item-actions,
body.post-type-archive-product ul.products li.product .product-item-actions {
	display: none !important;
}

/* Sidebar ---------------------------------------------------------------- */
body.woocommerce-shop aside.widget-area .widget,
body.post-type-archive-product aside.widget-area .widget {
	margin: 0 0 18px !important;
	padding: 22px !important;
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 18px !important;
	box-shadow: 0 16px 40px -36px rgba(15, 23, 42, 0.55);
}

body.woocommerce-shop aside.widget-area .wp-block-group,
body.post-type-archive-product aside.widget-area .wp-block-group {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-shop aside.widget-area h2,
body.post-type-archive-product aside.widget-area h2 {
	position: relative;
	margin: 0 0 14px !important;
	padding: 0 0 12px !important;
	border-bottom: 1px solid #F1F5F9;
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #0F172A !important;
	text-transform: none !important;
}

body.woocommerce-shop aside.widget-area h6,
body.post-type-archive-product aside.widget-area h6 {
	margin: 12px 0 4px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #D97706 !important;
	text-transform: none !important;
	letter-spacing: 0;
}

body.woocommerce-shop aside.widget-area h6 a,
body.post-type-archive-product aside.widget-area h6 a {
	color: #D97706 !important;
	text-decoration: none !important;
}

body.woocommerce-shop aside.widget-area p,
body.post-type-archive-product aside.widget-area p {
	margin: 0 0 10px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	line-height: 1.8 !important;
	direction: ltr;
	text-align: right;
}

body.woocommerce-shop aside.widget-area p:last-child,
body.post-type-archive-product aside.widget-area p:last-child {
	margin-bottom: 0 !important;
}

body.woocommerce-shop aside.widget-area .theiaStickySidebar,
body.post-type-archive-product aside.widget-area .theiaStickySidebar {
	padding: 0 !important;
}

/* Notices ---------------------------------------------------------------- */
body.woocommerce-shop .woocommerce-message,
body.woocommerce-shop .woocommerce-info,
body.post-type-archive-product .woocommerce-info {
	margin: 0 0 16px !important;
	padding: 14px 18px !important;
	border: 1px solid #A7F3D0 !important;
	border-radius: 14px !important;
	background-color: #ECFDF5 !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #047857 !important;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	body.woocommerce-shop .site-content .row,
	body.post-type-archive-product .site-content .row {
		grid-template-columns: minmax(0, 1fr) 270px !important;
		gap: 24px !important;
	}
}

@media (max-width: 1024px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	body.woocommerce-shop .site-content .row,
	body.post-type-archive-product .site-content .row {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.woocommerce-shop .site-content,
	body.post-type-archive-product .site-content {
		padding: 26px 20px 52px !important;
	}

	body.woocommerce-shop aside.widget-area,
	body.post-type-archive-product aside.widget-area {
		margin-top: 8px !important;
	}

	body.woocommerce-shop ul.products li.product .product-image > .button,
	body.post-type-archive-product ul.products li.product .product-image > .button {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (max-width: 768px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

@media (max-width: 600px) {
	body.woocommerce-shop .woocommerce-products-header__title.page-title,
	body.post-type-archive-product .woocommerce-products-header__title.page-title {
		font-size: 26px !important;
	}

	body.woocommerce-shop .wrapper-result-count,
	body.post-type-archive-product .wrapper-result-count {
		flex-direction: column;
		align-items: stretch;
	}

	body.woocommerce-shop form.woocommerce-ordering select.orderby,
	body.post-type-archive-product form.woocommerce-ordering select.orderby {
		width: 100%;
	}
}

@media (max-width: 560px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		justify-items: center;
		gap: 16px !important;
	}

	body.woocommerce-shop ul.products li.product,
	body.post-type-archive-product ul.products li.product {
		max-width: 400px !important;
	}
}
