/*
Theme Name: AZarish Astra Child
Theme URI: https://azarish.online/
Description: Custom Astra child theme for AZarish.
Author: AZarish
Template: astra
Version: 27.0.0
Text Domain: azarish-astra-child
*/

/* =========================================================
   AZarish customer account
   ========================================================= */

.woocommerce-account .site-content {
	padding-top: 50px;
	padding-bottom: 70px;
	background: #f7f4f0;
}

.woocommerce-account .woocommerce {
	max-width: 1180px;
	margin: 0 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 25%;
	padding: 18px;
	background: #29242f;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
	text-decoration: none;
	transition:
		background 180ms ease,
		color 180ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account
	.woocommerce-MyAccount-navigation
	.is-active
	a {
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
	width: 71%;
	padding: 35px;
	background: #fff;
	box-shadow: 0 15px 45px rgba(39, 34, 46, 0.055);
}

.azarish-account-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
	padding: 30px;
	background:
		linear-gradient(
			135deg,
			#e7d8c7 0%,
			#f4ebe2 100%
		);
}

.azarish-account-hero__eyebrow {
	color: #77695f;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.azarish-account-hero h2 {
	margin: 5px 0 8px;
	color: #29242f;
	font-size: 29px;
	font-weight: 500;
}

.azarish-account-hero p {
	max-width: 510px;
	margin: 0;
	color: #6e645e;
	font-size: 13px;
	line-height: 1.65;
}

.azarish-account-hero > a {
	flex: 0 0 auto;
	padding: 13px 18px;
	background: #29242f;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.azarish-account-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 30px;
}

.azarish-account-card {
	display: flex;
	flex-direction: column;
	min-height: 165px;
	padding: 22px;
	border: 1px solid #e7dfd8;
	background: #fffdfb;
	color: #29242f !important;
	text-decoration: none !important;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.azarish-account-card:hover {
	border-color: #bba99b;
	transform: translateY(-3px);
	box-shadow: 0 13px 28px rgba(39, 34, 46, 0.07);
}

.azarish-account-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 19px;
	border-radius: 50%;
	background: #eee5dd;
	color: #6c5040;
	font-size: 18px;
}

.azarish-account-card strong {
	font-size: 15px;
	font-weight: 600;
}

.azarish-account-card small {
	margin-top: 7px;
	color: #817770;
	font-size: 11px;
	line-height: 1.5;
}

.woocommerce-account table.shop_table {
	border-color: #e4ddd6;
}

.woocommerce-account table.shop_table th {
	background: #f8f4f0;
	color: #29242f;
}

.woocommerce-account .woocommerce-button {
	border-radius: 0 !important;
	background: #29242f !important;
	color: #fff !important;
}

@media (max-width: 850px) {
	.woocommerce-account .woocommerce {
		padding: 0 14px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		float: none;
		width: 100%;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 18px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		overflow-x: auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 22px 17px;
	}

	.azarish-account-hero {
		display: block;
		padding: 24px 20px;
	}

	.azarish-account-hero > a {
		display: inline-block;
		margin-top: 18px;
	}

	.azarish-account-cards {
		grid-template-columns: 1fr;
	}
}
/* =========================================================
   AZarish v6 — compact mobile account navigation and orders
   ========================================================= */
@media (max-width: 850px) {
	.woocommerce-account .site-content {
		padding-top: 18px;
		padding-bottom: 36px;
	}

	.woocommerce-account .entry-title {
		margin-bottom: 14px;
		font-size: 30px;
		line-height: 1.15;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: relative;
		margin: 0 0 16px;
		padding: 10px 12px 22px;
		border-radius: 14px;
		background: #29242f;
		overflow: hidden;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation::after {
		content: "Swipe for more →";
		position: absolute;
		right: 14px;
		bottom: 5px;
		color: rgba(255,255,255,.58);
		font-size: 9px;
		letter-spacing: .05em;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 7px;
		padding: 0 22px 3px 0;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		scroll-snap-align: start;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		min-height: 42px;
		padding: 10px 15px;
		border: 1px solid rgba(255,255,255,.2);
		border-radius: 999px;
		background: rgba(255,255,255,.04);
		font-size: 12px;
		line-height: 20px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
		border-color: #e8d8c8;
		background: #e8d8c8;
		color: #29242f;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 16px 12px;
		box-shadow: none;
	}

	.azarish-orders-list {
		display: grid;
		gap: 9px;
	}

	.azarish-order-card {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		align-items: center;
		gap: 10px;
		min-height: 68px;
		padding: 12px 13px;
		border: 1px solid #e5ddd6;
		border-left: 4px solid #a88c77;
		border-radius: 10px;
		background: #fffdfb;
		color: #29242f !important;
		text-decoration: none !important;
	}

	.azarish-order-card__main {
		display: grid;
		gap: 4px;
		min-width: 0;
	}

	.azarish-order-card__main strong {
		font-size: 14px;
		line-height: 1.25;
	}

	.azarish-order-card__status {
		display: inline-flex;
		align-items: center;
		width: fit-content;
		padding: 3px 8px;
		border-radius: 999px;
		background: #f2ebe5;
		color: #69574a;
		font-size: 10px;
		font-weight: 700;
		line-height: 1.2;
	}

	.azarish-order-card__action {
		font-size: 11px;
		font-weight: 700;
		white-space: nowrap;
	}

	.azarish-order-card--completed { border-left-color: #4e8061; }
	.azarish-order-card--processing { border-left-color: #c69438; }
	.azarish-order-card--on-hold { border-left-color: #9b7a3d; }
	.azarish-order-card--cancelled,
	.azarish-order-card--failed { border-left-color: #a95454; }
}

@media (min-width: 851px) {
	.azarish-orders-list {
		display: grid;
		gap: 12px;
	}
	.azarish-order-card {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		align-items: center;
		gap: 20px;
		padding: 16px 18px;
		border: 1px solid #e5ddd6;
		border-left: 4px solid #a88c77;
		background: #fffdfb;
		color: #29242f !important;
		text-decoration: none !important;
	}
	.azarish-order-card__main { display: flex; align-items: center; gap: 15px; }
	.azarish-order-card__status { padding: 4px 10px; border-radius: 999px; background: #f2ebe5; font-size: 11px; font-weight: 700; }
	.azarish-order-card__action { font-size: 12px; font-weight: 700; }
}


/* Hide stale WooCommerce add-to-cart success notices on catalogue pages.
   Error notices remain visible. */
.woocommerce-shop .woocommerce-notices-wrapper > .woocommerce-message,
.post-type-archive-product .woocommerce-notices-wrapper > .woocommerce-message,
.tax-product_cat .woocommerce-notices-wrapper > .woocommerce-message {
	display: none !important;
}

/* Prevent accidental horizontal page expansion on small devices. */
html, body, #page, .site, .site-content {
	max-width: 100%;
}
@media (max-width: 767px) {
	html, body, #page, .site, .site-content {
		overflow-x: hidden;
	}
}
