/* ==========================================================================
   Bilapro UX fixes — loaded after the BookChoix theme.
   Brand: ink #121823 + tan #D2B48C. Demo leftovers (mint, coral, teal, cyan)
   are replaced so the whole site speaks one visual language.
   ========================================================================== */

:root {
	--bp-ink: #121823;
	--bp-text: #2f3542;
	--bp-muted: #5b6270;
	--bp-tan: #d2b48c;
	--bp-tan-hover: #c29f70;
	--bp-tan-dark: #7d5d2e;   /* tan for text on white: 5.6:1 contrast */
	--bp-tan-soft: #f7f2ea;
	--bp-line: #e9e3d9;
	--bp-radius: 12px;
	--bp-shadow: 0 1px 2px rgba(18, 24, 35, .06), 0 8px 24px rgba(18, 24, 35, .06);
	--bp-shadow-hover: 0 2px 4px rgba(18, 24, 35, .08), 0 16px 40px rgba(18, 24, 35, .12);
}

/* --------------------------------------------------------------------------
   1. Global foundations
   -------------------------------------------------------------------------- */

/* Grey shadow strip down the left edge of every page */
#outer-wrap.wrap-boxshadow { box-shadow: none !important; }
/* ...it actually came from the hidden off-canvas panel's shadow leaking in */
#wrap:not(.show-offcanvas) #offcanvas-sidebar { box-shadow: none !important; visibility: hidden; }
#wrap.show-offcanvas #offcanvas-sidebar { visibility: visible; }

body.acmthemes-theme {
	color: var(--bp-text);
	line-height: 1.65 !important;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.acmthemes-theme p { line-height: 1.7; }

/* Headings: theme set line-height 25px on 48px titles -> overlapping lines */
body.acmthemes-theme h1, body.acmthemes-theme h2, body.acmthemes-theme h3,
body.acmthemes-theme h4, body.acmthemes-theme .entry-title,
body.acmthemes-theme .acm-title, body.acmthemes-theme .product_title {
	line-height: 1.22 !important;
	text-wrap: balance;
	letter-spacing: -.01em;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Visible keyboard focus everywhere */
body.acmthemes-theme a:focus-visible,
body.acmthemes-theme button:focus-visible,
body.acmthemes-theme input:focus-visible,
body.acmthemes-theme select:focus-visible,
body.acmthemes-theme textarea:focus-visible {
	outline: 3px solid var(--bp-tan-dark) !important;
	outline-offset: 2px;
	border-radius: 4px;
}

body.acmthemes-theme .entry-content a:not(.button):not(.btn),
body.acmthemes-theme .post-content a { color: var(--bp-tan-dark); text-underline-offset: 3px; }

/* Broken images (missing files) are hidden by ux.js instead of showing an icon */
.bp-img-broken { display: none !important; }

/* --------------------------------------------------------------------------
   2. Buttons — one consistent primary style.
   White text on tan was 2:1 contrast (unreadable); ink on tan is 9:1.
   -------------------------------------------------------------------------- */
body.acmthemes-theme .elementor-button,
body.acmthemes-theme .read-more-tag .btn,
body.acmthemes-theme .woocommerce a.button,
body.acmthemes-theme .woocommerce button.button,
body.acmthemes-theme a.button,
body.acmthemes-theme button.single_add_to_cart_button,
body.acmthemes-theme .xoo-wsc-btn,
body.acmthemes-theme input[type="submit"],
body.acmthemes-theme button[type="submit"].wpforms-submit {
	background: var(--bp-tan) !important;
	color: var(--bp-ink) !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	padding: 14px 26px !important;
	min-height: 48px;
	line-height: 1.2 !important;
	box-shadow: 0 1px 2px rgba(18, 24, 35, .08);
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
	text-transform: none !important;
}
body.acmthemes-theme .elementor-button:hover,
body.acmthemes-theme .read-more-tag .btn:hover,
body.acmthemes-theme .woocommerce a.button:hover,
body.acmthemes-theme .woocommerce button.button:hover,
body.acmthemes-theme a.button:hover,
body.acmthemes-theme button.single_add_to_cart_button:hover,
body.acmthemes-theme .xoo-wsc-btn:hover,
body.acmthemes-theme input[type="submit"]:hover,
body.acmthemes-theme button[type="submit"].wpforms-submit:hover {
	background: var(--bp-ink) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(18, 24, 35, .18);
}

/* --------------------------------------------------------------------------
   3. Top bar + header
   -------------------------------------------------------------------------- */
#top-bar-wrap { font-size: 13px; }
#top-bar-wrap, #top-bar-wrap a, #top-bar-wrap span,
#top-bar-social li a, #top-bar-social li a span {
	color: var(--bp-ink) !important;          /* white on tan was unreadable */
}
#top-bar-social li a:hover, #top-bar-wrap a:hover { opacity: .7; }
#top-bar-custom-content a { font-weight: 600; text-decoration: none; }

#site-header {
	border-bottom: 1px solid var(--bp-line);
}
#site-navigation .menu-link .text-wrap { letter-spacing: .06em; }
#site-navigation .menu-link:hover .text-wrap { color: var(--bp-tan-dark) !important; }

