/* Ummah ? Arabic RTL trust-first personal-care storefront */
:root {
  --ummah-cream: #faf8f5;
  --ummah-olive: #2f6b48;
  --ummah-olive-dark: #245538;
  --ummah-pink: #e591ac;
  --ummah-pink-soft: #f5d0dc;
  --ummah-ink: #2a2a2a;
  --ummah-muted: #6b6b6b;
  --ummah-border: #e8e2da;
  --ummah-white: #ffffff;
  --ummah-shadow: 0 8px 28px rgba(47, 107, 72, 0.08);
  --ummah-radius: 16px;
  --ummah-radius-sm: 10px;
  --ummah-font: "Tajawal", system-ui, sans-serif;
  --ummah-whatsapp: #25d366;
  --ummah-wallet: 01015009747;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.ummah-body {
  margin: 0;
  font-family: var(--ummah-font);
  background: var(--ummah-cream);
  color: var(--ummah-ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--ummah-olive);
  text-decoration: none;
}

a:hover {
  color: var(--ummah-olive-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.ummah-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ??? Header ??? */
.ummah-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ummah-border);
}

.ummah-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.ummah-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.ummah-nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ummah-nav a {
  color: var(--ummah-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.ummah-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ummah-pink);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ummah-nav a:hover::after,
.ummah-nav a.active::after {
  transform: scaleX(1);
}

.ummah-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ummah-header__actions a {
  color: var(--ummah-ink);
  font-weight: 500;
  font-size: 0.9rem;
}

.ummah-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-inline-start: 0.25rem;
  border-radius: 999px;
  background: var(--ummah-olive);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.ummah-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.ummah-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ummah-olive);
}

.ummah-mobile-nav {
  display: none;
  border-top: 1px solid var(--ummah-border);
  padding: 0.75rem 0 1rem;
}

.ummah-mobile-nav.is-open {
  display: block;
}

.ummah-mobile-nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ummah-ink);
  font-weight: 500;
}

@media (min-width: 1200px) {
  .ummah-nav {
    display: flex;
  }

  .ummah-menu-toggle {
    display: none;
  }

  .ummah-mobile-nav {
    display: none !important;
  }
}

/* BeauTen header sticky polish */
.header-sticky {
  /* Template uses transition:all — that animates height/transform and causes scroll jump */
  transition: box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.header-area.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  /* Never use the template hide-on-scroll transform */
  transform: none !important;
}

.header-area.header-layoutone.header-sticky.sticky,
.header-area.header-layoutone.header-sticky.transformed {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  transform: none !important;
  animation: none !important;
  background: rgba(250, 248, 245, 0.96);
}

.header-area.header-layoutone .header__logo img,
.header-area.header-layoutone .header__logo img.normal-logo {
  display: block;
  width: auto;
  max-width: 7.5rem;
  max-height: 64px;
  height: auto;
  transition: max-height 0.22s ease, max-width 0.22s ease;
  transform: none;
}

@media only screen and (max-width: 991px) {
  .header-area.header-layoutone .header__logo img,
  .header-area.header-layoutone .header__logo img.normal-logo {
    max-width: 6.25rem;
    max-height: 52px;
  }
}

@media (max-width: 575.98px) {
  .header-area.header-layoutone .header__logo img,
  .header-area.header-layoutone .header__logo img.normal-logo {
    max-width: 5.625rem;
    max-height: 44px;
  }
}

/* Compact: slightly smaller logo + light shadow (never remove size caps) */
.header-area.header-sticky.is-compact {
  box-shadow: 0 6px 18px rgba(42, 42, 40, 0.06);
  background: rgba(250, 248, 245, 0.98);
}

