/* =========================================================================
   Ruqi Header — brand header (RTL first, logical properties)
   ========================================================================= */
:root {
	--rq-700: #3E1E68;
	--rq-600: #5D2F77;
	--rq-500: #7A4796;
	--rq-accent: #E45A92;
	--rq-accent-600: #CF3F7B;
	--rq-soft: #FFACAC;
	--rq-ink: #1E1225;
	--rq-mute: #6B6275;
	--rq-line: #ECE6F1;
	--rq-tint: #F7F2FB;
	--rq-radius: 16px;
	--rq-shadow: 0 24px 60px -18px rgba(38, 14, 66, .35), 0 8px 20px -8px rgba(38, 14, 66, .18);
	--rq-h: 76px;
	--rq-h-sm: 64px;
	--rq-top: var(--wp-admin--admin-bar--height, 0px);
	--rq-ease: cubic-bezier(.2, .7, .2, 1);
	--rq-font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset inside our components (beats generic theme selectors) */
.rq-header, .rq-drawer, .rq-notice { font-family: var(--rq-font); }
.rq-header *, .rq-drawer *, .rq-header *::before, .rq-drawer *::before,
.rq-header *::after, .rq-drawer *::after { box-sizing: border-box; }
.rq-header ul, .rq-drawer ul { list-style: none; margin: 0; padding: 0; }
.rq-header li, .rq-drawer li { margin: 0; padding: 0; }
.rq-header a, .rq-drawer a { text-decoration: none; color: inherit; }
.rq-header button, .rq-drawer button {
	appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0; padding: 0;
	font: inherit; color: inherit; cursor: pointer; min-height: 0; min-width: 0; height: auto; width: auto;
	line-height: 1; text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0;
}
.rq-header img, .rq-drawer img { display: block; max-width: 100%; height: auto; }
.rq-ico { display: block; flex: none; }
.rq-header :focus-visible, .rq-drawer :focus-visible {
	outline: 2px solid var(--rq-accent); outline-offset: 2px; border-radius: 10px;
}

.rq-container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 24px; }

/* ---------- optional announcement strip */
.rq-notice {
	background: linear-gradient(90deg, var(--rq-600), var(--rq-accent));
	color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding-block: 8px;
}
.rq-notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Bar
   ========================================================================= */
.rq-header {
	position: sticky; top: var(--rq-top); z-index: 1000; color: #fff;
}
.rq-header__bar {
	position: relative;
	background:
		radial-gradient(120% 180% at 100% 0%, rgba(228, 90, 146, .22) 0%, rgba(228, 90, 146, 0) 42%),
		radial-gradient(90% 160% at 0% 100%, rgba(122, 71, 150, .55) 0%, rgba(122, 71, 150, 0) 55%),
		var(--rq-700);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: box-shadow .3s var(--rq-ease);
}
.rq-header__bar::after { /* thin brand line */
	content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--rq-accent) 30%, var(--rq-soft) 50%, var(--rq-accent) 70%, transparent);
	opacity: .55;
}
.rq-header.is-scrolled .rq-header__bar { box-shadow: 0 10px 30px -12px rgba(30, 10, 55, .55); }

.rq-header__inner {
	display: flex; align-items: center; gap: 28px; height: var(--rq-h);
	transition: height .3s var(--rq-ease);
}
.rq-header.is-scrolled .rq-header__inner { height: var(--rq-h-sm); }

/* logo */
.rq-logo { display: inline-flex; align-items: center; flex: none; }
.rq-header .rq-logo__img, .rq-drawer .rq-logo__img { height: 54px; width: auto; max-width: none; transition: height .3s var(--rq-ease), transform .3s var(--rq-ease); }
.rq-header.is-scrolled .rq-logo__img { height: 44px; }
.rq-logo:hover .rq-logo__img { transform: rotate(-3deg) scale(1.03); }
.rq-logo__text { font-size: 22px; font-weight: 800; }

/* =========================================================================
   Main nav
   ========================================================================= */
