/* =========================================================
   Saidah Collections — Main Stylesheet
   Design tokens: deep royal purple + antique gold, cream base,
   Playfair Display headings / Jost body, an emblem-inspired
   circular divider motif echoing the brand crest.
   ========================================================= */

:root {
	--saidah-primary: #3D1A54;
	--saidah-secondary: #C9A227;
	--saidah-bg: #FBF8F3;
	--saidah-surface: #F3E6E0;
	--saidah-text: #241B2F;
	--saidah-muted: #8A7C90;
	--saidah-border: #E7DCCB;
	--saidah-white: #ffffff;
	--saidah-font-heading: 'Playfair Display', serif;
	--saidah-font-body: 'Jost', sans-serif;
	--saidah-font-size: 16px;
	--saidah-radius: 4px;
	--saidah-container: 1320px;
	--saidah-section-gap: 80px;
	--saidah-shadow: 0 10px 30px rgba(61, 26, 84, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--saidah-font-body);
	font-size: var(--saidah-font-size);
	color: var(--saidah-text);
	background: var(--saidah-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--saidah-font-heading);
	color: var(--saidah-primary);
	margin: 0 0 .5em;
	letter-spacing: .01em;
}
button { font-family: inherit; cursor: pointer; background: none; border: none; }
.container { max-width: var(--saidah-container); margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; margin: 0 auto; padding: 0 40px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; top: -60px; left: 0; background: var(--saidah-primary); color: #fff; padding: 10px 18px; z-index: 10000; transition: top .2s; }
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--saidah-secondary); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 30px;
	border-radius: var(--saidah-radius);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: all .25s ease;
	cursor: pointer;
	border: 1px solid transparent;
}
.btn-primary { background: var(--saidah-primary); color: #fff; }
.btn-primary:hover { background: #2b1240; }
.btn-outline { background: transparent; color: var(--saidah-primary); border-color: var(--saidah-primary); }
.btn-outline:hover { background: var(--saidah-primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--saidah-primary); }
.btn-sm { padding: 8px 18px; font-size: .72rem; }
.btn-add-cart {
	width: 100%; margin-top: 10px; background: var(--saidah-primary); color: #fff;
	padding: 12px 8px; font-size: .74rem; letter-spacing: .03em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-add-cart:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }

/* ---------- Section heading (signature emblem divider) ---------- */
.section { padding: var(--saidah-section-gap) 0; }
.section.alt-bg { background: var(--saidah-surface); }
.section-heading { margin-bottom: 40px; }
.section-heading.align-center { text-align: center; }
.section-heading.align-left { text-align: left; }
.section-eyebrow {
	display: block;
	width: 46px;
	height: 46px;
	margin: 0 auto 14px;
	border: 1.5px solid var(--saidah-secondary);
	border-radius: 50%;
	position: relative;
}
.align-left .section-eyebrow { margin: 0 0 14px; }
.section-eyebrow::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid var(--saidah-secondary);
	border-radius: 50%;
}
.section-title { font-size: clamp(1.6rem, 2.4vw, 2.4rem); margin-bottom: 8px; }
.section-subtitle { color: var(--saidah-muted); font-size: 1rem; margin: 0; }
.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Announcement Bar ---------- */
.announcement-bar {
	background: var(--saidah-primary);
	color: #fff;
	text-align: center;
	font-size: .78rem;
	letter-spacing: .06em;
	padding: 9px 0;
	animation: fadeSlideDown .4s ease;
}
.announcement-bar a { color: #fff; }

@keyframes fadeSlideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Utility Topbar ---------- */
.header-topbar { background: var(--saidah-surface); border-bottom: 1px solid var(--saidah-border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: .76rem; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-left a, .topbar-right a { color: var(--saidah-muted); letter-spacing: .03em; position: relative; }
.topbar-left a::after, .topbar-right a::after {
	content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
	background: var(--saidah-primary); transition: width .25s ease;
}
.topbar-left a:hover, .topbar-right a:hover { color: var(--saidah-primary); }
.topbar-left a:hover::after, .topbar-right a:hover::after { width: 100%; }

.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a { position: static; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; transition: color .2s, transform .2s; }
.topbar-social a::after { display: none; }
.topbar-social a:hover { transform: translateY(-2px); }
.topbar-social .icon-facebook, .topbar-social .icon-instagram, .topbar-social .icon-pinterest,
.topbar-social .icon-youtube, .topbar-social .icon-whatsapp { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--saidah-white);
	position: sticky;
	top: 0;
	z-index: 500;
	box-shadow: 0 1px 0 var(--saidah-border);
	transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(61, 26, 84, 0.1); }
/* When sticky is turned off in Customizer, JS adds this class instead. */
.header-not-sticky .site-header { position: relative; }

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-top: 16px;
	padding-bottom: 16px;
	transition: padding .3s ease;
}
.site-header.is-scrolled .header-main { padding-top: 10px; padding-bottom: 10px; }

.site-branding { display: flex; align-items: center; flex: 0 0 auto; }
.site-branding .custom-logo-link { display: block; }
.site-branding img,
.custom-logo {
	height: 68px;
	width: 68px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	box-shadow: 0 2px 10px rgba(61, 26, 84, 0.18);
	transition: height .3s ease, width .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled .site-branding img,
.site-header.is-scrolled .custom-logo { height: 50px; width: 50px; }
.site-branding img:hover, .custom-logo:hover { box-shadow: 0 4px 16px rgba(61, 26, 84, 0.28); }
.site-title { font-family: var(--saidah-font-heading); font-size: 1.6rem; color: var(--saidah-primary); }

/* Always-visible desktop search bar + mobile slide-down bar (shared styling) */
.header-search { flex: 1; max-width: 960px; margin: 0 auto; position: relative; }
.header-search .saidah-search-form,
.search-panel .saidah-search-form {
	display: flex; border: 1.5px solid var(--saidah-border); border-radius: 30px; overflow: hidden;
	transition: border-color .25s, box-shadow .25s; background: #fff;
}
.header-search .saidah-search-form:focus-within,
.search-panel .saidah-search-form:focus-within { border-color: var(--saidah-secondary); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.header-search .search-field,
.search-panel .search-field { flex: 1; border: none; padding: 12px 18px; font-size: .88rem; background: transparent; }
.header-search .search-field:focus,
.search-panel .search-field:focus { outline: none; }
.header-search .search-submit,
.search-panel .search-submit {
	border: none; background: var(--saidah-primary); color: #fff; padding: 0 22px;
	display: flex; align-items: center; justify-content: center; border-radius: 0;
	text-transform: none; letter-spacing: 0; font-size: .8rem;
}
.header-search .search-submit:hover,
.search-panel .search-submit:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }

.desktop-only { display: flex; }
.mobile-only { display: none; }
/* Two-class selectors below guarantee these win over .action-btn's own
   `display: inline-flex`, regardless of source order -- relying on
   equal-specificity cascade order for this was fragile and caused the
   mobile search toggle to become unreliable. */
.action-btn.mobile-only { display: none; }
.action-btn.desktop-only { display: inline-flex; }

/* ---------- Category Navigation Bar ---------- */
.category-nav { background: var(--saidah-bg); border-top: 1px solid var(--saidah-border); border-bottom: 1px solid var(--saidah-border); position: relative; }
.mega-menu { display: flex; justify-content: center; gap: 34px; position: relative; }
.mega-menu > .menu-item { position: static; }
.mega-menu > .menu-item > .menu-link {
	display: block;
	padding: 13px 2px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--saidah-text);
	position: relative;
}
.mega-menu > .menu-item > .menu-link::after {
	content: ""; position: absolute; left: 50%; bottom: 7px; width: 0; height: 2px;
	background: var(--saidah-secondary); transition: width .25s ease, left .25s ease;
}
.mega-menu > .menu-item > .menu-link:hover { color: var(--saidah-primary); }
.mega-menu > .menu-item > .menu-link:hover::after,
.mega-menu > .menu-item.has-mega:hover > .menu-link::after { width: 60%; left: 20%; }

.mega-panel {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: #fff;
	box-shadow: 0 20px 40px rgba(61, 26, 84, 0.14);
	border-top: 2px solid var(--saidah-secondary);
	z-index: 400;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.menu-item.has-mega:hover .mega-panel,
.menu-item.has-mega:focus-within .mega-panel {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mega-panel-list { display: flex; flex-wrap: wrap; gap: 30px; padding: 30px 0; }
.mega-panel-list > .menu-item { min-width: 160px; }
.mega-panel-list .sub-menu { margin-top: 8px; }
.mega-panel-list .sub-menu .menu-link { display: block; padding: 6px 0; font-size: .85rem; color: var(--saidah-muted); transition: color .2s, padding-left .2s; }
.mega-panel-list .sub-menu .menu-link:hover { color: var(--saidah-primary); padding-left: 4px; }

/* ---------- Header round category strip (persistent, all pages) ---------- */
.header-category-strip { background: #fff; border-bottom: 1px solid var(--saidah-border); padding: 14px 0; }
.category-strip-scroll { display: flex; justify-content: center; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.category-strip-scroll::-webkit-scrollbar { display: none; }
.category-strip-item { flex: 0 0 auto; width: 74px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.category-strip-thumb {
	display: block; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--saidah-border); transition: border-color .25s, transform .25s;
}
.category-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-strip-item:hover .category-strip-thumb { border-color: var(--saidah-secondary); transform: translateY(-3px); }
.category-strip-name { font-size: .72rem; font-weight: 500; color: var(--saidah-text); line-height: 1.2; }
.category-strip-item:hover .category-strip-name { color: var(--saidah-primary); }

/* ---------- Header action icons ---------- */
.header-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.action-btn {
	position: relative;
	width: 50px; height: 50px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: var(--saidah-text);
	transition: background .2s, color .2s, transform .15s;
}
.action-btn:hover { background: var(--saidah-surface); color: var(--saidah-primary); transform: translateY(-1px); }
.action-btn .count {
	position: absolute; top: 0px; right: 0px;
	background: var(--saidah-secondary); color: var(--saidah-primary);
	font-size: .66rem; font-weight: 700;
	min-width: 18px; height: 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: transform .2s;
}
.action-btn .count.bump { transform: scale(1.35); }

/* ---------- Flying cart animation ---------- */
.flying-cart-image {
	z-index: 9999; pointer-events: none;
	transition: all .7s cubic-bezier(.35, -0.3, .3, 1.4);
	box-shadow: 0 8px 24px rgba(61, 26, 84, 0.3);
}
.action-btn.cart-link.cart-bump { animation: cartBump .45s ease; }
@keyframes cartBump {
	0% { transform: scale(1); }
	35% { transform: scale(1.3) rotate(-8deg); }
	60% { transform: scale(0.94) rotate(4deg); }
	100% { transform: scale(1) rotate(0); }
}

/* Mobile-only slide-down search panel */
.search-panel.mobile-only {
	display: none; padding: 0; border-top: 1px solid var(--saidah-border);
}
.search-panel.mobile-only.is-open { display: block; padding: 16px 0; animation: searchPanelIn .2s ease; }
/* Legacy unscoped input[type=search] rule removed — .search-panel .search-field above now handles this consistently with the desktop bar. */

/* ---------- Mobile menu toggle + drawer ---------- */
.mobile-menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 26px; }
.mobile-menu-toggle span { display: block; height: 2px; background: var(--saidah-text); border-radius: 1px; transition: transform .3s ease, opacity .3s ease; }
.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
	position: fixed; inset: 0; background: rgba(36,27,47,.5); z-index: 890;
	opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-drawer {
	position: fixed; inset: 0 22% 0 0; background: #fff; z-index: 900;
	transform: translateX(-100%);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	box-shadow: var(--saidah-shadow);
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-drawer-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; border-bottom: 1px solid var(--saidah-border);
	font-family: var(--saidah-font-heading); font-size: 1.1rem; color: var(--saidah-primary);
	position: sticky; top: 0; background: #fff;
}
.mobile-drawer-close { font-size: 1.6rem; line-height: 1; color: var(--saidah-muted); }
.mobile-menu-list li a { display: block; padding: 14px 22px; border-bottom: 1px solid var(--saidah-border); font-size: .95rem; transition: background .2s, padding-left .2s; }
.mobile-menu-list li a:hover { background: var(--saidah-surface); padding-left: 28px; color: var(--saidah-primary); }

/* ---------- Mini Cart Drawer ---------- */
.mini-cart-backdrop {
	position: fixed; inset: 0; background: rgba(36,27,47,.5); z-index: 990;
	opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mini-cart-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mini-cart-drawer {
	position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); background: #fff; z-index: 1000;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	display: flex; flex-direction: column;
	box-shadow: -10px 0 30px rgba(61, 26, 84, 0.18);
}
.mini-cart-drawer.is-open { transform: translateX(0); }

.mini-cart-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 22px; border-bottom: 1px solid var(--saidah-border);
	font-family: var(--saidah-font-heading); font-size: 1.15rem; color: var(--saidah-primary);
}
.mini-cart-close { color: var(--saidah-muted); transition: color .2s, transform .2s; }
.mini-cart-close:hover { color: var(--saidah-primary); transform: rotate(90deg); }

.mini-cart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.mini-cart-items { display: flex; flex-direction: column; padding: 8px 0; }
.mini-cart-item {
	display: flex; align-items: center; gap: 14px; padding: 14px 22px;
	border-bottom: 1px solid var(--saidah-border);
}
.mini-cart-item-thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--saidah-radius); overflow: hidden; display: block; }
.mini-cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-cart-item-title { font-size: .88rem; font-weight: 500; color: var(--saidah-text); }
.mini-cart-item-title:hover { color: var(--saidah-primary); }
.mini-cart-item-meta { font-size: .8rem; color: var(--saidah-muted); }
.mini-cart-item-remove {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--saidah-muted); transition: background .2s, color .2s;
}
.mini-cart-item-remove:hover { background: var(--saidah-surface); color: #c0392b; }

.mini-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 22px; text-align: center; color: var(--saidah-muted); }

.mini-cart-footer { padding: 18px 22px 22px; border-top: 1px solid var(--saidah-border); display: flex; flex-direction: column; gap: 10px; }
.mini-cart-subtotal { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; margin-bottom: 6px; }
.mini-cart-subtotal strong { color: var(--saidah-primary); font-family: var(--saidah-font-heading); font-size: 1.1rem; }
.mini-cart-footer .btn { width: 100%; }

@media (max-width: 480px) {
	.mini-cart-drawer { width: 100vw; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--saidah-surface); }

.hero-slider-track {
	display: flex;
	transition: transform .55s cubic-bezier(.65, 0, .35, 1);
	touch-action: pan-y;
	outline: none;
}
.hero-slider-track:focus-visible { outline: 2px solid var(--saidah-secondary); outline-offset: -4px; }
.hero-slider-track.is-dragging { transition: none; cursor: grabbing; }

.hero-slide {
	position: relative; min-width: 100%;
	height: var(--saidah-hero-h-desktop, 560px);
}
.hero-slide picture, .hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; user-select: none; -webkit-user-drag: none; }