.header-area.header-layoutone.header-sticky.is-compact .header-main {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.header-area.header-layoutone.header-sticky.is-compact .header__logo img,
.header-area.header-layoutone.header-sticky.is-compact .header__logo img.normal-logo {
  max-width: 6.25rem !important;
  max-height: 48px !important;
  height: auto !important;
  width: auto !important;
  transform: none !important;
}

@media (min-width: 1200px) {
  .header-area.header-layoutone.header-sticky.is-compact .header__logo img,
  .header-area.header-layoutone.header-sticky.is-compact .header__logo img.normal-logo {
    max-width: 6.75rem !important;
    max-height: 52px !important;
  }
}

@media (max-width: 575.98px) {
  .header-area.header-layoutone.header-sticky.is-compact .header-main {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .header-area.header-layoutone.header-sticky.is-compact .header__logo img,
  .header-area.header-layoutone.header-sticky.is-compact .header__logo img.normal-logo {
    max-width: 5rem !important;
    max-height: 40px !important;
  }
}

.ummah-mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1rem;
}

/* ??? Buttons ??? */
.ummah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ummah-btn:active {
  transform: scale(0.98);
}

.ummah-btn--primary {
  background: var(--ummah-olive);
  color: #fff;
}

.ummah-btn--primary:hover {
  background: var(--ummah-olive-dark);
  color: #fff;
}

.ummah-btn--pink {
  background: var(--ummah-pink);
  color: #fff;
}

.ummah-btn--pink:hover {
  background: #d97a98;
  color: #fff;
}

.ummah-btn--outline {
  background: transparent;
  border-color: var(--ummah-olive);
  color: var(--ummah-olive);
}

.ummah-btn--outline:hover {
  background: var(--ummah-olive);
  color: #fff;
}

.ummah-btn--ghost {
  background: transparent;
  border-color: var(--ummah-border);
  color: var(--ummah-ink);
}

.ummah-btn--block {
  width: 100%;
}

/* ??? Hero ??? */
.ummah-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(229, 145, 172, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(47, 107, 72, 0.16), transparent 50%),
    linear-gradient(160deg, #faf8f5 0%, #f3efe8 55%, #efe6df 100%);
  padding: 3rem 0 3.5rem;
}

.ummah-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.ummah-hero__brand {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--ummah-olive);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.ummah-hero__slogan {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--ummah-ink);
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.ummah-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ummah-hero__visual {
  display: flex;
  justify-content: center;
}

.ummah-hero__visual img {
  width: min(360px, 100%);
  border-radius: 28px;
  box-shadow: var(--ummah-shadow);
  background: var(--ummah-white);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .ummah-hero {
    padding: 4.5rem 0 5rem;
  }

  .ummah-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ??? Sections ??? */
.ummah-section {
  padding: 3rem 0;
}

.ummah-section__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--ummah-olive);
  margin: 0 0 0.4rem;
  text-align: center;
}

.ummah-section__lead {
  text-align: center;
  color: var(--ummah-muted);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

/* ??? Diagnosis cards ??? */
.ummah-diagnosis-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .ummah-diagnosis-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.ummah-diagnosis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  box-shadow: var(--ummah-shadow);
  color: var(--ummah-ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ummah-diagnosis-card:hover {
  transform: translateY(-4px);
  border-color: var(--ummah-pink);
  color: var(--ummah-ink);
}

.ummah-diagnosis-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ummah-pink-soft), #fff);
  color: var(--ummah-olive);
  font-size: 1.6rem;
  font-weight: 800;
}

.ummah-diagnosis-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.ummah-diagnosis-card__desc {
  font-size: 0.85rem;
  color: var(--ummah-muted);
  margin: 0;
}

/* ??? Product cards ??? */
.ummah-products-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .ummah-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .ummah-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ummah-product-card {
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ummah-product-card:hover {
  box-shadow: var(--ummah-shadow);
  transform: translateY(-3px);
}

.ummah-product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: #f3efe9;
  overflow: hidden;
}

.ummah-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ummah-product-card__badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  background: var(--ummah-pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.ummah-product-card__body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ummah-product-card__name-ar {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--ummah-ink);
}

.ummah-product-card__name-en {
  font-size: 0.8rem;
  color: var(--ummah-muted);
  margin: 0;
  direction: ltr;
  text-align: end;
}

