/*
 Theme Name:   Woodmart Child
 Description:  RCR Menswear – Woodmart Child Theme
 Author:       RCR Menswear
 Template:     woodmart
 Version:      1.1.0
 Text Domain:  woodmart
*/

:root {
	--rcr-black: #0b0b0b;
	--rcr-red: #c8102e;
	--rcr-white: #ffffff;
	--rcr-grey: #f4f4f4;
}

/* ---------- Arabic version: Cairo everywhere ---------- */
html[dir="rtl"] body,
html[dir="rtl"] body :is(h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, select, textarea, label, .title, .wd-entities-title, .woodmart-title-container) {
	font-family: "Cairo", sans-serif !important;
	letter-spacing: 0 !important;
}
html[dir="rtl"] .wd-nav > li > a { text-transform: none; }

/* ---------- Section titles ---------- */
.rcr-section-title {
	text-align: center;
	font-size: 26px;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 28px;
	position: relative;
}
.rcr-section-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	background: var(--rcr-red);
	margin: 12px auto 0;
}

/* ---------- Brand marquee ---------- */
.rcr-marquee-wrap { padding: 10px 0; }
.rcr-marquee {
	overflow: hidden;
	position: relative;
	padding: 14px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rcr-marquee + .rcr-marquee { border-top: 1px solid rgba(0, 0, 0, .06); }
.rcr-marquee__track {
	display: flex;
	align-items: center;
	gap: 64px;
	width: max-content;
	animation: rcr-scroll var(--rcr-speed, 35s) linear infinite;
}
.rcr-marquee--right .rcr-marquee__track { animation-direction: reverse; }
.rcr-marquee:hover .rcr-marquee__track { animation-play-state: paused; }
@keyframes rcr-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.rcr-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	min-width: 120px;
}
.rcr-brand img {
	max-height: 44px;
	max-width: 170px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .75;
	transition: opacity .25s, filter .25s, transform .25s;
}
.rcr-brand:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.rcr-brand-name {
	font-family: "Jost", sans-serif;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rcr-black);
}
/* Dark variant: wrap the shortcode in an Elementor section with class rcr-dark */
.rcr-dark .rcr-brand img { filter: grayscale(1) invert(1) brightness(1.6); }
.rcr-dark .rcr-brand-name { color: #fff; }
.rcr-dark .rcr-marquee + .rcr-marquee { border-top-color: rgba(255, 255, 255, .1); }
@media (max-width: 768px) {
	.rcr-marquee__track { gap: 36px; }
	.rcr-brand img { max-height: 32px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	.rcr-marquee__track { animation-duration: 120s; }
}

/* ---------- Product brand + notes ---------- */
.rcr-product-brand {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rcr-red) !important;
	margin-bottom: 6px;
}
.rcr-sale-note {
	background: #fff3f4;
	border-inline-start: 3px solid var(--rcr-red);
	padding: 10px 14px;
	font-size: 14px;
	margin: 12px 0;
}
.rcr-trust {
	list-style: none;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #eee;
	font-size: 14px;
}
.rcr-trust li { padding: 4px 0; padding-inline-start: 22px; position: relative; }
.rcr-trust li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 11px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--rcr-red);
	border-bottom: 2px solid var(--rcr-red);
	transform: rotate(-45deg);
}

/* ---------- Product cards ---------- */
.wd-product .wd-entities-title { font-weight: 500; }
.wd-product .price { color: var(--rcr-black); font-weight: 600; }
.wd-product .price ins { color: var(--rcr-red); }
.product-label.onsale { background: var(--rcr-red); }

/* ---------- Buttons ---------- */
.btn.btn-color-primary,
.single_add_to_cart_button,
.checkout-button,
#place_order {
	background-color: var(--rcr-black) !important;
	border-color: var(--rcr-black) !important;
}
.btn.btn-color-primary:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover {
	background-color: var(--rcr-red) !important;
	border-color: var(--rcr-red) !important;
}

