/*
Theme Name: GearO Elementor
Theme URI: https://example.com/gearo-elementor
Author: GearO Conversion
Author URI: https://example.com
Description: Lightweight Elementor-compatible theme converting the GearO HTML e-commerce template to WordPress + WooCommerce + Elementor Pro. Handles theme setup, asset loading, WooCommerce support, fonts and the responsive foundation. Business logic lives in the companion plugin "gearo-core".
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gearo
Tags: e-commerce, elementor, woocommerce, custom-menu, translation-ready
*/

/*
 * This file is intentionally minimal. The actual GearO design lives in
 * assets/css/styles.css (migrated from the original template) which is
 * enqueued from inc/enqueue.php. Do NOT paste the full template CSS here.
 */

/* =====================================================================
   Purple Home & Gifts — brand palette override.
   Primary #70509c, Secondary #672881. Loaded after styles.css so these
   :root redefinitions win (later definition of a custom property wins).
   ===================================================================== */
:root {
	--Primary: #70509c;
	--brand-1: #70509c;
	--brand-2: #672881;
}

/* Logo sizing in the header (image logo, not SVG) */
.logo-header .logo,
.logo-header .logo-black { max-height: 46px; width: auto; }

/* Primary-accented controls use the darker brand tone on hover/active */
.tf-btn.btn-fill,
.tf-btn.style-2 { background-color: var(--brand-1); border-color: var(--brand-1); color: #fff; }
.tf-btn.btn-fill:hover,
.tf-btn.style-2:hover { background-color: var(--brand-2); border-color: var(--brand-2); }

/* Links / accents that used the taupe primary now read purple */
a:hover { color: var(--brand-1); }
.list-star-default .icon,
.list-star-default i { color: var(--brand-1); }

/* Headings stay black serif (reference look); the brand purple is used as an
   accent (buttons, links, prices, icons, logo) rather than on headings.
   Hebrew glyphs are not in Heebo -> Heebo serves them (per-glyph
   font fallback), keeping Latin in Heebo and Hebrew in a matching serif. */
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-woocommerce-product-title .elementor-heading-title,
.elementor-widget-woocommerce-product-title .product_title,
.elementor-heading-title,
.product_title,
.facet-title,
.footer-heading,
.elementor-accordion .elementor-tab-title {
	font-family: "Heebo", sans-serif !important;
}
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-woocommerce-product-title .elementor-heading-title,
.elementor-widget-woocommerce-product-title .product_title {
	color: #171717 !important;
}

/* Body text: Heebo for Latin, Heebo for Hebrew glyphs. */
body,
button, input, select, textarea,
p, a, li, span, label {
	font-family: "Heebo", sans-serif;
}
/* Icon font elements must keep their own family. */
i.icon, .icon, [class^="icon-"], [class*=" icon-"] { font-family: "icomoon" !important; }

/* =====================================================================
   Mobile fixes.
   ===================================================================== */
/* Mobile off-canvas menu: Bootstrap's transition-driven slide gets stuck in
   some renderers (transform pinned at translateX(-100%)). Drive the slide with
   a keyframe animation instead — it composites reliably and, via fill-mode,
   always ENDS in the visible state. Bootstrap's own transition is disabled so
   the two don't fight. */
#mobileMenu.offcanvas.canvas-mb { transition: none !important; }
#mobileMenu.offcanvas.canvas-mb.show:not(.hiding) {
	transform: none !important;
	animation: gearoOffcanvasInRight .34s cubic-bezier(.4, 0, .2, 1) both;
}
#mobileMenu.offcanvas.canvas-mb.hiding {
	animation: gearoOffcanvasOutRight .28s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes gearoOffcanvasInLeft {
	from { transform: translateX(-100%); }
	to   { transform: translateX(0); }
}
@keyframes gearoOffcanvasOutLeft {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}

/* Contact form: stack the paired fields to full width on phones. */
@media (max-width: 575px) {
	.form-leave-comment .cols { flex-direction: column; gap: 0; }
	.form-leave-comment .cols fieldset { width: 100%; }
}