.ummah-product-card__benefit {
  font-size: 0.85rem;
  color: var(--ummah-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ummah-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.ummah-product-card__price {
  font-weight: 800;
  color: var(--ummah-olive);
  font-size: 1rem;
}

.ummah-product-card__rating {
  font-size: 0.8rem;
  color: #c9a227;
  white-space: nowrap;
}

.ummah-product-card__actions {
  margin-top: 0.65rem;
}

/* ??? PDP ??? */
.ummah-pdp {
  padding: 1.5rem 0 3rem;
}

.ummah-pdp__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ummah-pdp__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ummah-pdp__gallery-main {
  border-radius: var(--ummah-radius);
  overflow: hidden;
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  aspect-ratio: 1;
}

.ummah-pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ummah-pdp__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.ummah-pdp__thumbs img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}

.ummah-pdp__thumbs img.active {
  border-color: var(--ummah-olive);
}

.ummah-pdp__title-ar {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ummah-olive);
  margin: 0 0 0.25rem;
}

.ummah-pdp__title-en {
  color: var(--ummah-muted);
  margin: 0 0 0.75rem;
  direction: ltr;
  text-align: end;
}

.ummah-pdp__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ummah-ink);
  margin-bottom: 1rem;
}

.ummah-pdp__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
}

.ummah-accordion .accordion-button {
  font-family: var(--ummah-font);
  font-weight: 700;
  color: var(--ummah-olive);
  background: var(--ummah-white);
  box-shadow: none;
}

.ummah-accordion .accordion-button:not(.collapsed) {
  background: #f3f8f4;
  color: var(--ummah-olive-dark);
  box-shadow: none;
}

.ummah-accordion .accordion-item {
  border: 1px solid var(--ummah-border);
  margin-bottom: 0.5rem;
  border-radius: var(--ummah-radius-sm) !important;
  overflow: hidden;
  background: var(--ummah-white);
}

.ummah-reviews {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ummah-border);
}

.ummah-review {
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.ummah-review__stars {
  color: #c9a227;
  font-size: 0.9rem;
}

/* ??? About ??? */
.ummah-about-hero {
  padding: 3rem 0 1rem;
  text-align: center;
}

.ummah-about-hero h1 {
  color: var(--ummah-olive);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.ummah-founder {
  display: grid;
  gap: 1.5rem;
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  padding: 1.5rem;
  box-shadow: var(--ummah-shadow);
}

@media (min-width: 768px) {
  .ummah-founder {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}

.ummah-founder__avatar {
  width: 140px;
  height: 140px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ummah-pink-soft);
}

.ummah-ingredients {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .ummah-ingredients {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ummah-ingredient {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--ummah-white);
  border-radius: var(--ummah-radius);
  border: 1px solid var(--ummah-border);
}

.ummah-ingredient__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f2ec, #fff);
  color: var(--ummah-olive);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ??? Diagnosis page ??? */
.ummah-concerns-list {
  display: grid;
  gap: 0.85rem;
}

.ummah-concern-item {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius-sm);
  color: var(--ummah-ink);
}

.ummah-concern-item:hover {
  border-color: var(--ummah-olive);
}

/* ??? Checkout ??? */
.ummah-checkout .checkout-section {
  background: var(--ummah-white);
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ummah-checkout .payment-method {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius-sm);
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.ummah-checkout .payment-method:has(input:checked) {
  border-color: var(--ummah-olive);
  background: #f3f8f4;
}

.ummah-wallet-box {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f8f4f0;
  border-radius: var(--ummah-radius-sm);
  border: 1px dashed var(--ummah-pink);
}

.ummah-wallet-box.is-visible {
  display: block;
}

.ummah-wallet-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ummah-olive);
  direction: ltr;
  unicode-bidi: isolate;
}

/* ——— Floating WhatsApp (hidden for now) ——— */
.ummah-whatsapp-float {
  display: none !important;
}

/* ??? Chatbot widget ??? */
.ummah-chatbot {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 1080;
  font-family: var(--ummah-font);
}

.ummah-chatbot__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--ummah-olive);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 107, 72, 0.35);
}

