/* Al Masood Site Polish */
:root {
	--amp-green: #0c3b36;
	--amp-green-hover: #145a52;
	--amp-gold: #c2a05c;
	--amp-charcoal: #36454f;
}

/* ---------- Hello theme ships pink (#c36) links and buttons; use the brand green instead ---------- */
a { color: var(--amp-green); }
a:hover, a:active { color: var(--amp-green-hover); }
button, [type="button"], [type="submit"] { border-color: var(--amp-green); color: var(--amp-green); }
button:hover, button:focus, [type="button"]:hover, [type="button"]:focus, [type="submit"]:hover, [type="submit"]:focus {
	background-color: var(--amp-green);
	border-color: var(--amp-green);
	color: #fff;
}

/* ---------- Product titles: charcoal grey everywhere ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title a,
.am-product-title, .am-product-title a,
.am-shop-title, .am-shop-title a,
.wc-block-grid__product-title, .wc-block-grid__product-title a,
.wc-block-components-product-name,
.woocommerce div.product .product_title,
.elementor-widget-woocommerce-product-title .product_title {
	color: var(--amp-charcoal) !important;
}

/* ---------- Product card buttons: one style everywhere (shop, category, related, cart) ---------- */
/* The Elementor archive template styles its buttons white with !important, so out-rank it. */
html body :is(.elementor-widget-wc-archive-products, .woocommerce, body) ul.products li.product .button,
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product .added_to_cart,
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-components-product-button__button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	margin: 10px 0 0 !important;
	padding: 10px 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--amp-green) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none !important;
}
html body :is(.elementor-widget-wc-archive-products, .woocommerce, body) ul.products li.product .button:hover,
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-components-product-button__button:hover {
	background: var(--amp-green-hover) !important;
	color: #fff !important;
}

/* Sale badges sit inside the card corner instead of hanging off the edge. */
ul.products li.product { position: relative; }
ul.products li.product .onsale {
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	margin: 0 !important;
	z-index: 2;
}

/* ---------- Footer logo (transparent gold version, swapped in by the plugin) ---------- */
.elementor-element-1cc98c1 img.am-footer-logo {
	width: auto !important;
	height: 84px !important;
	max-width: 100%;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

/* ---------- Maps ---------- */
iframe[src*="google.com/maps"], iframe[src*="maps.google"] {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0;
	border-radius: 12px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	/* The 4-column desktop rule is more specific than the theme's own tablet/phone rules, so repeat it here. */
	.am-shop-products .woocommerce ul.products,
	.am-shop-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	.page-content > .alignwide,
	.page-content > .alignfull {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: auto !important;
		max-width: 100% !important;
	}
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.am-shop-products .woocommerce ul.products,
	.am-shop-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px 12px !important;
	}

	/* Home page showcases: two products per row instead of one full-screen card each. */
	.am-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.am-product-info { padding: 10px 10px 12px; }
	.am-product-title { font-size: .85rem; }
	.am-product-price { font-size: .85rem; margin-top: 6px; }

	ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px !important;
		line-height: 1.35 !important;
		padding-top: 8px !important;
	}
	ul.products li.product .price { font-size: 14px !important; }

	/* Product page tabs wrap instead of running off screen. */
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 0 !important;
		margin: 0 0 16px !important;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs::before,
	.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
	.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		margin: 0 !important;
		padding: 0 14px !important;
		border-radius: 8px !important;
	}

	iframe[src*="google.com/maps"], iframe[src*="maps.google"] { height: 300px !important; }

	/* Comfortable tap target for the filter panel close button. */
	.am-filter-close { min-width: 44px; min-height: 44px; }

	.woocommerce-account .site-main { padding-left: 16px; padding-right: 16px; }

	/* Home page: leftover phone-only margins in the Elementor layout left ~310px and ~380px of empty
	   space above Fragrances and "What Our Community Says". */
	.elementor-3148 .elementor-element.elementor-element-376c29b > .elementor-widget-container { margin-top: 0 !important; }
	.elementor-3148 .elementor-element.elementor-element-12aefdf { --margin-top: 0px !important; margin-top: 0 !important; }
}