.hero-slide-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0, var(--overlay-opacity, .35)) 0%, rgba(0,0,0, calc(var(--overlay-opacity, .35) * .4)) 55%, transparent 85%);
	pointer-events: none;
}
.hero-slide.pos-right .hero-slide-overlay { background: linear-gradient(270deg, rgba(0,0,0, var(--overlay-opacity, .35)) 0%, rgba(0,0,0, calc(var(--overlay-opacity, .35) * .4)) 55%, transparent 85%); }
.hero-slide.pos-center .hero-slide-overlay { background: radial-gradient(ellipse at center, rgba(0,0,0, var(--overlay-opacity, .35)) 0%, rgba(0,0,0, calc(var(--overlay-opacity, .35) * .5)) 45%, transparent 80%); }

.hero-slide-content {
	position: absolute; top: 50%; transform: translateY(-50%);
	max-width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	animation: heroContentIn .6s cubic-bezier(.2, .8, .3, 1) both;
	animation-delay: .15s;
}
@keyframes heroContentIn {
	from { opacity: 0; transform: translateY(calc(-50% + 16px)); }
	to { opacity: 1; transform: translateY(-50%); }
}
.hero-slide.pos-left .hero-slide-content { left: 7%; text-align: left; align-items: flex-start; }
.hero-slide.pos-center .hero-slide-content { left: 50%; transform: translate(-50%, -50%); text-align: center; align-items: center; }
.hero-slide.pos-center .hero-slide-content.hero-in { transform: translate(-50%, -50%); }
.hero-slide.pos-right .hero-slide-content { right: 7%; left: auto; text-align: right; align-items: flex-end; }

.hero-slide.theme-light .hero-slide-content { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-slide.theme-light .hero-slide-content h2 { color: #fff; }
.hero-slide.theme-dark .hero-slide-content { color: var(--saidah-text); text-shadow: none; }
.hero-slide.theme-dark .hero-slide-content h2 { color: var(--saidah-primary); }

.hero-slide-content h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); margin-bottom: 4px; line-height: 1.1; }
.hero-slide-content p { margin: 0 0 18px; font-size: clamp(.95rem, 1.3vw, 1.1rem); opacity: .95; }

