/*!
Theme Name: MetaChem
Theme URI: https://metachem-eg.com/
Author: MetaChem
Author URI: https://metachem-eg.com/
Description: Custom, lightweight, hardened WordPress theme built specifically for MetaChem For Chemicals Supplying.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metachem
*/

/* Floating WhatsApp Button */
.mc-whatsapp-float {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 40px;
	right: 40px;
	background-color: #25d366;
	color: #fff;
	border-radius: 50px;
	text-align: center;
	font-size: 30px;
	box-shadow: 2px 2px 3px #999;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}

.mc-whatsapp-float:hover {
	background-color: #128c7e;
	color: #fff;
	text-decoration: none;
	transform: scale(1.04);
}

.mc-whatsapp-float svg {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

/* Custom Gallery & Header Helpers */
.et-cart-info {
	display: none !important;
}

.no-gallery-image-names .et_pb_gallery_image .et_pb_gallery_image_overlay {
	display: none;
}

/* Fixed header scroll transition */
#main-header {
	transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#main-header.et-fixed-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background-color: #ffffff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

body.admin-bar #main-header.et-fixed-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #main-header.et-fixed-header {
		top: 46px;
	}
}

/* Mobile dropdown menu */
#et_mobile_nav_menu .et_mobile_menu {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #ffffff;
	padding: 5%;
	border-top: 3px solid #1e59a7;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	list-style: none !important;
}

#et_mobile_nav_menu .mobile_nav.opened .et_mobile_menu {
	display: block;
}

#et_mobile_nav_menu .et_mobile_menu li a {
	display: block;
	padding: 10px 5%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	color: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

#et_mobile_nav_menu .et_mobile_menu li.current-menu-item > a {
	color: #1e59a7;
}

/* Fullwidth Slider Controls & Transitions */
.et_pb_slider {
	position: relative;
	overflow: hidden;
}

.et_pb_slides {
	position: relative;
}

.et_pb_slide {
	display: none;
	opacity: 0;
	transition: opacity 0.7s ease-in-out;
}

.et_pb_slide.et-pb-active-slide {
	display: block;
	opacity: 1 !important;
}

.et-pb-slider-arrows a {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
	color: #fff;
	font-size: 48px;
	text-decoration: none;
	cursor: pointer;
	font-family: ETmodules !important;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.et-pb-slider-arrows .et-pb-arrow-prev {
	left: 40px !important;
}

.et-pb-slider-arrows .et-pb-arrow-next {
	right: 40px !important;
}

.et-pb-controllers {
	position: absolute;
	bottom: 20px;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 100;
}

.et-pb-controllers a {
	display: inline-block;
	width: 25px;
	height: 7px;
	margin: 0 5px;
	background-color: rgba(255, 255, 255, 0.5);
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
	border-radius: 0;
}

.et-pb-controllers a.et-pb-active-control {
	background-color: #ffffff;
}

@media (max-width: 767px) {
	.et_pb_slider_no_arrows .et-pb-slider-arrows {
		display: none !important;
	}
}

/* Entrance animations */
.et_animated {
	opacity: 1;
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-anim-ready .et_animated:not(.mc-in-view) {
	opacity: 0;
	transform: translateY(24px);
}

.js-anim-ready .et_animated.mc-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* Clickable cards */
.et_clickable {
	cursor: pointer;
}

/* Native Lightbox Modal (replaces Magnific Popup) */
.mc-lightbox-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mc-lightbox-backdrop.is-open {
	display: flex;
}

.mc-lightbox-inner {
	position: relative;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mc-lightbox-inner img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mc-lightbox-close,
.mc-lightbox-prev,
.mc-lightbox-next {
	position: fixed;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.mc-lightbox-close:hover,
.mc-lightbox-prev:hover,
.mc-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.mc-lightbox-close {
	top: 20px;
	right: 24px;
}

.mc-lightbox-prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.mc-lightbox-next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

/* Contact form feedback */
.et-pb-contact-message {
	margin-bottom: 15px;
	font-family: Roboto, Arial, sans-serif;
	font-size: 15px;
}

.et-pb-contact-message .mc-msg-success {
	padding: 12px 16px;
	background: rgba(37, 211, 102, 0.18);
	border: 1px solid #25d366;
	color: #fff;
	border-radius: 4px;
}

.et-pb-contact-message .mc-msg-error {
	padding: 12px 16px;
	background: rgba(220, 53, 69, 0.22);
	border: 1px solid #ff6b6b;
	color: #fff;
	border-radius: 4px;
}

/* Single product description rich typography */
.mc-product-description ul {
	padding-left: 20px;
	margin-bottom: 1em;
}

.mc-product-description li {
	margin-bottom: 0.5em;
	line-height: 1.7em;
}

.mc-product-description p {
	margin-bottom: 1em;
	line-height: 1.7em;
}

/* Future-proof reusable Product Card styling (applies to unlimited products added in WP Admin) */
.mc-product-card.et_pb_blurb {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 300;
	font-size: 15px;
	color: #000000 !important;
	line-height: 1.8em;
	background-color: #ffffff;
	border-style: solid;
	border-width: 1px 1px 3px 1px;
	border-color: #e8e8e8 #e8e8e8 #415a77 #e8e8e8;
	padding-right: 10px !important;
	padding-bottom: 23px !important;
	padding-left: 10px !important;
	transition: box-shadow 300ms ease 0ms, transform 300ms ease 0ms;
}

.mc-product-card.et_pb_blurb:hover {
	box-shadow: 0px 15px 45px -5px rgba(0, 0, 0, 0.1);
}

.mc-product-card.et_pb_blurb .et_pb_module_header,
.mc-product-card.et_pb_blurb .et_pb_module_header a {
	font-family: 'Cairo', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #0d1b2a !important;
	line-height: 1.3em;
	text-align: center;
	text-decoration: none;
}

.mc-products-row {
	margin-top: 20px;
}

