/* مطبعة سينا — الكتالوج (صفحة الموقع، وشكل الأقسام المشترك ويا ملف الـ PDF)
   فوق css/site.css (الهيدر والأزرار والفوتر والخلفية الحمرا بنقشة الزولية).
   الفكرة مثل المنيو بالصورة المرجعية: ورقة بيضاء، لوحة بلون الهوية بقوس من فوق،
   والمنتج يطلع من القوس، والقوائم بأسماء عريضة ووصف خفيف.
   بالموقع كل قسم ورقة بيضاء على الأحمر، وبالـ PDF كل قسم صفحة A4. */

:root {
  --ink: var(--sina-ink);
  --ink-2: var(--sina-muted);
  --rule: rgba(166, 35, 40, .22);
  --tint: #FBF7F1;
}

/* ======================================================================
   للموبايل أول: أغلب الزوار من الهاتف.
   - الهيدر بالموبايل يمشي ويا الصفحة، وشريط الأقسام بس يلزم فوق (مساحة أكثر للمحتوى)
   - الغلاف قصير، وتحته مربعات الأقسام بالصور (فهرس سريع)
   - شريط طلب تحت الشاشة برسالة القسم اللي إنت بيه
   ====================================================================== */
.cat-html { scroll-padding-top: calc(66px + env(safe-area-inset-top, 0px)); }
.cat-page .site-header { position: relative; top: auto; }

/* ======================================================================
   الغلاف (على الأحمر)
   ====================================================================== */
.cat-hero { position: relative; padding-block: 34px 26px; overflow-x: clip; }
.cat-hero__inner { display: grid; gap: 64px; align-items: center; }
.cat-hero__text { text-align: center; }
.cat-hero h1 {
  margin-top: 16px;
  font-size: clamp(1.875rem, 1.25rem + 3.6vw, 3.5rem);
  line-height: 1.22;
}
.cat-hero h1 .line { display: block; }
.cat-hero h1 .accent { font-weight: var(--sina-w-bold); }
.cat-hero__lead {
  max-width: 34rem;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.cat-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 16px 7px;
  border-radius: var(--sina-radius-pill);
  background: rgba(122, 24, 31, .55);
  font-size: .875rem;
}
.cat-hero__date b { font-weight: var(--w-black); }
.cat-hero__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
/* بالموبايل الزرين جنب بعض، كل واحد نص الشاشة */
.cat-hero__actions .btn { flex: 1 1 0; min-width: 0; max-width: 240px; padding-inline: 12px; font-size: .9375rem; }

/* القوس الأبيض ويا مجموعة منتجات تطلع منه (بالشاشات العريضة بس) */
.cat-hero__art { display: none; position: relative; width: min(100%, 470px); margin-inline: auto; }
.cat-hero__arch {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: 9999px 9999px 28px 28px;
  background: var(--sina-white);
  box-shadow: 0 40px 70px -40px rgba(30, 4, 6, .7);
}
.cat-hero__arch::before {               /* خط أبيض ثاني حول القوس، مثل إطارات الهوية */
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--sina-white);
  border-radius: 9999px 9999px 36px 36px;
  pointer-events: none;
}
.cat-hero__weave {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.cat-hero__weave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sina-red);
  opacity: .07;
  -webkit-mask: url("../assets/pattern/sina-zoulia-mono-tile.svg") repeat 0 0 / 240px 108px;
          mask: url("../assets/pattern/sina-zoulia-mono-tile.svg") repeat 0 0 / 240px 108px;
}
.ha { position: absolute; height: auto; filter: drop-shadow(0 18px 16px rgba(40, 8, 10, .28)); }
.ha--2 { width: 44%; inset-inline-end: 3%; top: -9%; transform: rotate(5deg); }     /* علاكة ديجتال */
.ha--3 { width: 60%; inset-inline-start: 4%; top: 18%; }                           /* علب سينا */
.ha--1 { width: 84%; inset-inline-start: 8%; bottom: 4%; }                          /* علاكة كارتون */
.ha--4 { width: 40%; inset-inline-end: -8%; bottom: 30%; transform: rotate(-8deg); } /* كارت */

/* ======================================================================
   مربعات الأقسام: صورة واسم، ثلاث بكل صف بالموبايل
   ====================================================================== */
