/*
 * Khuzama Magic UX — v1.5.0
 * Final visual-system and conversion layer. Loaded after all theme styles.
 */
:root {
  --kh-magic-navy: #041238;
  --kh-magic-indigo: #24105f;
  --kh-magic-purple: #612ac6;
  --kh-magic-blue: #1478e8;
  --kh-magic-gold: #d7ad55;
  --kh-magic-cream: #fffaf0;
  --kh-magic-ink: #0b1535;
  --kh-magic-muted: #69728a;
  --kh-magic-line: rgba(7, 26, 77, .085);
  --kh-magic-shadow-xs: 0 8px 24px rgba(7, 26, 77, .055);
  --kh-magic-shadow-sm: 0 16px 44px rgba(7, 26, 77, .085);
  --kh-magic-shadow-md: 0 26px 72px rgba(7, 26, 77, .13);
  --kh-magic-glow: 0 22px 54px rgba(72, 34, 166, .22);
  --kh-magic-gradient: linear-gradient(135deg, #071a4d 0%, #34127e 43%, #6427cf 70%, #1478e8 100%);
  --kh-magic-radius: 26px;
  --kh-magic-radius-sm: 18px;
}

::selection {
  color: #fff;
  background: #4f22ab;
}

html {
  scroll-behavior: smooth;
}

body.khuzama-site {
  color: var(--kh-magic-ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(215, 173, 85, .045), transparent 28rem),
    radial-gradient(circle at 94% 26%, rgba(20, 120, 232, .04), transparent 30rem),
    #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.khuzama-site a,
body.khuzama-site button,
body.khuzama-site input,
body.khuzama-site select,
body.khuzama-site textarea {
  -webkit-tap-highlight-color: transparent;
}

body.khuzama-site :focus-visible {
  outline: 3px solid rgba(20, 120, 232, .34);
  outline-offset: 3px;
}

.container {
  --bs-gutter-x: clamp(1.2rem, 3vw, 2.2rem);
}

.section-space {
  padding-block: clamp(70px, 7.2vw, 104px);
}

.section-heading {
  max-width: 820px;
  margin-inline: auto;
}

.section-heading-inline {
  max-width: none;
}

.section-title {
  color: var(--kh-magic-ink);
  font-size: clamp(1.85rem, 2.85vw, 2.78rem);
  line-height: 1.25;
  letter-spacing: -1px;
}

.section-subtitle,
.section-heading-inline p {
  color: var(--kh-magic-muted);
  line-height: 1.9;
}

.section-kicker {
  min-height: 34px;
  padding-inline: 13px;
  border-radius: 999px;
  color: #694912;
  background: linear-gradient(135deg, rgba(255, 250, 240, .98), rgba(255, 255, 255, .98));
  box-shadow: inset 0 0 0 1px rgba(215, 173, 85, .25), var(--kh-magic-shadow-xs);
}

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease !important;
}

.btn-brand,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  position: relative;
  overflow: hidden;
  background: var(--kh-magic-gradient) !important;
  box-shadow: 0 16px 38px rgba(69, 27, 155, .22) !important;
}

.btn-brand::before,
.woocommerce a.button.alt::before,
.woocommerce button.button.alt::before,
.woocommerce input.button.alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .18) 48%, transparent 76%);
  transform: translateX(115%);
  transition: transform .58s ease;
}

.btn-brand:hover::before,
.woocommerce a.button.alt:hover::before,
.woocommerce button.button.alt:hover::before,
.woocommerce input.button.alt:hover::before {
  transform: translateX(-115%);
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-2px);
}

/* A quiet progress accent rather than a distracting loader. */
.khuzama-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1100;
  height: 3px;
  pointer-events: none;
}

.khuzama-scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--kh-magic-gold), var(--kh-magic-purple), var(--kh-magic-blue));
  box-shadow: 0 0 18px rgba(100, 39, 207, .42);
  transition: width .08s linear;
}