.ummah-chatbot__panel {
  display: none;
  position: absolute;
  bottom: 70px;
  inset-inline-end: 0;
  width: min(340px, calc(100vw - 2rem));
  height: 420px;
  background: var(--ummah-white);
  border-radius: 18px;
  border: 1px solid var(--ummah-border);
  box-shadow: var(--ummah-shadow);
  overflow: hidden;
  flex-direction: column;
}

.ummah-chatbot__panel.is-open {
  display: flex;
}

.ummah-chatbot__head {
  background: var(--ummah-olive);
  color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ummah-chatbot__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.ummah-chatbot__close:hover,
.ummah-chatbot__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.ummah-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  background: var(--ummah-cream);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ummah-chatbot__bubble {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ummah-chatbot__bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--ummah-border);
}

.ummah-chatbot__bubble--user {
  align-self: flex-end;
  background: var(--ummah-pink);
  color: #fff;
}

.ummah-chatbot__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid var(--ummah-border);
  background: #fff;
}

.ummah-chatbot__form input {
  flex: 1;
  border: 1px solid var(--ummah-border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.ummah-chatbot__form button {
  border: 0;
  border-radius: 999px;
  background: var(--ummah-olive);
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ??? Footer ??? */
.ummah-footer {
  margin-top: 3rem;
  padding: 2rem 0 5.5rem;
  background: #f0ebe4;
  border-top: 1px solid var(--ummah-border);
  color: var(--ummah-muted);
  text-align: center;
}

.ummah-footer a {
  color: var(--ummah-olive);
  font-weight: 600;
}

.ummah-footer__brand {
  color: var(--ummah-olive);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.ummah-breadcrumb {
  font-size: 0.85rem;
  color: var(--ummah-muted);
  margin-bottom: 1.25rem;
}

.ummah-breadcrumb a {
  color: var(--ummah-olive);
}

/* Listing / cart page layout (BeauTen + Ummah) */
.collection-header {
  padding: 2.5rem 0 0.75rem;
  text-align: center;
}

.collection-title-main {
  color: var(--ummah-olive);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.collection-content {
  padding-bottom: 3rem;
}

.collection-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.collection-sidebar.filters-ml {
  background: #fff;
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  padding: 1rem;
  position: sticky;
  top: 90px;
}

.filters-ml-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--ummah-olive);
  margin-bottom: 0.75rem !important;
}

.filters-ml-sep { margin-inline: 0.35rem; opacity: 0.4; }
.filters-ml-count { font-weight: 500; color: var(--ummah-muted); font-size: 0.85rem; }

.filter-group {
  border-bottom: 1px solid var(--ummah-border);
  padding: 0.65rem 0;
}

.filter-group-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font-weight: 700;
  color: var(--ummah-ink);
}

.filter-group-title { font-size: 0.8rem; letter-spacing: 0.04em; }
.filter-group-content { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.5rem 0 0.25rem; }
.filter-group-content.collapsed { display: none; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.collection-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.collection-sort-ml { display: flex; align-items: center; gap: 0.5rem; }
.collection-sort-label { margin: 0; font-size: 0.9rem; color: var(--ummah-muted); }
.collection-sort-select { max-width: 220px; }

.shop-filters-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--ummah-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.shop-filters-close { display: none; border: 0; background: none; }
.shop-filters-backdrop { display: none; }

.ummah-cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--ummah-border);
  border-radius: var(--ummah-radius);
  margin-bottom: 0.85rem;
}

.ummah-cart-item__img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f0ebe4;
}

@media (max-width: 991.98px) {
  .collection-layout { grid-template-columns: 1fr; }
  .shop-filters-toggle { display: inline-flex; }
  .shop-filters-close { display: inline-flex; }
  .collection-sidebar.filters-ml {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 88vw);
    max-height: 100vh;
    overflow: auto;
    z-index: 1050;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    top: 0;
  }
  html[dir="rtl"] .collection-sidebar.filters-ml { transform: translateX(-100%); }
  body.shop-filters-open .collection-sidebar.filters-ml { transform: translateX(0); }
  body.shop-filters-open .shop-filters-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1045;
  }
}