/* ---------- Floating WhatsApp ---------- */
.rcr-wa {
	position: fixed;
	bottom: 22px;
	inset-inline-start: 22px;
	z-index: 400;
}
.rcr-wa__btn {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	border: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: transform .2s;
}
.rcr-wa__btn:hover { transform: scale(1.07); background: #1ebe5b; }
.rcr-wa__menu {
	position: absolute;
	bottom: 70px;
	inset-inline-start: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	padding: 14px;
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .2s;
}
.rcr-wa.is-open .rcr-wa__menu { opacity: 1; visibility: visible; transform: none; }
.rcr-wa__menu p { margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--rcr-black); }
.rcr-wa__menu a {
	display: block;
	padding: 9px 12px;
	margin-top: 6px;
	border-radius: 6px;
	background: #f0fdf4;
	color: #128c4a;
	font-weight: 600;
	text-align: center;
}
.rcr-wa__menu a:hover { background: #25d366; color: #fff; }
@media (max-width: 1024px) {
	.rcr-wa { bottom: 70px; } /* clear Woodmart mobile toolbar */
}

/* ---------- Features strip ---------- */
.rcr-features .wd-info-box .info-box-title { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Language switcher in header ---------- */
.rcr-lang { display: flex; gap: 10px; font-size: 13px; font-weight: 600; }
.rcr-lang a { color: #fff; opacity: .65; }
.rcr-lang a.is-current, .rcr-lang a:hover { opacity: 1; color: #fff; }

/* ---------- Header layout ---------- */
.whb-general-header .whb-col-left,
.whb-general-header .whb-col-right { flex: 1 1 0; }
.whb-general-header .whb-col-center { flex: 0 0 auto; justify-content: center; }
.whb-top-bar .rcr-lang { margin-inline-start: 14px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.2); }
.whb-header-bottom .wd-nav-main > li > a { font-size: 13px; letter-spacing: .08em; }
.whb-header-bottom .wd-nav-main > li > a:hover,
.whb-header-bottom .wd-nav-main > li.current-menu-item > a { color: var(--rcr-red); }
#trp-floater-ls { display: none !important; }

/* =================== HOMEPAGE =================== */
.rcr-home > * + * { margin-top: 72px; }
.rcr-home .rcr-section-title { margin-bottom: 32px; }
.rcr-btn {
	display: inline-block;
	padding: 14px 34px;
	background: var(--rcr-red);
	color: #fff !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 13px;
	border-radius: 0;
	transition: background .2s, transform .2s;
}
.rcr-btn:hover { background: #fff; color: var(--rcr-black) !important; }
.rcr-btn--light { background: #fff; color: var(--rcr-black) !important; }
.rcr-btn--light:hover { background: var(--rcr-red); color: #fff !important; }

/* Hero */
.rcr-hero {
	position: relative;
	background: radial-gradient(circle at 75% 40%, #2a0a10 0%, var(--rcr-black) 60%);
	color: #fff;
	min-height: 560px;
	overflow: hidden;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.rcr-hero__slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	max-width: 1222px;
	margin: 0 auto;
	padding: 40px 15px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}
.rcr-hero__slide.is-active { opacity: 1; visibility: visible; }
.rcr-hero__kicker {
	display: inline-block;
	color: var(--rcr-red);
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 14px;
}
.rcr-hero__title { color: #fff; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.08; margin-bottom: 18px; }
.rcr-hero__text p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 440px; margin-bottom: 30px; }
.rcr-hero__media { position: relative; height: 470px; }
.rcr-hero__media img {
	position: absolute;
	width: 62%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	box-shadow: 0 30px 60px rgba(0,0,0,.5);
	transition: transform 1.2s ease;
}
.rcr-hero__media img:nth-child(1) { inset-inline-end: 0; top: 0; }
.rcr-hero__media img:nth-child(2) { inset-inline-start: 0; bottom: 0; width: 50%; border: 6px solid var(--rcr-black); }
.rcr-hero__slide.is-active .rcr-hero__media img:nth-child(1) { transform: translateY(-6px); }
.rcr-hero__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.rcr-hero__dots button { width: 34px; height: 3px; padding: 0; min-height: 0; border: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.rcr-hero__dots button.is-active { background: var(--rcr-red); }
@media (max-width: 768px) {
	.rcr-hero { min-height: 640px; }
	.rcr-hero__slide { grid-template-columns: 1fr; text-align: center; gap: 10px; padding-top: 30px; align-content: start; }
	.rcr-hero__text p { margin-inline: auto; }
	.rcr-hero__media { height: 300px; max-width: 340px; margin: 0 auto; width: 100%; }
}

/* Category circles */
.rcr-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.rcr-cat { display: flex; flex-direction: column; align-items: center; width: 160px; text-align: center; color: var(--rcr-black); }
.rcr-cat__img { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: var(--rcr-grey); border: 2px solid transparent; transition: border-color .25s, transform .25s; }
.rcr-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.rcr-cat:hover .rcr-cat__img { border-color: var(--rcr-red); transform: translateY(-4px); }
.rcr-cat__name { margin-top: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rcr-cat__count { font-size: 12px; color: #888; }
@media (max-width: 576px) {
	.rcr-cats { gap: 14px; }
	.rcr-cat { width: calc(50% - 14px); }
	.rcr-cat__img { width: 120px; height: 120px; }
}

/* Tabs */
.rcr-tabs__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 30px; }
.rcr-tabs__nav button {
	background: none; border: 0; padding: 6px 0; min-height: 0;
	font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
	color: #999; border-bottom: 2px solid transparent; cursor: pointer;
}
.rcr-tabs__nav button.is-active, .rcr-tabs__nav button:hover { color: var(--rcr-black); border-bottom-color: var(--rcr-red); }
.rcr-tabs__panel { display: none; }
.rcr-tabs__panel.is-active { display: block; animation: rcr-fade .4s ease; }
@keyframes rcr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Brands strip on home */
.rcr-home .rcr-marquee-wrap { background: var(--rcr-grey); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 40px 0; }

/* Banner */
.rcr-banner {
	display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
	background: var(--rcr-black); color: #fff; overflow: hidden; min-height: 380px;
}
.rcr-banner__text { padding: 50px 60px; }
.rcr-banner__text h2 { color: #fff; font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 14px; }
.rcr-banner__text p { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.rcr-banner__media { height: 100%; }
.rcr-banner__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
	.rcr-banner { grid-template-columns: 1fr; }
	.rcr-banner__text { padding: 36px 24px; text-align: center; }
	.rcr-banner__media { height: 300px; }
}

/* Features */
.rcr-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.rcr-feature { display: flex; align-items: center; gap: 14px; }
.rcr-feature svg { color: var(--rcr-red); flex: 0 0 auto; }
.rcr-feature strong { display: block; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--rcr-black); }
.rcr-feature span { font-size: 13px; color: #777; }
@media (max-width: 1024px) { .rcr-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rcr-features { grid-template-columns: 1fr; } }

/* Mini lists */
.rcr-mini-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 768px) { .rcr-mini-cols { grid-template-columns: 1fr; } }
.rcr-mini__title { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--rcr-black); }
.rcr-mini__item { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: var(--rcr-black); }
.rcr-mini__item img { width: 76px; height: 76px; object-fit: cover; background: var(--rcr-grey); }
.rcr-mini__name { display: block; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.rcr-mini__item:hover .rcr-mini__name { color: var(--rcr-red); }
.rcr-mini__price { font-weight: 600; }
.rcr-mini__price del { color: #999; font-weight: 400; margin-inline-end: 6px; }
.rcr-mini__price ins { color: var(--rcr-red); text-decoration: none; }

/* Front page: no page title, no top gap */
.home .page-title, .home .wd-page-title { display: none; }
.home .wd-page-content > .container, .home .main-page-wrapper { padding-top: 0; }

/* ---------- Footer ---------- */
.rcr-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 30px; color: rgba(255,255,255,.7); }
.rcr-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin-bottom: 18px; }
.rcr-footer ul { list-style: none; margin: 0; padding: 0; }
.rcr-footer li { margin-bottom: 9px; }
.rcr-footer a { color: rgba(255,255,255,.7); }
.rcr-footer a:hover { color: var(--rcr-red); }
.rcr-footer__logo { max-width: 160px; height: auto; margin-bottom: 16px; }
.rcr-footer__wordmark { display: block; color: #fff; font-size: 22px; letter-spacing: .2em; margin-bottom: 16px; }
.rcr-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.rcr-footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; }
.rcr-footer__social a:hover { background: var(--rcr-red); border-color: var(--rcr-red); color: #fff; }
@media (max-width: 1024px) { .rcr-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .rcr-footer { grid-template-columns: 1fr; gap: 28px; } }
.trp-floating-switcher { display: none !important; }