.cat-tiles { padding-block: 6px 28px; }
.cat-tiles__title {
  margin-bottom: 14px;
  font-size: 1.125rem;
  font-weight: var(--w-black);
  text-align: center;
}
.cat-tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 10px 6px 11px;
  border-radius: 18px;
  background: var(--sina-white);
  color: var(--sina-red);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 24px -18px rgba(30, 4, 6, .8);
  transition: transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cat-tile:hover { color: var(--sina-red); }
.cat-tile:active { transform: scale(.96); }
.cat-tile__art { display: grid; place-items: center; width: 100%; height: 62px; }
.cat-tile__art img { max-width: 100%; max-height: 62px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(30, 4, 6, .2)); }
.cat-tile__name { font-size: .8125rem; font-weight: var(--w-heavy); line-height: 1.35; }

/* ======================================================================
   شريط الأقسام: يلزم فوق، ويتسحب للجانب (بالموبايل الهيدر يمشي ويا الصفحة)
   ====================================================================== */
.cat-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  padding-block: 9px;
  background: rgba(166, 35, 40, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
          backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16), 0 -1px 0 rgba(255, 255, 255, .16);
}
.cat-nav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  /* الأطراف تتلاشى حتى يبين إن الشريط يتسحب */
  -webkit-mask: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 16px 6px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: var(--sina-radius-pill);
  color: var(--sina-white);
  font-size: .875rem;
  font-weight: var(--w-heavy);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cat-nav__list a:hover { border-color: var(--sina-white); }
.cat-nav__list a[aria-current="true"] { background: var(--sina-white); border-color: var(--sina-white); color: var(--sina-red); }

/* ======================================================================
   الأقسام: ورقة بيضاء لكل قسم
   ====================================================================== */
.cat-sheets { display: grid; gap: 18px; padding-block: 16px 24px; }
/* بالموبايل الورقة شبه عرض الشاشة، حتى الجداول تاخذ راحتها */
@media (max-width: 639.98px) {
  .cat-sheets { padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
}
.cat-noscript { padding: 24px; border-radius: 20px; background: var(--sina-white); color: var(--ink); text-align: center; }
.cat-noscript a { color: var(--sina-red); font-weight: var(--w-heavy); }

.sheet {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  padding: 22px 14px 18px;
  border-radius: 22px;
  background: var(--sina-white);
  color: var(--ink);
  box-shadow: 0 34px 60px -34px rgba(30, 4, 6, .75);
}
.sheet a:not(.btn) { color: var(--sina-red); }
.sheet ::selection { background: var(--sina-red); color: var(--sina-white); }
.sheet :focus-visible { outline-color: var(--sina-red); }

/* ---------- العنوان ---------- */
.sheet__head { position: relative; padding-bottom: 18px; }
.sheet__head::after {                   /* خط رفيع بنهايته معين، مثل نقاط الشعار */
  content: "";
  position: absolute;
  inset-inline: 0 6px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to left, var(--sina-red), rgba(166, 35, 40, .25));
}
.sheet__head::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: -3.5px;
  width: 8px;
  height: 8px;
  background: var(--sina-red);
  transform: rotate(45deg);
}
.sheet__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px 5px;
  border: 1.5px solid var(--sina-red);
  border-radius: var(--sina-radius-pill);
  color: var(--sina-red);
  font-size: .8125rem;
  font-weight: var(--w-heavy);
  line-height: 1.5;
}
.sheet__kicker::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.sheet__title {
  margin-top: 12px;
  color: var(--sina-red);
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  font-weight: var(--w-black);
  line-height: 1.3;
}
.sheet__title mark {                    /* كلمة بإطار أحمر مائل، مثل «پیتزا» بالصورة المرجعية */
  display: inline-block;
  margin-inline: .04em;
  padding: 0 .3em .1em;
  border-radius: .24em;
  background: var(--sina-red);
  color: var(--sina-white);
  transform: rotate(-2.5deg);
  box-shadow: 0 .18em .4em -.22em rgba(122, 24, 31, .9);
}
.sheet__lead { max-width: 46ch; margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

/* ---------- الجسم: لوحة حمرا + المنتجات ---------- */
.sheet__body { display: grid; gap: 24px; margin-top: 54px; }

/* اللوحة الحمرا بقوس من فوق، والمنتج يطلع من القوس */
.panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 0 16px 20px;
  border-radius: 9999px 9999px 22px 22px;
  background: var(--sina-red);
  color: var(--sina-white);
}
.panel__weave {                         /* الزولية المفرغة بالعنابي فوق الأحمر، مثل الموقع */
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border-radius: inherit;
}
.panel__weave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sina-red-deep);
  opacity: .42;
  -webkit-mask: url("../assets/pattern/sina-zoulia-mono-tile.svg") repeat 0 0 / 220px 99px;
          mask: url("../assets/pattern/sina-zoulia-mono-tile.svg") repeat 0 0 / 220px 99px;
}
.panel__logo {                          /* الشعار المفرّغ بخط أبيض ورا المنتج، مقصوص بحدود القوس */
  position: absolute;
  top: 14%;
  inset-inline-start: -18%;
  width: 78%;
  height: auto;
  aspect-ratio: 489 / 410.61;
  fill: none;
  stroke: var(--sina-white);
  stroke-width: 2;
  opacity: .22;
  pointer-events: none;
}
.panel__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: -44px;                    /* يطلع فوق القوس */
  min-height: 150px;
}
.panel__img {
  position: relative;
  flex: 0 1 auto;
  width: 88%;
  max-height: 230px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 18px rgba(30, 4, 6, .38));
}
.sheet[data-art="2"] .panel__img { width: 56%; }
.sheet[data-art="2"] .panel__img--2 { margin-inline-start: -10%; margin-bottom: -4%; }
.sheet[data-art="3"] .panel__img { width: 40%; }
.sheet[data-art="3"] .panel__img--2 { z-index: 1; width: 46%; margin-inline: -9%; margin-bottom: -6%; }