.ummah-alert {
  border-radius: var(--ummah-radius-sm);
}

.site-form-alerts {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.site-form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ummah-border);
  box-shadow: var(--ummah-shadow);
}

.site-form-alert--success {
  border-color: var(--ummah-olive);
}

.site-form-alert--error {
  border-color: #c0392b;
}

.site-form-alert__close {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.ummah-header-search { position: relative; min-width: 180px; }
.ummah-header-search .form-control { border-radius: 999px; border-color: var(--ummah-border); }

.ummah-header-account {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.45rem;
  width: auto !important;
  height: auto !important;
  min-height: 2rem;
  padding: 0.35rem 0.7rem !important;
  border-radius: 999px !important;
  background: rgba(47, 107, 72, 0.08) !important;
  border: 1px solid rgba(47, 107, 72, 0.14) !important;
  color: var(--ummah-olive, #2f6b48) !important;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  max-width: 11rem;
}

.ummah-header-account i {
  font-size: 0.85rem !important;
  opacity: 0.9;
  flex-shrink: 0;
  line-height: 1;
}

.ummah-header-account__name {
  font-family: Tajawal, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ummah-header-account:hover {
  background: rgba(229, 145, 172, 0.16) !important;
  border-color: rgba(229, 145, 172, 0.45) !important;
  color: #c45d7f !important;
}
.ummah-search-suggest {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--ummah-border); border-radius: 12px;
  box-shadow: var(--ummah-shadow); max-height: 280px; overflow: auto;
}
.ummah-search-suggest a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ummah-ink);
  border-bottom: 1px solid var(--ummah-border);
}
.ummah-search-suggest a:last-child { border-bottom: 0; }
.ummah-search-suggest a:hover { background: var(--ummah-cream); color: var(--ummah-olive); }