.rq-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.rq-nav__list { display: flex; align-items: center; gap: 2px; }
.rq-nav__item { position: relative; }
.rq-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 600; line-height: 1;
	color: rgba(255, 255, 255, .86); white-space: nowrap;
	transition: color .2s, background-color .2s;
}
.rq-nav__link .rq-ico { width: 16px; height: 16px; opacity: .7; transition: transform .25s var(--rq-ease); }
.rq-nav__link:hover, .rq-nav__item:focus-within > .rq-nav__link { color: #fff; background: rgba(255, 255, 255, .09); }
.rq-nav__item.has-mega:hover > .rq-nav__link .rq-ico,
.rq-nav__item.has-mega:focus-within > .rq-nav__link .rq-ico { transform: rotate(180deg); }
.rq-nav__item.is-current > .rq-nav__link { color: #fff; }
.rq-nav__item.is-current > .rq-nav__link::after {
	content: ""; position: absolute; inset-inline: 50%; bottom: 2px; width: 18px; height: 3px; margin-inline-start: -9px;
	border-radius: 3px; background: var(--rq-accent); box-shadow: 0 0 12px rgba(228, 90, 146, .8);
}

/* ---------- mega panel */
/* Anchored to the item's start edge; JS sets --rq-dx to keep it inside the viewport. */
.rq-mega {
	position: absolute; top: 100%; inset-inline-start: -16px; padding-top: 16px; z-index: 5;
	width: min(760px, calc(100vw - 32px));
	transform: translate(var(--rq-dx, 0px), 8px);
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .2s var(--rq-ease), transform .25s var(--rq-ease), visibility 0s linear .25s;
}
.rq-nav__item.has-mega:hover > .rq-mega,
.rq-nav__item.has-mega:focus-within > .rq-mega,
.rq-nav__item.has-mega.is-open > .rq-mega {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translate(var(--rq-dx, 0px), 0);
	transition-delay: .06s, .06s, 0s;
}
.rq-nav__item.has-mega.is-closed > .rq-mega { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

.rq-mega__panel {
	position: relative; display: grid; grid-template-columns: 1fr 220px; gap: 10px;
	background: #fff; color: var(--rq-ink); border-radius: 22px; padding: 12px; box-shadow: var(--rq-shadow);
}
.rq-mega__panel::before { /* little pointer, kept under the menu item */
	content: ""; position: absolute; top: -7px; inset-inline-start: var(--rq-arrow, 48px); width: 14px; height: 14px;
	background: #fff; transform: translateX(calc(-1 * var(--rq-dx, 0px))) rotate(45deg); border-radius: 3px;
}
.rq-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
.rq-cat {
	display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px;
	transition: background-color .2s, transform .2s var(--rq-ease);
}
.rq-cat:hover, .rq-cat:focus-visible { background: var(--rq-tint); transform: translateX(-2px); }
html:not([dir="rtl"]) .rq-cat:hover { transform: translateX(2px); }
.rq-cat__media {
	flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
	background: linear-gradient(135deg, #F3EAF8, #FCE9F1); color: var(--rq-600);
}
.rq-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--rq-ease); }
.rq-cat:hover .rq-cat__media img { transform: scale(1.08); }
.rq-cat__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rq-cat__name { font-size: 14.5px; font-weight: 700; color: var(--rq-ink); line-height: 1.3; }
.rq-cat__count { font-size: 12px; color: var(--rq-mute); }
.rq-cat.is-current .rq-cat__name { color: var(--rq-accent-600); }

.rq-mega__promo {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
	padding: 20px; border-radius: 16px; color: #fff; min-height: 220px;
	background:
		radial-gradient(140% 90% at 0% 0%, rgba(255, 172, 172, .45), transparent 55%),
		linear-gradient(150deg, var(--rq-600), var(--rq-700) 55%, #2A1148);
}
.rq-mega__promo::before {
	content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
	border: 22px solid rgba(255, 255, 255, .07);
}
.rq-mega__eyebrow { font-size: 12px; font-weight: 700; color: var(--rq-soft); letter-spacing: .02em; }
.rq-mega__title { font-size: 19px; font-weight: 800; line-height: 1.35; }
.rq-mega__cta {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px;
	padding: 11px 14px; border-radius: 12px; background: #fff; color: var(--rq-700) !important;
	font-size: 13.5px; font-weight: 800; transition: transform .2s var(--rq-ease), box-shadow .2s;
}
.rq-mega__cta .rq-ico { width: 18px; height: 18px; color: var(--rq-accent); }
html:not([dir="rtl"]) .rq-mega__cta .rq-ico { transform: scaleX(-1); }
.rq-mega__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }

/* =========================================================================
   Actions
   ========================================================================= */
.rq-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.rq-iconbtn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
	color: #fff; transition: background-color .2s, transform .2s var(--rq-ease);
}
.rq-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.rq-iconbtn:active { transform: scale(.94); }

.rq-header .rq-searchbtn {
	display: inline-flex !important; align-items: center; gap: 10px; height: 44px; padding-inline: 14px 18px !important;
	border-radius: 14px !important; color: rgba(255, 255, 255, .78) !important; font-size: 14px !important; line-height: 1 !important;
	background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .14) !important;
	min-width: 210px; transition: background-color .2s, border-color .2s, color .2s;
}
.rq-header .rq-searchbtn:hover, .rq-header .rq-searchbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .14) !important; border-color: rgba(255, 255, 255, .28) !important; color: #fff !important; }
.rq-searchbtn .rq-ico { width: 19px; height: 19px; }

