/* ================================================================
   أقسام منتجات تيكسا — v2.0.0
   كل كرت منتج يُرسم بـ«كارد تيكسا»، وهنا فقط شكل القسم حوله.
   ================================================================ */
.tks{
  --tks-warm:#EEE9E3; --tks-light:#FAF8F5; --tks-arch:#E4D9CB; --tks-dark:#1D1C1A; --tks-accent:#7E5E37; --tks-hover:#A07A4B; --tks-gold:#C9A879;
  --tks-text:#1D1C1A; --tks-muted:#5E5850; --tks-line:#DDD4C8; --tks-max:1320px; --tks-gap:20px; --tks-title:34px; --tks-pad:64px;
  --tks-bg-d:transparent;
  box-sizing:border-box; position:relative; direction:rtl; text-align:right; color:var(--tks-text);
  background:var(--tks-bg, var(--tks-bg-d)); padding:var(--tks-pad) 20px; line-height:1.6; font-family:inherit;
}
.tks *,.tks *::before,.tks *::after{box-sizing:border-box}
.tks--warm{--tks-bg-d:var(--tks-warm)}
.tks--arch{--tks-bg-d:var(--tks-light)}
.tks--spotlight{--tks-bg-d:transparent}
.tks--editorial{--tks-bg-d:var(--tks-warm)}
.tks--card{--tks-bg-d:transparent}
.tks__in{max-width:var(--tks-max); margin:0 auto}
.tks-note{padding:14px 18px; border:1px dashed #b98; border-radius:10px; color:#7a4b3a; background:#fff8f3}

/* ---------- Header ---------- */
.tks__head{display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px 24px; margin-bottom:28px}
.tks__intro{display:flex; flex-direction:column; gap:8px; min-width:0; max-width:760px}
.tks__eyebrow{font-size:14px; font-weight:700; color:var(--tks-accent)}
.tks .tks__title{margin:0!important; padding:0!important; font-size:var(--tks-title)!important; line-height:1.3!important; font-weight:800!important; color:var(--tks-text)!important; text-transform:none!important; letter-spacing:normal!important}
.tks__sub{margin:0!important; font-size:16px; line-height:1.75; color:var(--tks-muted)}
.tks__side{display:flex; align-items:center; gap:12px; margin-inline-start:auto}
.tks a.tks__link{display:inline-flex; align-items:center; gap:8px; height:46px; padding:0 20px; border:1px solid var(--tks-text); border-radius:99px; color:var(--tks-text)!important;
  font-size:15px; font-weight:700; text-decoration:none!important; white-space:nowrap; transition:background .2s,color .2s,border-color .2s}
.tks a.tks__link:hover{background:var(--tks-dark); border-color:var(--tks-dark); color:#fff!important}
.tks__arrows{display:flex; gap:8px}
.tks .tks__arrow{display:grid!important; place-items:center; width:46px!important; height:46px!important; min-height:0!important; margin:0!important; padding:0!important; border:1px solid var(--tks-line)!important;
  border-radius:50%!important; background:#fff!important; color:var(--tks-text)!important; box-shadow:none!important; cursor:pointer; transition:background .2s,color .2s,opacity .2s,border-color .2s}
.tks .tks__arrow:hover:not(:disabled){background:var(--tks-dark)!important; border-color:var(--tks-dark)!important; color:#fff!important}
.tks .tks__arrow:not(:disabled):active{background:var(--tks-accent)!important; border-color:var(--tks-accent)!important}
.tks .tks__arrow:disabled{opacity:.35; cursor:default}
.tks a:focus-visible,.tks button:focus-visible,.tks__track:focus-visible{outline:2px solid var(--tks-accent)!important; outline-offset:3px}

/* ---------- Tabs ---------- */
.tks__tabs{display:flex; flex-wrap:wrap; gap:8px; margin:-8px 0 24px}
.tks .tks__tab{height:40px!important; min-height:0!important; margin:0!important; padding:0 18px!important; border:1px solid var(--tks-line)!important; border-radius:99px!important;
  background:#fff!important; color:var(--tks-text)!important; font:inherit; font-size:14px!important; font-weight:700!important; line-height:1!important; box-shadow:none!important;
  text-transform:none!important; letter-spacing:normal!important; cursor:pointer; white-space:nowrap; transition:background .2s,color .2s,border-color .2s}
.tks .tks__tab:hover{border-color:var(--tks-hover)!important; color:var(--tks-accent)!important}
.tks .tks__tab.is-on{background:var(--tks-dark)!important; border-color:var(--tks-dark)!important; color:#fff!important}

/* ---------- Slider ---------- */
.tks__view{container-type:inline-size; container-name:tksv; min-width:0}
.tks ul.tks__track{--per:1.15; list-style:none!important; display:flex; gap:var(--tks-gap); margin:0!important; padding:4px 2px 26px!important;
  overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:smooth; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch}
.tks__track::-webkit-scrollbar{display:none}
.tks li.tks__slide{flex:0 0 calc((100% - (var(--per) - 1) * var(--tks-gap)) / var(--per)); display:flex; min-width:0; margin:0!important; padding:0!important; list-style:none!important; scroll-snap-align:start}
.tks li.tks__slide::before,.tks li.tks__slide::marker{display:none; content:none}
.tks li.tks__slide[hidden]{display:none}
.tks__slide>.txc{flex:1 1 auto; width:100%; height:auto}

@container tksv (min-width:520px){ .tks ul.tks__track{--per:2} }
@container tksv (min-width:800px){ .tks ul.tks__track{--per:3} }
@container tksv (min-width:1080px){ .tks ul.tks__track{--per:4} }
@container tksv (min-width:1450px){ .tks ul.tks__track{--per:5} }
@container tksv (min-width:1850px){ .tks ul.tks__track{--per:6} }
/* Fixed count from the settings (computers only) */
@container tksv (min-width:1080px){
  .tks.tks-per-2 ul.tks__track{--per:2} .tks.tks-per-3 ul.tks__track{--per:3} .tks.tks-per-4 ul.tks__track{--per:4}
  .tks.tks-per-5 ul.tks__track{--per:5} .tks.tks-per-6 ul.tks__track{--per:6}
}

.tks__bar{position:relative; height:3px; max-width:260px; margin:2px auto 0; border-radius:3px; background:var(--tks-line); overflow:hidden}
.tks__bar span{position:absolute; top:0; bottom:0; right:0; width:30%; border-radius:3px; background:var(--tks-text); transition:transform .15s linear,width .2s}
.tks.is-static .tks__bar,.tks.is-static .tks__arrows{display:none}

/* ---------- Card element switches ---------- */
.tks-no-badge .txc__badge:not(.txc__badge--oos){display:none!important}
.tks-no-tools .txc__tools{display:none!important}
.tks-no-go .txc__go{display:none!important}
.tks-no-go .txc .txc__media+.txc__body .txc__title{padding-inline-end:0!important}
.tks-no-cat .txc__cat{display:none!important}
.tks-no-sku .txc__sku{display:none!important}
.tks-no-was .txc__was{display:none!important}
.tks-no-save .txc__save{display:none!important}
.tks-no-tax .txc__tax{display:none!important}
.tks-no-feats .txc__feats{display:none!important}
.tks-no-qty .txc__qty{display:none!important}
.tks-no-qv .txc__qv{display:none!important}

/* ================================================================
   1 · المعرض الدافئ
   ================================================================ */
.tks--warm .txc{border-color:transparent; box-shadow:0 1px 2px rgba(29,28,26,.04)}
.tks--warm .txc:hover{border-color:transparent}

/* ================================================================
   2 · القوس
   ================================================================ */
.tks--arch .tks__head{flex-direction:column; align-items:center; text-align:center}
.tks--arch .tks__intro{align-items:center; margin-inline:auto}
.tks--arch .tks__side{margin-inline:auto}
.tks--arch .tks__tabs{justify-content:center}
.tks--arch .txc{border-color:transparent; background:transparent; padding:6px; box-shadow:none}
.tks--arch .txc:hover{box-shadow:none}
.tks--arch .txc__media{margin-bottom:38px}
.tks--arch .txc__img{aspect-ratio:4/5; background:var(--tks-arch); border-radius:999px 999px 0 0 / 999px 999px 0 0; transition:background .35s}
.tks--arch .txc:hover .txc__img{background:color-mix(in srgb,var(--tks-arch) 78%,var(--tks-hover))}
.tks--arch .txc__img img{object-fit:contain!important; padding:18% 9% 5%!important; mix-blend-mode:multiply}
.tks--arch .txc__badges{top:auto; bottom:14px}
.tks--arch .txc__tools{top:24%}
.tks--arch .txc__go{inset-inline-end:auto; left:50%; bottom:-26px; transform:translateX(-50%)}
.tks--arch .txc:hover .txc__go{transform:translateX(-50%)}
.tks--arch .txc__body{align-items:center; text-align:center}
.tks--arch .txc .txc__media+.txc__body .txc__title,.tks--arch .txc__title{padding-inline:0!important; text-align:center}
.tks--arch .txc__meta,.tks--arch .txc__price{justify-content:center}
.tks--arch .txc__tax{text-align:center}
.tks--arch .txc__feats,.tks--arch .txc__actions{width:100%}

/* ================================================================
   3 · واجهة القسم
   ================================================================ */
.tks__split{display:grid; grid-template-columns:minmax(270px,24%) minmax(0,1fr); gap:var(--tks-gap); align-items:stretch}
.tks__main{min-width:0}
.tks__panel{position:relative; overflow:hidden; margin:4px 0 26px; border-radius:26px; background:var(--tks-dark); border-bottom:3px solid var(--tks-accent); color:#EEE9E3; isolation:isolate; min-height:380px}
.tks__panel-img{position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; opacity:.55; transition:transform 1s ease}
.tks__panel:hover .tks__panel-img{transform:scale(1.04)}
.tks__panel.has-img::after{content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(to top,var(--tks-dark) 35%,color-mix(in srgb,var(--tks-dark) 30%,transparent))}
.tks__panel-in{display:flex; flex-direction:column; gap:12px; height:100%; padding:32px 30px}
.tks__panel-eyebrow{font-size:14px; font-weight:700; color:var(--tks-gold)}
.tks .tks__panel-title{margin:0!important; padding:0!important; font-size:30px!important; line-height:1.3!important; font-weight:800!important; color:#fff!important}
.tks__panel-text{margin:0!important; font-size:15px; line-height:1.75; color:#D2CABF}
.tks__panel-foot{margin-top:auto; padding-top:16px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px}
.tks__panel-count{font-size:14px; color:#D2CABF}
.tks__panel-count b{display:block; font-size:30px; line-height:1.1; font-weight:800; color:var(--tks-gold)}
.tks a.tks__panel-btn{display:inline-flex; align-items:center; gap:8px; height:50px; padding:0 22px; border-radius:99px; background:var(--tks-gold); color:var(--tks-dark)!important;
  font-size:15px; font-weight:800; text-decoration:none!important; white-space:nowrap; transition:background .2s,color .2s}
.tks a.tks__panel-btn:hover{background:var(--tks-warm)}

/* ================================================================
   4 · البطاقة الأفقية
   ================================================================ */
.tks--editorial ul.tks__track{--per:1.1}
@container tksv (min-width:600px){ .tks--editorial ul.tks__track{--per:1.3} }
@container tksv (min-width:980px){ .tks--editorial ul.tks__track{--per:2} }
@container tksv (min-width:1500px){ .tks--editorial ul.tks__track{--per:3} }
@container tksv (min-width:1080px){
  .tks--editorial.tks-per-2 ul.tks__track{--per:2}
  .tks--editorial.tks-per-3 ul.tks__track,.tks--editorial.tks-per-4 ul.tks__track,.tks--editorial.tks-per-5 ul.tks__track,.tks--editorial.tks-per-6 ul.tks__track{--per:3}
}
.tks--editorial li.tks__slide{container-type:inline-size; container-name:tksslot}
.tks--editorial .txc{border-color:transparent}
@container tksslot (min-width:470px){
  .tks--editorial .txc{flex-direction:row; align-items:stretch; gap:20px}
  .tks--editorial .txc__media{flex:0 0 42%; margin:0}
  .tks--editorial .txc__body{min-width:0}
  .tks--editorial .txc__actions.has-qty{flex-wrap:wrap}
  .tks--editorial .txc__actions.has-qty .txc__qty{flex:1 1 100%; justify-content:space-between}
  .tks--editorial .txc__img{aspect-ratio:auto; height:100%; min-height:300px}
  .tks--editorial .txc__body{padding:8px 0 2px}
  .tks--editorial .txc .txc__media+.txc__body .txc__title{padding-inline-end:0!important}
  .tks--editorial .txc__go{bottom:12px; inset-inline-end:12px; width:46px; height:46px; border-width:0}
  .tks--editorial .txc__price{margin-top:6px}
  .tks--editorial .txc__tax{margin-bottom:14px}
  .tks--editorial .txc__feats{margin-top:auto!important}
  .tks--editorial .txc__feats+.txc__actions,.tks--editorial .txc__actions{margin-top:14px}
  .tks--editorial .txc__body>.txc__tax+.txc__actions{margin-top:auto; padding-top:14px}
}

/* ================================================================
   5 · كارد تيكسا — الكارد كما هو
   ================================================================ */

/* ---------- Tablet & phone ---------- */
@media (max-width:900px){
  .tks__split{grid-template-columns:1fr}
  .tks__panel{min-height:0; margin:0 0 4px}
  .tks__panel-in{padding:26px 22px}
}
@media (max-width:640px){
  .tks{padding:min(var(--tks-pad),44px) 16px}
  .tks .tks__title{font-size:min(var(--tks-title),26px)!important}
  .tks__head{margin-bottom:20px; align-items:center}
  .tks__sub{font-size:15px}
  .tks a.tks__link{height:42px; padding:0 16px; font-size:14px}
  .tks__tabs{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-16px; padding-inline:16px}
  .tks__tabs::-webkit-scrollbar{display:none}
  .tks .tks__panel-title{font-size:24px!important}
}
@media (hover:none) and (max-width:900px){ .tks__arrows{display:none} }
@media (prefers-reduced-motion:reduce){ .tks ul.tks__track{scroll-behavior:auto} .tks__panel-img{transition:none} }

/* 2.1.0 mouse drag-to-scroll */
@media (hover:hover) and (pointer:fine){
  .tks ul.tks__track{cursor:grab}
  .tks ul.tks__track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
  .tks ul.tks__track.is-dragging a,.tks ul.tks__track.is-dragging button{pointer-events:none}
}
.tks__track img{-webkit-user-drag:none}
