/* Product catalog — isolated styles; existing store and Tetris styles remain unchanged. */
.fahmi-catalog{direction:rtl;max-width:1170px;width:100%;box-sizing:border-box;height:calc(100dvh - 170px - 72px - env(safe-area-inset-bottom));max-height:calc(100dvh - 170px - 72px - env(safe-area-inset-bottom));margin:170px auto 0;padding:16px 18px 24px;color:#191919;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;min-height:0}
.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.catalog-heading h1{font-size:23px;margin:0 0 5px;font-weight:750}
.catalog-heading p{margin:0;color:#777;font-size:13px}
.catalog-admin-link{border:1px solid #ddd;border-radius:10px;padding:8px 12px;color:inherit;text-decoration:none;font-size:12px;white-space:nowrap}
.catalog-filters{display:flex;gap:8px;overflow:auto;padding:3px 0 14px;scrollbar-width:thin}
.catalog-chip{border:1px solid #ddd;background:transparent;color:inherit;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.catalog-chip.active{background:#171717;color:#fff;border-color:#171717}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.catalog-card{border:1px solid #e8e8e8;border-radius:14px;overflow:hidden;background:#fff;min-width:0;box-shadow:0 2px 8px #00000006}
.catalog-image{width:100%;height:155px;object-fit:cover;display:block;background:#f4f4f4}
.catalog-placeholder{display:flex;align-items:center;justify-content:center;color:#999;font-weight:750;font-size:18px;background:linear-gradient(135deg,#f5f5f5,#e8edf2)}
.catalog-card-body{padding:11px}
.catalog-category{display:block;text-align:center;font-size:11px;color:#777}
.catalog-card h2{font-size:15px;margin:4px 0 6px;line-height:1.4;text-align:center}
.catalog-card p{font-size:12px;color:#777;line-height:1.5;margin:0 0 10px}
.catalog-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:10px}
.catalog-card-bottom strong{font-size:15px;font-weight:800}
.in-stock,.out-stock{font-size:10px;border-radius:99px;padding:4px 7px;background:#eaf8ef;color:#177245;white-space:nowrap}
.out-stock{background:#fff0ef;color:#b42318}
.catalog-empty{grid-column:1/-1;text-align:center;padding:36px 12px;border:1px dashed #d7d7d7;border-radius:15px}
.catalog-empty>span{font-size:30px}.catalog-empty h2{font-size:18px;margin:10px 0}.catalog-empty p{font-size:13px;color:#777}.catalog-empty a{display:inline-block;margin-top:8px;background:#171717;color:white;border-radius:9px;padding:9px 13px;text-decoration:none;font-size:13px}
.catalog-no-results{color:#777;text-align:center;padding:24px}
html.dark .fahmi-catalog{color:#eee}
html.dark .catalog-heading p,html.dark .catalog-category,html.dark .catalog-card p{color:#aaa}
html.dark .catalog-admin-link,html.dark .catalog-chip{border-color:#555;color:#eee}
html.dark .catalog-chip.active{background:#eee;color:#111;border-color:#eee}
html.dark .catalog-card{background:#1c1c1c;border-color:#3a3a3a;box-shadow:none}
html.dark .catalog-placeholder{background:linear-gradient(135deg,#292929,#202a34);color:#aaa}
html.dark .catalog-empty{border-color:#555}
@media(min-width:650px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-image{height:190px}}
@media(min-width:950px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.fahmi-catalog{padding:20px 24px}}


/* Category image tiles: two cards per row on every screen size. */
.catalog-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.catalog-category-tile{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid #e4e7eb;border-radius:15px;background:#fff;color:inherit;font:inherit;text-align:right;cursor:pointer;box-shadow:0 2px 8px #00000008;-webkit-tap-highlight-color:transparent}
.catalog-category-tile img,.catalog-category-placeholder{display:flex;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;flex-shrink:0;align-items:center;justify-content:center;background:#f0f2f5;color:#8a929c;font-weight:750;font-size:18px}
.catalog-category-tile img{height:auto;min-height:0;max-height:none}
.catalog-category-tile img{width:100%;aspect-ratio:1/1;object-fit:cover}
.catalog-category-tile-name{display:block;padding:10px 8px;text-align:center;font-size:14px;font-weight:700;line-height:1.4}
.catalog-category-tile:focus,.catalog-category-tile:focus-visible,.catalog-back-categories:focus,.catalog-back-categories:focus-visible{outline:none;box-shadow:none}
.catalog-category-empty{grid-column:1/-1;text-align:center;color:#777;padding:25px 10px}
.catalog-products-toolbar{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.catalog-back-categories{align-self:flex-start;border:1px solid #ddd;border-radius:10px;background:transparent;color:inherit;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}
.catalog-products-section[hidden],.catalog-category-section[hidden]{display:none!important}
html.dark .catalog-category-tile{background:#1c1c1c;border-color:#3a3a3a;color:#eee;box-shadow:none}
html.dark .catalog-category-placeholder{background:#292929;color:#aaa}
html.dark .catalog-back-categories{border-color:#555;color:#eee}

/* Tighten the title-to-price spacing and reserve room so stock labels never cover the price. */
.catalog-card-body{padding:8px 11px 10px}
.catalog-card h2{margin:3px 0 0;line-height:1.35}
.catalog-card-bottom{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;text-align:center;margin-top:9px;min-height:48px;padding-bottom:27px;box-sizing:border-box}
.catalog-card-bottom strong{display:block;color:#2680EB;text-align:center;line-height:1.3}.catalog-card-bottom strong .currency{font-size:12px;font-weight:700;white-space:nowrap}
.catalog-card-bottom .in-stock,.catalog-card-bottom .out-stock{position:absolute;left:0;bottom:0;display:block;text-align:left;border:0;border-radius:0;padding:0;background:transparent;color:#16A34A;font-size:11px;font-weight:600;line-height:1.5}.catalog-card-bottom .in-stock:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-inline-end:4px;vertical-align:middle}.catalog-card-bottom .out-stock{color:#b42318}.catalog-card-bottom .out-stock:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-inline-end:4px;vertical-align:middle}
.catalog-add-cart{position:absolute;right:0;bottom:0;width:auto;height:auto;padding:0;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#B44CFF;font:inherit;font-size:11px;font-weight:700;line-height:1.5;cursor:pointer;-webkit-tap-highlight-color:transparent}
.catalog-add-cart svg{display:none}
.catalog-add-cart:disabled{opacity:.35;cursor:not-allowed}
.catalog-add-cart:focus,.catalog-add-cart:focus-visible{outline:none;box-shadow:none}


/* Product card controls: add button on the right, availability on the left, same row. */
.catalog-card-bottom{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;text-align:initial;margin-top:9px;min-height:48px;padding:21px 0 0;box-sizing:border-box;direction:rtl}
.catalog-card-bottom>strong{position:absolute;top:0;left:0;right:0;display:block;text-align:center;line-height:1.3}
.catalog-card-bottom .in-stock,.catalog-card-bottom .out-stock{position:static;order:2;display:inline-flex;align-items:center;flex:0 0 auto;text-align:left;border:0;border-radius:0;padding:0;background:transparent;color:#16A34A;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
.catalog-card-bottom .out-stock{color:#b42318}
.catalog-add-cart{position:static;order:1;flex:0 0 auto;width:auto;height:auto;padding:2px 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:999px;background:transparent;color:#B44CFF;font:inherit;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.catalog-add-cart svg{display:none}
.catalog-add-cart:disabled{opacity:.35;cursor:not-allowed}
.catalog-add-cart:focus,.catalog-add-cart:focus-visible{outline:none;box-shadow:none}

/* ترتيب بطاقة الصنف: الصورة ثم اسم الفئة ثم اسم الصنف */
.catalog-type-tile{ text-align:center; }
.catalog-type-tile .catalog-type-category-name,.catalog-type-page-heading .catalog-type-category-name{display:block;padding:7px 8px 0;color:#555!important;font-size:12px;font-weight:500;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere;}
.catalog-type-tile .catalog-type-name,.catalog-type-page-heading .catalog-type-name{display:block;padding:3px 8px 10px;color:#000!important;font-size:17px;font-weight:800;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;}
.catalog-type-page-heading{width:min(100%,240px);margin:0 auto 16px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;border:1px solid #e4e7eb;border-radius:15px;background:#fff;box-shadow:0 2px 8px #00000008;text-align:center;}
.catalog-type-page-heading[hidden]{display:none!important;}
.catalog-type-page-heading img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;}
html.dark .catalog-type-page-heading{background:#fff;border-color:#e4e7eb;}


/* Match product cards to the category tiles: same two-column width and same overall height. */
.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.catalog-card{
  box-sizing:border-box;
  aspect-ratio:0.75;
  height:auto;
  min-height:220px;
  display:flex;
  flex-direction:column;
}
.catalog-card>.catalog-product-gallery,
.catalog-card>.catalog-image{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  width:100%;
}
.catalog-card>.catalog-image{object-fit:contain}
.catalog-card .catalog-product-gallery{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.catalog-card .catalog-product-gallery>.catalog-main-image{
  flex:1 1 auto;
  height:0;
  min-height:0;
  width:100%;
  object-fit:contain;
}
.catalog-card .catalog-image-thumbnails{
  flex:0 0 34px;
  min-height:34px;
  max-height:34px;
  padding:2px 6px;
  gap:4px;
  box-sizing:border-box;
}
.catalog-card .catalog-image-thumb{
  flex:0 0 28px;
  width:28px;
  height:28px;
}
.catalog-card .catalog-card-body{
  flex:0 0 auto;
  padding:6px 8px 7px;
  position:relative;
  top:-4px;
}
.catalog-card .catalog-card-body h2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:2px 0 0;
  line-height:1.25;
}
.catalog-card .catalog-card-body>p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:3px 0 0;
  line-height:1.25;
}
.catalog-card .catalog-card-bottom{
  min-height:40px;
  margin-top:5px;
  padding-top:18px;
}

/* إظهار الصورة الأصلية كاملة، وملء الجانبين بخلفية مموهة من الصورة نفسها، دون فراغ علوي. */
.catalog-card .catalog-product-gallery{
  position:relative;
  isolation:isolate;
  padding-top:0;
  box-sizing:border-box;
}
.catalog-card .catalog-product-gallery::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  bottom:0;
  left:0;
  background-image:var(--product-image-bg);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(12px);
  transform:scale(1.06);
  opacity:.34;
  pointer-events:none;
}
.catalog-card .catalog-product-gallery>.catalog-main-image{
  position:relative;
  z-index:1;
  width:100%;
  object-fit:contain;
  background:transparent;
}
.catalog-card .catalog-product-gallery .catalog-image-thumbnails{
  position:relative;
  z-index:1;
}

/* رفع اسم المنتج والسعر معاً بشكل مرئي داخل البطاقة */
.catalog-card .catalog-card-body{
  top:0;
  transform:translateY(-8px);
}


/* زر إضافة للسلة: رمز سلة داخل دائرة */
.catalog-card .catalog-add-cart{
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
  border:1.5px solid currentColor;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#E53935;
  font-size:0;
  line-height:1;
  box-sizing:border-box;
  flex:0 0 34px;
}
.catalog-card .catalog-add-cart svg{
  display:block;
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.catalog-card .catalog-add-cart:disabled{opacity:.35}
.catalog-card .catalog-add-cart:focus,.catalog-card .catalog-add-cart:focus-visible{outline:none;box-shadow:none}

/* خفض رمز السلة وحالة التوفر قليلاً فقط */
.catalog-card .catalog-add-cart,
.catalog-card .catalog-card-bottom .in-stock,
.catalog-card .catalog-card-bottom .out-stock{
  transform:translateY(2px);
}

/* خفض رمز السلة وكلمة متوفر مقداراً إضافياً بسيطاً */
.catalog-card .catalog-add-cart,
.catalog-card .catalog-card-bottom .in-stock,
.catalog-card .catalog-card-bottom .out-stock{
  transform:translateY(4px);
}


/* تصغير صورة بطاقة الفئة قليلاً مع ترك هامش داخل إطار البطاقة */
.catalog-category-tile:not(.catalog-type-tile) > img{
  width:calc(100% - 8px);
  aspect-ratio:1/1;
  height:auto;
  margin:4px auto 0;
  border-radius:10px;
  box-sizing:border-box;
}

/* صناديق الأصناف: نفس مقاس بطاقات الفئات، مع إظهار اسم الصنف فقط. */
.catalog-type-tile .catalog-type-category-name{display:none!important}
.catalog-type-tile>img,
.catalog-type-tile>.catalog-type-placeholder{
  display:flex;
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  min-height:0;
  max-height:none;
  flex-shrink:0;
  object-fit:cover;
}
.catalog-type-tile .catalog-type-name{
  display:block;
  padding:10px 8px;
  color:#000!important;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* توحيد طريقة عرض صورة الصنف مع صورة الفئة تماماً */
.catalog-category-tile:not(.catalog-type-tile) > img,
.catalog-type-tile > img{
  display:block;
  width:calc(100% - 8px);
  aspect-ratio:1/1;
  height:auto;
  margin:4px auto 0;
  border-radius:10px;
  object-fit:cover;
  box-sizing:border-box;
}


/* بطاقة المنتج بنفس أسلوب بطاقة الفئة، مع بطاقتين منفصلتين للسعر والتوفر/السلة. */
.catalog-grid{align-items:start;gap:12px}
.catalog-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  height:auto;
  min-height:0;
  aspect-ratio:auto;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.catalog-product-tile{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #e4e7eb;
  border-radius:15px;
  background:#fff;
  color:inherit;
  text-align:center;
  box-shadow:0 2px 8px #00000008;
}
.catalog-card .catalog-product-gallery,
.catalog-card>.catalog-product-tile>.catalog-image{
  position:relative;
  display:block;
  width:calc(100% - 8px);
  aspect-ratio:1/1;
  height:auto;
  min-height:0;
  max-height:none;
  margin:4px auto 0;
  overflow:hidden;
  border-radius:10px;
  box-sizing:border-box;
  background:#f0f2f5;
}
.catalog-card .catalog-product-gallery::before{display:none!important}
.catalog-card .catalog-product-gallery>.catalog-main-image{
  display:block;
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:1/1;
  object-fit:cover;
  background:transparent;
}
.catalog-card .catalog-product-gallery .catalog-image-thumbnails{
  position:absolute;
  z-index:2;
  right:0;
  left:0;
  bottom:0;
  display:flex;
  justify-content:center;
  gap:4px;
  min-height:30px;
  max-height:30px;
  padding:2px 5px;
  background:linear-gradient(transparent,#0008);
  box-sizing:border-box;
}
.catalog-card .catalog-image-thumb{
  flex:0 0 25px;
  width:25px;
  height:25px;
  border-color:#fff;
  background:#fff;
}
.catalog-card .catalog-image-thumb img{width:100%;height:100%;object-fit:cover}
.catalog-product-name{display:block;padding:10px 8px 3px;text-align:center}
.catalog-product-name h2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:0;
  color:inherit;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.catalog-product-price,
.catalog-product-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #e4e7eb;
  border-radius:11px;
  background:#fff;
  box-shadow:0 2px 8px #00000008;
}
.catalog-product-price{min-height:38px;padding:5px 8px}
.catalog-product-price strong{color:#2680EB;font-size:15px;font-weight:800;line-height:1.3;text-align:center}
.catalog-product-price .currency{font-size:12px;font-weight:700;white-space:nowrap}
.catalog-product-actions{
  min-height:42px;
  padding:4px 10px;
  justify-content:space-between;
  direction:rtl;
}
.catalog-product-actions .in-stock,
.catalog-product-actions .out-stock{
  position:static;
  display:inline-flex;
  align-items:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#16A34A;
  font-size:11px;
  font-weight:600;
  line-height:1.5;
  white-space:nowrap;
}
.catalog-product-actions .out-stock{color:#b42318}
.catalog-product-actions .in-stock:before,
.catalog-product-actions .out-stock:before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-inline-end:4px;
  border-radius:50%;
  background:currentColor;
  vertical-align:middle;
}
.catalog-card .catalog-add-cart{
  position:static;
  transform:none;
  width:34px;
  height:34px;
  min-width:34px;
  flex:0 0 34px;
  padding:0;
  border:1.5px solid #E53935;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#E53935;
  font-size:0;
  line-height:1;
}
.catalog-card .catalog-add-cart svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.catalog-card .catalog-add-cart:disabled{opacity:.35}
html.dark .catalog-product-tile,
html.dark .catalog-product-price,
html.dark .catalog-product-actions{
  background:#1c1c1c;
  border-color:#3a3a3a;
  color:#eee;
  box-shadow:none;
}
html.dark .catalog-product-name h2{color:#eee}
@media(min-width:650px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:950px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* إطار موحّد يضم صورة المنتج والسعر وأزرار المنتج دون خطوط فاصلة. */
.catalog-card{gap:0!important}
.catalog-product-frame{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #e4e7eb;
  border-radius:15px;
  background:#fff;
  color:inherit;
  box-shadow:0 2px 8px #00000008;
}
.catalog-product-frame>.catalog-product-tile{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent;
}
.catalog-product-frame>.catalog-product-price,
.catalog-product-frame>.catalog-product-actions{
  width:100%;
  border:0!important;
  border-top:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent;
}
.catalog-product-frame>.catalog-product-price{min-height:38px}
.catalog-product-frame>.catalog-product-actions{min-height:42px}
html.dark .catalog-product-frame{
  background:#1c1c1c;
  border-color:#3a3a3a;
  color:#eee;
  box-shadow:none;
}
html.dark .catalog-product-frame>.catalog-product-price,
html.dark .catalog-product-frame>.catalog-product-actions{
  border-top:0!important;
}

/* إطار موحّد يضم صورة المنتج والسعر وأزرار المنتج دون خطوط فاصلة. */
.catalog-card{gap:0!important}
.catalog-product-frame{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #e4e7eb;
  border-radius:15px;
  background:#fff;
  color:inherit;
  box-shadow:0 2px 8px #00000008;
}
.catalog-product-frame>.catalog-product-tile{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent;
}
.catalog-product-frame>.catalog-product-price,
.catalog-product-frame>.catalog-product-actions{
  width:100%;
  border:0!important;
  border-top:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent;
}
.catalog-product-frame>.catalog-product-price{min-height:38px}
.catalog-product-frame>.catalog-product-actions{min-height:42px}
html.dark .catalog-product-frame{
  background:#1c1c1c;
  border-color:#3a3a3a;
  color:#eee;
  box-shadow:none;
}
html.dark .catalog-product-frame>.catalog-product-price,
html.dark .catalog-product-frame>.catalog-product-actions{
  border-top:0!important;
}

/* إنزال اسم المنتج قليلاً دون تغيير بقية عناصر البطاقة */
.catalog-product-name h2{position:relative;top:8px!important;transform:none!important}

/* رفع رمز السلة قليلاً إضافياً داخل بطاقة المنتج فقط */
.catalog-card .catalog-product-actions .catalog-add-cart{
  transform:translateY(-4px);
}


/* مساواة المسافة اليمنى لأيقونة السلة بالمسافة السفلية داخل إطار المنتج */
.catalog-product-frame>.catalog-product-actions{
  padding-right:4px;
}

/* Fahmidz unified form controls: consistent dimensions and field treatment across storefront pages. */
:root{--fahmidz-field-height:54px;--fahmidz-field-radius:9px;--fahmidz-field-border:#ccd0d5;--fahmidz-field-focus:#1877f2}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.khanat-bahth input),textarea,select{box-sizing:border-box;min-height:var(--fahmidz-field-height);padding:0 14px;border:1px solid var(--fahmidz-field-border);border-radius:var(--fahmidz-field-radius);background:var(--input-background,#fff);color:var(--text-color,#171b22);font:inherit;font-size:16px;line-height:1.4;box-shadow:none}
textarea{min-height:110px;padding:12px 14px;resize:vertical}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not(.khanat-bahth input):focus,textarea:focus,select:focus{outline:2px solid color-mix(in srgb,var(--fahmidz-field-focus) 20%,transparent);outline-offset:0;border-color:var(--fahmidz-field-focus)}
html.dark input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),html.dark textarea,html.dark select{background:var(--input-background,#20242a);color:var(--text-color,#eee);border-color:#555}


/* الفئة المستطيلة: نفس الهوية البصرية للمربع، مع مساحة عرض فئتين.
   الصورة تبقى مربعة ومتمركزة، والاسم أسفلها، وارتفاع البطاقة متوسط. */
.catalog-category-tile--rectangle{
  grid-column:span 2;
  min-height:0;
  height:auto;
  align-items:center;
  justify-content:flex-start;
  border-radius:15px;
  padding:10px 12px 8px;
  gap:5px;
}
.catalog-category-tile--rectangle img,
.catalog-category-tile--rectangle .catalog-category-placeholder{
  display:flex;
  width:clamp(88px,24vw,116px);
  height:auto;
  aspect-ratio:1/1;
  min-height:0;
  max-height:none;
  flex:0 0 auto;
  object-fit:cover;
  align-items:center;
  justify-content:center;
  border-radius:10px;
}
.catalog-category-tile--rectangle .catalog-category-tile-name{
  width:100%;
  padding:4px 8px 2px;
  text-align:center;
}
html.dark .catalog-category-tile--rectangle{border-radius:15px}