.rq-badge {
	position: absolute; top: 3px; inset-inline-start: 1px; min-width: 19px; height: 19px; padding-inline: 5px;
	display: inline-grid; place-items: center; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1;
	color: #fff; background: var(--rq-accent); border: 2px solid var(--rq-700);
	font-variant-numeric: tabular-nums; transition: transform .25s var(--rq-ease);
}
.rq-badge[data-count="0"], .rq-badge--wishlist:has(.count-0) { transform: scale(0); }
.rq-badge--wishlist .et-wishlist-quantity { all: unset; font: inherit; color: inherit; }
.rq-badge.is-bump { animation: rq-bump .45s var(--rq-ease); }
@keyframes rq-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.rq-iconbtn[data-rq-tip]::after {
	content: attr(data-rq-tip); position: absolute; top: calc(100% + 8px); inset-inline-start: 50%;
	transform: translate(50%, -4px); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
	background: #fff; color: var(--rq-700); font-size: 12px; font-weight: 700; line-height: 1.3;
	box-shadow: 0 8px 20px -8px rgba(30, 10, 55, .35); opacity: 0; pointer-events: none;
	transition: opacity .18s, transform .18s var(--rq-ease);
}
html:not([dir="rtl"]) .rq-iconbtn[data-rq-tip]::after { transform: translate(-50%, -4px); }
@media (hover: hover) {
	.rq-iconbtn[data-rq-tip]:hover::after { opacity: 1; transform: translate(50%, 0); }
	html:not([dir="rtl"]) .rq-iconbtn[data-rq-tip]:hover::after { transform: translate(-50%, 0); }
}