.header__navicon .side-toggle .bar-icon {
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}
/* Compact mobile side drawer ? no scroll */
body.side-info-open { overflow: hidden; }
.side-info.info-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.offcanvas-overlay.info-open,
.offcanvas-overlay.overlay-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.side-info .side-info-content {
  min-height: 0 !important;
  max-height: 100dvh !important;
  height: 100% !important;
  overflow: hidden !important;
}
.side-info .offset-header {
  padding: 14px 16px !important;
  flex-shrink: 0;
}
.side-info .offset-logo img {
  max-height: 40px;
  width: auto;
}
.side-info .side-info-close {
  width: 34px;
  height: 34px;
  line-height: 32px;
  font-size: 14px;
}
.side-info .mobile-menu {
  flex: 1 1 auto !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 8px 14px 4px !important;
}
.side-info .mobile-menu .mobile-nav > li {
  margin-bottom: 0 !important;
}
.side-info .mobile-menu .mobile-nav > li > a,
.side-info .mobile-menu a {
  color: #2a2a2a;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 8px 10px !important;
  text-decoration: none;
  font-size: 0.95rem !important;
  font-family: Tajawal, sans-serif;
  line-height: 1.3;
  border-radius: 10px;
}
.side-info .mobile-menu a:hover {
  color: #2f6b48;
  background: rgba(47, 107, 72, 0.06);
}
.side-info .offset-widget-box {
  margin-top: auto !important;
  padding: 12px 16px 16px !important;
  flex-shrink: 0;
}
.side-info .offset-widget-box .title { display: none; }
.side-info .offset-social {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
.ummah-side-nav__btn {
  background: none;
  border: 0;
  padding: 8px 10px;
  color: #2a2a2a;
  font-weight: 700;
  font-family: Tajawal, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  text-align: right;
  border-radius: 10px;
}
.ummah-side-nav__btn:hover { color: #2f6b48; background: rgba(47, 107, 72, 0.06); }
.footer1-widget__nav-link { display: block; color: rgba(255,255,255,.75); margin-bottom: 0.55rem; text-decoration: none; }
.footer1-widget__nav-link:hover { color: #fff; }
.footer1-widget__contact-link { display: block; color: rgba(255,255,255,.8); margin-bottom: 0.5rem; text-decoration: none; }

/* Compact footer spacing */
.footer1.section-spacing-top-120,
.footer1 {
  padding-top: 0 !important;
}
.footer1 .footer1-main {
  padding: 48px 0 40px !important;
}
@media (max-width: 991px) {
  .footer1 .footer1-main {
    padding: 36px 0 28px !important;
  }
}
.footer1 .footer1-widget__title {
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
}
.footer1 .footer1-bottom {
  padding-top: 0;
  padding-bottom: 0;
}
.footer1 .footer1-bottom__wrapper {
  padding: 16px 0 !important;
}

/* ??? Mobile storefront alignment polish ??? */
@media (max-width: 991.98px) {
  .header-main .container {
    padding-inline: 0.85rem;
  }

  .header__logo img.normal-logo {
    max-height: 44px;
    width: auto;
  }

  .header-right {
    gap: 0.45rem !important;
  }

  .header__search {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 160px;
  }

  .ummah-header-search {
    min-width: 0;
    width: 100%;
  }

  .ummah-header-search .form-control {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .ua-wrap {
    width: min(1100px, calc(100% - 1.25rem));
  }

  .ua-nav {
    gap: 0.4rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .ua-nav a {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
  }

  .ua-card {
    padding: 1.1rem 1rem;
  }

  .ua-actions {
    flex-direction: column;
  }

  .ua-actions .ua-btn,
  .ua-actions .btn {
    width: 100%;
  }

  .up-hero {
    padding-block: 1.35rem;
  }

  .up-hero__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .up-section {
    padding: 1.75rem 0 2.5rem;
  }

  .up-container {
    width: min(1350px, calc(100% - 1.25rem));
  }

  .legal-doc h2 {
    font-size: 1.05rem;
  }

  .auth-card {
    padding: 1.35rem 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .footer1-bottom__wrapper {
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
  }

  .ua-table {
    min-width: 520px;
  }

  .ua-card.p-0 .table-responsive {
    margin: 0;
  }

  .ummah-product-card__actions {
    flex-direction: column;
  }

  .ummah-product-card__actions .btn,
  .ummah-product-card__actions a {
    width: 100%;
    justify-content: center;
  }

  .ummah-product-card__name-ar {
    font-size: 0.95rem;
  }

  .ummah-product-card__name-en {
    font-size: 0.78rem;
  }
}




/* ??? Mobile app-style bottom nav ??? */
.ummah-bottom-nav {
  display: none;
}
@media (max-width: 1199.98px) {
  .ummah-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1090;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    min-height: 3.85rem;
    padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(253, 250, 247, 0.96);
    border-top: 1px solid rgba(47, 107, 72, 0.12);
    box-shadow: 0 -8px 28px rgba(30, 40, 30, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.ummah-body {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }
}
.ummah-bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.2rem 0.1rem;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.15s ease;
}
.ummah-bottom-nav__item i {
  font-size: 1.15rem;
  line-height: 1;
}
.ummah-bottom-nav__item span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ummah-bottom-nav__item:hover,
.ummah-bottom-nav__item:focus-visible {
  color: var(--ummah-olive, #2F6B48);
}
.ummah-bottom-nav__item.is-active {
  color: var(--ummah-olive, #2F6B48);
}
.ummah-bottom-nav__item.is-active i {
  transform: translateY(-1px);
}
.ummah-bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ummah-bottom-nav__count {
  position: absolute;
  top: -0.45rem;
  inset-inline-start: 0.7rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}
.ummah-bottom-nav__dot {
  position: absolute;
  top: -0.55rem;
  inset-inline-end: -0.85rem;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: var(--primary-two, #E591AC);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
