/* ─── Global ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; -webkit-font-smoothing: antialiased; }

/* ─── Dark Mode (Editorial / Refined) ────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --dm-bg:        #0a0a0a;
  --dm-surface:   #141414;
  --dm-surface-2: #1c1c1c;
  --dm-surface-3: #232323;
  --dm-border:    #262626;
  --dm-border-2:  #2f2f2f;
  --dm-text:      #fafafa;
  --dm-text-2:    #d4d4d4;
  --dm-text-3:    #a3a3a3;
  --dm-muted:     #737373;
}
html[data-theme="dark"] body {
  background-color: var(--dm-bg) !important;
  color: var(--dm-text) !important;
}

/* Surfaces */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .hover\:bg-white:hover { background-color: var(--dm-surface) !important; }
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .hover\:bg-gray-50:hover { background-color: var(--dm-surface-2) !important; }
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .hover\:bg-gray-100:hover { background-color: var(--dm-surface-3) !important; }
html[data-theme="dark"] .bg-gray-200 { background-color: var(--dm-surface-3) !important; }
html[data-theme="dark"] .bg-gray-900,
html[data-theme="dark"] .bg-gray-950,
html[data-theme="dark"] .bg-black { background-color: #ededed !important; color: #111 !important; }

/* Header & footer specifically */
html[data-theme="dark"] header.site-header,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] footer,
html[data-theme="dark"] .site-footer {
  background-color: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
}
html[data-theme="dark"] .site-header__icon-btn {
  background-color: var(--dm-surface-2) !important;
  border: 1px solid var(--dm-border) !important;
  color: var(--dm-text-2) !important;
}
html[data-theme="dark"] .site-header__icon-btn i { color: var(--dm-text-2) !important; }
html[data-theme="dark"] #mobileMenu .bg-white { background-color: var(--dm-surface) !important; }
html[data-theme="dark"] #mobileMenu a:hover { background-color: var(--dm-surface-2) !important; }

/* Text */
html[data-theme="dark"] .text-gray-950,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-black { color: var(--dm-text) !important; }
html[data-theme="dark"] .text-gray-700 { color: var(--dm-text-2) !important; }
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500 { color: var(--dm-text-3) !important; }
html[data-theme="dark"] .text-gray-400,
html[data-theme="dark"] .text-gray-300 { color: var(--dm-muted) !important; }

/* Borders */
html[data-theme="dark"] [class*="border-gray-"],
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-t,
html[data-theme="dark"] .border-b,
html[data-theme="dark"] .border-l,
html[data-theme="dark"] .border-r,
html[data-theme="dark"] .divide-y > * + * { border-color: var(--dm-border) !important; }

/* Shadows softened */
html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-md,
html[data-theme="dark"] .shadow-lg,
html[data-theme="dark"] .shadow-xl,
html[data-theme="dark"] .shadow-2xl { box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important; }

/* Inputs */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: var(--dm-surface-2) !important;
  color: var(--dm-text) !important;
  border-color: var(--dm-border-2) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--dm-muted) !important; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { border-color: var(--color-primary, #EC4899) !important; outline: none; }

/* Pink/colored soft backgrounds */
html[data-theme="dark"] .bg-pink-50,
html[data-theme="dark"] .bg-pink-100 { background-color: rgba(236, 72, 153, 0.12) !important; }
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-yellow-50 { background-color: rgba(245, 158, 11, 0.14) !important; }
html[data-theme="dark"] .bg-green-50,
html[data-theme="dark"] .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.14) !important; }
html[data-theme="dark"] .bg-blue-50 { background-color: rgba(59, 130, 246, 0.14) !important; }
html[data-theme="dark"] .bg-red-50 { background-color: rgba(239, 68, 68, 0.14) !important; }

/* Cards / product card */
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .rounded-2xl.bg-white,
html[data-theme="dark"] .rounded-xl.bg-white {
  background-color: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
}