.hero-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center;
	color: var(--saidah-primary); z-index: 20;
	opacity: 0; transition: opacity .25s ease, background .2s ease, transform .2s ease;
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.hero-nav svg { width: 20px; height: 20px; }
.hero-slider:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: var(--saidah-secondary); transform: translateY(-50%) scale(1.06); }
.hero-nav-prev { left: 22px; } .hero-nav-next { right: 22px; }

.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 20; }
.hero-dots button {
	position: relative; width: 28px; height: 4px; border-radius: 2px;
	background: rgba(255,255,255,.4); overflow: hidden; transition: background .2s;
}
.hero-dots button::after {
	content: ""; position: absolute; inset: 0; background: var(--saidah-secondary);
	transform-origin: left; transform: scaleX(0);
}
.hero-dots button.active::after { animation: heroDotProgress linear forwards; animation-duration: var(--hero-autoplay-ms, 6000ms); }
.hero-dots button.active.no-autoplay::after { transform: scaleX(1); animation: none; }
@keyframes heroDotProgress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Fade transition variant */
.hero-slider.transition-fade .hero-slider-track { display: block; position: relative; transition: none; height: var(--saidah-hero-h-desktop, 560px); }
.hero-slider.transition-fade .hero-slide {
	position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.hero-slider.transition-fade .hero-slide.is-active { opacity: 1; pointer-events: auto; }


/* ---------- Shop by Category (big square boxes) ---------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.category-card {
	position: relative;
	display: block;
	border-radius: var(--saidah-radius);
	overflow: hidden;
	box-shadow: var(--saidah-shadow);
	transition: box-shadow .3s ease, transform .3s ease;
}
.category-card:hover { box-shadow: 0 18px 40px rgba(61, 26, 84, 0.2); transform: translateY(-4px); }

.category-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--saidah-surface); }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-card-media img { transform: scale(1.08); }

.category-card::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(36,27,47,.78) 100%);
	pointer-events: none;
}
.category-card-caption {
	position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
	display: flex; flex-direction: column; gap: 2px; color: #fff;
}
.category-card-name { font-family: var(--saidah-font-heading); font-size: 1.05rem; line-height: 1.25; }
.category-card-count { font-size: .72rem; opacity: .85; letter-spacing: .03em; }

.category-card-arrow {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.85); color: var(--saidah-primary);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transform: translate(-6px, 6px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.category-card-arrow svg { width: 16px; height: 16px; }
.category-card:hover .category-card-arrow { opacity: 1; transform: translate(0, 0); }
.category-card-arrow:hover { background: var(--saidah-secondary); }

/* ---------- Category-wise Product Rails (dynamic, one per category) ---------- */
.category-interstitial-banner { padding: 30px 0; }
.interstitial-banner { position: relative; display: block; border-radius: var(--saidah-radius); overflow: hidden; }
.interstitial-banner img { width: 100%; height: clamp(180px, 26vw, 340px); object-fit: cover; transition: transform .5s ease; }
.interstitial-banner:hover img { transform: scale(1.03); }
.interstitial-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,27,47,.65) 0%, transparent 60%); }
.interstitial-banner-content { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 440px; }
.interstitial-banner-title { font-family: var(--saidah-font-heading); font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.interstitial-banner-subtitle { color: rgba(255,255,255,.9); font-size: .95rem; }
@media (max-width: 600px) {
	.interstitial-banner-content { left: 5%; right: 5%; max-width: none; }
	.interstitial-banner-title { font-size: 1.2rem; }
}
.category-rail-heading {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-bottom: 30px;
}
.rail-heading-text { display: flex; flex-direction: column; gap: 6px; }
.rail-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--saidah-secondary); font-weight: 700; }
.rail-title {
	font-family: var(--saidah-font-heading); font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	color: var(--saidah-primary); margin: 0; position: relative; padding-bottom: 12px; line-height: 1.15;
}
.rail-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--saidah-secondary); border-radius: 2px; }
.category-rail-viewall { flex-shrink: 0; }
@media (max-width: 600px) {
	.category-rail-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
	.rail-title { font-size: 1.35rem; }
}

/* ---------- Trust Icons ---------- */
.trust-icons { padding: 36px 0; border-top: 1px solid var(--saidah-border); border-bottom: 1px solid var(--saidah-border); }
.trust-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-icon { width: 34px; height: 34px; border: 1.5px solid var(--saidah-secondary); border-radius: 50%; position: relative; }
.trust-text { font-size: .82rem; font-weight: 500; letter-spacing: .03em; }