/* Header and navigation */
.announcement-bar {
  min-height: 38px;
  background:
    radial-gradient(circle at 15% 50%, rgba(215, 173, 85, .17), transparent 24%),
    linear-gradient(110deg, #031033, #071a4d 47%, #24105f);
}

.announcement-content {
  min-height: 38px;
  font-size: .68rem;
  letter-spacing: 0;
}

.sudan-ribbon {
  height: 3px;
}

.main-header {
  border-bottom-color: rgba(7, 26, 77, .07);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 30px rgba(7, 26, 77, .035);
  backdrop-filter: blur(20px) saturate(165%);
}

.main-header.is-scrolled {
  background: rgba(255, 255, 255, .965);
  box-shadow: 0 16px 48px rgba(7, 26, 77, .09);
}

.header-main {
  padding-block: 7px;
}

.brand-logo {
  width: 190px;
}

.brand-logo img {
  max-width: 100%;
  height: 60px;
}

.search-wrap {
  position: relative;
  min-height: 50px;
  border-radius: 16px;
  background: #f8faff;
  box-shadow: inset 0 0 0 1px rgba(7, 26, 77, .075);
  transition: box-shadow .22s ease, background-color .22s ease, transform .22s ease;
}

.search-wrap:focus-within {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(100, 39, 207, .07), 0 16px 36px rgba(7, 26, 77, .075);
  transform: translateY(-1px);
}

.search-wrap input {
  background: transparent !important;
}

.search-wrap button {
  width: 44px;
  height: 44px;
  margin-inline-start: 3px;
  border-radius: 13px;
}

.header-icon,
.country-pill {
  border-color: rgba(7, 26, 77, .08);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 20px rgba(7, 26, 77, .04);
}

.header-icon:hover,
.country-pill:hover {
  border-color: rgba(100, 39, 207, .24);
  background: #fff;
  box-shadow: 0 13px 30px rgba(7, 26, 77, .09);
}

.nav-categories {
  border-top-color: rgba(7, 26, 77, .055);
  background: rgba(255, 255, 255, .94);
}

.desktop-nav-shell {
  min-height: 54px;
}

.products-mega-trigger {
  min-height: 40px;
  padding-inline: 16px;
  border-color: rgba(215, 173, 85, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf1, #fff);
  box-shadow: var(--kh-magic-shadow-xs);
}

.products-mega-panel {
  top: calc(100% + 12px);
  border-color: rgba(7, 26, 77, .08);
  border-radius: 28px;
  box-shadow: 0 30px 85px rgba(7, 26, 77, .18);
}

.mega-menu-intro {
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 15%, rgba(215, 173, 85, .17), transparent 30%),
    linear-gradient(145deg, #031033, #22105a 60%, #3d178d);
}

.mega-category-card {
  border-color: rgba(7, 26, 77, .075);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: 0 9px 24px rgba(7, 26, 77, .035);
}

.mega-category-card:hover {
  border-color: rgba(100, 39, 207, .2);
  box-shadow: 0 18px 42px rgba(7, 26, 77, .09);
  transform: translateY(-3px);
}

.nav-support-link {
  border-radius: 999px;
}

/* Hero */
.hero {
  min-height: min(770px, calc(100vh - 112px));
  border-bottom: 1px solid rgba(7, 26, 77, .055);
  background:
    radial-gradient(circle at 7% 12%, rgba(50, 199, 244, .15), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(215, 173, 85, .15), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(100, 39, 207, .13), transparent 30%),
    linear-gradient(135deg, #fcfdff 0%, #f7f5ff 52%, #fffaf1 100%);
}

.hero::before {
  top: -220px;
  right: -190px;
  border-color: rgba(100, 39, 207, .085);
  box-shadow: 0 0 0 70px rgba(100, 39, 207, .018), 0 0 0 150px rgba(20, 120, 232, .014);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .24), transparent 38%, transparent 68%, rgba(255, 255, 255, .18));
}

.hero-grid-pattern {
  opacity: .19;
  background-size: 62px 62px;
}

.hero-copy {
  z-index: 4;
  padding-block: clamp(62px, 7vw, 92px);
}

.hero-badge {
  min-height: 38px;
  padding-inline: 16px;
  border-color: rgba(215, 173, 85, .28);
  color: #604716;
  background: rgba(255, 250, 240, .88);
  box-shadow: 0 12px 32px rgba(173, 123, 32, .08);
}

.hero h1 {
  max-width: 720px;
  margin-block: 20px 17px;
  color: var(--kh-magic-ink);
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -2.8px;
}

.hero .text-gradient {
  background-image: linear-gradient(105deg, #5c24bc 0%, #35208f 43%, #1478e8 72%, #c89533 125%);
  background-size: 140% 100%;
}

.hero p {
  max-width: 560px;
  color: #616b84;
  font-size: .98rem;
  line-height: 1.95;
}

.hero-origin {
  margin-top: 13px;
}

.hero-ctas {
  margin-top: 25px;
}

.hero-ctas .btn {
  min-height: 55px;
  padding-inline: 21px;
  border-radius: 17px;
}

.hero-trust {
  gap: 12px;
  margin-top: 20px;
}

.hero-trust span {
  min-height: 38px;
  padding-inline: 12px;
  border: 1px solid rgba(7, 26, 77, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .67);
  box-shadow: var(--kh-magic-shadow-xs);
  backdrop-filter: blur(10px);
}

.hero-metrics {
  max-width: 530px;
  margin-top: 22px;
  padding: 15px 18px;
  border: 1px solid rgba(7, 26, 77, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--kh-magic-shadow-xs);
  backdrop-filter: blur(12px);
}

.hero-metrics > div {
  min-width: 0;
  flex: 1;
}

.hero-visual {
  min-height: 610px;
  z-index: 3;
  transform-style: preserve-3d;
}

.hero-visual::before {
  inset: 6% 1% 4%;
  border-color: rgba(215, 173, 85, .22);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 16% 10%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 39, 207, .24), transparent 68%);
  filter: blur(25px);
}

