:root {
  --cat-purple: #5b16b9;
  --cat-violet: #7c22d7;
  --cat-magenta: #c51cf1;
  --cat-ink: #24112f;
  --cat-muted: #746b7c;
  --cat-line: #e9e3ee;
  --cat-soft: #f7f2fb;
  --cat-shadow: 0 18px 48px rgba(56, 24, 78, .08);
}

.wf-catalog,
.wf-catalog * { box-sizing: border-box; }
.wf-catalog {
  min-height: 100vh;
  color: var(--cat-ink);
  background:
    radial-gradient(circle at 72% 0, rgba(174, 80, 245, .10), transparent 25rem),
    linear-gradient(180deg, #fff 0, #fbf9fd 36%, #f8f6fa 100%);
  font-family: Inter, "Noto Sans Arabic", sans-serif;
}
.wf-catalog[dir="rtl"],
.wf-catalog[dir="rtl"] button,
.wf-catalog[dir="rtl"] input,
.wf-catalog[dir="rtl"] select,
.wf-catalog[dir="rtl"] textarea {
  font-family: "IBM Plex Sans Arabic", Inter, sans-serif;
}
.wf-catalog[dir="rtl"] { direction: rtl; text-align: right; }
body:has(.wf-catalog) .wf-global-header,
body:has(.wf-catalog) .wf-global-header-inner { direction: ltr; }
body:has(.wf-catalog) > .site-footer { display: none !important; }
.wf-catalog-shell { width: min(1320px, calc(100% - 44px)); margin: auto; padding: 24px 0 76px; }
.wf-catalog a { color: inherit; }
.wf-catalog svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wf-catalog-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; color: #8a8190; font-size: 12px; }
.wf-catalog-breadcrumb a { color: #6f6279; text-decoration: none; }
.wf-catalog-breadcrumb svg { width: 13px; height: 13px; }
.wf-catalog[dir="rtl"] .wf-catalog-breadcrumb svg { transform: scaleX(-1); }

.wf-catalog-flashes { display: grid; gap: 8px; margin: 0 0 16px; }
.wf-catalog-flash { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid #d8c1f3; border-radius: 14px; background: #f6efff; color: #4c167e; font-weight: 700; }
.wf-catalog-flash.error { background: #fff0f2; border-color: #ffc8d0; color: #9f2035; }
.wf-catalog-flash button { border: 0; background: none; font-size: 22px; cursor: pointer; }

.wf-catalog-hero {
  display: grid;
  grid-template-columns: minmax(340px, 1.12fr) minmax(360px, .95fr) minmax(290px, .72fr);
  align-items: center;
  gap: 28px;
  padding: 19px 0 24px;
}
.wf-catalog-kicker { display: block; margin-bottom: 9px; color: #7540a4; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.wf-catalog-hero h1 { max-width: 570px; margin: 0; font-size: clamp(35px, 3.35vw, 52px); line-height: 1.01; letter-spacing: -.05em; }
.wf-catalog-hero h1 span { display: block; }
.wf-catalog-hero h1 em { display: block; width: fit-content; color: var(--cat-violet); font-style: normal; text-decoration: underline; text-decoration-color: #d946ef; text-decoration-thickness: 4px; text-underline-offset: 7px; }
.wf-catalog-hero p { max-width: 570px; margin: 16px 0 0; color: var(--cat-muted); font-size: 14px; line-height: 1.65; }
.wf-catalog[dir="rtl"] .wf-catalog-hero h1 { font-size: clamp(34px, 3.1vw, 48px); line-height: 1.24; letter-spacing: 0; }
.wf-catalog[dir="rtl"] .wf-catalog-hero p { line-height: 1.9; }

.wf-catalog-search { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid #ddd3e5; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--cat-shadow); }
.wf-catalog-search > svg { width: 21px; height: 21px; color: #7943a4; }
.wf-catalog-search input { width: 100%; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--cat-ink); font: inherit; font-size: 13px; }
.wf-catalog-search input::placeholder { color: #99909f; }
.wf-catalog-search button { min-width: 105px; height: 42px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--cat-purple), var(--cat-magenta)); color: #fff; font: 800 12px Inter, "Noto Sans Arabic", sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(111, 24, 194, .20); }
.wf-catalog[dir="rtl"] .wf-catalog-search { padding: 7px 14px 7px 7px; }

.wf-catalog-trust { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.wf-catalog-trust div { min-width: 0; min-height: 80px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 10px; border-inline-start: 1px solid var(--cat-line); text-align: center; }
.wf-catalog-trust div:last-child { border-inline-end: 1px solid var(--cat-line); }
.wf-catalog-trust svg { width: 23px; height: 23px; color: #7421c2; }
.wf-catalog-trust b { max-width: 90px; font-size: 10px; line-height: 1.35; }

.wf-catalog-toolbar { display: grid; gap: 11px; padding: 11px 0 12px; border-top: 1px solid rgba(229,220,235,.75); }
.wf-catalog-categories { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; }
.wf-catalog-categories::-webkit-scrollbar { display: none; }
.wf-catalog-categories a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #e4dce9; border-radius: 10px; background: rgba(255,255,255,.92); color: #56445f; text-decoration: none; font-size: 11px; font-weight: 750; }
.wf-catalog-categories a svg { width: 15px; height: 15px; }
.wf-catalog-categories a.active { border-color: transparent; background: linear-gradient(135deg, var(--cat-purple), var(--cat-magenta)); color: #fff; box-shadow: 0 9px 20px rgba(112, 29, 196, .20); }
.wf-catalog-filters { display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.wf-catalog-filters::-webkit-scrollbar { display: none; }
.wf-catalog-filters label { position: relative; flex: 0 0 auto; }
.wf-catalog-filters span { position: absolute; z-index: 1; top: 6px; inset-inline-start: 10px; color: #9a8fa2; font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.wf-catalog-filters select { min-width: 126px; height: 45px; padding: 16px 30px 4px 10px; border: 1px solid #e3dbe8; border-radius: 10px; outline: 0; background: #fff; color: #44344d; font: 650 10px Inter, "Noto Sans Arabic", sans-serif; cursor: pointer; }
.wf-catalog[dir="rtl"] .wf-catalog-filters select { padding: 16px 10px 4px 30px; }

.wf-catalog-result-head { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 13px; color: #5c4d65; font-size: 11px; }
.wf-catalog-result-head a { color: var(--cat-purple); font-weight: 800; }

.wf-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.wf-product-card { min-width: 0; overflow: hidden; border: 1px solid #e8e1ed; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(49, 22, 69, .045); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.wf-product-card:hover { transform: translateY(-3px); border-color: #d7c6e4; box-shadow: 0 18px 40px rgba(67, 27, 96, .10); }
.wf-product-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.wf-product-image { position: relative; overflow: hidden; aspect-ratio: 1.14; background: linear-gradient(145deg, #f5f2f7, #fff); }
.wf-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.wf-product-card:hover .wf-product-image img { transform: scale(1.025); }
.wf-product-source,
.wf-product-featured { position: absolute; top: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(42,17,57,.10); font-size: 8px; font-weight: 900; letter-spacing: .02em; }
.wf-product-source { inset-inline-start: 10px; }
.wf-product-featured { inset-inline-end: 10px; background: #7020ca; color: #fff; }
.wf-product-copy { padding: 12px; }
.wf-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #918694; font-size: 9px; }
.wf-product-meta b { overflow: hidden; color: #493651; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wf-product-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-product-copy h2 { min-height: 38px; display: -webkit-box; overflow: hidden; margin: 7px 0 4px; font-size: 14px; line-height: 1.34; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wf-product-copy p { height: 31px; display: -webkit-box; overflow: hidden; margin: 0; color: #857a8b; font-size: 10px; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wf-product-price { display: block; margin-top: 11px; }
.wf-product-price span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 7px; border-radius: 9px; background: linear-gradient(135deg, var(--cat-purple), var(--cat-magenta)); color: #fff; text-align: center; font-size: 10px; font-weight: 850; }
.wf-product-price svg { width: 14px; height: 14px; }
.wf-catalog[dir="rtl"] .wf-product-price svg { transform: scaleX(-1); }

.wf-catalog-empty { padding: 75px 20px; border: 1px dashed #d8cbe1; border-radius: 22px; background: #fff; text-align: center; }
.wf-catalog-empty > svg { width: 40px; height: 40px; color: #8754b0; }
.wf-catalog-empty h2 { margin: 12px 0 6px; }
.wf-catalog-empty p { color: var(--cat-muted); }
.wf-catalog-empty a { display: inline-block; margin-top: 10px; padding: 11px 17px; border-radius: 10px; background: #6f22c7; color: #fff; text-decoration: none; font-weight: 800; }
.wf-catalog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 28px 0 8px; }
.wf-catalog-pagination a { justify-self: start; padding: 10px 14px; border: 1px solid #ded4ec; border-radius: 12px; background: #fff; color: #5b21b6; font-weight: 800; }
.wf-catalog-pagination a:last-child { justify-self: end; }
.wf-catalog-pagination b { color: #574963; }

.wf-product-overlay { position: fixed; z-index: 1100; inset: 0; border: 0; background: rgba(25,12,36,.64); backdrop-filter: blur(4px); cursor: pointer; }
.wf-product-drawer { position: fixed; z-index: 1101; top: 0; right: 0; width: min(560px, 100%); height: 100dvh; display: flex; flex-direction: column; background: #fff; box-shadow: -22px 0 70px rgba(19,7,29,.28); }
.wf-catalog[dir="rtl"] .wf-product-drawer { right: auto; left: 0; }
.wf-product-drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid #eee7f2; }
.wf-product-drawer > header small { color: #8b5cad; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.wf-product-drawer > header h2 { margin: 3px 0 0; font-size: 17px; }
.wf-product-drawer > header button { width: 39px; height: 39px; border: 1px solid #e6ddeb; border-radius: 50%; background: #fff; color: #482357; font-size: 23px; cursor: pointer; }
.wf-drawer-scroll { overflow: auto; padding: 17px 21px 30px; }
.wf-drawer-gallery { display: grid; grid-template-columns: 1fr 68px; gap: 9px; }
.wf-drawer-main { overflow: hidden; aspect-ratio: 1.18; border-radius: 15px; background: #f7f5f9; }
.wf-drawer-main img { width: 100%; height: 100%; object-fit: contain; }
.wf-drawer-thumbs { display: grid; align-content: start; gap: 7px; }
.wf-drawer-thumbs button { overflow: hidden; aspect-ratio: 1; padding: 2px; border: 1px solid #e3dbe8; border-radius: 9px; background: #f8f6fa; cursor: pointer; }
.wf-drawer-thumbs button.active { border: 2px solid #971fe5; }
.wf-drawer-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.wf-drawer-label { display: inline-block; margin: 14px 0 7px; padding: 7px 11px; border-radius: 8px; background: linear-gradient(135deg,#6b20ca,#c023ef); color: #fff; font-size: 9px; font-weight: 850; }
.wf-drawer-scroll h1 { margin: 0 0 7px; font-size: 23px; line-height: 1.2; }
.wf-drawer-store { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #7e7087; font-size: 10px; }
.wf-drawer-store b { color: #4d1f6b; }
.wf-drawer-store span { color: #128159; }
.wf-drawer-store i { display: inline-grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #18ad74; color: #fff; font-style: normal; }
.wf-drawer-description { margin: 11px 0; color: #75687c; font-size: 12px; line-height: 1.55; }
.wf-drawer-price { display: grid; gap: 3px; margin: 12px 0; padding: 13px 15px; border-radius: 12px; background: linear-gradient(100deg,#f5edff,#fff2ff); }
.wf-drawer-price strong { color: #7417c4; font-size: 21px; }
.wf-drawer-price small { color: #7c7084; font-size: 10px; }
.wf-product-drawer fieldset { margin: 16px 0; padding: 0; border: 0; }
.wf-product-drawer legend,
.wf-drawer-quantity > span,
.wf-drawer-note > span { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 850; }
.wf-option-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.wf-option-grid label { position: relative; }
.wf-option-grid input { position: absolute; opacity: 0; pointer-events: none; }
.wf-option-grid span { min-width: 55px; height: 39px; display: grid; place-items: center; padding: 0 11px; border: 1px solid #e2d9e8; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.wf-option-grid input:checked + span { border-color: #8c20db; background: #761ac8; color: #fff; box-shadow: 0 7px 18px rgba(116,26,200,.18); }
.wf-drawer-quantity { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.wf-drawer-quantity > div { display: grid; grid-template-columns: 38px 43px 38px; overflow: hidden; border: 1px solid #e4dbe9; border-radius: 10px; }
.wf-drawer-quantity button,
.wf-drawer-quantity input { height: 38px; border: 0; background: #fff; text-align: center; font: inherit; }
.wf-drawer-quantity button { color: #7720c5; font-size: 19px; cursor: pointer; }
.wf-drawer-quantity input { border-inline: 1px solid #eee7f2; }
.wf-drawer-note textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid #e3dae8; border-radius: 10px; font: inherit; }
.wf-drawer-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 14px 0; }
.wf-drawer-facts div { min-width: 0; padding: 9px; border: 1px solid #ebe3ef; border-radius: 9px; background: #fcfafd; }
.wf-drawer-facts small { display: block; overflow: hidden; color: #94879b; font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wf-drawer-facts b { display: block; overflow: hidden; margin-top: 3px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wf-drawer-submit { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg,var(--cat-purple),var(--cat-magenta)); box-shadow: 0 13px 28px rgba(128,29,207,.22); color: #fff; font: 850 13px Inter,"Noto Sans Arabic",sans-serif; cursor: pointer; }
.wf-drawer-submit:disabled { opacity: .65; cursor: wait; }
.wf-drawer-promise { margin: 9px 0 0; color: #74687b; font-size: 9px; line-height: 1.45; text-align: center; }
.wf-catalog[dir="rtl"] .wf-product-drawer { font-family: "IBM Plex Sans Arabic",Inter,sans-serif; }
.wf-catalog[dir="rtl"] .wf-drawer-submit b { transform: scaleX(-1); }

body:has(.wf-catalog) .wf-whatsapp-float { width: 52px; height: 52px; right: 17px; bottom: 17px; }

@media (max-width: 1120px) {
  .wf-catalog-hero { grid-template-columns: 1fr 1fr; }
  .wf-catalog-trust { grid-column: 1 / -1; max-width: 620px; justify-self: end; }
  .wf-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 821px) {
  .wf-catalog-toolbar { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
}

@media (max-width: 820px) {
  .wf-catalog-hero { grid-template-columns: 1fr; gap: 18px; }
  .wf-catalog-hero-copy { text-align: center; }
  .wf-catalog-hero h1,
  .wf-catalog-hero p { margin-inline: auto; }
  .wf-catalog-hero h1 em { margin-inline: auto; }
  .wf-catalog[dir="rtl"] .wf-catalog-hero-copy { text-align: right; }
  .wf-catalog[dir="rtl"] .wf-catalog-hero h1,
  .wf-catalog[dir="rtl"] .wf-catalog-hero p { margin-inline: 0; }
  .wf-catalog[dir="rtl"] .wf-catalog-hero h1 em { margin-inline: 0; }
  .wf-catalog-trust { grid-column: auto; width: 100%; max-width: none; justify-self: stretch; }
  .wf-catalog-filters { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .wf-catalog-shell { width: calc(100% - 20px); padding: 14px 0 58px; }
  .wf-catalog-breadcrumb { margin-bottom: 11px; }
  .wf-catalog-hero { padding: 10px 0 15px; }
  .wf-catalog-kicker { font-size: 9px; }
  .wf-catalog-hero h1 { max-width: 480px; font-size: clamp(31px, 9.2vw, 41px); line-height: 1.08; }
  .wf-catalog[dir="rtl"] .wf-catalog-hero h1 { max-width: 100%; font-size: clamp(29px, 7.8vw, 36px); line-height: 1.35; }
  .wf-catalog-hero p { margin-top: 14px; font-size: 12px; }
  .wf-catalog-search { grid-template-columns: 20px minmax(0,1fr) auto; border-radius: 14px; }
  .wf-catalog-search input { font-size: 11px; }
  .wf-catalog-search button { min-width: 78px; padding: 0 10px; }
  .wf-catalog-trust div { min-height: 66px; padding: 7px 4px; }
  .wf-catalog-trust svg { width: 20px; height: 20px; }
  .wf-catalog-trust b { font-size: 8px; }
  .wf-catalog-toolbar { padding-top: 8px; }
  .wf-catalog-categories a { padding: 8px 11px; font-size: 9px; }
  .wf-catalog-filters { display: grid; grid-template-columns: repeat(4, minmax(118px,1fr)); }
  .wf-catalog-filters select { width: 100%; min-width: 118px; }
  .wf-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .wf-product-card { border-radius: 13px; }
  .wf-product-image { aspect-ratio: 1; }
  .wf-product-copy { padding: 9px; }
  .wf-product-copy h2 { min-height: 34px; margin-top: 6px; font-size: 11.5px; }
  .wf-product-meta { font-size: 7px; }
  .wf-product-copy p { display: none; }
  .wf-product-price { margin-top: 8px; }
  .wf-product-price span { padding: 9px 3px; font-size: 8.5px; }
  .wf-product-source,
  .wf-product-featured { top: 7px; padding: 4px 6px; font-size: 6.5px; }
  .wf-product-source { inset-inline-start: 7px; }
  .wf-product-featured { inset-inline-end: 7px; }
  .wf-product-drawer { top: auto; bottom: 0; width: 100%; height: min(93dvh, 850px); border-radius: 22px 22px 0 0; }
  .wf-catalog[dir="rtl"] .wf-product-drawer { right: 0; left: 0; }
  .wf-product-drawer > header { padding: 14px 16px; }
  .wf-drawer-scroll { padding: 13px 15px 24px; }
  .wf-drawer-gallery { grid-template-columns: 1fr 59px; }
  .wf-drawer-scroll h1 { font-size: 19px; }
  .wf-drawer-store { display: grid; justify-content: stretch; }
  body:has(.wf-catalog) .wf-whatsapp-float { width: 48px; height: 48px; right: 11px; bottom: 11px; }
}

@media (max-width: 360px) {
  .wf-catalog-search button { min-width: 66px; font-size: 10px; }
  .wf-product-copy { padding: 7px; }
  .wf-product-copy h2 { font-size: 10.5px; }
  .wf-product-price span svg { display: none; }
  .wf-drawer-facts { grid-template-columns: 1fr 1fr; }
}