/* ---------- Split banners (Shop for Him/Her) ---------- */
.two-col-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-banner {
	position: relative; height: 320px; background-size: cover; background-position: center;
	border-radius: var(--saidah-radius); display: flex; align-items: flex-end; overflow: hidden;
}
.split-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); }
.split-banner-content { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.split-banner-title { font-family: var(--saidah-font-heading); font-size: 1.6rem; color: #fff; }

/* ---------- Deal of the day ---------- */
.deal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.deal-countdown { display: flex; gap: 10px; }
.cd-block { background: var(--saidah-primary); color: #fff; border-radius: var(--saidah-radius); padding: 10px 14px; text-align: center; min-width: 56px; }
.cd-block span { display: block; font-family: var(--saidah-font-heading); font-size: 1.3rem; }
.cd-block small { font-size: .6rem; letter-spacing: .08em; opacity: .8; }

/* ---------- Banner strip ---------- */
.banner-strip-grid { display: grid; gap: 20px; }
.banner-strip.cols-1 .banner-strip-grid { grid-template-columns: 1fr; }
.banner-strip.cols-2 .banner-strip-grid { grid-template-columns: 1fr 1fr; }
.banner-strip.cols-3 .banner-strip-grid { grid-template-columns: repeat(3, 1fr); }
.banner-card { position: relative; display: block; border-radius: var(--saidah-radius); overflow: hidden; }
.banner-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s; }
.banner-card:hover img { transform: scale(1.04); }
.banner-card-content { position: absolute; left: 24px; bottom: 22px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.banner-card::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 60%); }
.banner-card-title { font-family: var(--saidah-font-heading); font-size: 1.3rem; }

/* ---------- Product cards / grids / carousels ---------- */
.product-grid { display: grid; gap: 24px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
.carousel-wrap { position: relative; }
.product-carousel {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
	scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.product-carousel::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; width: 270px; scroll-snap-align: start; display: flex; }

.carousel-nav {
	position: absolute; top: 38%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; box-shadow: 0 6px 20px rgba(61, 26, 84, 0.18);
	display: flex; align-items: center; justify-content: center;
	color: var(--saidah-primary); z-index: 5;
	opacity: 0; transition: opacity .25s ease, background .2s ease, transform .2s ease;
}
.carousel-nav svg { width: 18px; height: 18px; }
.carousel-wrap:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: var(--saidah-secondary); transform: translateY(-50%) scale(1.06); }
.carousel-nav[disabled] { opacity: 0 !important; pointer-events: none; }
.carousel-prev { left: 4px; } .carousel-next { right: 4px; }
@media (max-width: 767px) {
	.carousel-nav { opacity: 1; width: 36px; height: 36px; top: 34%; }
	.carousel-nav svg { width: 15px; height: 15px; }
	.carousel-prev { left: 4px; } .carousel-next { right: 4px; }
}

.product-card { background: #fff; border-radius: var(--saidah-radius); border: 1px solid var(--saidah-border); overflow: hidden; transition: box-shadow .25s; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: var(--saidah-shadow); }
.product-media { position: relative; flex-shrink: 0; }
.product-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-label { position: absolute; top: 10px; left: 10px; background: var(--saidah-primary); color: #fff; font-size: .65rem; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.wishlist-btn {
	position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; z-index: 3;
}
.quick-view-btn {
	position: absolute; left: 0; right: 0; bottom: 0; background: var(--saidah-primary); color: #fff;
	font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px;
	opacity: 0; transform: translateY(8px); transition: all .25s;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-title {
	font-size: .95rem; font-family: var(--saidah-font-body); font-weight: 500; color: var(--saidah-text);
	margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; min-height: 2.6em; line-height: 1.3;
}
.product-title a:hover { color: var(--saidah-primary); }
.product-price { font-weight: 600; color: var(--saidah-primary); min-height: 1.3em; margin-bottom: 4px; }
.product-price del { color: var(--saidah-muted); font-weight: 400; margin-right: 6px; }
.product-info .btn-add-cart { margin-top: auto; }

/* ---------- Collections / Occasions grids ---------- */
.collection-grid, .occasion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collection-card, .occasion-card { position: relative; border-radius: var(--saidah-radius); overflow: hidden; display: block; }
.collection-media img, .occasion-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.collection-card:hover img, .occasion-card:hover img { transform: scale(1.05); }
.collection-caption, .occasion-caption {
	position: absolute; inset: auto 0 0 0; padding: 18px; color: #fff;
	background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 70%);
}
.collection-title, .occasion-title { font-family: var(--saidah-font-heading); font-size: 1.15rem; display: block; }
.collection-excerpt, .occasion-excerpt { font-size: .78rem; opacity: .85; }

/* ---------- Testimonials ---------- */
.testimonial-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.testimonial-card { flex: 0 0 auto; width: 320px; background: #fff; border-radius: var(--saidah-radius); padding: 26px; scroll-snap-align: start; box-shadow: var(--saidah-shadow); }
.testimonial-stars { color: var(--saidah-border); margin-bottom: 10px; }
.testimonial-stars .star.filled { color: var(--saidah-secondary); }
.testimonial-text { font-style: italic; color: var(--saidah-text); }
.testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.author-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 600; display: flex; flex-direction: column; font-size: .88rem; }
.author-name small { font-weight: 400; color: var(--saidah-muted); }

/* ---------- Instagram gallery ---------- */
.instagram-grid {
	display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px;
	scrollbar-width: none; -ms-overflow-style: none;
}
.instagram-grid::-webkit-scrollbar { display: none; }
.instagram-item { flex: 0 0 auto; width: 110px; height: 110px; position: relative; overflow: hidden; border-radius: 50%; }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; }
.instagram-overlay { position: absolute; inset: 0; background: rgba(61,26,84,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; color: #fff; }
.instagram-item:hover .instagram-overlay { opacity: 1; }
.instagram-live-item { flex: 0 0 auto; width: 340px; max-width: 85vw; }
.instagram-live-item blockquote.instagram-media { margin: 0 !important; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--saidah-primary); color: #fff; }
.newsletter-inner { text-align: center; max-width: 620px; }
.newsletter-title { color: #fff; font-size: 1.5rem; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border-radius: var(--saidah-radius); border: none; }
.newsletter-response { margin-top: 12px; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--saidah-text); color: #cfc4d6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: var(--saidah-section-gap) 0 50px; }
.footer-about .custom-logo { height: 90px; width: 90px; border: 2px solid var(--saidah-secondary); box-shadow: 0 0 0 4px rgba(201,162,39,.15); margin-bottom: 16px; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: var(--saidah-secondary); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.footer-social a:hover { background: var(--saidah-secondary); color: var(--saidah-primary); border-color: var(--saidah-secondary); transform: translateY(-2px); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .saidah-icon { color: var(--saidah-secondary); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-payments { display: flex; gap: 8px; }
.pay-badge { font-size: .68rem; border: 1px solid rgba(255,255,255,.25); padding: 4px 8px; border-radius: 3px; }

/* ---------- Breadcrumbs / generic page content ---------- */
.saidah-breadcrumbs { font-size: .8rem; color: var(--saidah-muted); padding: 18px 0; }
.page-content { padding: 40px 0 var(--saidah-section-gap); }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); overflow: hidden; }
.post-card .post-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card .post-title, .post-card .post-excerpt { padding: 0 16px; }
.post-card .post-title { margin-top: 16px; }
.post-card .post-excerpt { padding-bottom: 16px; color: var(--saidah-muted); font-size: .88rem; }

/* ---------- SVG icons (search, heart, user, bag) ---------- */
.saidah-icon { display: inline-block; flex-shrink: 0; }
.action-btn .saidah-icon { width: 22px; height: 22px; }
.wishlist-btn .saidah-icon { width: 18px; height: 18px; }
.wishlist-btn.is-active .icon-heart path,
.action-btn.wishlist-link.is-active .icon-heart path { fill: var(--saidah-secondary); stroke: var(--saidah-secondary); }

/* ---------- Quick View Modal ---------- */
.saidah-modal-overlay {
	position: fixed; inset: 0; background: rgba(36,27,47,.65); z-index: 1000;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.saidah-modal { background: #fff; border-radius: var(--saidah-radius); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.saidah-modal-close { position: absolute; top: 14px; right: 14px; font-size: 1.4rem; width: 34px; height: 34px; border-radius: 50%; background: var(--saidah-surface); }
.quick-view-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.quick-view-media img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-details { padding: 34px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- Account Modal (custom-built login/register form) ---------- */
.account-modal .saidah-modal { max-width: 680px; }
.saidah-account-modal { padding: 44px 40px 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; }
.saidah-account-modal.login-only { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
.saidah-account-modal.login-only .saidah-account-divider,
.saidah-account-modal.login-only .saidah-account-register { display: none; }

.saidah-account-notices { grid-column: 1 / -1; margin-bottom: -8px; }
.saidah-account-notices ul { list-style: none; margin: 0 0 12px; padding: 0; }
.saidah-account-notices li,
.saidah-account-notices .woocommerce-message,
.saidah-account-notices .woocommerce-error,
.saidah-account-notices .woocommerce-info {
	list-style: none; padding: 12px 16px; border-radius: var(--saidah-radius); font-size: .85rem; margin: 0 0 10px;
}
.saidah-account-notices .woocommerce-message { background: #eaf6ec; color: #1e6b2f; border: 1px solid #bfe3c6; }
.saidah-account-notices .woocommerce-error,
.saidah-account-notices li.woocommerce-error { background: #fbeaea; color: #a1272e; border: 1px solid #f0c4c4; }
.saidah-account-notices .woocommerce-info { background: var(--saidah-surface); color: var(--saidah-primary); border: 1px solid var(--saidah-border); }

.saidah-account-col h2 { font-family: var(--saidah-font-heading); font-size: 1.3rem; color: var(--saidah-primary); margin: 0 0 20px; }
.saidah-register-blurb { font-size: .82rem; color: var(--saidah-muted); margin: -12px 0 18px; line-height: 1.5; }

.saidah-account-divider {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	position: relative; align-self: stretch;
}
.saidah-account-divider::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--saidah-border);
}
.saidah-account-divider span {
	position: relative; background: #fff; color: var(--saidah-muted); font-size: .75rem;
	text-transform: uppercase; letter-spacing: .08em; padding: 8px 0;
}

.saidah-account-form { display: flex; flex-direction: column; gap: 16px; }
.saidah-field { display: flex; flex-direction: column; gap: 6px; }
.saidah-field label { font-size: .8rem; color: var(--saidah-muted); font-weight: 500; }
.saidah-field input {
	width: 100%; box-sizing: border-box; padding: 12px 14px;
	border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius);
	font-size: .9rem; font-family: var(--saidah-font-body); background: #fff; color: var(--saidah-text);
}
.saidah-field input:focus { outline: none; border-color: var(--saidah-secondary); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

.saidah-field-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.saidah-checkbox { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--saidah-muted); cursor: pointer; }
.saidah-checkbox input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--saidah-primary); }
.saidah-lost-password { font-size: .8rem; color: var(--saidah-primary); text-decoration: underline; }

.saidah-account-submit {
	width: 100%; padding: 13px; border: none; border-radius: var(--saidah-radius);
	font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem;
	background: var(--saidah-primary); color: #fff; margin-top: 4px; transition: background .2s, color .2s;
}
.saidah-account-submit:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }
.saidah-account-submit-outline { background: transparent; color: var(--saidah-primary); border: 1.5px solid var(--saidah-primary); }
.saidah-account-submit-outline:hover { background: var(--saidah-primary); color: #fff; }

@media (max-width: 640px) {
	.saidah-account-modal { grid-template-columns: 1fr; padding: 34px 22px 28px; gap: 26px; }
	.saidah-account-divider { flex-direction: row; }
	.saidah-account-divider::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
}

/* ---------- Account login/register card embedded directly on the
   My Account page (guest view) — same inner markup/classes as the
   popup above, just card-framed for sitting in the page flow instead
   of an overlay. ---------- */
.saidah-account-login-page {
	max-width: 820px; margin: 32px auto 0; background: #fff; position: relative;
	border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius);
	box-shadow: var(--saidah-shadow); overflow: hidden;
}
.saidah-account-login-page::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--saidah-primary), var(--saidah-secondary));
}
.saidah-account-login-page .saidah-account-modal { padding: 24px 44px 44px; }
.saidah-account-login-page-intro { text-align: center; color: var(--saidah-muted); font-size: .9rem; margin: 0; padding: 30px 44px 0; }
@media (max-width: 640px) {
	.saidah-account-login-page { margin-top: 16px; }
	.saidah-account-login-page .saidah-account-modal { padding: 10px 20px 30px; }
	.saidah-account-login-page-intro { padding: 22px 20px 0; }
}

/* Success state that replaces a form's fields once login/register succeeds
   (see assets/js/main.js saidahShowAccountSuccess) -- a plain text notice
   above disabled fields read as ambiguous/"is this even working"; swapping
   in a clear checkmark + message makes it obvious something happened while
   the page reloads a moment later. */
.saidah-account-success {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	gap: 14px; padding: 20px 10px 6px;
}
.saidah-account-success .saidah-account-success-icon {
	width: 52px; height: 52px; border-radius: 50%; background: #eaf6ec; color: #1e6b2f;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.saidah-account-success p { margin: 0; font-size: .95rem; color: var(--saidah-text); }
.saidah-account-success .saidah-account-success-sub { font-size: .8rem; color: var(--saidah-muted); }

/* ---------- Header Account Dropdown (logged-in "profile" menu) ----------
   Was previously unstyled (the JS toggle worked, but with no CSS at all
   the panel just rendered as a bare, unpositioned block) -- this is what
   actually gives the header user icon its branded, profile-style look. */
.account-dropdown { position: relative; }
.account-dropdown-panel {
	position: absolute; top: calc(100% + 16px); right: -10px; width: 264px;
	background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius);
	box-shadow: var(--saidah-shadow); z-index: 500; overflow: hidden;
	animation: saidahDropdownIn .18s ease;
}
.account-dropdown-panel[hidden] { display: none; }
.account-dropdown-panel::before {
	content: ""; position: absolute; top: -7px; right: 24px; width: 13px; height: 13px;
	background: var(--saidah-primary); border-radius: 2px 0 0 0;
	transform: rotate(45deg);
}
@keyframes saidahDropdownIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}
.account-dropdown-header {
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--saidah-primary), #2b1240);
}
.account-dropdown-greeting { display: block; font-size: .78rem; color: rgba(255,255,255,.75); }
.account-dropdown-greeting strong { display: block; margin-top: 3px; font-family: var(--saidah-font-heading); font-size: 1.1rem; color: #fff; font-weight: 600; }
.account-dropdown-menu { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.account-dropdown-menu a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px;
	border-radius: var(--saidah-radius); color: var(--saidah-text); font-size: .87rem;
	transition: background .2s, color .2s;
}
.account-dropdown-menu a .saidah-icon { color: var(--saidah-muted); transition: color .2s; flex-shrink: 0; }
.account-dropdown-menu a:hover { background: var(--saidah-surface); color: var(--saidah-primary); }
.account-dropdown-menu a:hover .saidah-icon { color: var(--saidah-primary); }
.account-dropdown-logout { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--saidah-border); }
.account-dropdown-logout a { color: #a1272e; }
.account-dropdown-logout a .saidah-icon { color: #a1272e; }
.account-dropdown-logout a:hover { background: #fbeaea; color: #a1272e; }
.account-dropdown-logout a:hover .saidah-icon { color: #a1272e; }
.account-dropdown-toggle[aria-expanded="true"] { background: var(--saidah-surface); color: var(--saidah-primary); }

/* ---------- Basic WooCommerce elements (Phase 2 will add full template overrides) ---------- */
.woocommerce-breadcrumb { font-size: .8rem; color: var(--saidah-muted); padding: 18px 0; }
.woo-wrap ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; }
.woo-wrap ul.products li.product { background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 16px; }
.woo-wrap .price { color: var(--saidah-primary); font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
	.product-grid-4, .collection-grid, .occasion-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
	.header-topbar { display: none; }
	.header-search.desktop-only { display: none; }
	.search-toggle.mobile-only { display: inline-flex; }
	.header-actions .search-toggle.mobile-only { display: inline-flex !important; }
	.header-category-strip { padding: 10px 0; }
	.category-strip-scroll { justify-content: flex-start; gap: 16px; }
	.category-strip-item { width: 76px; gap: 6px; }
	.category-strip-thumb { width: 66px; height: 66px; }
	.category-strip-name { font-size: .7rem; }
	.category-nav { display: none; }
	.mobile-menu-toggle { display: flex; grid-column: 1; }
	/* Grid instead of the desktop flex row: hamburger and action icons
	   keep their natural width in the outer columns, and the logo -- in
	   the middle 1fr column -- centers between them (via justify-content
	   on .site-branding below), regardless of how wide either side is. */
	.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
	.site-branding { grid-column: 2; justify-content: center; }
	.header-actions { grid-column: 3; gap: 2px; margin-left: 0; }
	/* Wishlist and Account move to the floating bottom nav on mobile,
	   so the top bar stays uncluttered and search has room. */
	.header-actions .wishlist-link,
	.header-actions .account-link,
	.header-actions .account-dropdown { display: none; }
	.trust-icons-grid { grid-template-columns: repeat(2, 1fr); }
	.two-col-banners { grid-template-columns: 1fr; }
	.banner-strip.cols-3 .banner-strip-grid,
	.banner-strip.cols-2 .banner-strip-grid { grid-template-columns: 1fr; }
	.post-list { grid-template-columns: repeat(2, 1fr); }
	.quick-view-inner { grid-template-columns: 1fr; }
	body { padding-bottom: 62px; } /* room for the fixed bottom nav */
}

@media (max-width: 767px) {
	:root { --saidah-section-gap: 48px; }
	.container-fluid { padding: 0 20px; }
	.product-grid-4, .collection-grid, .occasion-grid, .woo-wrap ul.products { grid-template-columns: repeat(2, 1fr); }
	.category-grid {
		display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); grid-template-columns: none;
		gap: 12px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
	}
	.category-grid::-webkit-scrollbar { display: none; }
	.category-card { width: 148px; flex-shrink: 0; }
	.category-card-name { font-size: .82rem; }
	.category-card-count { font-size: .62rem; }
	.category-card-arrow { display: none; }
	.footer-grid { grid-template-columns: 1fr; text-align: left; }
	.deal-heading { flex-direction: column; align-items: flex-start; }
	.mobile-nav-drawer { inset: 0 15% 0 0; }
	.header-actions .action-btn { width: 42px; height: 42px; }

	.hero-slide,
	.hero-slider.transition-fade .hero-slider-track { height: var(--saidah-hero-h-mobile, 460px); }
	.hero-slide-content { max-width: 88%; }
	.hero-slide.pos-left .hero-slide-content,
	.hero-slide.pos-right .hero-slide-content { left: 6%; right: 6%; text-align: left; align-items: flex-start; }
	.hero-nav { opacity: 1; width: 38px; height: 38px; }
	.hero-nav svg { width: 16px; height: 16px; }
	.hero-nav-prev { left: 12px; } .hero-nav-next { right: 12px; }
}

@media (max-width: 480px) {
	.product-grid-4, .collection-grid, .occasion-grid, .woo-wrap ul.products { grid-template-columns: 1fr; }
	.category-card { width: 130px; }
	.carousel-slide { width: 168px; }
	.product-carousel { gap: 14px; }
	.product-title { font-size: .85rem; min-height: 2.3em; }
	.product-info { padding: 12px; }
	.newsletter-form { flex-direction: column; }
	.mobile-nav-drawer { inset: 0 8% 0 0; }
}

/* =========================================================
   WooCommerce — Shop / Category
   (toolbar, filter panel, results grid, pagination styling
   lives in the "Category / Shop Page — full redesign" block
   further down; .shop-layout/.shop-sidebar/.shop-main below
   were the old sidebar-based design, now unused and removed)
   ========================================================= */
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); }
.woocommerce-pagination .current { background: var(--saidah-primary); color: #fff; border-color: var(--saidah-primary); }

/* =========================================================
   WooCommerce — Single Product
   ========================================================= */
.single-product-page { padding-bottom: var(--saidah-section-gap); }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.woocommerce div.product .woocommerce-product-gallery { position: relative; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--saidah-radius); }
.woocommerce div.product .summary { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.woocommerce div.product .summary .price { font-size: 1.5rem; color: var(--saidah-primary); font-family: var(--saidah-font-heading); }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.woocommerce div.product .quantity input { width: 60px; padding: 12px; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); text-align: center; }
.woocommerce div.product .single_add_to_cart_button { padding: 14px 34px; background: var(--saidah-primary); color: #fff; border-radius: var(--saidah-radius); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }
.woocommerce-tabs { margin-top: 60px; grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--saidah-border); margin-bottom: 24px; }
.woocommerce-tabs ul.tabs li a { padding: 12px 0; display: block; font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: var(--saidah-muted); }
.woocommerce-tabs ul.tabs li.active a { color: var(--saidah-primary); border-bottom: 2px solid var(--saidah-secondary); }
.related.products, .up-sells.upsells { grid-column: 1 / -1; margin-top: 60px; }
.related.products ul.products, .up-sells ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; }