.hero-orb {
  border: 1px solid rgba(255, 255, 255, .32);
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, .24), transparent 23%),
    linear-gradient(145deg, #29106d, #6427cf 48%, #0f68d7);
  box-shadow: 0 44px 115px rgba(64, 25, 151, .32), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.floating-product {
  border: 7px solid rgba(255, 255, 255, .92);
  box-shadow: 0 30px 75px rgba(7, 26, 77, .22);
}

.floating-note {
  border-color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 17px 42px rgba(7, 26, 77, .13);
  backdrop-filter: blur(12px);
}

.marquee-strip {
  min-height: 48px;
  border-block-color: rgba(215, 173, 85, .22);
  background: linear-gradient(90deg, #031033, #261067 48%, #071a4d);
}

/* Brand signature and content cadence */
.sudanese-signature {
  margin-top: 22px;
}

.sudanese-signature-card {
  min-height: 158px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 173, 85, .11), transparent 30%),
    linear-gradient(115deg, #fffaf1, #fff 48%, #f7f9ff);
  box-shadow: var(--kh-magic-shadow-sm);
}

.signature-mark {
  box-shadow: 0 16px 38px rgba(71, 30, 157, .16);
}

.signature-points span {
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(7, 26, 77, .035);
}

.bg-soft {
  background:
    radial-gradient(circle at 0% 50%, rgba(215, 173, 85, .045), transparent 28rem),
    linear-gradient(180deg, #fafbff, #f6f8ff 45%, #fafbff);
}

/* Categories */
.home-categories ul.products {
  gap: clamp(14px, 1.7vw, 24px) !important;
}

.home-categories ul.products li.product-category {
  position: relative;
}

.home-categories .product-category a {
  padding: 18px 10px 15px;
  border: 1px solid transparent;
  border-radius: 24px;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.home-categories .product-category a:hover {
  border-color: rgba(100, 39, 207, .11);
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 26, 77, .085);
  transform: translateY(-5px);
}

.home-categories .product-category img {
  width: clamp(96px, 9vw, 132px) !important;
  height: clamp(96px, 9vw, 132px) !important;
  margin-bottom: 13px !important;
  border-width: 1px;
  box-shadow: 0 0 0 8px rgba(100, 39, 207, .035), 0 16px 34px rgba(7, 26, 77, .08);
}

.home-categories .woocommerce-loop-category__title {
  line-height: 1.55;
}

/* Product cards */
.woocommerce ul.products {
  gap: clamp(16px, 2vw, 25px);
}

.woocommerce ul.products li.product,
.khuzama-product-card {
  isolation: isolate;
  padding: 11px 11px 15px !important;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 77, .075);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #fff 76%, #fbfcff 100%);
  box-shadow: 0 13px 36px rgba(7, 26, 77, .055);
  transform: translateZ(0);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.woocommerce ul.products li.product::after,
.editorial-banner::after,
.luxury-mini-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, .28), transparent 66%);
  transition: opacity .25s ease;
}