.panel__notes { display: grid; gap: 9px; margin-top: 18px; }
.panel__notes li { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.panel__notes .ico {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.panel__price {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sina-white);
  color: var(--sina-red);
  font-size: .9375rem;
  font-weight: var(--w-heavy);
  line-height: 1.6;
}
.panel__price .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* ---------- المنتجات ---------- */
.sheet__main { display: grid; gap: 20px; align-content: start; }
.prod { padding-bottom: 20px; border-bottom: 1px dashed rgba(166, 35, 40, .3); }
.prod:last-child { padding-bottom: 0; border-bottom: 0; }
.prod__head { display: flex; align-items: flex-start; gap: 12px; }
.prod__titles { flex: 1; min-width: 0; }
/* زر «اطلب» يم كل منتج: يفتح الواتساب والطلب مكتوب */
.prod__wa {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 13px 7px;
  border: 1.5px solid var(--sina-red);
  border-radius: var(--sina-radius-pill);
  font-size: .8125rem;
  font-weight: var(--w-heavy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.prod__wa .ico { width: 17px; height: 17px; }
.sheet .prod__wa:hover, .sheet .prod__wa:active { background: var(--sina-red); color: var(--sina-white); }
.prod__img {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(30, 4, 6, .18));
}
.prod__name {
  position: relative;
  padding-inline-start: 18px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: var(--w-heavy);
  line-height: 1.4;
}
.prod__name::before {                   /* معين أحمر قبل اسم المنتج */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--sina-red);
  transform: rotate(45deg);
}
.prod__sub { margin-top: 2px; padding-inline-start: 18px; color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.prod__specs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.prod__specs li {
  padding: 3px 12px 5px;
  border: 1px solid var(--sina-cream-200);
  border-radius: var(--sina-radius-pill);
  background: var(--tint);
  color: var(--sina-muted-strong);
  font-size: .8125rem;
  font-weight: 600;
}

/* ---------- جداول الأسعار ---------- */
/* الجداول الصغيرة (العدد والسعر) ثنين بكل صف حتى بالموبايل، والعريضة صف كامل */
.prod__tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ptable {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--sina-white);
}
.ptable--wide { grid-column: 1 / -1; }
.prod__tables:has(.ptable--c3) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ptable__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ptable__img { display: block; width: 100%; height: 120px; object-fit: contain; padding: 12px 12px 0; background: var(--tint); }
.ptable__title {
  padding: 7px 14px 9px;
  background: var(--sina-red);
  color: var(--sina-white);
  font-size: .875rem;
  font-weight: var(--w-heavy);
}
.ptable table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ptable th {
  padding: 8px 9px;
  border-bottom: 1px solid var(--sina-cream-200);
  background: var(--tint);
  color: var(--sina-muted-strong);
  font-size: .75rem;
  font-weight: var(--sina-w-bold);
  line-height: 1.4;
  text-align: start;
  vertical-align: bottom;
}
.ptable td { padding: 7px 9px; border-bottom: 1px solid #F3ECE3; font-weight: 600; line-height: 1.5; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable .is-price { text-align: end; }
.ptable td.is-price { color: var(--sina-red); font-weight: var(--w-heavy); white-space: nowrap; }
.ptable td.is-num { color: var(--ink); font-weight: var(--sina-w-bold); white-space: nowrap; }

/* ---------- سعر كبير (جدول بصف واحد، مثل سعر الكيلو) ---------- */
.ptag { background: var(--tint); }
.ptag__body { display: grid; gap: 6px; padding: 14px 18px 16px; }
.ptag__price { display: flex; flex-direction: column; gap: 2px; }
.ptag__price small { color: var(--sina-muted-strong); font-size: .8125rem; font-weight: var(--sina-w-bold); }
.ptag__price b { color: var(--sina-red); font-size: 2.5rem; font-weight: var(--w-black); line-height: 1.15; white-space: nowrap; }
.ptag__info { color: var(--ink); font-size: .9375rem; font-weight: var(--sina-w-bold); }
.ptag__info small { color: var(--sina-muted-strong); font-size: .8125rem; font-weight: 600; }

/* ---------- ملاحظات المنتج ---------- */
.prod__notes { display: grid; gap: 6px; margin-top: 12px; }
.prod__notes li { display: flex; align-items: flex-start; gap: 8px; color: var(--sina-muted-strong); font-size: .875rem; line-height: 1.6; }
.prod__notes .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--sina-red); }