.rq-cartbtn {
	display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 8px 16px; margin-inline-start: 4px;
	border-radius: 14px; background: #fff; color: var(--rq-700) !important; font-weight: 800;
	box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55); transition: transform .2s var(--rq-ease), box-shadow .2s;
}
.rq-cartbtn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.rq-cartbtn__icon {
	position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
	background: var(--rq-tint); color: var(--rq-700);
}
.rq-cartbtn__icon .rq-ico { width: 20px; height: 20px; }
.rq-cartbtn .rq-badge { top: -7px; inset-inline-start: -7px; border-color: #fff; }
.rq-cartbtn:has(.rq-cart-count[data-count="0"]) { padding-inline: 6px; }
.rq-cartbtn:has(.rq-cart-count[data-count="0"]) .rq-cart-total { display: none; }
.rq-cart-total { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rq-cart-total .woocommerce-Price-amount { color: inherit; font-weight: 800; }
/* Keep "د.ا" in one piece next to numbers (bidi isolation). */
.rq-header .woocommerce-Price-currencySymbol, .rq-drawer .woocommerce-Price-currencySymbol { unicode-bidi: isolate; margin-inline-end: 3px; }

.rq-header__burger { display: none; }

/* =========================================================================
   Search panel
   ========================================================================= */
.rq-search {
	position: absolute; inset-inline: 0; top: 100%; z-index: 4; color: var(--rq-ink);
	background: #fff; border-bottom: 1px solid var(--rq-line); box-shadow: 0 30px 60px -30px rgba(30, 10, 55, .45);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .2s var(--rq-ease), transform .25s var(--rq-ease), visibility 0s linear .25s;
}
.rq-search.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rq-search .rq-container { padding-block: 22px 26px; }
.rq-search__form {
	position: relative; display: flex; align-items: center; gap: 10px; max-width: 860px; margin-inline: auto;
	padding: 6px; border-radius: 18px; background: var(--rq-tint); border: 1.5px solid var(--rq-line);
	transition: border-color .2s, box-shadow .2s;
}
.rq-search__form:focus-within { border-color: var(--rq-600); box-shadow: 0 0 0 4px rgba(93, 47, 119, .1); }
.rq-search__form > .rq-ico { margin-inline-start: 12px; color: var(--rq-600); }
.rq-search .rq-search__input {
	flex: 1; min-width: 0; height: 48px !important; margin: 0 !important; padding: 0 4px !important; border: 0 !important;
	background: transparent !important; box-shadow: none !important; outline: none !important;
	font-family: var(--rq-font) !important; font-size: 17px !important; color: var(--rq-ink) !important;
}
.rq-search__input::-webkit-search-cancel-button { display: none; }
.rq-search__input::placeholder { color: #9A90A3; }
.rq-search .rq-search__submit {
	height: 46px; padding-inline: 24px; border-radius: 13px; background: var(--rq-700); color: #fff;
	font-weight: 800; font-size: 15px; transition: background-color .2s;
}
.rq-search .rq-search__submit:hover { background: var(--rq-accent); }
.rq-search .rq-search__close { color: var(--rq-mute); width: 40px; height: 40px; }
.rq-search .rq-search__close:hover { background: #fff; color: var(--rq-700); }

.rq-search__body { max-width: 860px; margin: 18px auto 0; }
.rq-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rq-search__label { font-size: 13px; font-weight: 700; color: var(--rq-mute); margin-inline-end: 4px; }
.rq-chip {
	padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--rq-600) !important;
	background: #fff; border: 1px solid var(--rq-line); transition: all .2s;
}
.rq-chip:hover { background: var(--rq-700); border-color: var(--rq-700); color: #fff !important; }
.rq-search.has-query .rq-search__chips { display: none; }

.rq-search__results:empty { display: none; }
.rq-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rq-result {
	display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid transparent;
	transition: background-color .2s, border-color .2s;
}
.rq-result:hover, .rq-result:focus-visible { background: var(--rq-tint); border-color: var(--rq-line); }
.rq-result__img { flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--rq-tint); }
.rq-result__img img { width: 100%; height: 100%; object-fit: cover; }
.rq-result__body { display: flex; flex-direction: column; min-width: 0; }
.rq-result__name { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--rq-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rq-result__price { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--rq-accent-600); }
.rq-result__price del { color: var(--rq-mute); font-weight: 500; margin-inline-start: 6px; }
.rq-search__all {
	display: flex; justify-content: center; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--rq-tint);
	color: var(--rq-700) !important; font-weight: 800; font-size: 14px;
}
.rq-search__all:hover { background: var(--rq-700); color: #fff !important; }
.rq-search__msg { padding: 18px; text-align: center; color: var(--rq-mute); font-size: 14px; }
.rq-skel { height: 78px; border-radius: 14px; background: linear-gradient(90deg, #F4EFF8 25%, #FBF8FD 50%, #F4EFF8 75%); background-size: 200% 100%; animation: rq-shimmer 1.1s infinite; }
@keyframes rq-shimmer { to { background-position: -200% 0; } }

/* =========================================================================
   Overlay + drawers
   ========================================================================= */
.rq-overlay {
	position: fixed; inset: 0; z-index: 100000; background: rgba(23, 9, 40, .48); backdrop-filter: blur(3px);
	opacity: 0; visibility: hidden; transition: opacity .3s var(--rq-ease), visibility 0s linear .3s;
}
.rq-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
html.rq-lock, html.rq-lock body { overflow: hidden !important; }

.rq-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 100001; display: flex; flex-direction: column;
	width: min(400px, 88vw); background: #fff; color: var(--rq-ink);
	box-shadow: 0 0 60px -10px rgba(23, 9, 40, .45);
	visibility: hidden; transition: transform .38s var(--rq-ease), visibility 0s linear .38s;
}
.rq-drawer--menu { inset-inline-start: 0; transform: translateX(100%); border-start-end-radius: 0; }
.rq-drawer--cart { inset-inline-end: 0; transform: translateX(-100%); }
html:not([dir="rtl"]) .rq-drawer--menu { transform: translateX(-100%); }
html:not([dir="rtl"]) .rq-drawer--cart { transform: translateX(100%); }
.rq-drawer.is-open { transform: none !important; visibility: visible; transition-delay: 0s; }

.rq-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
	padding: 14px 16px 14px 12px; border-bottom: 1px solid var(--rq-line);
}
.rq-drawer__head .rq-iconbtn { color: var(--rq-700); }
.rq-drawer__head .rq-iconbtn:hover { background: var(--rq-tint); }
.rq-drawer__head--brand {
	background: radial-gradient(120% 160% at 100% 0%, rgba(228, 90, 146, .3), transparent 50%), var(--rq-700);
	border-bottom: 0; color: #fff;
}
.rq-drawer__head--brand .rq-iconbtn { color: #fff; }
.rq-drawer__head--brand .rq-iconbtn:hover { background: rgba(255, 255, 255, .12); }
.rq-drawer .rq-logo--drawer .rq-logo__img { height: 46px; }
.rq-drawer__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--rq-700); }
.rq-drawer__title .rq-ico { color: var(--rq-accent); }
.rq-drawer__title .rq-badge { position: static; border: 0; }
.rq-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.rq-drawer__foot { flex: none; display: flex; justify-content: center; gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--rq-line); }

.rq-msearch {
	display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: var(--rq-tint);
	border: 1.5px solid var(--rq-line); color: var(--rq-600);
}
.rq-msearch:focus-within { border-color: var(--rq-600); }
.rq-msearch input[type="search"] {
	flex: 1; min-width: 0; height: 48px !important; margin: 0 !important; border: 0 !important; padding: 0 !important;
	background: transparent !important; box-shadow: none !important; font-family: var(--rq-font) !important; font-size: 16px !important; color: var(--rq-ink) !important;
}

.rq-mnav { margin-top: 12px !important; }
.rq-mnav__item { border-bottom: 1px solid var(--rq-line); }
.rq-mnav__row { display: flex; align-items: center; }
.rq-mnav__link { flex: 1; padding: 15px 6px; font-size: 16.5px; font-weight: 700; color: var(--rq-ink); }
.rq-mnav__item.is-current > .rq-mnav__row .rq-mnav__link { color: var(--rq-accent-600); }
.rq-mnav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--rq-600); }
.rq-mnav__toggle .rq-ico { transition: transform .25s var(--rq-ease); }
.rq-mnav__toggle[aria-expanded="true"] { background: var(--rq-tint); }
.rq-mnav__toggle[aria-expanded="true"] .rq-ico { transform: rotate(180deg); }
.rq-mnav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0 14px !important; }
.rq-mnav__sub[hidden] { display: none; }
.rq-mnav__sub a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--rq-tint); font-size: 14px; font-weight: 600; color: var(--rq-600); }
.rq-mnav__sub a.is-current, .rq-mnav__sub a:hover { background: var(--rq-700); color: #fff; }

.rq-mlinks { display: grid; gap: 6px; margin-top: 18px; }
.rq-mlinks a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-weight: 700; color: var(--rq-700); transition: background-color .2s; }
.rq-mlinks a:hover { background: var(--rq-tint); }
.rq-mlinks .rq-ico { color: var(--rq-accent); }