.woocommerce ul.products li.product:hover::after,
.editorial-banner:hover::after,
.luxury-mini-card:hover::after {
  opacity: 1;
}

.woocommerce ul.products li.product > *,
.editorial-banner > *,
.luxury-mini-card > * {
  position: relative;
  z-index: 1;
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(100, 39, 207, .17);
  box-shadow: 0 26px 62px rgba(7, 26, 77, .13);
  transform: translateY(-7px);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1.06;
  margin-bottom: 11px !important;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4f6fc, #eef2fa);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.woocommerce ul.products li.product:hover a img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.khuzama-card-view-cue {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-inline: 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 18, 56, .68);
  box-shadow: 0 10px 24px rgba(7, 26, 77, .13);
  backdrop-filter: blur(10px);
  font-size: .61rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .24s ease, transform .24s ease;
}

.woocommerce ul.products li.product:hover .khuzama-card-view-cue {
  opacity: 1;
  transform: translateY(0);
}

.khuzama-card-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding-inline: 4px;
  color: var(--kh-magic-muted);
  font-size: .59rem;
  font-weight: 700;
}

.khuzama-card-category {
  overflow: hidden;
  max-width: 52%;
  color: #6532b7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.khuzama-card-market {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.khuzama-card-market i {
  color: var(--kh-magic-gold);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 52px;
  padding-inline: 4px !important;
  color: var(--kh-magic-ink);
  font-size: .88rem !important;
  line-height: 1.65;
  letter-spacing: -.18px;
}

.woocommerce ul.products li.product .star-rating {
  margin-block: 5px 7px !important;
}

.woocommerce ul.products li.product .price {
  min-height: 30px;
  margin: 5px 4px 7px !important;
  color: #166fd1 !important;
  font-size: .94rem !important;
}

.khuzama-card-benefit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 11px;
  color: var(--kh-magic-muted);
  font-size: .58rem;
  font-weight: 700;
}

.khuzama-card-benefit span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.khuzama-card-benefit.is-available span:first-child i {
  color: #16845f;
}

.khuzama-card-benefit.is-unavailable span:first-child i {
  color: #d64158;
}

.woocommerce ul.products li.product .button {
  min-height: 48px;
  margin: auto 3px 0 !important;
  border-radius: 15px !important;
  font-size: .74rem !important;
}

.woocommerce ul.products li.product .onsale {
  top: 18px !important;
  right: 18px !important;
  padding: 6px 11px !important;
  background: linear-gradient(135deg, #041238, #421692) !important;
  box-shadow: 0 10px 26px rgba(7, 26, 77, .22);
}

/* Editorial banners */
.editorial-banner {
  border-radius: 30px;
  box-shadow: var(--kh-magic-shadow-md);
}

.editorial-banner::before {
  background: linear-gradient(180deg, rgba(3, 9, 31, .02) 4%, rgba(3, 9, 31, .25) 48%, rgba(3, 9, 31, .93) 100%);
}

.editorial-banner::after {
  z-index: -1;
  background:
    radial-gradient(280px circle at var(--spot-x, 82%) var(--spot-y, 18%), rgba(100, 39, 207, .32), transparent 70%),
    linear-gradient(135deg, transparent, rgba(7, 26, 77, .08));
}

.editorial-content {
  padding: clamp(24px, 4vw, 38px);
}

.editorial-content span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding-inline: 11px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.editorial-content h3 {
  margin-top: 9px;
  letter-spacing: -.5px;
}

.editorial-content b {
  margin-top: 7px;
  color: #f8dda0;
}

/* Luxury conversion section */
.luxury-conversion-card {
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 173, 85, .18), transparent 27%),
    radial-gradient(circle at 0% 100%, rgba(50, 199, 244, .11), transparent 33%),
    linear-gradient(135deg, #031033 0%, #1f0d54 42%, #34127e 68%, #0d5fc6 112%);
  box-shadow: 0 34px 90px rgba(7, 26, 77, .23);
}

.luxury-mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, .095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
  transition: transform .25s ease, background-color .25s ease;
}

.luxury-mini-card:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-4px);
}

/* Country cards */
.country-offer {
  min-height: 370px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 34px;
  box-shadow: 0 25px 68px rgba(7, 26, 77, .18);
  transition: transform .28s ease, box-shadow .28s ease;
}