/* Cart badge: demo teal -> brand */
.xoo-wsc-sc-count, .wcmenucart-details.count {
	background: var(--bp-ink) !important;
	color: #fff !important;
}

/* Page header / breadcrumb bar: demo mint green -> warm brand neutral */
.page-header, .page-header-wrap {
	background-color: var(--bp-tan-soft) !important;
}
.site-breadcrumbs, .site-breadcrumbs a, .site-breadcrumbs span { color: var(--bp-muted) !important; }
.site-breadcrumbs .trail-end span { color: var(--bp-ink) !important; }

/* --------------------------------------------------------------------------
   4. Homepage (Elementor page 4197)
   -------------------------------------------------------------------------- */

/* Hero: give it room, make the title readable (it was black on a dark photo) */
.elementor-4197 .elementor-element-9b4431b > .elementor-container {
	padding-top: 96px;
	padding-bottom: 140px;
}
.elementor-4197 .elementor-element-986e4de > .elementor-background-overlay {
	background-image: linear-gradient(100deg, rgba(18, 24, 35, .88) 0%, rgba(18, 24, 35, .70) 55%, rgba(18, 24, 35, .35) 100%) !important;
	opacity: 1 !important;
}
.elementor-4197 .elementor-element-57b13af .elementor-heading-title {
	color: #fff !important;
	font-size: clamp(34px, 4.4vw, 56px) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	max-width: 16ch;
}
.elementor-4197 .elementor-element-0e6b8c7 .elementor-widget-container > div,
.elementor-4197 .elementor-element-0e6b8c7 p {
	font-size: 18px !important;
	line-height: 1.65 !important;
	color: rgba(255, 255, 255, .88) !important;
	max-width: 58ch;
}
.elementor-4197 .elementor-element-0e6b8c7 br { display: none; }
.elementor-4197 .elementor-element-57a3a0e { margin-top: 8px; }

/* Feature trio under the hero */
.elementor-4197 .elementor-element-4d59a8c {
	border-radius: 20px;
	box-shadow: var(--bp-shadow);
}
.elementor-4197 .acm-horz-features { transition: transform .2s ease; }
.elementor-4197 .acm-horz-features:hover { transform: translateY(-2px); }

/* Empty Elementor sections that only added blank space */
.elementor-4197 .elementor-element-b488f0d,
.elementor-4197 .elementor-element-2cf3e37 { display: none !important; }