/* =========================================================
   WooCommerce — Cart
   ========================================================= */
.cart-page { padding-bottom: var(--saidah-section-gap); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-top: 24px; }
table.shop_table { width: 100%; border-collapse: collapse; background: #fff; }
table.shop_table th, table.shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--saidah-border); text-align: left; vertical-align: middle; }
table.shop_table img { width: 64px; border-radius: var(--saidah-radius); }
.product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--saidah-surface); color: var(--saidah-primary); font-size: 1.1rem; }
.cart-summary .cart_totals { background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 24px; }
.cart_totals table { width: 100%; }
.cart_totals table th, .cart_totals table td { padding: 10px 0; border-bottom: 1px solid var(--saidah-border); }
.cart_totals .order-total .amount { color: var(--saidah-primary); font-weight: 700; }
.wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; margin-top: 16px; padding: 14px; background: var(--saidah-primary); color: #fff; border-radius: var(--saidah-radius); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.wc-proceed-to-checkout a.checkout-button:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }
.coupon { display: flex; gap: 10px; align-items: center; }
.coupon input { padding: 12px; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); }

/* =========================================================
   WooCommerce — Checkout
   ========================================================= */
.checkout-page { padding-bottom: var(--saidah-section-gap); }
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.checkout-details .form-row { margin-bottom: 16px; }
.checkout-details label { display: block; font-size: .82rem; margin-bottom: 6px; color: var(--saidah-muted); }
.checkout-details input, .checkout-details select, .checkout-details textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); background: #fff;
}
.checkout-order-review { background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 24px; }
#payment { background: var(--saidah-surface); border-radius: var(--saidah-radius); padding: 18px; margin-top: 16px; }
#payment .payment_box { padding: 14px 0; font-size: .88rem; color: var(--saidah-muted); }
#place_order { width: 100%; padding: 16px; background: var(--saidah-primary); color: #fff; border-radius: var(--saidah-radius); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 16px; }
#place_order:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }

/* =========================================================
   WooCommerce — My Account (full design)
   Covers every default endpoint template: dashboard, orders,
   view-order, downloads, addresses, edit-address, edit-account,
   payment-methods, lost/reset password — plus the notices
   WooCommerce prints above this template on save/error.
   ========================================================= */
.my-account-page { padding-bottom: var(--saidah-section-gap); }
.my-account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-top: 8px; align-items: start; }

/* Notices (save confirmations, login/registration errors, etc.) --
   WooCommerce prints these above this template, inside the same
   .entry-content wrapper page.php provides, so they're general
   enough to also apply anywhere else they appear (cart, checkout). */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	list-style: none;
	margin: 0 0 20px;
	padding: 15px 20px;
	border-radius: var(--saidah-radius);
	font-size: .9rem;
	line-height: 1.5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
}
.woocommerce-error li { list-style: none; }
.woocommerce-message { background: #eaf6ec; color: #1e6b2f; border: 1px solid #bfe3c6; }
.woocommerce-error { background: #fbeaea; color: #a1272e; border: 1px solid #f0c4c4; }
.woocommerce-info { background: var(--saidah-surface); color: var(--saidah-primary); border: 1px solid var(--saidah-border); }
.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button,
.woocommerce-message .button, .woocommerce-info .button {
	flex-shrink: 0; margin: 0;
}

/* ---- Sidebar navigation ---- */
.account-nav { background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 10px; position: sticky; top: 20px; }
.account-nav ul { display: flex; flex-direction: column; gap: 2px; }
.account-nav li a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--saidah-radius); color: var(--saidah-text); font-size: .9rem; transition: background .2s, color .2s; }
.account-nav li a .saidah-icon { color: var(--saidah-muted); transition: color .2s; }
.account-nav li.is-active a, .account-nav li a:hover { background: var(--saidah-primary); color: #fff; }
.account-nav li.is-active a .saidah-icon, .account-nav li a:hover .saidah-icon { color: #fff; }
.account-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--saidah-border); }
.account-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: #a1272e; }
.account-nav .woocommerce-MyAccount-navigation-link--customer-logout a .saidah-icon { color: #a1272e; }
.account-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fbeaea; color: #a1272e; }
.account-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover .saidah-icon { color: #a1272e; }

/* ---- Dashboard intro text ---- */
.account-content > p { font-size: .95rem; line-height: 1.85; color: var(--saidah-text); max-width: 640px; }
.account-content > p a { color: var(--saidah-primary); text-decoration: underline; font-weight: 500; }
.account-content > p strong { color: var(--saidah-primary); }

/* ---- Section headings inside account content (Orders, Addresses...) ---- */
.account-content > h2, .account-content > h3 { font-size: 1.25rem; margin: 0 0 20px; }

/* ---- Orders / Downloads / Payment methods tables ---- */
.account-content table.shop_table,
.woocommerce-orders-table,
.woocommerce-MyAccount-downloads,
.woocommerce-MyAccount-paymentMethods {
	width: 100%; border-collapse: collapse; background: #fff;
	border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); overflow: hidden;
}
.account-content table.shop_table thead th {
	background: var(--saidah-surface); color: var(--saidah-primary);
	text-transform: uppercase; font-size: .72rem; letter-spacing: .06em;
	padding: 15px 16px; text-align: left; border-bottom: none;
}
.account-content table.shop_table td, .account-content table.shop_table th {
	padding: 16px; border-bottom: 1px solid var(--saidah-border); font-size: .88rem; vertical-align: middle;
}
.account-content table.shop_table tr:last-child td { border-bottom: none; }
.woocommerce-orders-table__cell-order-number a { color: var(--saidah-primary); font-weight: 600; }
.download-file a { color: var(--saidah-primary); font-weight: 600; }
mark.default {
	background: var(--saidah-secondary); color: var(--saidah-primary); padding: 3px 10px;
	border-radius: 20px; font-size: .65rem; text-transform: uppercase; letter-spacing: .03em; margin-left: 8px; font-style: normal;
}

/* ---- Generic + WooCommerce action buttons inside account content ---- */
.account-content .button,
.account-content .woocommerce-Button,
.account-content a.button {
	display: inline-block; padding: 10px 20px; margin: 2px 6px 2px 0;
	background: var(--saidah-primary); color: #fff; border: none; border-radius: var(--saidah-radius);
	text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; font-weight: 600;
	transition: background .2s, color .2s;
}
.account-content .button:hover, .account-content .woocommerce-Button:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }
.account-content .button.cancel { background: transparent; color: #a1272e; border: 1px solid #f0c4c4; }
.account-content .button.cancel:hover { background: #fbeaea; color: #a1272e; }

/* ---- Addresses (index list of billing/shipping cards) ---- */
.woocommerce-Addresses,
.u-columns {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; list-style: none; padding: 0;
}
.woocommerce-Address,
.u-columns .col-1, .u-columns .col-2 {
	background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 24px;
}
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--saidah-border); }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0; font-size: 1.05rem; }
.woocommerce-Address-title .edit {
	font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
	color: var(--saidah-primary); padding: 7px 16px; border: 1px solid var(--saidah-primary); border-radius: var(--saidah-radius); flex-shrink: 0;
}
.woocommerce-Address-title .edit:hover { background: var(--saidah-primary); color: #fff; }
.woocommerce-Address address { font-style: normal; line-height: 1.85; color: var(--saidah-text); font-size: .9rem; }

/* ---- Edit account / edit address / lost & reset password forms ---- */
.woocommerce-EditAccountForm,
.woocommerce-address-fields,
.woocommerce-ResetPassword {
	background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius);
	padding: 32px; max-width: 640px;
}
.woocommerce-EditAccountForm fieldset { border: none; padding: 0; margin: 8px 0 0; }
.woocommerce-EditAccountForm legend {
	font-family: var(--saidah-font-heading); color: var(--saidah-primary); font-size: 1.1rem;
	padding: 0 0 12px; margin: 0 0 20px; width: 100%; border-bottom: 1px solid var(--saidah-border);
}
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row,
.woocommerce-ResetPassword .form-row { margin-bottom: 18px; }
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label,
.woocommerce-ResetPassword label { display: block; font-size: .82rem; color: var(--saidah-muted); margin-bottom: 6px; font-weight: 500; }
.woocommerce-EditAccountForm label .required,
.woocommerce-address-fields label .required { color: #a1272e; text-decoration: none; }
.woocommerce-EditAccountForm input, .woocommerce-EditAccountForm select,
.woocommerce-address-fields input, .woocommerce-address-fields select,
.woocommerce-ResetPassword input {
	width: 100%; padding: 12px 14px; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius);
	font-size: .9rem; font-family: var(--saidah-font-body); background: #fff; color: var(--saidah-text);
}
.woocommerce-EditAccountForm input:focus, .woocommerce-EditAccountForm select:focus,
.woocommerce-address-fields input:focus, .woocommerce-address-fields select:focus,
.woocommerce-ResetPassword input:focus { outline: none; border-color: var(--saidah-secondary); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button,
.woocommerce-ResetPassword .button {
	padding: 13px 32px; background: var(--saidah-primary); color: #fff; border: none; border-radius: var(--saidah-radius);
	text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: .82rem; margin-top: 6px;
}
.woocommerce-EditAccountForm .button:hover,
.woocommerce-address-fields .button:hover,
.woocommerce-ResetPassword .button:hover { background: var(--saidah-secondary); color: var(--saidah-primary); }

/* ---- Single order view ---- */
.woocommerce-order > p:first-of-type { font-size: .95rem; line-height: 1.8; margin-bottom: 24px; }
table.woocommerce-table--order-details {
	width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); overflow: hidden;
}
table.woocommerce-table--order-details th, table.woocommerce-table--order-details td { padding: 14px 16px; border-bottom: 1px solid var(--saidah-border); font-size: .88rem; }
table.woocommerce-table--order-details tfoot th { text-align: right; font-weight: 600; }
table.woocommerce-table--order-details tfoot tr:last-child th,
table.woocommerce-table--order-details tfoot tr:last-child td { color: var(--saidah-primary); font-weight: 700; font-size: 1.05rem; border-bottom: none; }
.woocommerce-customer-details { margin-top: 32px; }
.woocommerce-customer-details h2 { font-size: 1.1rem; margin-bottom: 16px; }
.woocommerce-columns--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; list-style: none; padding: 0; }
.woocommerce-column--billing-address, .woocommerce-column--shipping-address {
	background: #fff; border: 1px solid var(--saidah-border); border-radius: var(--saidah-radius); padding: 22px;
}
.woocommerce-column--billing-address address, .woocommerce-column--shipping-address address { font-style: normal; line-height: 1.85; font-size: .9rem; }