.country-offer:hover {
  box-shadow: 0 34px 82px rgba(7, 26, 77, .24);
  transform: translateY(-6px);
}

.country-offer.egypt {
  background:
    radial-gradient(circle at 86% 12%, rgba(215, 173, 85, .13), transparent 28%),
    linear-gradient(135deg, #041238, #0d439f);
}

.country-offer.sudan {
  background:
    radial-gradient(circle at 88% 10%, rgba(215, 173, 85, .15), transparent 28%),
    linear-gradient(135deg, #351274, #6b2dd0);
}

.country-offer .btn-light {
  min-height: 49px;
  padding-inline: 17px;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

/* Features, testimonials and newsletter */
.feature-card,
.testimonial-card {
  border-color: rgba(7, 26, 77, .075);
  border-radius: 24px;
  box-shadow: var(--kh-magic-shadow-xs);
}

.feature-card:hover,
.testimonial-card:hover {
  border-color: rgba(100, 39, 207, .14);
  box-shadow: var(--kh-magic-shadow-sm);
}

.feature-icon {
  box-shadow: 0 13px 30px rgba(80, 35, 177, .17);
}

.newsletter {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 15%, rgba(215, 173, 85, .17), transparent 27%),
    linear-gradient(135deg, #031033, #24105f 58%, #0a4da7);
  box-shadow: 0 30px 80px rgba(7, 26, 77, .22);
}

/* Shop and filters */
.commerce-page-hero,
.generic-page-hero,
.page-hero {
  background:
    radial-gradient(circle at 12% 15%, rgba(20, 120, 232, .12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(215, 173, 85, .11), transparent 28%),
    linear-gradient(180deg, #fbfcff, #f5f7ff);
}

.khuzama-shop-toolbar {
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 173, 85, .12), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #fff 52%, #f5f7ff 100%);
  box-shadow: var(--kh-magic-shadow-sm);
}

.khuzama-filter-field input,
.khuzama-filter-field select {
  min-height: 52px;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.khuzama-category-chips .chip {
  min-height: 42px;
  border-radius: 999px;
}

.khuzama-shop-conversion-banner {
  border-radius: 25px;
  box-shadow: var(--kh-magic-shadow-xs);
}

/* Single product */
.woocommerce div.product {
  padding: clamp(18px, 3vw, 34px);
  border-color: rgba(7, 26, 77, .075);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 173, 85, .075), transparent 24%),
    linear-gradient(135deg, #fff, #fff 58%, #fbfcff);
  box-shadow: 0 28px 82px rgba(7, 26, 77, .105);
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  border-radius: 26px;
  background: linear-gradient(135deg, #f4f6fb, #eef2fa);
  box-shadow: inset 0 0 0 1px rgba(7, 26, 77, .045);
}

.woocommerce div.product div.images img {
  border-radius: 24px;
}

.woocommerce div.product .product_title {
  color: var(--kh-magic-ink);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.24;
  letter-spacing: -1.2px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #176fd0;
  font-size: 1.62rem !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--kh-magic-muted);
  font-size: .86rem;
  line-height: 1.95;
}

.woocommerce div.product form.cart {
  padding: 18px;
  border-color: rgba(215, 173, 85, .2);
  border-radius: 21px;
  background: linear-gradient(135deg, #fffaf1, #f7f8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.woocommerce div.product form.cart .button {
  min-height: 53px;
  border-radius: 16px !important;
}

.khuzama-product-points span {
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--kh-magic-shadow-xs);
}

.khuzama-product-conversion-box {
  border-radius: 23px;
  box-shadow: var(--kh-magic-shadow-xs);
}

.conversion-box-grid > div {
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.conversion-box-grid > div:hover {
  border-color: rgba(100, 39, 207, .16);
  box-shadow: 0 12px 28px rgba(7, 26, 77, .065);
  transform: translateY(-2px);
}

/* Cart and checkout */
.khuzama-cart-intro,
.khuzama-checkout-intro {
  border-radius: 30px;
  box-shadow: var(--kh-magic-shadow-sm);
}

.woocommerce-cart-form,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
  border-color: rgba(7, 26, 77, .075);
  box-shadow: var(--kh-magic-shadow-sm);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  border-radius: 28px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  min-height: 60px !important;
  border-radius: 18px !important;
  font-size: .88rem !important;
}

.khuzama-bok-payment-box,
.khuzama-receipt-dropzone {
  border-radius: 20px;
}

.khuzama-receipt-dropzone {
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.khuzama-receipt-dropzone:hover {
  border-color: rgba(100, 39, 207, .36);
  box-shadow: 0 14px 34px rgba(7, 26, 77, .075);
  transform: translateY(-2px);
}

/* Footer and fixed navigation */
.prefooter-card {
  border-radius: 29px;
  box-shadow: 0 25px 68px rgba(7, 26, 77, .19);
}

.footer {
  background:
    radial-gradient(circle at 8% 18%, rgba(215, 173, 85, .08), transparent 28%),
    radial-gradient(circle at 92% 82%, rgba(100, 39, 207, .15), transparent 32%),
    linear-gradient(145deg, #020c2a, #071a4d 48%, #21105a);
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.mobile-bottom-nav {
  border-color: rgba(7, 26, 77, .08);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 55px rgba(7, 26, 77, .18);
  backdrop-filter: blur(18px) saturate(145%);
}

.mobile-bottom-nav > a.active {
  color: #5e29ba;
  background: linear-gradient(135deg, rgba(100, 39, 207, .09), rgba(20, 120, 232, .055));
}

.whatsapp-float {
  box-shadow: 0 17px 40px rgba(20, 155, 82, .25);
}

/* Mobile product CTA */
.khuzama-mobile-product-action {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1035;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(7, 26, 77, .085);
  border-radius: 23px;
  background: rgba(255, 255, 255, .955);
  box-shadow: 0 24px 65px rgba(7, 26, 77, .22);
  backdrop-filter: blur(18px) saturate(150%);
}

.khuzama-mobile-product-action__product {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.khuzama-mobile-product-action__image {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  background: #f3f5fa;
}

.khuzama-mobile-product-action__product > div {
  min-width: 0;
}

.khuzama-mobile-product-action__product small,
.khuzama-mobile-product-action__product strong,
.khuzama-mobile-product-action__price {
  display: block;
}

.khuzama-mobile-product-action__product small {
  color: var(--kh-magic-muted);
  font-size: .55rem;
}

.khuzama-mobile-product-action__product strong {
  overflow: hidden;
  max-width: 28vw;
  color: var(--kh-magic-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
}

.khuzama-mobile-product-action__price {
  color: #176fd0;
  font-size: .72rem;
  font-weight: 900;
}

.khuzama-mobile-product-action__price del {
  color: #999;
  font-size: .57rem;
}

.khuzama-mobile-product-action__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 145px;
  min-height: 52px;
  padding-inline: 15px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: var(--kh-magic-gradient);
  box-shadow: 0 15px 36px rgba(70, 29, 160, .25);
  font-size: .73rem;
  font-weight: 900;
}

.khuzama-mobile-product-action__button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.khuzama-product-form-attention {
  animation: khuzama-form-attention .7s ease 2;
}

@keyframes khuzama-form-attention {
  50% { box-shadow: 0 0 0 6px rgba(100, 39, 207, .11); }
}

/* Add-to-cart feedback */
.khuzama-cart-toast {
  position: fixed;
  top: 118px;
  left: 24px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 62px;
  padding: 12px 15px;
  border: 1px solid rgba(7, 26, 77, .08);
  border-radius: 18px;
  color: var(--kh-magic-ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 58px rgba(7, 26, 77, .18);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-12px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.khuzama-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.khuzama-cart-toast i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: #16845f;
}

.khuzama-cart-toast b,
.khuzama-cart-toast small {
  display: block;
}

.khuzama-cart-toast b {
  font-size: .78rem;
}

.khuzama-cart-toast small {
  margin-top: 2px;
  color: var(--kh-magic-muted);
  font-size: .65rem;
}

/* Rendering and motion */
@supports (content-visibility: auto) {
  .category-section,
  .home-products-section,
  .editorial-section,
  .luxury-conversion-section,
  .country-shopping-section,
  .benefits-section,
  .testimonials-section,
  .newsletter-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

@media (hover: none) {
  .khuzama-card-view-cue {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1199.98px) {
  .brand-logo {
    width: 172px;
  }

  .brand-logo img {
    height: 56px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 5vw, 4.4rem);
  }
}

@media (max-width: 991.98px) {
  .main-header {
    background: rgba(255, 255, 255, .96);
  }

  .header-layout {
    min-height: 62px;
  }

  .brand-logo {
    width: auto;
  }

  .brand-logo img {
    width: auto;
    max-width: 148px;
    height: 54px;
  }

  .mobile-search {
    margin-bottom: 9px;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(7, 26, 77, .075);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 55px;
    padding-bottom: 20px;
    text-align: center;
  }

  .hero-copy p,
  .hero-metrics {
    margin-inline: auto;
  }

  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }

  .hero-origin {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
  }

  .home-categories ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .country-offer {
    min-height: 330px;
  }
}

@media (max-width: 767.98px) {
  body.khuzama-site {
    padding-bottom: 86px;
  }

  body.khuzama-cart-page,
  body.khuzama-checkout-page {
    padding-bottom: 108px;
  }

  body.single-product {
    padding-bottom: 98px;
  }

  .section-space {
    padding-block: 62px;
  }

  .section-title {
    font-size: 1.72rem;
  }

  .announcement-content {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
    letter-spacing: -1.7px;
  }

  .hero p {
    font-size: .88rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 8px;
  }

  .hero-trust span {
    min-height: 34px;
    padding-inline: 9px;
    font-size: .64rem;
  }

  .hero-metrics {
    padding-inline: 10px;
  }

  .hero-metrics > div {
    padding-inline: 8px;
    margin-inline: 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .sudanese-signature-card {
    border-radius: 25px;
  }

  .home-categories ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-categories .product-category a {
    padding: 13px 5px 12px;
    border-radius: 20px;
  }

  .home-categories .product-category img {
    width: 84px !important;
    height: 84px !important;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .woocommerce ul.products li.product,
  .khuzama-product-card {
    padding: 8px 8px 11px !important;
    border-radius: 21px;
  }

  .woocommerce ul.products li.product a img {
    margin-bottom: 8px !important;
    border-radius: 17px;
  }

  .khuzama-card-view-cue {
    top: 10px;
    left: 10px;
    min-height: 28px;
    padding-inline: 8px;
    font-size: .54rem;
  }

  .khuzama-card-context {
    display: grid;
    gap: 2px;
    min-height: 32px;
    font-size: .53rem;
  }

  .khuzama-card-category {
    max-width: 100%;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 46px;
    font-size: .75rem !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: .78rem !important;
  }

  .khuzama-card-benefit {
    display: grid;
    gap: 3px;
    font-size: .52rem;
  }

  .woocommerce ul.products li.product .button {
    min-height: 43px;
    font-size: .64rem !important;
  }

  .editorial-banner,
  .luxury-conversion-card,
  .country-offer,
  .newsletter {
    border-radius: 26px;
  }

  .country-offer {
    min-height: 310px;
    padding: 28px;
  }

  .khuzama-cart-toast {
    top: auto;
    right: 12px;
    bottom: 92px;
    left: 12px;
    max-width: none;
  }

  .single-product .mobile-bottom-nav,
  .single-product .whatsapp-float,
  .single-product .back-to-top {
    display: none !important;
  }

  .khuzama-mobile-product-action {
    display: flex;
  }
}

@media (max-width: 480px) {
  .brand-logo img {
    max-width: 112px;
    height: 47px;
  }

  .header-actions {
    gap: 5px;
  }

  .country-pill {
    padding-inline: 8px;
  }

  .country-pill .current-country,
  .country-chevron {
    display: none;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .home-categories ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .khuzama-mobile-product-action__product strong {
    max-width: 22vw;
  }

  .khuzama-mobile-product-action__button {
    min-width: 132px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.khuzama-mobile-product-action__button.is-disabled {
  opacity: .72;
  cursor: pointer;
  box-shadow: none;
}


/* Brand-only adaptation for the new "اطلب الآن" transparent logo. */
.brand-logo {
  width: 118px;
  min-width: 118px;
  justify-content: center;
}
.brand-logo img {
  width: 82px;
  height: 82px;
  max-width: 82px;
  object-fit: contain;
  filter: none !important;
}
.mobile-menu-logo img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  object-fit: contain;
  filter: none !important;
}
.footer-brand {
  width: 150px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.footer-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: none !important;
  opacity: 1;
}
.hero-logo-mark {
  object-fit: contain;
  filter: none !important;
  opacity: .16;
}
.signature-mark img,
.about-logo-card img,
.not-found-logo img {
  object-fit: contain;
  filter: none !important;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  padding: 6px;
}
@media (max-width: 991.98px) {
  .brand-logo { width: 96px; min-width: 96px; }
  .brand-logo img { width: 72px; height: 72px; max-width: 72px; }
  .footer-brand { width: 140px; }
}
@media (max-width: 575.98px) {
  .brand-logo { width: 76px; min-width: 76px; }
  .brand-logo img { width: 62px; height: 62px; max-width: 62px; }
  .mobile-menu-logo img { width: 64px; height: 64px; max-width: 64px; }
  .footer-brand { width: 126px; }
}

/* Gold identity enhancement — v1.6.0 */
:root {
  --kh-gold: #f2c94c;
  --kh-gold-deep: #bf8c0d;
  --kh-gold-bright: #ffdd67;
  --kh-sand: #fff4cf;
  --kh-sand-2: #fffaf0;
  --kh-gold-shadow: 0 18px 48px rgba(191, 140, 13, .20);
}

.section-kicker,
.shop-toolbar-kicker,
.newsletter-kicker,
.cart-intro-kicker,
.otlob-ads-kicker {
  color: var(--kh-gold-deep) !important;
}
.section-kicker::before {
  background: linear-gradient(135deg, var(--kh-gold-bright), var(--kh-gold-deep));
  box-shadow: 0 0 0 5px rgba(242, 201, 76, .15);
}

.btn-brand,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  border: 1px solid rgba(255, 221, 103, .26) !important;
  background: linear-gradient(135deg, #071a4d 0%, #17376f 62%, #bf8c0d 100%) !important;
  box-shadow: 0 16px 38px rgba(7, 26, 77, .20), 0 0 0 1px rgba(242, 201, 76, .08) inset !important;
}
.btn-brand:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #payment #place_order:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  box-shadow: 0 22px 48px rgba(7, 26, 77, .25), 0 0 0 1px rgba(255, 221, 103, .28) inset !important;
}

.header-icon:hover,
.country-pill:hover,
.products-mega-trigger:hover {
  color: var(--kh-gold-deep) !important;
  border-color: rgba(242, 201, 76, .42) !important;
  background: #fffaf0 !important;
}
.nav-categories .nav-link::after,
.woocommerce .cart-collaterals .cart_totals::before {
  background: linear-gradient(90deg, transparent, var(--kh-gold-deep), var(--kh-gold-bright), transparent) !important;
}

.woocommerce ul.products li.product:hover,
.editorial-banner:hover,
.testimonial-card:hover,
.feature-card:hover {
  border-color: rgba(242, 201, 76, .42) !important;
  box-shadow: 0 24px 58px rgba(7, 26, 77, .13), 0 0 0 1px rgba(242, 201, 76, .06) inset !important;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .cart-collaterals .cart_totals .order-total strong {
  color: #a87508 !important;
}
.woocommerce ul.products li.product .onsale {
  color: #2a2108 !important;
  background: linear-gradient(135deg, #ffe989, #e7b81e) !important;
  box-shadow: 0 10px 24px rgba(191, 140, 13, .20);
}

.footer-country-badges span,
.footer-trust-row span,
.hero-trust span,
.signature-points span {
  border-color: rgba(242, 201, 76, .20) !important;
}
.footer-links a:hover,
.footer-contact-list a:hover,
.text-link:hover {
  color: var(--kh-gold-bright) !important;
}

.brand-logo::after {
  background: radial-gradient(ellipse, rgba(242, 201, 76, .54), transparent 68%) !important;
}
.brand-logo img,
.mobile-menu-logo img,
.footer-logo,
.hero-logo-mark,
.signature-mark img,
.about-logo-card img,
.not-found-logo img {
  filter: none !important;
}
.footer-brand {
  border: 1px solid rgba(242, 201, 76, .28);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,250,230,.96));
}

.woocommerce-message { border-right-color: var(--kh-gold-deep) !important; }
.woocommerce-message::before { color: var(--kh-gold-deep) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  color: #2a2108 !important;
  background: #f2c94c !important;
}
