/*
Theme Name: Éclat Store
Theme URI: https://marocbeaute.com/
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 child theme for Éclat Store — beauty, skin and hair care, Morocco. Holds the brand palette and the RTL/LTR direction layer.
Version: 1.0.2
Template: dt-the7
Text Domain: the7dtchild
License: GPL-2.0-or-later
*/

/* --------------------------------------------------------------------------
   Brand palette
   The --eclat-* custom properties are injected from functions.php so PHP stays
   the single source of truth. Everything below consumes them.
   ----------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Typography — Cairo carries Arabic and Latin well; Playfair for display.
   ----------------------------------------------------------------------- */
body,
button,
input,
select,
textarea {
	font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--eclat-text);
}

h1, h2, h3, .entry-title {
	color: var(--eclat-text);
}

/* Arabic needs a touch more line-height for diacritics and taller glyphs. */
html[dir="rtl"] body {
	line-height: 1.85;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Direction
   Latin-script content is forced LTR even inside an RTL page, so prices,
   phone numbers, SKUs and Latin brand names never render reversed.
   ----------------------------------------------------------------------- */
html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .woocommerce-Price-currencySymbol,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] .sku,
html[dir="rtl"] code,
html[dir="rtl"] .latin {
	direction: ltr;
	unicode-bidi: embed;
}

/* Prices should still sit on the correct side of an RTL layout. */
html[dir="rtl"] .woocommerce-Price-amount {
	display: inline-block;
	text-align: right;
}

/* Form fields and editor text follow the page direction. */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
	direction: rtl;
	text-align: right;
}

html[dir="ltr"] input[type="text"],
html[dir="ltr"] input[type="search"],
html[dir="ltr"] textarea,
html[dir="ltr"] select {
	direction: ltr;
	text-align: left;
}

/* Lists and blockquotes: mirror the indent instead of inheriting the LTR one. */
html[dir="rtl"] ul,
html[dir="rtl"] ol {
	padding-right: 1.5em;
	padding-left: 0;
}

html[dir="rtl"] blockquote {
	border-right: 3px solid var(--eclat-primary);
	border-left: none;
	padding-right: 1.25em;
	padding-left: 0;
}

/* Elementor builds with physical properties; mirror the common ones. */
html[dir="rtl"] .elementor-widget-text-editor ul,
html[dir="rtl"] .elementor-widget-text-editor ol {
	padding-right: 1.5em;
	padding-left: 0;
}

html[dir="rtl"] .elementor-icon-list-item .elementor-icon-list-icon {
	margin-left: 8px;
	margin-right: 0;
}

/* WooCommerce specifics that are hard-coded left in core styles. */
html[dir="rtl"] .woocommerce ul.products li.product,
html[dir="rtl"] .woocommerce-page ul.products li.product {
	float: right;
}

html[dir="rtl"] .woocommerce .quantity input.qty {
	text-align: center;
}

html[dir="rtl"] .woocommerce form .form-row label {
	text-align: right;
	display: block;
}

html[dir="rtl"] .woocommerce-breadcrumb {
	direction: rtl;
}

/* --------------------------------------------------------------------------
   Buttons and accents
   ----------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7 input[type="submit"],
.elementor-button {
	background-color: var(--eclat-primary);
	color: var(--eclat-white);
	border-radius: 4px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wpcf7 input[type="submit"]:hover,
.elementor-button:hover {
	background-color: var(--eclat-primary-hover);
	color: var(--eclat-white);
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background-color: var(--eclat-secondary);
	color: var(--eclat-white);
}

a {
	color: var(--eclat-primary);
}

a:hover {
	color: var(--eclat-secondary);
}

/* --------------------------------------------------------------------------
   Responsive
   Tablet 1024 / mobile 767 match the Elementor breakpoints set in the kit.
   ----------------------------------------------------------------------- */
img,
video,
iframe,
table {
	max-width: 100%;
	height: auto;
}