/* Wishlist page reuses .product-grid */
.wishlist-page { padding-bottom: var(--saidah-section-gap); }

/* =========================================================
   Responsive — WooCommerce pages
   ========================================================= */
@media (max-width: 991px) {
	.shop-layout, .cart-layout, .checkout-layout, .my-account-layout { grid-template-columns: 1fr; }
	.woocommerce div.product { grid-template-columns: 1fr; }
	.shop-main ul.products, .related.products ul.products, .up-sells ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 2px solid var(--saidah-border); }
	table.shop_table_responsive td { display: flex; justify-content: space-between; border-bottom: none; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--saidah-muted); }

	/* Account nav becomes a horizontal scrolling tab strip instead of a
	   tall stacked list, so it doesn't push the actual page content down. */
	.account-nav { position: static; padding: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.account-nav ul { flex-direction: row; gap: 6px; }
	.account-nav li a { white-space: nowrap; padding: 10px 14px; font-size: .8rem; }
	.account-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 0; padding-top: 0; border-top: none; border-left: 1px solid var(--saidah-border); padding-left: 12px; }

	.woocommerce-Addresses, .u-columns, .woocommerce-columns--2 { grid-template-columns: 1fr; }
	.woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-ResetPassword { padding: 22px 18px; }
}

/* =========================================================
   Advanced Live Search
   ========================================================= */
.search-live-results,
.live-search-panel {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 600;
	background: #fff; border: 1px solid var(--saidah-border);
	border-radius: var(--saidah-radius); max-height: 420px; overflow-y: auto;
	box-shadow: 0 16px 40px rgba(61, 26, 84, 0.18);
	animation: searchPanelIn .18s ease;
}
@keyframes searchPanelIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}
.search-panel .live-search-panel { position: static; margin-top: 12px; box-shadow: var(--saidah-shadow); }
.live-search-panel.is-loading::before {
	content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 40%;
	background: var(--saidah-secondary); animation: searchLoadingBar 1s ease-in-out infinite;
}
@keyframes searchLoadingBar {
	0% { left: -40%; }
	100% { left: 100%; }
}
.live-search-list { display: flex; flex-direction: column; }
.live-search-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--saidah-border); }
.live-search-item:hover { background: var(--saidah-surface); }
.live-search-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--saidah-radius); flex-shrink: 0; }
.live-search-item-info { display: flex; flex-direction: column; gap: 4px; }
.live-search-item-title { font-size: .88rem; font-weight: 500; color: var(--saidah-text); }
.live-search-item-price { font-size: .82rem; color: var(--saidah-primary); font-weight: 600; }
.live-search-view-all { display: block; text-align: center; padding: 12px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--saidah-primary); }
.live-search-view-all:hover { background: var(--saidah-surface); }
.live-search-empty { padding: 20px; text-align: center; color: var(--saidah-muted); font-size: .88rem; }

/* =========================================================
   Currency Switcher (custom, no plugin)
   ========================================================= */
.currency-switcher-slot { display: flex; align-items: center; gap: 3px; }
.currency-select {
	border: none; background: transparent; color: var(--saidah-muted);
	font-size: .76rem; font-weight: 600; letter-spacing: .03em; cursor: pointer;
	padding: 2px 4px;
}
.currency-select:hover, .currency-select:focus { color: var(--saidah-primary); }
.currency-note {
	font-size: .7rem; color: var(--saidah-secondary); cursor: help;
	border: 1px solid var(--saidah-secondary); border-radius: 50%;
	width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center;
	line-height: 1;
}
.currency-admin-hint {
	font-size: .68rem; color: #b8860b; background: #fff8e1; border: 1px dashed #d4a418;
	padding: 3px 8px; border-radius: var(--saidah-radius); cursor: help;
}

/* ---------- Back to Top ---------- */
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 700;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--saidah-primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(61, 26, 84, 0.3);
	transition: background .2s ease, transform .2s ease, opacity .25s ease;
	opacity: .92;
}
.back-to-top:hover { background: var(--saidah-secondary); color: var(--saidah-primary); transform: translateY(-3px); opacity: 1; }
@media (max-width: 767px) {
	.back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (max-width: 991px) {
	.back-to-top { bottom: 74px; }
}

/* ---------- Mobile Floating Bottom Nav (app-like) ---------- */
.mobile-bottom-nav {
	display: none;
}
@media (max-width: 991px) {
	.mobile-bottom-nav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
		background: #fff; border-top: 1px solid var(--saidah-border);
		box-shadow: 0 -6px 20px rgba(61, 26, 84, 0.1);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	.bottom-nav-item {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		padding: 8px 4px 7px; color: var(--saidah-muted); font-size: .64rem; font-weight: 500;
		position: relative; background: none; border: none;
	}
	.bottom-nav-item .saidah-icon { width: 21px; height: 21px; }
	.bottom-nav-item.is-active { color: var(--saidah-primary); }
	.bottom-nav-item.is-active .saidah-icon { color: var(--saidah-primary); }
	.bottom-nav-cart-count {
		position: absolute; top: 2px; right: 22%;
		background: var(--saidah-secondary); color: var(--saidah-primary);
		font-size: .58rem; font-weight: 700; min-width: 15px; height: 15px; border-radius: 50%;
		display: flex; align-items: center; justify-content: center;
	}
}

/* ---------- Hamburger drawer: category list + contact sections ---------- */
.mobile-drawer-section { padding: 20px 22px; border-bottom: 1px solid var(--saidah-border); }
.mobile-drawer-heading { font-family: var(--saidah-font-heading); font-size: 1rem; color: var(--saidah-primary); margin: 0 0 12px; }
.mobile-drawer-categories { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer-categories a { display: block; padding: 8px 0; font-size: .88rem; color: var(--saidah-text); }
.mobile-drawer-categories a:hover { color: var(--saidah-primary); }
.mobile-drawer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.mobile-drawer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--saidah-muted); }
.mobile-drawer-contact-list .saidah-icon { color: var(--saidah-secondary); flex-shrink: 0; margin-top: 2px; }
.mobile-drawer-contact-list a { color: var(--saidah-text); }

/* ---------- Category thumbnail drawer (bottom-nav "Categories" tab) ---------- */
.mobile-category-drawer {
	position: fixed; inset: 0 15% 0 auto; background: #fff; z-index: 900;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	box-shadow: var(--saidah-shadow);
}
.mobile-category-drawer.is-open { transform: translateX(0); }
.mobile-category-drawer-close { font-size: 1.6rem; line-height: 1; color: var(--saidah-muted); background: none; border: none; }
.mobile-category-drawer-list { padding: 8px 0; }
.mobile-category-drawer-list li a {
	display: flex; align-items: center; gap: 14px; padding: 12px 20px;
	border-bottom: 1px solid var(--saidah-border);
}
.mobile-category-drawer-list li a:hover { background: var(--saidah-surface); }
.mobile-cat-thumb { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--saidah-border); }
.mobile-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobile-cat-name { flex: 1; font-size: .92rem; font-weight: 500; color: var(--saidah-text); }
.mobile-category-drawer-list .saidah-icon { color: var(--saidah-muted); flex-shrink: 0; }
@media (max-width: 480px) {
	.mobile-category-drawer { inset: 0 8% 0 auto; }
}