/* Fixed bottom bar */
html[data-theme="dark"] .fixed.bottom-0,
html[data-theme="dark"] .fixed.inset-x-0.bottom-0 { background-color: var(--dm-surface) !important; border-color: var(--dm-border) !important; }

/* Links default */
html[data-theme="dark"] a { color: inherit; }

/* Divider lines */
html[data-theme="dark"] hr { border-color: var(--dm-border) !important; }

/* Scrollbar */
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--dm-bg); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--dm-surface-3); border-radius: 8px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ─── Scrollbar Hide ─────────────────────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Product Card ───────────────────────────────────────────────────── */
.product-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-2px); }

/* ─── Badges ─────────────────────────────────────────────────────────── */
.badge-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.4;
  font-family: 'Cairo', sans-serif;
}
.badge-bestseller { background: var(--color-primary, #EC4899); color: #fff; }
.badge-featured,
.badge-new,
.badge-discount   { background: var(--color-accent, #F9A8D4); color: #111827; }

/* ─── Store Secondary Accent ────────────────────────────────────────── */
.store-accent-text { color: var(--color-accent, #F9A8D4) !important; }
.store-accent-border { border-color: var(--color-accent, #F9A8D4) !important; }
.store-accent-soft-bg {
  background: color-mix(in srgb, var(--color-accent, #F9A8D4) 16%, white) !important;
}
.store-secondary-link {
  color: var(--color-accent, #F9A8D4);
  transition: color .2s ease, opacity .2s ease;
}
.store-secondary-link:hover {
  color: var(--color-accent, #F9A8D4);
  opacity: .82;
}
.store-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-accent, #F9A8D4) 34%, white);
  background: color-mix(in srgb, var(--color-accent, #F9A8D4) 14%, white);
  color: var(--color-accent, #F9A8D4);
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.store-secondary-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
}
.hero-cta--ghost {
  background: color-mix(in srgb, var(--color-accent, #F9A8D4) 14%, white);
  color: var(--color-accent, #F9A8D4);
  border: 1px solid color-mix(in srgb, var(--color-accent, #F9A8D4) 38%, white);
  box-shadow: none;
}
.hero-cta--ghost:hover {
  background: color-mix(in srgb, var(--color-accent, #F9A8D4) 22%, white);
  border-color: var(--color-accent, #F9A8D4);
}
html[data-theme="dark"] .store-accent-soft-bg,
html[data-theme="dark"] .store-secondary-btn,
html[data-theme="dark"] .hero-cta--ghost {
  background: color-mix(in srgb, var(--color-accent, #F9A8D4) 16%, var(--dm-surface-2)) !important;
  border-color: color-mix(in srgb, var(--color-accent, #F9A8D4) 34%, var(--dm-border)) !important;
  color: var(--color-accent, #F9A8D4) !important;
}
html[data-theme="dark"] .badge-featured,
html[data-theme="dark"] .badge-new,
html[data-theme="dark"] .badge-discount {
  color: #0f172a;
}

/* ─── Line Clamp ─────────────────────────────────────────────────────── */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Hero Slider — Editorial Luxury ───────────────────────────────────── */
:root{
  --hero-ink:        #ffffff;
  --hero-muted:      rgba(255,255,255,.72);
  --hero-gold:       #d4af6a;
  --hero-gold-2:     #f1d79b;
  --hero-bg:         #0c0a08;
  --hero-radius:     18px;
}
.hero-wrap{
  max-width: 800px;
  margin: 16px auto 8px;
  padding: 0 12px;
}
.hero-slider{
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
  font-family: 'Cairo', sans-serif;
  border-radius: var(--hero-radius);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.35);
}
.hero-track{ position:absolute; inset:0; }
.hero-slide{
  position: absolute; inset: 0;
  display: none;
  pointer-events: none;
}
.hero-slide.is-active{
  display: block;
  pointer-events: auto;
  z-index: 1;
  animation: heroFade .6s ease both;
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero-link{ display:block; width:100%; height:100%; }
.hero-img{
  display: block;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
}
.hero-fallback{
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(212,175,106,.22), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(236,72,153,.18), transparent 55%),
    linear-gradient(135deg, #1a1208 0%, #0c0a08 55%, #1f1720 100%);
}
.hero-fallback::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.28));
  pointer-events: none;
}

.hero-content{
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: clamp(24px, 6vw, 72px) clamp(20px, 7vw, 92px);
  color: var(--hero-ink);
  max-width: min(720px, 92%);
  text-align: right;
}
.hero-kicker{
  display:inline-flex; align-items:center; gap:14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--hero-gold-2);
  letter-spacing: .04em;
  margin-bottom: 14px;
  opacity:0; transform: translateX(20px);
  animation: heroIn .9s .15s ease both;
}
.hero-kicker .hero-line{
  display:inline-block; width: 38px; height:1px;
  background: linear-gradient(90deg, transparent, var(--hero-gold));
}
.hero-title{
  font-family: 'Marhey', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color:#fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  opacity:0; transform: translateY(24px);
  animation: heroIn 1s .35s cubic-bezier(.2,.7,.2,1) both;
}
.hero-title::after{
  content:""; display:block; width: 64px; height:2px; margin-top: 22px;
  background: linear-gradient(90deg, var(--hero-gold), transparent);
}
.hero-sub{
  margin-top: 18px;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--hero-muted);
  max-width: 540px;
  opacity:0; transform: translateY(20px);
  animation: heroIn 1s .55s cubic-bezier(.2,.7,.2,1) both;
}
.hero-cta-row{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top: clamp(20px, 3vw, 34px);
  opacity:0; transform: translateY(20px);
  animation: heroIn 1s .75s cubic-bezier(.2,.7,.2,1) both;
}
.hero-cta{
  display:inline-flex; align-items:center; gap:10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--hero-gold-2), var(--hero-gold));
  color:#1a1208;
  font-size: 13px; font-weight: 800; letter-spacing:.02em;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(212,175,106,.55), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.hero-cta:hover{ transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 40px -12px rgba(212,175,106,.7), inset 0 1px 0 rgba(255,255,255,.7); }
.hero-cta i{ font-size:11px; transition: transform .25s; }
.hero-cta:hover i{ transform: translateX(-4px); }
.hero-cta--ghost{
  background: transparent; color:#fff;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.hero-cta--ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }

@keyframes heroIn { from { opacity:0; transform: translateY(24px);} to { opacity:1; transform:none;} }

.hero-arrow{
  position:absolute; top:50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff; font-size: 14px;
  z-index: 5;
  transition: background .25s, border-color .25s, transform .25s;
}
.hero-arrow:hover{ background: var(--hero-gold); border-color: var(--hero-gold); color:#1a1208; transform: translateY(-50%) scale(1.06); }
.hero-arrow--prev{ right: clamp(12px, 2.5vw, 32px); }
.hero-arrow--next{ left:  clamp(12px, 2.5vw, 32px); }

.hero-counter{
  position:absolute; top: clamp(18px, 3vw, 36px); left: clamp(20px, 4vw, 56px);
  z-index: 5;
  display:inline-flex; align-items:center; gap:14px;
  font-family: 'Cormorant Garamond', serif;
  color:#fff;
}
.hero-counter__cur{ font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; color: var(--hero-gold-2); }
.hero-counter__tot{ font-size: clamp(14px, 1.5vw, 18px); color: rgba(255,255,255,.6); }
.hero-counter__sep{ width: 28px; height:1px; background: rgba(255,255,255,.4); }

.hero-dots{
  position:absolute; bottom: clamp(18px, 3vw, 32px); left:50%; transform: translateX(-50%);
  z-index: 5;
  display:flex; gap: 8px; align-items:center;
}
.banner-dot{
  position:relative;
  width: 44px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.22);
  cursor: pointer; overflow:hidden; border:0;
  transition: background .25s;
}
.banner-dot:hover{ background: rgba(255,255,255,.4); }
.banner-dot.active{ background: rgba(255,255,255,.25); }
.banner-dot__fill{
  position:absolute; inset:0; right:auto;
  width:0%; background: var(--hero-gold);
  transition: width .15s linear;
}
.banner-dot.active .banner-dot__fill{ animation: heroFill 5s linear forwards; }
@keyframes heroFill { from { width:0%; } to { width:100%; } }

.hero-empty{
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(212,175,106,.18), transparent 60%),
    linear-gradient(180deg, #1a1208 0%, #0c0a08 100%);
  color:#fff; padding: clamp(48px, 8vw, 120px) clamp(20px, 7vw, 92px);
  min-height: 360px; display:flex; align-items:flex-end;
  position:relative; overflow:hidden;
}
.hero-empty .hero-title{ animation: heroIn 1s .15s ease both; }
.hero-empty .hero-sub  { animation: heroIn 1s .35s ease both; }
.hero-empty .hero-cta  { animation: heroIn 1s .55s ease both; margin-top: 26px; }

@media (max-width: 840px){
  .hero-wrap{ margin: 10px auto 6px; padding: 0 10px; }
  .hero-slider{ height: auto; aspect-ratio: 2/1; border-radius: 14px; }
  .hero-arrow{ width:38px; height:38px; font-size:12px; }
  .hero-arrow--prev{ right: 8px; }
  .hero-arrow--next{ left: 8px; }
  .hero-counter{ top: 10px; left: 12px; }
  .hero-counter__cur{ font-size: 22px; }
  .hero-counter__sep{ width: 18px; }
  .hero-title::after{ width: 36px; margin-top: 12px; }
  .hero-content{ padding: 18px 18px 28px; }
  .hero-img{ filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
}

@media (prefers-reduced-motion: reduce){
  .banner-dot.active .banner-dot__fill{ animation: none; width: 100%; }
  .hero-kicker,.hero-title,.hero-sub,.hero-cta-row{ animation: none; opacity:1; transform:none; }
}

/* ─── Add to Cart Button ─────────────────────────────────────────────── */
.add-to-cart-btn { flex-shrink: 0; cursor: pointer; border: none; }
.add-to-cart-btn:active { transform: scale(0.92); }

/* ─── Cart Badge Bounce ──────────────────────────────────────────────── */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}
.cart-bounce { animation: cartBounce 0.35s ease; }

/* ─── Search Results ─────────────────────────────────────────────────── */
#searchResults a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
#searchResults a:last-child { border-bottom: none; }
#searchResults a:hover { background: #fdf2f8; }
#searchResults img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* ─── Toast ──────────────────────────────────────────────────────────── */
#toast { pointer-events: none; }
#toast.show { opacity: 1 !important; }

/* ─── Mobile Header / Tabs ───────────────────────────────────────────── */
.site-header {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}
.site-header__inner {
  background: #ffffff;
}
.site-header__icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
}
#searchInput {
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}
#searchInput::placeholder {
  text-align: right;
}
#catRow.site-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#catRow.site-tabs::-webkit-scrollbar {
  display: none;
}
#catRow.site-tabs a {
  position: relative;
  padding-bottom: 0.7rem;
  color: #52525b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
#catRow.site-tabs a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
#catRow.site-tabs a.active {
  color: #111827;
}
#catRow.site-tabs a.active::after {
  transform: scaleX(1);
}

/* ─── Mobile Menu ────────────────────────────────────────────────────── */
#mobileMenu { transition: opacity 0.2s; }

/* ─── Input Focus Ring ───────────────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}

/* ─── RTL Table ──────────────────────────────────────────────────────── */
table { direction: rtl; }

/* ─── Placeholder ────────────────────────────────────────────────────── */
::placeholder { color: #9ca3af; }

/* ─── Lazy Load Fade-in ──────────────────────────────────────────────── */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img[loading="lazy"].loaded { opacity: 1; }


/* Font */
body {
  font-family: 'Cairo', sans-serif;
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Smooth scroll */
.scroll-smooth { scroll-behavior: smooth; }

/* Product image zoom on hover */
.group:hover .product-img { transform: scale(1.05); }

/* Navigation active state */
.nav-cat-link.active {
  background-color: #92400e20;
  color: #92400e;
  font-weight: 600;
}

/* Slider track */
.slider-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-track::-webkit-scrollbar { display: none; }

/* Card hover shadow */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
}

/* Line clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cart badge animation */
@keyframes pop {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1);   }
}
.cart-pop { animation: pop 0.3s ease; }

/* RTL table */
table { direction: rtl; }

/* Input focus */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Placeholder color */
::placeholder { color: #9ca3af; }

/* Dir LTR for phone numbers */
.dir-ltr { direction: ltr; text-align: left; }

/* Toast */
#toast {
  transition: opacity 0.3s ease;
}

/* Aspect ratio fallback */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Admin sidebar scrollbar */
aside::-webkit-scrollbar { width: 4px; }
aside::-webkit-scrollbar-track { background: transparent; }
aside::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }

/* Search results */
#searchResults a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
#searchResults a:hover { background: #fef3c7; }
#searchResults a img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* ─── Dark Mode Final Overrides ─────────────────────────────────────── */
html[data-theme="dark"] .site-header__inner,
html[data-theme="dark"] .site-header__inner.bg-white,
html[data-theme="dark"] .site-header__inner .bg-white {
  background: var(--dm-surface) !important;
}
html[data-theme="dark"] #searchInput,
html[data-theme="dark"] #searchResults {
  background: var(--dm-surface-2) !important;
  border-color: var(--dm-border) !important;
}
html[data-theme="dark"] #searchResults {
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
}
html[data-theme="dark"] #searchResults a,
html[data-theme="dark"] #searchResults .search-results__all-link {
  color: var(--dm-text-2) !important;
  background: transparent !important;
  border-bottom-color: var(--dm-border) !important;
}
html[data-theme="dark"] #searchResults a:hover,
html[data-theme="dark"] #searchResults .search-results__all-link:hover {
  background: var(--dm-surface-3) !important;
}
html[data-theme="dark"] #catRow.site-tabs {
  background: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
}
html[data-theme="dark"] #catRow.site-tabs a {
  color: var(--dm-text-3) !important;
}
html[data-theme="dark"] #catRow.site-tabs a.active {
  color: var(--dm-text) !important;
}
html[data-theme="dark"] #catRow.site-tabs a::after {
  background: var(--color-primary, #EC4899) !important;
}
html[data-theme="dark"] #mobileMenu .absolute.top-0.right-0,
html[data-theme="dark"] #mobileMenu .p-4,
html[data-theme="dark"] #mobileMenu .flex-1 {
  background: var(--dm-surface) !important;
}
html[data-theme="dark"] #mobileMenu .border-b,
html[data-theme="dark"] #mobileMenu .border-t {
  border-color: var(--dm-border) !important;
}
html[data-theme="dark"] #mobileMenu a {
  color: var(--dm-text-2) !important;
}
html[data-theme="dark"] footer,
html[data-theme="dark"] footer.bg-white,
html[data-theme="dark"] footer > div {
  background: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
}
html[data-theme="dark"] footer .text-gray-800,
html[data-theme="dark"] footer .text-gray-700 {
  color: var(--dm-text) !important;
}
html[data-theme="dark"] footer .text-gray-500,
html[data-theme="dark"] footer .text-gray-400 {
  color: var(--dm-text-3) !important;
}