@media (max-width: 1024px) {
	.eclat-hero {
		padding: 64px 24px;
	}
}

@media (max-width: 767px) {
	.eclat-hero {
		padding: 48px 18px;
		text-align: center;
	}

	/* Never let a wide element force the page to scroll sideways. */
	body {
		overflow-x: hidden;
	}

	.woocommerce ul.products[class*="columns-"] li.product,
	.woocommerce-page ul.products[class*="columns-"] li.product {
		width: 48%;
		margin: 0 1% 2em;
		float: none;
		display: inline-block;
		vertical-align: top;
	}
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Language switcher
   ----------------------------------------------------------------------- */
.eclat-lang-switcher,
.menu-item-language {
	font-weight: 600;
}

.menu-item-language img.iclflag,
.menu-item-language img {
	vertical-align: middle;
	margin-inline-end: 6px;
	border-radius: 2px;
}

.eclat-lang-switcher ul {
	list-style: none;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.eclat-lang-switcher .current-lang a {
	color: var(--eclat-primary);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header logo
   The source logo is portrait (520x658). Cap its height so it never dominates
   the header, and let the width follow the aspect ratio rather than the
   width/height attributes The7 prints inline.
   ----------------------------------------------------------------------- */
.branding img,
.masthead .branding img,
img.mobile-logo,
.bottom-bar img {
	max-height: 58px;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

@media (max-width: 767px) {
	.branding img,
	img.mobile-logo {
		max-height: 44px;
	}
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.eclat-announce {
	background: linear-gradient(90deg, var(--eclat-primary), var(--eclat-secondary));
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.2px;
	text-align: center;
	padding: 9px 16px;
	position: relative;
	z-index: 999;
}

.eclat-announce span + span::before {
	content: "·";
	margin: 0 10px;
	opacity: 0.65;
}

@media (max-width: 767px) {
	.eclat-announce {
		font-size: 12px;
		padding: 8px 12px;
	}
	.eclat-announce span:nth-child(n + 3) {
		display: none;
	}
}

/* Logo: one cap height everywhere, aspect ratio never distorted. */
.branding img,
.masthead .branding img,
img.mobile-logo,
.bottom-bar img,
.eclat-f-logo {
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

.branding img,
.masthead .branding img {
	max-height: 52px;
}

@media (max-width: 1024px) {
	.branding img,
	.masthead .branding img {
		max-height: 46px;
	}
}

@media (max-width: 767px) {
	.branding img,
	img.mobile-logo {
		max-height: 38px;
	}
}

.masthead {
	box-shadow: 0 1px 0 rgba(43, 33, 24, 0.08);
}

.masthead .main-nav > li > a .menu-text {
	font-weight: 600;
	letter-spacing: 0.2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer.footer,
.footer {
	background-color: var(--eclat-dark, #241A12);
}

.eclat-f-logo {
	max-height: 54px;
	margin-bottom: 18px;
}

.eclat-f-brand p {
	color: rgba(255, 255, 255, 0.68);
	font-size: 14.5px;
	line-height: 1.85;
	max-width: 34ch;
}

.footer .widget .widget-title,
.footer .widget h3 {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 10px;
}

.footer .widget .widget-title::after,
.footer .widget h3::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	background: var(--eclat-accent);
}

.eclat-f-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eclat-f-links li {
	margin-bottom: 11px;
}

.eclat-f-links a,
.eclat-f-meta li,
.eclat-f-note {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14.5px;
	text-decoration: none;
	transition: color 0.18s ease, padding-inline-start 0.18s ease;
}

.eclat-f-links a:hover {
	color: var(--eclat-accent);
	padding-inline-start: 4px;
}

.eclat-f-social {
	list-style: none;
	display: flex;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
}

.eclat-f-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.eclat-f-social a:hover {
	background: var(--eclat-primary);
	transform: translateY(-2px);
}

.eclat-f-btn {
	display: inline-block;
	background: var(--eclat-accent);
	color: var(--eclat-dark, #241A12) !important;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
	margin: 6px 0 18px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.eclat-f-btn:hover {
	background: #fff;
	transform: translateY(-1px);
}

.eclat-f-meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.eclat-f-meta li {
	margin-bottom: 6px;
}

.eclat-f-meta strong {
	color: #fff;
}

.eclat-f-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.eclat-f-trust li {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 5px 11px;
	white-space: nowrap;
}

.bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

@media (max-width: 992px) {
	.eclat-f-brand p {
		max-width: none;
	}
	.footer .widget {
		margin-bottom: 34px;
	}
}

/* ==========================================================================
   PAGE COMPONENTS
   ========================================================================== */

/* Product placeholder tiles (replaced by real products in Phase 2) */
.eclat-ph-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background:
		radial-gradient(circle at 30% 28%, rgba(236, 182, 88, 0.32), transparent 60%),
		linear-gradient(140deg, var(--eclat-light), #fff);
	border: 1px dashed rgba(174, 111, 77, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	overflow: hidden;
}

.eclat-ph-thumb::after {
	content: "";
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(174, 111, 77, 0.14);
}

.eclat-ph-badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	background: var(--eclat-primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
}

.eclat-ph-price {
	color: var(--eclat-muted);
	letter-spacing: 3px;
}

/* Numbered process steps on the About page */
.eclat-step-num {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: var(--eclat-accent);
	margin-bottom: 12px;
}

/* Elementor cards: lift slightly on hover for a tactile feel */
.elementor-column.elementor-col-33 > .elementor-widget-wrap,
.elementor-column.elementor-col-25 > .elementor-widget-wrap {
	transition: transform 0.22s ease;
}

@media (hover: hover) {
	.elementor-column:hover > .elementor-widget-wrap .eclat-ph-thumb {
		border-color: var(--eclat-primary);
	}
}

/* Accordion (contact FAQ) */
.elementor-accordion .elementor-tab-title {
	border-radius: 8px;
}

.elementor-accordion .elementor-accordion-item {
	border-color: rgba(174, 111, 77, 0.18) !important;
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
}

/* Star ratings inherit the brand accent */
.elementor-star-rating {
	color: var(--eclat-accent);
}

/* Counters on the dark band */
.elementor-counter .elementor-counter-number-wrapper {
	font-family: "Playfair Display", Georgia, serif;
}

/* RTL: the hero split and icon lists must mirror cleanly */
html[dir="rtl"] .elementor-icon-list-item {
	text-align: right;
}

html[dir="rtl"] .elementor-icon-list-items {
	padding-right: 0;
}

/* Never let a negative-margin overlap clip on small screens */
@media (max-width: 767px) {
	.elementor-section {
		background-attachment: scroll !important;
	}
}

/* ==========================================================================
   BOTTOM BAR
   The7 renders the bottom-bar logo unconstrained, which overlapped the
   copyright line. The logo is removed at the option level; this is the
   defensive backstop in case any header variant re-introduces it.
   ========================================================================== */
.bottom-bar .branding,
.bottom-bar img,
#bottom-bar .branding,
#bottom-bar img {
	display: none !important;
}

.bottom-bar,
#bottom-bar {
	min-height: 58px;
}

.bottom-bar .wf-wrap,
#bottom-bar .wf-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.eclat-copy {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.62);
	letter-spacing: 0.2px;
	text-align: center;
	display: inline-block;
}

.eclat-copy a {
	color: var(--eclat-accent);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.eclat-copy a:hover {
	color: #fff;
	border-bottom-color: var(--eclat-accent);
}

/* Social icons are inline SVG so TikTok and Snapchat match the others. */
.eclat-f-social a svg {
	width: 18px;
	height: 18px;
	display: block;
}

.eclat-f-social a {
	color: #fff;
}