/* ---------- Trust Bar: standalone section, elevated cards ---------- */
.site-trustbar {
	background: var(--saidah-surface);
	padding: 46px 0;
	position: relative;
}
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trustbar-card {
	background: #fff;
	border-radius: calc(var(--saidah-radius) + 6px);
	padding: 26px 20px;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
	box-shadow: 0 10px 28px rgba(61, 26, 84, 0.08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.trustbar-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(61, 26, 84, 0.14); }
.trustbar-icon {
	width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--saidah-primary); color: var(--saidah-secondary);
}
.trustbar-title { font-family: var(--saidah-font-heading); font-size: 1rem; color: var(--saidah-primary); font-weight: 600; }
.trustbar-subtitle { font-size: .78rem; color: var(--saidah-muted); line-height: 1.4; }
@media (max-width: 991px) {
	.trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.site-trustbar { padding: 36px 0; }
}
@media (max-width: 480px) {
	.trustbar-inner { grid-template-columns: 1fr; }
	.trustbar-card { flex-direction: row; text-align: left; padding: 18px; }
	.trustbar-icon { width: 46px; height: 46px; }
}

/* =========================================================
   Category / Shop Page — full redesign
   ========================================================= */

/* ---- Page header ---- */
/* ---- Category hero banner ---- */
.category-hero {
	position: relative; background: var(--saidah-primary); color: #fff;
	background-size: cover; background-position: center;
	padding: 54px 0 44px;
}
.category-hero.has-image { padding: 90px 0 60px; }
.category-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(36,27,47,.35) 0%, rgba(36,27,47,.75) 100%);
}
.category-hero:not(.has-image) .category-hero-overlay { background: none; }
.category-hero-inner { position: relative; z-index: 2; }
.category-hero .saidah-breadcrumbs { color: rgba(255,255,255,.75); padding-top: 0; margin-bottom: 14px; }
.category-hero .saidah-breadcrumbs a,
.category-hero .woocommerce-breadcrumb a { color: rgba(255,255,255,.9); }
.category-hero .woocommerce-breadcrumb { color: rgba(255,255,255,.75); padding: 0; }
.category-hero-title {
	font-size: clamp(1.9rem, 3.6vw, 3rem); color: #fff; margin: 0 0 10px;
	position: relative; display: inline-block; padding-bottom: 14px;
}
.category-hero-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--saidah-secondary); border-radius: 2px; }
.category-hero .term-description { color: rgba(255,255,255,.85); max-width: 640px; font-size: .95rem; line-height: 1.6; margin-top: 8px; }

/* ---- Subcategories (square cards, reuses homepage .category-card design) ---- */
.category-subcats-wrap { padding: 40px 0 6px; }
.category-products-heading { margin: 40px 0 4px; }
.category-products-heading .rail-kicker,
.category-products-heading .rail-title { display: block; }
.category-products-heading .rail-title { padding-bottom: 12px; }
.shop-page { padding-bottom: var(--saidah-section-gap); }

/* ---- Toolbar ---- */
.shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 16px 0; border-bottom: 1px solid var(--saidah-border); margin-bottom: 28px;
}
.shop-filter-toggle {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
	border: 1.5px solid var(--saidah-primary); border-radius: 30px; background: #fff; color: var(--saidah-primary);
	font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s;
}
.shop-filter-toggle:hover { background: var(--saidah-primary); color: #fff; }
.shop-filter-toggle.has-active-filters::after {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saidah-secondary); margin-left: 2px;
}
.shop-result-count { color: var(--saidah-muted); font-size: .85rem; flex: 1; text-align: center; }
.shop-sort { position: relative; display: flex; align-items: center; }
.shop-sort-select {
	appearance: none; -webkit-appearance: none; border: 1.5px solid var(--saidah-border); border-radius: 30px;
	padding: 10px 34px 10px 16px; font-size: .82rem; background: #fff; color: var(--saidah-text); cursor: pointer;
}
.shop-sort-select:focus { outline: none; border-color: var(--saidah-secondary); }
.shop-sort .saidah-icon { position: absolute; right: 14px; pointer-events: none; color: var(--saidah-muted); }

/* ---- Results area + loading state ---- */
.shop-results { position: relative; min-height: 200px; }
.shop-results.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }
.shop-results.is-loading::after {
	content: ""; position: absolute; top: 40px; left: 50%; width: 34px; height: 34px; margin-left: -17px;
	border: 3px solid var(--saidah-border); border-top-color: var(--saidah-primary); border-radius: 50%;
	animation: shopSpin .7s linear infinite;
}
@keyframes shopSpin { to { transform: rotate(360deg); } }
.no-products-found { text-align: center; padding: 60px 20px; color: var(--saidah-muted); grid-column: 1 / -1; }

/* ---- Off-canvas filter panel ---- */
.shop-filter-panel {
	position: fixed; inset: 0 auto 0 0; width: min(380px, 90vw); background: #fff; z-index: 1000;
	transform: translateX(-100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(61, 26, 84, 0.18);
}
.shop-filter-panel.is-open { transform: translateX(0); }
.shop-filter-panel-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 22px; border-bottom: 1px solid var(--saidah-border);
}
.shop-filter-panel-header h3 { margin: 0; font-size: 1.15rem; color: var(--saidah-primary); }
.shop-filter-close { font-size: 1.6rem; line-height: 1; color: var(--saidah-muted); background: none; border: none; }
.shop-filter-panel-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.shop-filter-panel-footer {
	display: flex; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--saidah-border);
}
.shop-filter-panel-footer .btn { flex: 1; }
.shop-filter-backdrop {
	position: fixed; inset: 0; background: rgba(36,27,47,.5); z-index: 990;
	opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.shop-filter-backdrop.is-open { opacity: 1; pointer-events: auto; }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--saidah-border); }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: .9rem; color: var(--saidah-primary); margin: 0 0 12px; font-weight: 600; }
.filter-checkbox-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: .86rem; color: var(--saidah-text); cursor: pointer; }
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--saidah-primary); flex-shrink: 0; }
.filter-checkbox span { flex: 1; }
.filter-checkbox em { font-style: normal; color: var(--saidah-muted); font-size: .78rem; }
.filter-rating .filter-stars { color: var(--saidah-secondary); letter-spacing: 1px; }

/* Dual price range slider */
.filter-price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.filter-price-field {
	flex: 1; display: flex; align-items: center; gap: 4px; border: 1px solid var(--saidah-border);
	border-radius: var(--saidah-radius); padding: 8px 10px;
}
.filter-price-field span { color: var(--saidah-muted); font-size: .82rem; }
.filter-price-field input {
	width: 100%; border: none; font-size: .85rem; -moz-appearance: textfield; background: transparent;
}
.filter-price-field input::-webkit-outer-spin-button,
.filter-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-price-sep { color: var(--saidah-muted); }
.filter-price-slider { position: relative; height: 24px; }
.filter-price-slider input[type="range"] {
	position: absolute; top: 8px; left: 0; width: 100%; height: 4px;
	background: none; pointer-events: none; -webkit-appearance: none; appearance: none; margin: 0;
}
.filter-price-slider input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
	background: var(--saidah-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer;
}
.filter-price-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
	background: var(--saidah-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer;
}
.filter-price-slider::before {
	content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 4px;
	background: var(--saidah-border); border-radius: 2px;
}

/* ---- Pagination ---- */
.shop-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.shop-page-link {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border: 1px solid var(--saidah-border); border-radius: 50%; font-size: .85rem; color: var(--saidah-text);
	transition: background .2s, color .2s, border-color .2s;
}
.shop-page-link:hover { border-color: var(--saidah-primary); color: var(--saidah-primary); }
.shop-page-link.is-current { background: var(--saidah-primary); border-color: var(--saidah-primary); color: #fff; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.shop-toolbar { gap: 10px; }
	.shop-result-count { order: 3; width: 100%; text-align: left; }
	.shop-filter-panel { width: 88vw; }
	.category-hero { padding: 34px 0 28px; }
	.category-hero.has-image { padding: 54px 0 36px; }
	.category-hero-title { font-size: 1.5rem; }
	.category-subcats-wrap { padding: 26px 0 4px; }
}