/* ---------- المنتجات كبطاقات (cards: true بالبيانات، مثل الفايلات) ---------- */
/* بالموبايل بطاقتين بكل صف */
.sheet--cards .sheet__main { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 10px; }
.sheet--cards .prod { padding: 10px 10px 12px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sina-white); }
.sheet--cards .prod:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.sheet--cards .prod__head { flex-direction: column; align-items: stretch; gap: 8px; }
.sheet--cards .prod__img { width: 100%; height: 78px; }
.sheet--cards .prod__name { font-size: 1.0625rem; }
.sheet--cards .prod__sub { font-size: .8125rem; }
.sheet--cards .prod__wa { justify-content: center; }
.sheet--cards .prod--t1 { display: block; }
.sheet--cards .prod--t1 > .prod__tables { margin-top: 10px; }
.sheet--cards .ptable table { font-size: .8125rem; }
.sheet--cards .ptable th, .sheet--cards .ptable td { padding-inline: 6px; }

/* ---------- صور إضافية تحت المنتجات ---------- */
.sheet__gallery { display: grid; gap: 12px; }
.gal { margin: 0; padding: 14px 14px 12px; border-radius: 20px; background: var(--tint); text-align: center; }
.gal__img { width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(30, 4, 6, .2)); }
.gal figcaption { margin-top: 8px; color: var(--sina-muted-strong); font-size: .875rem; font-weight: 600; }

/* ---------- أزرار القسم ---------- */
.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.btn--red { background: var(--sina-red); border-color: var(--sina-red); color: var(--sina-white); }
.btn--red:hover { background: var(--sina-red-deep); border-color: var(--sina-red-deep); color: var(--sina-white); }
.sheet .btn--red { color: var(--sina-white); }
.btn--ghost { background: transparent; border-color: var(--sina-red); color: var(--sina-red); }
.btn--ghost:hover { background: var(--sina-red); color: var(--sina-white); }
.sheet .btn--ghost:hover { color: var(--sina-white); }

/* ---------- الورقة الضيقة (الموبايل): الجداول العريضة تنضغط حتى تكفي بدون سحب ---------- */
@container (max-width: 460px) {
  .ptable--wide table { font-size: .8125rem; }
  .ptable--wide th, .ptable--wide td { padding-inline: 6px; }
}