.rq-social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--rq-tint); color: var(--rq-700); transition: all .2s; }
.rq-social:hover { background: var(--rq-700); color: #fff; transform: translateY(-2px); }
.rq-social .rq-ico { width: 20px; height: 20px; }

/* ---------- mini cart */
.rq-minicart { padding: 0; display: flex; flex-direction: column; }
.rq-minicart__inner { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 100%; }
.rq-mc-list { flex: 1 1 auto; padding: 6px 16px !important; }
.rq-mc-item { position: relative; display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rq-line); }
.rq-mc-item:last-child { border-bottom: 0; }
.rq-mc-item__img { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--rq-tint); }
.rq-mc-item__img img { width: 100%; height: 100%; object-fit: cover; }
.rq-mc-item__body { flex: 1; min-width: 0; padding-inline-end: 30px; }
.rq-mc-item__name { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--rq-ink); }
a.rq-mc-item__name:hover { color: var(--rq-600); }
.rq-mc-item__meta { font-size: 12px; color: var(--rq-mute); }
.rq-mc-item__meta dl { margin: 4px 0 0; }
.rq-mc-item__meta dt, .rq-mc-item__meta dd, .rq-mc-item__meta p { display: inline; margin: 0; }
.rq-mc-item__price { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--rq-accent-600); }
.rq-mc-item__qty { color: var(--rq-mute); font-weight: 600; }
.rq-drawer .rq-mc-item__remove {
	position: absolute; top: 14px; inset-inline-end: 0; display: grid; place-items: center; width: 28px; height: 28px;
	border-radius: 9px; background: var(--rq-tint); color: var(--rq-mute); transition: all .2s;
}
.rq-drawer .rq-mc-item__remove .rq-ico { width: 15px; height: 15px; }
.rq-drawer .rq-mc-item__remove:hover { background: var(--rq-accent); color: #fff; }
.rq-mc-item.is-removing { opacity: .4; pointer-events: none; transition: opacity .2s; }

.rq-mc-foot { position: sticky; bottom: 0; padding: 16px; background: #fff; border-top: 1px solid var(--rq-line); box-shadow: 0 -12px 24px -18px rgba(30, 10, 55, .35); }
.rq-mc-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: var(--rq-mute); }
.rq-mc-total strong, .rq-mc-total .amount { font-size: 19px; font-weight: 800; color: var(--rq-700); }
.rq-mc-note { margin: 6px 0 14px !important; font-size: 12.5px; color: var(--rq-mute); }
.rq-mc-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }

.rq-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 50px; padding-inline: 18px;
	border-radius: 14px; font-size: 15px; font-weight: 800; line-height: 1; transition: background-color .2s, color .2s, transform .2s var(--rq-ease);
}
.rq-btn:active { transform: scale(.98); }
.rq-drawer .rq-btn--primary { background: var(--rq-700); color: #fff; }
.rq-drawer .rq-btn--primary:hover { background: var(--rq-accent); color: #fff; }
.rq-drawer .rq-btn--ghost { border: 1.5px solid var(--rq-line); color: var(--rq-700); background: #fff; }
.rq-drawer .rq-btn--ghost:hover { border-color: var(--rq-700); }

.rq-mc-empty { margin: auto; padding: 48px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rq-mc-empty__icon { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(135deg, #F3EAF8, #FCE9F1); color: var(--rq-600); }
.rq-mc-empty__icon .rq-ico { width: 40px; height: 40px; }
.rq-mc-empty strong { font-size: 18px; color: var(--rq-700); }
.rq-mc-empty p { margin: 0 0 12px; color: var(--rq-mute); font-size: 14px; }
.rq-mc-empty .rq-btn { min-width: 180px; }

/* =========================================================================
   Back to top (replaces XStore #back-top)
   ========================================================================= */
body.ruqi-header-on #back-top { display: none !important; }
.rq-totop {
	position: fixed; z-index: 990; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 22px;
	width: 44px; height: 44px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important;
	display: grid !important; place-items: center; cursor: pointer;
	background: rgba(255, 255, 255, .92) !important; color: var(--rq-700) !important;
	box-shadow: 0 10px 24px -10px rgba(38, 14, 66, .45), 0 0 0 1px rgba(93, 47, 119, .06) !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); filter: none !important;
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9) !important;
	transition: opacity .25s var(--rq-ease), transform .3s var(--rq-ease), visibility 0s linear .3s, background-color .2s, color .2s !important;
}
.rq-totop.is-visible { opacity: 1; visibility: visible; transform: none !important; transition-delay: 0s !important; }
.rq-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rq-totop__track { fill: none; stroke: rgba(93, 47, 119, .12); stroke-width: 2.5; }
.rq-totop__bar { fill: none; stroke: url(#rq-totop-grad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }
.rq-totop__arrow { position: relative; transition: transform .25s var(--rq-ease); }
.rq-totop:hover { background: var(--rq-700) !important; color: #fff !important; }
.rq-totop:hover .rq-totop__track { stroke: rgba(255, 255, 255, .18); }
.rq-totop:hover .rq-totop__arrow { transform: translateY(-2px); }
.rq-totop.is-visible:hover { transform: translateY(-2px) !important; }
.rq-totop:focus-visible { outline: 2px solid var(--rq-accent); outline-offset: 3px; }
html.rq-lock .rq-totop { opacity: 0; visibility: hidden; }
@media (max-width: 991px) {
	.rq-totop { width: 40px; height: 40px; inset-inline-end: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	/* clear XStore's mobile bottom bar */
	body:has(.et-mobile-panel-wrapper) .rq-totop { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================================
   Hide legacy XStore header pieces while ours is on
   ========================================================================= */
/* XStore sets overflow:hidden on .template-container, which turns it into a scroll
   container and breaks position:sticky. "clip" still clips but keeps sticky working. */
body.ruqi-header-on .template-container { overflow: clip !important; }

body.ruqi-header-on #header.site-header,
body.ruqi-header-on .header-wrapper,
body.ruqi-header-on .mobile-header-wrapper { display: none !important; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1280px) {
	.rq-header .rq-searchbtn { min-width: 0; width: 44px; padding: 0 !important; justify-content: center; }
	.rq-searchbtn__text { display: none; }
	.rq-nav__link { padding-inline: 11px; font-size: 15px; }
	.rq-header__inner { gap: 18px; }
}
@media (max-width: 1140px) {
	.rq-cart-total { display: none; }
	.rq-cartbtn { padding-inline: 6px; }
	.rq-header__inner { gap: 10px; }
	.rq-nav__list { gap: 0; }
	.rq-nav__link { padding-inline: 8px; font-size: 14px; }
	.rq-header .rq-logo__img { height: 46px; }
	.rq-actions { gap: 2px; }
}
@media (max-width: 991px) {
	:root { --rq-h: 64px; --rq-h-sm: 58px; }
	.rq-container { padding-inline: 12px; }
	.rq-nav, .rq-action--account, .rq-action--wishlist { display: none !important; }
	.rq-header__burger { display: inline-grid; }
	.rq-header__inner { gap: 6px; }
	.rq-logo { position: absolute; inset-inline-start: 50%; transform: translateX(50%); }
	html:not([dir="rtl"]) .rq-logo { transform: translateX(-50%); }
	.rq-header .rq-logo__img { height: 44px; }
	.rq-header.is-scrolled .rq-logo__img { height: 40px; }
	.rq-actions { margin-inline-start: auto; gap: 2px; }
	.rq-header .rq-searchbtn { width: 44px; height: 44px; padding: 0 !important; justify-content: center; border-color: transparent !important; color: #fff !important; }
	.rq-header .rq-searchbtn .rq-ico { width: 22px; height: 22px; }
	.rq-cartbtn { height: 44px; padding: 0; margin: 0; background: none; box-shadow: none; }
	.rq-cartbtn__icon { width: 44px; height: 44px; background: none; color: #fff; }
	.rq-cartbtn__icon .rq-ico { width: 23px; height: 23px; }
	.rq-cartbtn .rq-badge { top: 3px; inset-inline-start: 1px; border-color: var(--rq-700); }
	.rq-search .rq-container { padding-block: 12px 18px; }
	.rq-search__submit { display: none; }
	.rq-search .rq-search__input { font-size: 16px !important; }
	.rq-results { grid-template-columns: 1fr; }
	.rq-search { max-height: calc(100dvh - var(--rq-h) - var(--rq-top)); overflow-y: auto; }
}
@media (max-width: 782px) {
	/* WP admin bar is not fixed on small screens */
	.admin-bar .rq-header { top: 0; }
}

/* =========================================================================
   Shield our buttons from the site-wide "button { background: gradient !important }"
   rule in Customizer → Additional CSS. Higher specificity + !important wins.
   ========================================================================= */
.rq-header button, .rq-drawer button {
	background: none !important; color: inherit !important; border: 0 !important;
	box-shadow: none !important; filter: none !important; border-radius: 0;
}
.rq-header button:hover, .rq-drawer button:hover { transform: none; filter: none !important; box-shadow: none !important; }
.rq-header .rq-iconbtn, .rq-drawer .rq-iconbtn { border-radius: 14px !important; color: #fff !important; }
.rq-header .rq-iconbtn:hover { background: rgba(255, 255, 255, .1) !important; }
.rq-drawer .rq-drawer__head .rq-iconbtn { color: var(--rq-700) !important; }
.rq-drawer .rq-drawer__head .rq-iconbtn:hover { background: var(--rq-tint) !important; }
.rq-drawer .rq-drawer__head--brand .rq-iconbtn { color: #fff !important; }
.rq-drawer .rq-drawer__head--brand .rq-iconbtn:hover { background: rgba(255, 255, 255, .14) !important; }
.rq-header .rq-search .rq-search__submit { background: var(--rq-700) !important; color: #fff !important; border-radius: 13px !important; }
.rq-header .rq-search .rq-search__submit:hover { background: var(--rq-accent) !important; }
.rq-header .rq-search .rq-search__close { color: var(--rq-mute) !important; border-radius: 12px !important; }
.rq-header .rq-search .rq-search__close:hover { background: #fff !important; color: var(--rq-700) !important; }
.rq-drawer .rq-mnav__toggle { color: var(--rq-600) !important; border-radius: 12px !important; }
.rq-drawer .rq-mnav__toggle[aria-expanded="true"] { background: var(--rq-tint) !important; }
.rq-drawer .rq-mc-item__remove { background: var(--rq-tint) !important; color: var(--rq-mute) !important; border-radius: 9px !important; }
.rq-drawer .rq-mc-item__remove:hover { background: var(--rq-accent) !important; color: #fff !important; }
@media (max-width: 991px) {
	.rq-header .rq-searchbtn, .rq-header .rq-searchbtn[aria-expanded="true"] { background: none !important; border-color: transparent !important; }
	.rq-header .rq-searchbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .12) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.rq-header *, .rq-drawer, .rq-overlay, .rq-search, .rq-mega { transition: none !important; animation: none !important; }
}

/* =========================================================================
   Account menu (avatar + dropdown) — last item in the actions row
   ========================================================================= */
.rq-acct { position: relative; flex: none; }
.rq-header .rq-acct__btn {
	display: grid !important; place-items: center; width: 46px; height: 46px; border-radius: 50% !important; padding: 0 !important;
	background: rgba(255, 255, 255, .1) !important; border: 2px solid rgba(255, 255, 255, .28) !important;
	transition: border-color .2s, transform .2s var(--rq-ease), box-shadow .2s !important;
}
.rq-header .rq-acct__btn:hover, .rq-acct.is-open .rq-acct__btn { border-color: var(--rq-soft) !important; box-shadow: 0 0 0 4px rgba(228, 90, 146, .25) !important; }
.rq-acct__avatar { width: 38px !important; height: 38px !important; border-radius: 50%; object-fit: cover; }
.rq-acct__guest { color: #fff; display: grid; place-items: center; }
.rq-acct__menu {
	position: absolute; top: calc(100% + 14px); inset-inline-end: 0; z-index: 20; width: 270px; padding: 10px;
	background: #fff; color: var(--rq-ink); border-radius: 20px; box-shadow: var(--rq-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
	transition: opacity .2s var(--rq-ease), transform .22s var(--rq-ease), visibility 0s linear .22s;
}
.rq-acct__menu::before { content: ""; position: absolute; top: -6px; inset-inline-end: 18px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.rq-acct.is-open .rq-acct__menu, .rq-acct:focus-within .rq-acct__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rq-acct__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rq-line); }
.rq-acct__head img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rq-tint); }
.rq-acct__head strong { display: block; font-size: 15px; color: var(--rq-700); }
.rq-acct__head small { display: block; font-size: 12px; color: var(--rq-mute); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-acct__menu ul { display: grid; gap: 2px; }
.rq-acct__menu ul a, .rq-acct__logout {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--rq-ink) !important;
	transition: background-color .15s, color .15s, padding .15s;
}
.rq-acct__menu ul a .rq-ico, .rq-acct__logout .rq-ico { width: 19px; height: 19px; color: var(--rq-600); }
.rq-acct__menu ul a:hover { background: var(--rq-tint); color: var(--rq-700) !important; padding-inline-start: 16px; }
.rq-acct__logout { margin-top: 6px; border-top: 1px solid var(--rq-line); border-radius: 0 0 12px 12px; color: #C2185B !important; }
.rq-acct__logout .rq-ico { color: #C2185B; }
.rq-acct__logout:hover { background: #FFF1F5; }
.rq-acct__guesthead { padding: 10px 10px 14px; }
.rq-acct__guesthead strong { display: block; font-size: 16px; color: var(--rq-700); }
.rq-acct__guesthead small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--rq-mute); }
.rq-acct__cta { display: flex; justify-content: center; margin: 4px 0; padding: 12px; border-radius: 14px; background: var(--rq-700); color: #fff !important; font-weight: 800; }
.rq-acct__cta:hover { background: var(--rq-accent); }
.rq-acct__cta--ghost { background: var(--rq-tint); color: var(--rq-700) !important; }
.rq-acct__cta--ghost:hover { background: var(--rq-line); }
@media (max-width: 991px) { .rq-acct { display: none; } }