/* =====================================================================
   Subtle scroll-reveal (gearo-reveal.js). Styles apply ONLY once the script
   flags the document, so content stays visible if JS is off/errors.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* SAFETY-FIRST reveal: the persistent pre-reveal state offsets by transform
	   only — never opacity — so content is NEVER left invisible if the animation
	   fails to composite; worst case an element sits ~22px low until settled.
	   The fade happens only inside the keyframe (real browsers), and a
	   `gearo-reveal-done` failsafe force-settles everything. */
	html.gearo-reveal-on .gearo-reveal {
		transform: translateY(22px);
	}
	html.gearo-reveal-on .gearo-reveal.is-revealed {
		animation: gearoRevealUp .6s cubic-bezier(.4, 0, .2, 1) both;
	}
	html.gearo-reveal-done .gearo-reveal,
	html.gearo-reveal-on .gearo-reveal.is-revealed {
		transform: none;
	}
	html.gearo-reveal-done .gearo-reveal { animation: none !important; transform: none !important; }
	@keyframes gearoRevealUp {
		from { opacity: 0; transform: translateY(22px); }
		to   { opacity: 1; transform: none; }
	}
}

/* =====================================================================
   Mobile off-canvas menu — GearO design (logo header, socials, phone).
   The .nav-ul-mb accordion + .site-nav-icon styling ships in styles.css.
   ===================================================================== */