/* ---------- الورقة العريضة: اللوحة يم والمنتجات يم ---------- */
@container (min-width: 700px) {
  .sheet__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 36px;
    align-items: start;
    margin-top: 72px;
  }
  .sheet[data-side="end"] .sheet__body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sheet[data-side="end"] .panel { order: 2; }
  .panel { position: sticky; top: calc(var(--header-h) + 140px); padding: 0 26px 28px; }
  .prod--t1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .prod--t1 > * { grid-column: 1; }
  .prod--t1 > .prod__tables { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: 1fr; margin-top: 0; }
  .panel__art { margin-top: -64px; min-height: 260px; }
  .panel__img { max-height: 340px; }
  .panel__notes { gap: 12px; margin-top: 26px; }
  .panel__notes li { gap: 12px; font-size: .9375rem; }
  .panel__notes .ico { width: 34px; height: 34px; padding: 7px; }
  .prod__name { font-size: 1.3125rem; }
  .prod__tables { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
  .ptable table { font-size: .9375rem; }
  .ptable th, .ptable td { padding-inline: 12px; }
  .sheet--cards .sheet__main { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
  .sheet--cards .prod { padding: 14px 14px 16px; }
  .sheet--cards .prod__img { height: 96px; }
  .sheet--cards .prod__name { font-size: 1.1875rem; }
  .sheet--cards .ptable table { font-size: .875rem; }
  .sheet--cards .ptable th, .sheet--cards .ptable td { padding-inline: 10px; }
}

/* ======================================================================
   تحت الأقسام
   ====================================================================== */
.cat-currency { margin-top: 6px; color: var(--muted); font-size: .875rem; text-align: center; }
.cat-contact { padding-block: 72px 56px; text-align: center; }
.cat-contact__inner { display: flex; flex-direction: column; align-items: center; }
.cat-contact h2 { margin-top: 16px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); }
.cat-contact__lead { margin-top: 10px; color: var(--muted); font-size: var(--sina-size-md); }
.cat-contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ======================================================================
   شريط الطلب تحت الشاشة (الموبايل): يطلع بعد أزرار الغلاف، ويختفي عند التواصل
   ====================================================================== */
.cat-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.cat-dock {
  position: fixed;
  z-index: 45;
  inset-inline: max(10px, env(safe-area-inset-left, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 6px;
  max-width: 520px;
  margin-inline: auto;
  padding: 5px;
  border-radius: var(--sina-radius-pill);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 34px -12px rgba(30, 4, 6, .65), 0 0 0 1px rgba(166, 35, 40, .14);
  visibility: hidden;
  transform: translateY(150%);
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.cat-dock.is-on { visibility: visible; transform: none; transition: transform .35s var(--ease), visibility 0s; }
.cat-dock__wa {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 18px;
  border-radius: var(--sina-radius-pill);
  background: var(--sina-red);
  color: var(--sina-white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-dock__wa:hover { color: var(--sina-white); }
.cat-dock__wa:active { background: var(--sina-red-deep); }
.cat-dock__wa svg { flex: none; width: 26px; height: 26px; }
.cat-dock__wa span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cat-dock__wa small { font-size: .75rem; font-weight: 600; opacity: .9; }
.cat-dock__wa b { overflow: hidden; font-size: .9375rem; font-weight: var(--w-black); white-space: nowrap; text-overflow: ellipsis; }

/* ======================================================================
   الشاشات الأكبر
   ====================================================================== */
@media (min-width: 640px) {
  .sheet { padding: 34px 30px 28px; border-radius: 28px; }
  .cat-sheets { gap: 28px; }
  .cat-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .cat-tile__art { height: 76px; }
  .cat-tile__art img { max-height: 76px; }
  .cat-tile__name { font-size: .875rem; }
}
@media (min-width: 960px) {
  /* بالكمبيوتر الهيدر يلزم فوق وشريط الأقسام تحته، والقوس بالغلاف يرجع، وشريط الطلب ينشال */
  .cat-html { scroll-padding-top: calc(var(--header-h) + 74px + env(safe-area-inset-top, 0px)); }
  .cat-page .site-header { position: sticky; top: env(safe-area-inset-top, 0px); }
  .cat-nav { top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
  .cat-page { padding-bottom: 0; }
  .cat-dock { display: none; }

  .cat-hero { padding-block: 64px 72px; }
  .cat-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; }
  .cat-hero__text { text-align: start; }
  .cat-hero__lead { margin-inline: 0; font-size: var(--sina-size-md); }
  .cat-hero__actions { justify-content: flex-start; }
  .cat-hero__actions .btn { flex: none; max-width: none; padding-inline: 26px; font-size: 1rem; }
  .cat-hero__art { display: block; }
  .cat-tiles { padding-bottom: 40px; }
  .cat-tiles__title { margin-bottom: 18px; font-size: 1.375rem; }
  .cat-tiles__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cat-sheets { gap: 44px; padding-top: 40px; }
  .sheet { padding: 44px 48px 36px; border-radius: 36px; }
  .nav a[aria-current="page"] { color: var(--sina-white); border-bottom-color: var(--sina-white); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-nav__list a, .cat-tile, .prod__wa { transition: none; }
  .cat-dock, .cat-dock.is-on { transition: none; }
}