/* About block when its image file is missing: show a clean brand panel */
.acm-banner.bp-banner-noimg {
	min-height: 320px;
	border-radius: 20px;
	background: linear-gradient(135deg, var(--bp-tan) 0%, #e7d5ba 100%) !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.acm-banner.bp-banner-noimg .banner-wrapper { position: static !important; width: 100%; }
.acm-banner.bp-banner-noimg .banner-content { background: transparent !important; box-shadow: none !important; text-align: center; }
.acm-banner.bp-banner-noimg h2 { color: var(--bp-ink) !important; font-size: 40px !important; letter-spacing: .04em; }

/* Category buttons: wrap as pills instead of a long vertical stack */
.elementor-4197 .elementor-element-2cc7fc4 > .elementor-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 960px;
}
.elementor-4197 .elementor-element-2cc7fc4 .elementor-column,
.elementor-4197 .elementor-element-2cc7fc4 .elementor-inner-section .elementor-column {
	width: auto !important;
	flex: 0 0 auto;
}
.elementor-4197 .elementor-element-2cc7fc4 .elementor-inner-section > .elementor-container {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.elementor-4197 .elementor-element-2cc7fc4 .elementor-widget-wrap { padding: 0 !important; }
.elementor-4197 .acm-button {
	border-radius: 999px !important;
	padding: 12px 24px !important;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.elementor-4197 .acm-button:hover {
	background: var(--bp-tan) !important;
	color: var(--bp-ink) !important;
	transform: translateY(-1px);
}

/* Section headings: consistent rhythm */
.acm-heading .acm-heading-prefix {
	border-radius: 999px;
	font-size: 13px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.acm-heading .acm-title { margin-bottom: 8px !important; }

/* --------------------------------------------------------------------------
   5. Cards: blog posts + products
   -------------------------------------------------------------------------- */
.recent-posts article,
.related-post,
.blog-entry.post,
.products .product-inner-wrap {
	border-radius: var(--bp-radius) !important;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--bp-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
}
.recent-posts article:hover,
.related-post:hover,
.products .product-inner-wrap:hover {
	box-shadow: var(--bp-shadow-hover);
	transform: translateY(-3px);
}
.recent-posts .post-text { padding: 20px 22px 24px !important; }
.recent-posts .entry-title { font-size: 18px !important; }
.recent-posts .post-excerpt { color: var(--bp-muted) !important; font-size: 15px !important; }
.timestamp { border-radius: 0 0 0 10px; }

/* Product grid */
.products .product-content { padding: 16px 18px 20px !important; }
.products .product_title, .products .product_title a {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--bp-ink) !important;
}
.products .product-cats a {
	color: var(--bp-tan-dark) !important;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 600;
}
/* Touch screens have no hover: keep the card action icons visible */
@media (hover: none) {
	.products .product-buttons { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}

/* Prices: old price readable grey, sale price strong */
.price del, .product-price del, .amount del, del .woocommerce-Price-amount {
	color: #8a909c !important;
	opacity: 1 !important;
	font-weight: 400 !important;
}
.price ins, .product-price ins, ins .woocommerce-Price-amount {
	color: var(--bp-ink) !important;
	text-decoration: none !important;
	font-weight: 700 !important;
}
.on-sale, .onsale {
	background: var(--bp-ink) !important;
	color: #fff !important;
	border-radius: 999px !important;
}
.on-sale::before, .on-sale::after, .on-sale span::before, .on-sale span::after { display: none !important; }

/* --------------------------------------------------------------------------
   6. Blog article readability (line length ~70 characters)
   -------------------------------------------------------------------------- */
.blog-single-wrap .entry-content,
.blog-single-wrap .post-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 18px;
	color: var(--bp-text) !important;
}
.blog-single-wrap .post-content p,
.blog-single-wrap .post-content li { color: var(--bp-text) !important; line-height: 1.75; font-weight: 400 !important; }
.blog-single-wrap .post-content h2 { margin: 1.6em 0 .5em; font-size: 28px !important; }
.blog-single-wrap .post-content h3 { margin: 1.4em 0 .4em; font-size: 22px !important; }
.blog-single-wrap .post-content img { border-radius: var(--bp-radius); }
.blog-single-wrap .entry-title { font-size: clamp(30px, 4vw, 46px) !important; }

/* --------------------------------------------------------------------------
   7. Single product
   -------------------------------------------------------------------------- */
.single-product .product_title { font-size: clamp(26px, 3vw, 34px) !important; }
.single-product .summary .price { font-size: 28px !important; margin: 8px 0 20px !important; }
.single-product .woo-single-product-content-full p { margin: 0 0 .65em !important; color: var(--bp-text); }
.single-product .woocommerce-product-gallery img { border-radius: var(--bp-radius); }
.single-product button.single_add_to_cart_button { width: 100%; max-width: 360px; font-size: 16px !important; }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
body.acmthemes-theme input[type="text"], body.acmthemes-theme input[type="email"],
body.acmthemes-theme input[type="search"], body.acmthemes-theme input[type="tel"],
body.acmthemes-theme textarea, body.acmthemes-theme select {
	border-radius: 10px !important;
	border: 1px solid #d5d9e0 !important;
	min-height: 46px;
	font-size: 16px !important; /* stops iOS zooming into fields */
}
body.acmthemes-theme textarea { min-height: 140px; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
#footer-widgets .widget-title { letter-spacing: .08em; }
#footer-widgets a:hover { color: var(--bp-tan) !important; }
#footer-widgets .menu li { margin-bottom: 4px; }
.bp-newsletter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--bp-tan);
	color: var(--bp-ink) !important;
	font-weight: 600;
	text-decoration: none;
}
.bp-newsletter-btn:hover { background: #fff; }
.bp-newsletter-text { color: #cbcfd6; font-size: 15px; margin: 0 0 10px; }
#copyright { font-weight: 400 !important; opacity: .85; }

/* --------------------------------------------------------------------------
   10. Mobile & tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.elementor-4197 .elementor-element-9b4431b > .elementor-container { padding-top: 64px; padding-bottom: 110px; }
}

@media (max-width: 767px) {
	body.acmthemes-theme { font-size: 16px !important; }

	/* Top bar: keep it to one tidy line */
	#top-bar-wrap { font-size: 12px; }
	#top-bar-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
	#top-bar-social ul li a { padding: 4px 6px; }

	/* Search bar under the logo took a lot of space */
	#mobile-menu-search { padding: 0 16px 10px !important; }
	#mobile-menu-search input[type="search"], #mobile-menu-search .field { min-height: 42px; }

	/* Hero */
	.elementor-4197 .elementor-element-9b4431b > .elementor-container { padding-top: 40px; padding-bottom: 90px; }
	.elementor-4197 .elementor-element-57b13af .elementor-heading-title { font-size: 32px !important; }
	.elementor-4197 .elementor-element-0e6b8c7 p { font-size: 16px !important; }
	.elementor-4197 .elementor-element-818577b { display: none; }  /* empty image column */

	/* Feature trio: tighter */
	.elementor-4197 .elementor-element-4d59a8c .elementor-column { margin-bottom: 4px; }
	.elementor-4197 .acm-horz-features > div { padding: 14px 8px !important; }

	/* Section spacing rhythm */
	.acm-heading .acm-title { font-size: 30px !important; }
	.acm-banner.bp-banner-noimg { min-height: 180px; }
	.acm-banner.bp-banner-noimg h2 { font-size: 30px !important; }

	/* Blog article */
	.blog-single-wrap .entry-content, .blog-single-wrap .post-content { font-size: 17px; }

	/* Footer: two columns for link lists */
	#footer-widgets { padding-top: 56px !important; padding-bottom: 40px !important; }
}

/* Mixed Arabic / English text: ux.js sets dir="auto", this keeps it tidy */
[dir="auto"]:lang(ar), .bp-rtl { text-align: start; }