.canvas-mb .mb-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}
.canvas-mb .mb-menu-header .logo-header img { max-height: 40px; width: auto; }
.canvas-mb .mb-menu-header .logo-black { display: block; }
.canvas-mb .mb-menu-header .logo { display: none; }
.canvas-mb .mb-body { padding: 0; }
.canvas-mb .nav-ul-mb { padding: 8px 20px; }
.canvas-mb .mb-other-content { padding: 0 20px 20px; }
.canvas-mb .group-icon {
	display: flex; gap: 12px; margin: 16px 0 24px;
}
.canvas-mb .group-icon .site-nav-icon {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--Surface); border-radius: 8px; padding: 14px 10px; font-weight: 500; color: #171717;
}
.canvas-mb .group-icon .site-nav-icon:hover { background: #ece9f3; color: var(--brand-1); }
.canvas-mb .mb-follow .text-need { font-size: 14px; color: #666; margin-bottom: 12px; }
.canvas-mb .mb-socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.canvas-mb .mb-socials a {
	width: 40px; height: 40px; border-radius: 50%; background: #f2f2f2;
	display: inline-flex; align-items: center; justify-content: center; color: #171717; transition: .25s;
}
.canvas-mb .mb-socials a:hover { background: var(--brand-1); color: #fff; }
.canvas-mb .mb-bottom { padding: 16px 20px; border-top: 1px solid var(--line); }
.canvas-mb .mb-bottom-phone { display: inline-flex; align-items: center; gap: 8px; font-family: "Heebo", serif; font-size: 18px; color: #171717; }
.canvas-mb .mb-bottom-phone i { color: var(--brand-1); }

/* Mobile hamburger button — ensure it is visible/clickable (the old icon-list
   font glyph did not exist, collapsing the button to 0 height). */
.mobile-menu {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #171717;
}
.mobile-menu svg { width: 26px; height: 26px; display: block; }

/* =====================================================================
   Floating widgets: WhatsApp button + Accessibility toolbar (bottom-left).
   Scroll-top lives bottom-right, so these stack on the left.
   ===================================================================== */
.gearo-floating {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}
.gearo-fab {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0,0,0,.22);
	transition: transform .18s ease, box-shadow .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.gearo-fab:hover { transform: scale(1.07); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.gearo-fab:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }
.gearo-fab-a11y { background: #2478ff; order: 1; } /* accessibility on top */
.gearo-fab-wa { background: #25D366; order: 2; }    /* WhatsApp below */
.gearo-fab svg { display: block; }

/* Accessibility panel (pops above the buttons) */
.gearo-a11y-panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	width: 250px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(0,0,0,.22);
	padding: 14px;
	opacity: 0;
	transform: translateY(12px) scale(.96);
	transform-origin: bottom left;
	transition: opacity .2s ease, transform .2s ease;
	direction: rtl;
	text-align: right;
}
.gearo-a11y-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.gearo-a11y-head {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 17px; font-weight: 700; color: #171717; margin-bottom: 12px;
	padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.gearo-a11y-close {
	background: transparent; border: 0; font-size: 26px; line-height: 1;
	color: #999; cursor: pointer; padding: 0 4px;
}
.gearo-a11y-close:hover { color: #333; }
.gearo-a11y-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gearo-a11y-opt {
	background: #f5f5f7; border: 1px solid #ececec; border-radius: 9px;
	padding: 10px 8px; font-size: 13px; color: #333; cursor: pointer;
	text-align: center; transition: all .15s ease; font-family: inherit;
}
.gearo-a11y-opt:hover { background: #ececf0; }
.gearo-a11y-opt.is-active { background: #2478ff; border-color: #2478ff; color: #fff; }
.gearo-a11y-reset {
	width: 100%; margin-top: 10px; background: #171717; color: #fff;
	border: 0; border-radius: 9px; padding: 10px; font-size: 13px; cursor: pointer;
	font-family: inherit;
}
.gearo-a11y-reset:hover { background: #333; }

@media (max-width: 575px) {
	.gearo-fab { width: 48px; height: 48px; }
	.gearo-floating { left: 14px; bottom: 14px; }
}

/* ---- Accessibility effects (scoped to #page-content so fixed UI is safe) ---- */
html.gearo-a11y-grayscale #page-content { filter: grayscale(1); }
html.gearo-a11y-contrast #page-content { filter: contrast(1.35); }
html.gearo-a11y-grayscale.gearo-a11y-contrast #page-content { filter: grayscale(1) contrast(1.35); }

html.gearo-a11y-links a {
	text-decoration: underline !important;
	text-underline-offset: 2px;
	outline: 1px dashed rgba(36,120,255,.5);
	outline-offset: 1px;
}
html.gearo-a11y-readable p,
html.gearo-a11y-readable li,
html.gearo-a11y-readable span,
html.gearo-a11y-readable a,
html.gearo-a11y-readable div {
	letter-spacing: .5px !important;
	line-height: 1.9 !important;
	word-spacing: 2px !important;
}
html.gearo-a11y-cursor,
html.gearo-a11y-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M8 4l30 18-13 3 8 15-5 2-8-15-9 9z'/%3E%3C/svg%3E") 6 4, auto !important;
}

/* Sold-out card badge: compact Hebrew pill (smaller than the round sale badge). */
.card-product .card-product-wrapper .on-sale-wrap.sold-out .on-sale-item {
	width: auto;
	min-width: 0;
	padding: 3px 10px;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	border-radius: 100px;
	white-space: nowrap;
}

/* =====================================================================
   Shop / category archive cover banner — matches the About page banner
   (bg page-title-6.jpg + dark overlay + centred white title/breadcrumb).
   The GearO .page-title expected a .paralaximg bg element the archive
   template omits, so it rendered as empty space; give it the bg here.
   ===================================================================== */
.page-title.gearo-archive-banner {
	min-height: 280px;
	display: flex;
	align-items: center;
	background: #2a2320 url(assets/images/page-title/page-title-6.jpg) center / cover no-repeat;
}
.page-title.gearo-archive-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(24, 24, 24, .35), rgba(24, 24, 24, .55));
	z-index: 0;
}
.page-title.gearo-archive-banner .content {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	transform: none;
	z-index: 1;
	width: 100%;
	text-align: center;
}
.page-title.gearo-archive-banner .content .breadcrumb { justify-content: center; }
@media (max-width: 767px) {
	.page-title.gearo-archive-banner { min-height: 200px; }
}

/* Search modal (RTL): the search icon button was pinned to the right where the
   right-aligned placeholder/text starts, so the icon overlapped the text.
   Move the icon to the left and reserve left padding for it. */
.form-search button { right: auto; left: 16px; }
.form-search input { padding-right: 15px; padding-left: 46px; }

/* Search results page: centre + space the empty state and give room. */
body.search .elementor-widget-wc-archive-products .woocommerce-info,
body.search .elementor-widget-wc-archive-products .woocommerce-no-products-found,
body.search .elementor-widget-wc-archive-products p:only-child {
	text-align: center;
	font-size: 18px;
	color: #666;
	padding: 40px 0 20px;
	margin: 0;
}
body.search .elementor-widget-theme-archive-title { text-align: center; margin-bottom: 8px; }
body.search-no-results .elementor-widget-wc-archive-products { min-height: 160px; }

/* Header icon count badge: place on the top-left for RTL (was top-right/LTR). */
.header-default .nav-icon .count-box { right: auto; left: -4px; }

/* Show the search icon in the mobile header. */
@media (max-width: 1199.98px) {
	li.nav-search { display: block !important; margin-left: 10px; }
}

/* Card action row: keep the main button and the icon buttons from touching. */
.card-product .list-btn-main { display: flex; align-items: center; gap: 8px; }
.card-product .list-btn-main .btn-main-product { flex: 1 1 auto; }
.card-product .list-btn-main .box-icon { flex: 0 0 auto; }

/* Scroll-to-top: the icon-arrow-top glyph is missing from the font (empty
   circle). Use an inline SVG arrow instead. */
#scroll-top .scroll-top-arrow { display: block; color: #fff; }

/* Testimonials quote icon size on mobile. */
@media (max-width: 767px) {
	.testimonial-item.style-3 .box-icon .icon { font-size: 51px; margin-bottom: 20px; text-align: center; }
}

/* Testimonials — mobile sizing polish. */
@media (max-width: 767px) {
	.testimonial-item.style-3 .list-star-default i { font-size: 14px; }
	.testimonial-item.style-3 h6.author { font-size: 12px; }
	.testimonial-item.style-3 .content-top { gap: 10px; margin-bottom: 0; }
	.testimonial-item.style-3 h4 { font-size: 17px; line-height: 32px; }
}

/* Home section spacing override on mobile. */
@media (max-width: 767px) {
	.elementor-79 .elementor-element.elementor-element-2b383ad { padding: 0 0 40px 0 !important; }
}
@media (max-width: 767px) {
	.elementor-79 .elementor-element.elementor-element-73c0884 { padding: 0 0 50px 0 !important; }
}

/* Testimonials nav arrows: perfect circles + RTL-correct direction (swap glyphs). */
.gearo-testimonials-section .tf-sw-testimonial .sw-button {
	width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
	border: 1px solid #e5e5e5; display: inline-flex; align-items: center; justify-content: center;
	font-size: 20px; padding: 0;
}
.gearo-testimonials-section .tf-sw-testimonial .sw-button.swiper-button-prev::before { content: "\e92e"; }
.gearo-testimonials-section .tf-sw-testimonial .sw-button.swiper-button-next::before { content: "\e930"; }

/* Price filter: extra right padding so the ₪ (::after at right:12px) never
   overlaps the number. */
.widget-facet.facet-price .price-val { padding-right: 40px !important; text-align: right; }

/* Review fixes (user-confirmed values). */
.card-product .card-product-wrapper { border-radius: 5px; }
@media (max-width: 767px) {
	.tf-slideshow .tf-btn { line-height: 42px; }
	.hover-img .img-style img { width: 160px; height: 150px; }
}

/* Hero slideshow: compact square height on phones only. */
@media (max-width: 767px) {
	.tf-slideshow .wrap-slider { height: auto !important; min-height: 0 !important; aspect-ratio: 1 / 1; }
	.tf-slideshow .wrap-slider .img-style,
	.tf-slideshow .wrap-slider .img-style img { height: 100% !important; min-height: 0 !important; object-fit: cover; }
	.tf-slideshow .wrap-slider .sld-content { padding-bottom: 24px; }
}

/* Mobile menu: home link + circular category tiles + footer links. */
.canvas-mb .mb-cats-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px;
	padding: 6px 20px 18px; text-align: center;
}
.canvas-mb .mb-cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.canvas-mb .mb-cat-img {
	width: 110px; height: 110px; border-radius: 50%; overflow: hidden; display: block; background: #f4f4f4;
}
.canvas-mb .mb-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.canvas-mb .mb-cat-name { font-size: 15px; font-weight: 600; color: #171717; line-height: 1.3; }
.canvas-mb .mb-footer-links { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.canvas-mb .mb-footer-links li a {
	display: block; padding: 9px 0; font-size: 14px; color: #444; border-bottom: 1px solid #f1f1f1;
}
.canvas-mb .mb-footer-links li:last-child a { border-bottom: 0; }

/* Mobile menu now slides from the RIGHT (RTL). */
@keyframes gearoOffcanvasInRight {
	from { transform: translateX(100%); }
	to   { transform: translateX(0); }
}
@keyframes gearoOffcanvasOutRight {
	from { transform: translateX(0); }
	to   { transform: translateX(100%); }
}
#mobileMenu.offcanvas.canvas-mb { left: auto; right: 0; }
#mobileMenu.offcanvas.canvas-mb.hiding { transform: translateX(100%) !important; }

/* Zero vertical padding for stacked sections on tablets/phones (enforced). */
@media (max-width: 1199px) {
	.section-lookbook, .section-box-cls, .flat-spacing-8, .flat-spacing-7, .flat-spacing-6,
	.flat-spacing-5, .flat-spacing-4, .flat-spacing-3, .flat-spacing-2, .flat-spacing {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}
