/* ================================================================
   Texa Header v3 — كل القيم تُضبط من «هيدر تيكسا» في لوحة التحكم
   ================================================================ */
.tx,.tx-drawer,.tx-minicart,.tx-scrim,.tx-toast{
  --tx-ink:#171310; --tx-accent:#A9803D; --tx-accent-dark:#8A6630; --tx-accent-soft:#D5C1A0; --tx-sand:#F5F1EA; --tx-brand:#5A1A2A;
  --tx-muted:#7d7469; --tx-line:rgba(23,19,16,.09);
  --tx-logo-h:46px; --tx-logo-h-m:36px; --tx-wrap-w:1400px;
  --tx-bar-h:36px; --tx-main-h:76px; --tx-nav-h:50px; --tx-menu-fs:15px; --tx-search-h:46px; --tx-main-h-m:60px;
  --tx-font:'Tajawal',system-ui,sans-serif; --tx-ease:cubic-bezier(.2,.7,.2,1);
}
.tx,.tx-drawer,.tx-minicart{direction:rtl;text-align:right;color:var(--tx-ink);font-family:var(--tx-font);line-height:1.5;-webkit-font-smoothing:antialiased}
.tx *,.tx-drawer *,.tx-minicart *{box-sizing:border-box}
.tx a,.tx-drawer a,.tx-minicart a{color:inherit;text-decoration:none}
.tx ul,.tx-drawer ul,.tx-minicart ul{list-style:none;margin:0;padding:0}
.tx button,.tx-drawer button,.tx-minicart button{font:inherit;cursor:pointer;border:0;background:none;color:inherit;padding:0}
.tx-svg{width:22px;height:22px;flex:0 0 auto}
.tx a:focus-visible,.tx button:focus-visible,.tx input:focus-visible,
.tx-drawer a:focus-visible,.tx-drawer button:focus-visible,
.tx-minicart a:focus-visible,.tx-minicart button:focus-visible{outline:2px solid var(--tx-accent);outline-offset:2px}
.tx-wrap{max-width:var(--tx-wrap-w);margin:0 auto;padding:0 28px}

/* ---------- التثبيت ---------- */
.tx{position:relative;z-index:var(--tx-z,390);transition:transform .35s var(--tx-ease)}
.tx--sticky-always,.tx--sticky-smart{position:sticky;top:var(--wp-admin--admin-bar--height,0px)}
/* إخفاء الشريط العلوي عند التمرير — بالإزاحة لا بتغيير الارتفاع، فلا تقفز الصفحة */
.tx--compact.is-scrolled{transform:translateY(calc(-1 * var(--tx-bar-real,0px)))}
.tx--sticky-smart.is-hidden{transform:translateY(-100%)}
.tx.is-hidden .tx-mega{display:none}
/* عند فتح لوحة جانبية من القالب (فلاتر، قائمة، سلة WoodMart) يتنحّى الهيدر تحتها */
.tx.is-under{z-index:1!important}
.tx.is-under .tx-mega{display:none}

/* ---------- الشريط العلوي ---------- */
.tx-bar{background:var(--tx-ink);color:var(--tx-sand);font-size:13px;font-weight:500;overflow:hidden}
.tx-bar__in{display:flex;align-items:center;justify-content:center;gap:20px;height:var(--tx-bar-h);position:relative}
.tx-bar__msgs{position:relative;flex:1;min-width:0;height:100%;display:grid;place-items:center}
.tx-bar__msg{grid-area:1/1;max-width:100%;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .45s var(--tx-ease);white-space:nowrap}
.tx-bar__msg.is-on{opacity:1;transform:none}
.tx-bar__side{position:absolute;left:28px;top:0;bottom:0;display:flex;align-items:center;gap:14px}
.tx-bar__phone{display:inline-flex;align-items:center;gap:6px;opacity:.85;transition:opacity .2s}
.tx-bar__phone:hover{opacity:1;color:var(--tx-accent-soft)}
.tx-bar__phone .tx-svg{width:15px;height:15px}
.tx-bar .tx-btn{height:calc(var(--tx-bar-h) - 10px);padding:0 12px;font-size:12.5px}
.tx-bar .tx-btn .tx-svg{width:15px;height:15px}
.tx-bar .tx-btn--outline{border-color:rgba(255,255,255,.4)!important;color:#fff!important}
.tx-bar .tx-btn--soft{background:rgba(255,255,255,.12)!important;color:#fff!important}
.tx-bar .tx-btn--link{color:var(--tx-accent-soft)!important}

/* ---------- الصف الرئيسي ---------- */
.tx-head{position:relative}
.tx-row--main{background:#fff;position:relative;z-index:2;transition:box-shadow .3s}
.tx-main{display:flex;align-items:center;gap:24px;height:var(--tx-main-h)}
.tx-logo{flex:0 0 auto;display:flex;align-items:center}
.tx-logo img{display:block;height:var(--tx-logo-h);width:auto}
.tx-logo__text{font-size:26px;font-weight:800;letter-spacing:-.5px}

.tx-catbtn{display:none!important;align-items:center;gap:8px;height:42px;padding:0 16px!important;border-radius:99px!important;
  background:var(--tx-sand)!important;font-weight:700!important;font-size:14px!important;white-space:nowrap;transition:background .2s}
.tx-catbtn .tx-svg{width:18px;height:18px}
.tx-catbtn:hover,.tx-catbtn[aria-expanded=true]{background:var(--tx-ink)!important;color:#fff!important}
.tx--hidenav.is-scrolled .tx-catbtn{display:inline-flex!important}

/* البحث */
.tx-search{position:relative;flex:1 1 auto;max-width:640px;margin-inline:auto;display:flex;align-items:center;
  height:var(--tx-search-h);border-radius:99px;background:var(--tx-sand);border:1.5px solid transparent;transition:border-color .2s,background .2s,box-shadow .2s}
.tx-search:focus-within{background:#fff;border-color:var(--tx-accent-soft);box-shadow:0 0 0 5px color-mix(in srgb,var(--tx-accent) 12%,transparent)}
.tx-search__ic{display:grid;place-items:center;width:48px;color:var(--tx-muted)}
.tx-search__ic .tx-svg{width:20px;height:20px}
.tx-search input[type=search]{flex:1;min-width:0;height:100%!important;border:0!important;background:transparent!important;box-shadow:none!important;
  padding:0!important;margin:0!important;font:inherit;font-size:15px;color:var(--tx-ink);outline:0;border-radius:0!important}
.tx-search input::placeholder{color:#a39a8f}
.tx-search input::-webkit-search-cancel-button{display:none}
.tx-search__kbd{font:600 12px/1 var(--tx-font);color:var(--tx-muted);border:1px solid var(--tx-line);background:#fff;border-radius:6px;padding:4px 7px;margin-inline-end:8px}
.tx .tx-search__go{display:inline-flex;align-items:center;justify-content:center;height:calc(var(--tx-search-h) - 10px);margin-inline-end:4px;padding:0 20px;border-radius:99px;
  background:var(--tx-ink)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;line-height:1!important;transition:background .2s}
.tx .tx-search__go:hover{background:var(--tx-accent-dark)!important}
.tx-search:focus-within .tx-search__kbd{display:none}
.tx-search__pop{position:absolute;top:calc(100% + 10px);right:0;left:0;padding:16px 18px 18px;background:#fff;border-radius:20px;
  border:1px solid var(--tx-line);box-shadow:0 24px 50px -20px rgba(23,19,16,.3);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:all .2s var(--tx-ease);z-index:5}
.tx-search.is-pop .tx-search__pop{opacity:1;visibility:visible;transform:none}
.tx-search__pop small{display:block;font-size:12px;font-weight:700;color:var(--tx-muted);margin-bottom:10px}
.tx-search__pop div{display:flex;flex-wrap:wrap;gap:8px}
.tx-search__pop a{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:99px;background:var(--tx-sand);font-size:14px;font-weight:600;transition:background .2s,color .2s}
.tx-search__pop a .tx-svg{width:14px;height:14px;opacity:.6}
.tx-search__pop a:hover{background:var(--tx-ink);color:#fff}

/* الأيقونات */
.tx-actions{flex:0 0 auto;display:flex;align-items:center;gap:4px}
.tx-iconbtn{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;transition:background .2s,color .2s,transform .2s}
.tx-iconbtn:hover{background:var(--tx-sand)}
.tx-iconbtn:active{transform:scale(.94)}
.tx-iconbtn--wa{color:#1DA851}
.tx-iconbtn--wa:hover{background:#e8f8ee}
.tx-iconbtn[data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-4px);
  padding:5px 10px;border-radius:8px;background:var(--tx-ink);color:#fff;font-size:12px;font-weight:600;white-space:nowrap;
  opacity:0;visibility:hidden;transition:all .18s;pointer-events:none;z-index:3}
.tx-iconbtn[data-tip]:hover::after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.tx-burger,.tx-msearch-btn{display:none}
.tx-actions .tx-btn{margin-inline-end:4px}

.tx-cart{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 5px 0 16px;margin-inline-start:6px;border-radius:99px;
  background:var(--tx-ink)!important;color:#fff!important;transition:background .2s,transform .2s}
.tx-cart:hover,.tx-cart[aria-expanded=true]{background:var(--tx-accent-dark)!important}
.tx-cart:active{transform:scale(.97)}
.tx-cart__ic{position:relative;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1)}
.tx-cart__ic .tx-svg{width:20px;height:20px}
.tx-cart-count{position:absolute;top:-4px;left:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--tx-accent);
  color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--tx-ink)}
.tx-cart-count[data-count="0"]{display:none}
.tx-cart-count.is-bump{animation:txBump .5s var(--tx-ease)}
@keyframes txBump{40%{transform:scale(1.45)}}
.tx-cart-total{font-size:14px;font-weight:700;white-space:nowrap}
.tx-cart-total .woocommerce-Price-currencySymbol{font-size:.85em;opacity:.8}
.tx-cart-total:empty{display:none}

/* ---------- الأزرار القابلة للإضافة ---------- */
.tx-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 18px!important;border-radius:99px!important;
  font-size:14px!important;font-weight:800!important;line-height:1!important;white-space:nowrap;border:1.5px solid transparent!important;
  text-transform:none!important;letter-spacing:normal!important;transition:transform .2s,box-shadow .2s,background .2s,color .2s,border-color .2s}
.tx-btn .tx-svg{width:18px;height:18px}
.tx-btn--icon{width:40px;padding:0!important}
.tx-btn--accent{background:linear-gradient(135deg,var(--tx-accent),var(--tx-accent-dark))!important;color:#fff!important;box-shadow:0 8px 20px -10px var(--tx-accent)}
.tx-btn--accent:hover{transform:translateY(-1px);box-shadow:0 12px 24px -10px var(--tx-accent)}
.tx-btn--dark{background:var(--tx-ink)!important;color:#fff!important}
.tx-btn--dark:hover{background:var(--tx-accent-dark)!important}
.tx-btn--outline{background:transparent!important;border-color:var(--tx-ink)!important;color:var(--tx-ink)!important}
.tx-btn--outline:hover{background:var(--tx-ink)!important;color:#fff!important}
.tx-btn--soft{background:var(--tx-sand)!important;color:var(--tx-ink)!important}
.tx-btn--soft:hover{background:var(--tx-accent-soft)!important}
.tx-btn--link{background:transparent!important;color:var(--tx-accent-dark)!important;padding:0 6px!important}
.tx-btn--link:hover{text-decoration:underline!important}

/* ---------- شريط القائمة ---------- */
.tx-nav{position:relative;z-index:1;background:#fff;border-top:1px solid var(--tx-line);border-bottom:1px solid var(--tx-line);
  transition:opacity .25s,visibility .25s}
.tx-nav__in{display:flex;align-items:center;gap:12px;height:var(--tx-nav-h)}
.tx-menu{display:flex;align-items:center;flex:1 1 auto;min-width:0;overflow:hidden}
.tx-menu__item{flex:0 0 auto}
.tx-menu__item.is-ovf{display:none!important}
.tx-menu__item>a{position:relative;display:inline-flex;align-items:center;gap:5px;height:var(--tx-nav-h);padding:0 13px;
  font-size:var(--tx-menu-fs);font-weight:700;white-space:nowrap;transition:color .2s}
.tx-menu__item>a .tx-svg{width:15px;height:15px;opacity:.55;transition:transform .25s var(--tx-ease)}
.tx-menu__item>a::after{content:"";position:absolute;right:13px;left:13px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--tx-accent);
  transform:scaleX(0);transition:transform .3s var(--tx-ease)}
.tx-menu__item:hover>a,.tx-menu__item.is-open>a{color:var(--tx-accent-dark)}
.tx-menu__item:hover>a::after,.tx-menu__item.is-open>a::after,.tx-menu__item.is-current>a::after{transform:scaleX(1)}
.tx-menu__item.is-open>a .tx-svg{transform:rotate(180deg);opacity:1}
.tx-menu__item.is-current>a{color:var(--tx-accent-dark)}
.tx-menu__item.is-hl>a,.tx-acc__item.is-hl .tx-acc__t{color:var(--tx-accent-dark)}
.tx-menu__item.is-hl>a .tx-menu__t{background:linear-gradient(transparent 62%,color-mix(in srgb,var(--tx-accent) 22%,transparent) 0)}
.tx-badge{display:inline-block;padding:2px 7px;border-radius:99px;background:var(--tx-accent);color:#fff;font-size:10.5px;font-weight:800;line-height:1.4;
  transform:translateY(-6px)}
.tx-acc .tx-badge{transform:none}

/* المزيد */
.tx-more{position:relative;flex:0 0 auto}
.tx-more[hidden]{display:none}
.tx-more__btn{display:inline-flex!important;align-items:center;gap:5px;height:var(--tx-nav-h);padding:0 12px!important;font-size:var(--tx-menu-fs)!important;font-weight:700!important}
.tx-more__btn .tx-svg{width:15px;height:15px;transition:transform .25s}
.tx-more.is-open .tx-more__btn{color:var(--tx-accent-dark)}
.tx-more.is-open .tx-more__btn .tx-svg{transform:rotate(180deg)}
.tx-more__list{position:absolute;top:calc(100% - 4px);left:0;min-width:220px;max-height:60vh;overflow:auto;padding:8px!important;background:#fff;
  border:1px solid var(--tx-line);border-radius:16px;box-shadow:0 24px 50px -20px rgba(23,19,16,.35);
  opacity:0;visibility:hidden;transform:translateY(6px);transition:all .2s var(--tx-ease);z-index:6}
.tx-more.is-open .tx-more__list{opacity:1;visibility:visible;transform:none}
.tx-more__list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;font-size:14.5px;font-weight:700;white-space:nowrap}
.tx-more__list a:hover{background:var(--tx-sand);color:var(--tx-accent-dark)}
.tx-more__list .tx-badge{transform:none}

.tx-nav__btns{flex:0 0 auto;display:flex;align-items:center;gap:8px}

/* إخفاء شريط القائمة عند التمرير */
.tx--hidenav.is-scrolled:not(.is-peek) .tx-nav{opacity:0;visibility:hidden;pointer-events:none}
.tx.is-scrolled .tx-row--main{box-shadow:0 1px 0 var(--tx-line)}
.tx--hidenav.is-scrolled:not(.is-peek) .tx-row--main{box-shadow:0 10px 30px -18px rgba(23,19,16,.35)}
.tx.is-scrolled:not(.tx--hidenav) .tx-nav,.tx--hidenav.is-scrolled.is-peek .tx-nav{box-shadow:0 10px 30px -18px rgba(23,19,16,.35)}

/* ---------- القائمة الضخمة ---------- */
.tx-mega{position:absolute;top:100%;right:0;left:0;padding:12px 28px 0;
  opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .22s,transform .3s var(--tx-ease),visibility .22s}
.tx-mega.is-open{opacity:1;visibility:visible;transform:none}
.tx-mega__card{max-width:calc(var(--tx-wrap-w) - 56px);margin:0 auto;display:grid;grid-template-columns:260px minmax(0,1fr);
  background:#fff;border:1px solid var(--tx-line);border-radius:26px;overflow:hidden;
  box-shadow:0 40px 80px -30px rgba(23,19,16,.35)}
.tx-mega__side{padding:14px;background:var(--tx-sand);max-height:min(500px,calc(100vh - 220px));overflow-y:auto;scrollbar-width:thin}
.tx-mega__tab{display:flex;align-items:center;gap:12px;padding:7px 10px;border-radius:14px;font-size:14.5px;font-weight:700;transition:background .2s,box-shadow .2s}
.tx-mega__tab:hover{background:rgba(255,255,255,.6)}
.tx-mega__tab.is-active{background:#fff;box-shadow:0 6px 18px -10px rgba(23,19,16,.3)}
.tx-mega__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx-mega__tab>.tx-svg{width:16px;height:16px;opacity:0;transform:translateX(6px);transition:all .25s var(--tx-ease);color:var(--tx-accent)}
.tx-mega__tab.is-active>.tx-svg{opacity:1;transform:none}
.tx-mega__thumb{flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:#fff center/cover no-repeat;display:grid;place-items:center;
  color:var(--tx-accent);border:1px solid var(--tx-line)}
.tx-mega__thumb .tx-svg{width:18px;height:18px}

.tx-mega__panes{min-width:0}
.tx-pane{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;padding:24px 26px 26px;min-height:100%}
.tx-pane[hidden]{display:none}
.tx-pane.is-in{animation:txFade .35s var(--tx-ease)}
@keyframes txFade{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

.tx-pane__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.tx-pane__head h3{margin:0;font-size:22px;font-weight:800;line-height:1.3;color:var(--tx-ink)}
.tx-pane__head small{font-size:13px;color:var(--tx-muted)}
.tx-pill{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 16px;border-radius:99px;border:1.5px solid var(--tx-line);
  font-size:14px;font-weight:700;transition:all .2s;white-space:nowrap}
.tx-pill .tx-svg{width:16px;height:16px}
.tx-pill:hover{background:var(--tx-ink);border-color:var(--tx-ink);color:#fff}

.tx-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-height:min(380px,calc(100vh - 330px));overflow-y:auto;scrollbar-width:thin;padding:2px}
.tx-sub{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;border:1px solid var(--tx-line);transition:border-color .2s,background .2s,transform .2s}
.tx-sub:hover{border-color:var(--tx-accent-soft);background:#fffcf7;transform:translateY(-2px)}
.tx-sub b{display:block;font-size:14px;font-weight:700;line-height:1.35}
.tx-sub small{display:block;font-size:12px;color:var(--tx-muted)}
.tx-sub.has-img{flex-direction:column;align-items:stretch;padding:8px;gap:8px}
.tx-sub__img{display:block;aspect-ratio:4/3;border-radius:11px;overflow:hidden;background:var(--tx-sand)}
.tx-sub__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--tx-ease)}
.tx-sub:hover .tx-sub__img img{transform:scale(1.07)}
.tx-sub.has-img .tx-sub__txt{padding:0 4px 2px}
.tx-sub__img--ph{display:grid;place-items:center;color:var(--tx-accent-soft)}
.tx-sub__img--ph .tx-svg{width:30px;height:30px}

.tx-empty{display:flex;align-items:center;gap:12px;padding:22px;border-radius:18px;border:1.5px dashed var(--tx-accent-soft);
  background:#fffcf7;font-size:15px;font-weight:600;color:var(--tx-muted);transition:all .2s}
.tx-empty .tx-svg{color:var(--tx-accent)}
.tx-empty:hover{border-style:solid;color:var(--tx-ink)}

.tx-feat{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:6px;min-height:320px;padding:22px;
  border-radius:22px;overflow:hidden;color:#fff!important;isolation:isolate;
  background:linear-gradient(150deg,var(--tx-accent-dark),var(--tx-ink)) center/cover no-repeat}
.tx-feat::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(23,19,16,.85),rgba(23,19,16,.05) 60%)}
.tx-feat::after{content:"";position:absolute;inset:0;z-index:-2;background:inherit;transition:transform .7s var(--tx-ease)}
.tx-feat:hover::after{transform:scale(1.06)}
.tx-feat__label{position:absolute;top:16px;right:16px;padding:5px 12px;border-radius:99px;font-size:12px;font-weight:700;
  background:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25)}
.tx-feat strong{font-size:24px;font-weight:800;line-height:1.25}
.tx-feat__btn{display:inline-flex;align-items:center;gap:6px;margin-top:6px;height:38px;padding:0 16px;border-radius:99px;background:#fff;color:var(--tx-ink);
  font-size:14px;font-weight:800;transition:gap .25s var(--tx-ease)}
.tx-feat__btn .tx-svg{width:16px;height:16px}
.tx-feat:hover .tx-feat__btn{gap:10px}

/* ---------- التعتيم ---------- */
.tx-scrim{position:fixed;inset:0;z-index:calc(var(--tx-z,390) - 1);background:rgba(23,19,16,.4);opacity:0;transition:opacity .25s;pointer-events:none}
.tx-scrim.is-on{opacity:1;pointer-events:auto}
.tx-scrim.is-top{z-index:99990}
.tx-scrim[hidden]{display:none!important}

/* ---------- قائمة الجوال ---------- */
.tx-drawer{position:fixed;top:0;bottom:0;right:0;z-index:99999;width:min(90vw,400px);display:flex;flex-direction:column;background:#fff;
  transform:translateX(105%);transition:transform .38s var(--tx-ease),visibility 0s .38s;box-shadow:-30px 0 60px -30px rgba(23,19,16,.4);
  visibility:hidden}
.tx-drawer.is-open{transform:none;visibility:visible;transition:transform .38s var(--tx-ease)}
.tx-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--tx-line)}
.tx-drawer__head .tx-logo img{height:var(--tx-logo-h-m)}
.tx-drawer__body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px}
.tx-search--drawer{max-width:none;margin:0 0 14px;height:46px}
.tx-search--drawer .tx-search__kbd,.tx-search--drawer .tx-search__go{display:none!important}
.tx-acc__item{border-bottom:1px solid var(--tx-line)}
.tx-acc__btn{display:flex!important;width:100%;align-items:center;gap:12px;padding:12px 0!important;font-size:16px!important;font-weight:700!important;text-align:right;line-height:1.3!important}
.tx-acc__t{flex:1}
.tx-acc__btn .tx-mega__thumb{width:36px;height:36px;border-radius:10px}
.tx-acc__btn>.tx-svg{width:18px;height:18px;opacity:.6;transition:transform .25s var(--tx-ease)}
.tx-acc__item.is-open .tx-acc__btn>.tx-svg{transform:rotate(180deg)}
.tx-acc__item.is-current>.tx-acc__btn{color:var(--tx-accent-dark)}
.tx-acc__panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s var(--tx-ease)}
.tx-acc__item.is-open .tx-acc__panel{grid-template-rows:1fr}
.tx-acc__panel>ul{overflow:hidden;padding-inline-start:48px!important}
.tx-acc__panel a{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:15px;font-weight:500;color:#4a4036}
.tx-acc__panel small{font-size:12px;min-width:26px;text-align:center;padding:1px 7px;border-radius:99px;background:var(--tx-sand);color:var(--tx-muted)}
.tx-acc__panel li:last-child a{padding-bottom:14px}
.tx-acc__all{color:var(--tx-accent-dark)!important;font-weight:700!important}
.tx-drawer__links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.tx-drawer__links a{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;border-radius:14px;background:var(--tx-sand);font-weight:700;font-size:14px}
.tx-drawer__links .tx-svg{width:19px;height:19px}
.tx-drawer__foot{display:grid;gap:10px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--tx-line)}
.tx-drawer__foot .tx-btn{height:48px;width:100%;font-size:15px!important}
.tx-wa-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:99px;background:#1DA851;color:#fff!important;font-weight:800}
html.tx-lock,html.tx-lock body{overflow:hidden!important}

/* ---------- السلة الجانبية ---------- */
.tx-minicart{position:fixed;top:0;bottom:0;left:0;z-index:99999;width:min(100vw,420px);display:flex;flex-direction:column;background:#fff;
  transform:translateX(-105%);visibility:hidden;transition:transform .38s var(--tx-ease),visibility 0s .38s;box-shadow:30px 0 60px -30px rgba(23,19,16,.4);outline:0}
.tx-minicart.is-open{transform:none;visibility:visible;transition:transform .38s var(--tx-ease)}
.tx-minicart__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 12px 10px;border-bottom:1px solid var(--tx-line)}
.tx-minicart__head strong{font-size:18px;font-weight:800}
.tx-mc-badge{color:var(--tx-muted);font-weight:600;font-size:15px}
.tx-minicart__inner{flex:1;min-height:0;display:flex;flex-direction:column}
.tx-minicart.is-busy .tx-minicart__inner{opacity:.55;pointer-events:none;transition:opacity .2s}

.tx-ship{padding:14px 18px 16px;background:#fff;border-bottom:1px solid var(--tx-line)}
.tx-ship--foot{padding:0 0 14px;margin:0 0 14px;border-bottom:1px dashed var(--tx-line);background:none}
.tx-mc-empty+.tx-ship,.tx-ship+.tx-mc-empty{border-bottom:0}
.tx-ship p{display:flex;align-items:center;gap:8px;margin:0 0 10px!important;font-size:14px;font-weight:500;line-height:1.6;color:var(--tx-ink)}
.tx-ship p .tx-svg{flex:none;width:20px;height:20px;color:var(--tx-accent)}
.tx-ship b,.tx-ship__amt{font-weight:800;white-space:nowrap}
.tx-ship__amt .woocommerce-Price-amount{font-weight:800}
.tx-ship__bar{position:relative;display:block;height:10px;border-radius:99px;background:#ececec;overflow:hidden}
.tx-ship__bar i{display:block;height:100%;min-width:10px;border-radius:99px;background-color:var(--tx-accent);transition:width .7s var(--tx-ease)}
.tx-ship--stripes .tx-ship__bar i{background-image:linear-gradient(45deg,rgba(255,255,255,.28) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.28) 75%,transparent 75%,transparent);background-size:14px 14px;animation:tx-stripes 1s linear infinite}
@keyframes tx-stripes{from{background-position:0 0}to{background-position:-14px 0}}
.tx-ship.is-done p .tx-svg{color:#1DA851}
.tx-ship.is-done .tx-ship__bar i{background-color:#1DA851}
@media (prefers-reduced-motion:reduce){.tx-ship__bar i{animation:none!important;transition:none!important}}

.tx-mc-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 18px!important;margin:0!important}
.tx-mc-item{position:relative;display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--tx-line);margin:0!important}
.tx-mc-item:last-child{border-bottom:0}
.tx-mc-item__img{flex:0 0 auto;width:76px;height:76px;border-radius:14px;overflow:hidden;background:var(--tx-sand)}
.tx-mc-item__img img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important;border-radius:0!important}
.tx-mc-item__info{flex:1;min-width:0;padding-inline-end:26px;display:flex;flex-direction:column;gap:4px}
.tx-mc-item__name{font-size:14.5px;font-weight:700;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tx-mc-item__name:hover{color:var(--tx-accent-dark)}
.tx-mc-item dl.variation{margin:0;font-size:12px;color:var(--tx-muted);display:flex;flex-wrap:wrap;gap:2px 6px}
.tx-mc-item dl.variation dt,.tx-mc-item dl.variation dd,.tx-mc-item dl.variation p{margin:0;padding:0;font-weight:500}
.tx-mc-item__row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.tx-mc-item__sub{font-size:14.5px;font-weight:800;white-space:nowrap}
.tx-mc-item__unit{font-size:13px;color:var(--tx-muted)}
.tx-mc-item__rm{position:absolute;top:12px;left:0;width:28px!important;height:28px!important;border-radius:50%;display:grid!important;place-items:center;
  color:var(--tx-muted)!important;background:none!important;font-size:0!important;line-height:1!important;transition:background .2s,color .2s}
.tx-mc-item__rm .tx-svg{width:17px;height:17px}
.tx-mc-item__rm:hover{background:#fdecec!important;color:#c0392b!important}
.tx-qty{display:inline-flex;align-items:center;height:34px;border:1px solid var(--tx-line);border-radius:99px;overflow:hidden}
.tx-qty__btn{width:32px;height:100%;display:grid!important;place-items:center;transition:background .2s}
.tx-qty__btn:hover{background:var(--tx-sand)!important}
.tx-qty__btn:disabled{opacity:.35;cursor:not-allowed}
.tx-qty__btn .tx-svg{width:15px;height:15px}
.tx-qty__val{min-width:26px;text-align:center;font-weight:800;font-size:14px}

.tx-mc-foot{padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--tx-line);background:#fff;box-shadow:0 -12px 24px -20px rgba(23,19,16,.3)}
.tx-mc-total{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:700}
.tx-mc-total b{font-size:19px;font-weight:800}
.tx-mc-note{display:block;margin:2px 0 12px;font-size:12.5px;color:var(--tx-muted)}
.tx-mc-btns{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}
.tx-mc-btns .tx-btn{height:48px;width:100%;font-size:15px!important}

.tx-mc-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:30px;text-align:center}
.tx-mc-empty__ic{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--tx-sand);color:var(--tx-accent)}
.tx-mc-empty__ic .tx-svg{width:36px;height:36px}
.tx-mc-empty p{margin:0 0 6px;font-size:16px;font-weight:700}
.tx-mc-empty .tx-btn{height:46px}

/* نافذة منسدلة أسفل زر السلة (كمبيوتر فقط) */
@media (min-width:1025px){
  .tx-minicart--dropdown{top:var(--tx-pop-top,90px);bottom:auto;left:var(--tx-pop-left,24px);width:400px;max-height:min(620px,calc(100vh - var(--tx-pop-top,90px) - 20px));
    border-radius:22px;border:1px solid var(--tx-line);box-shadow:0 30px 70px -25px rgba(23,19,16,.45);
    transform:translateY(-8px);opacity:0;transition:opacity .2s,transform .25s var(--tx-ease),visibility 0s .25s}
  .tx-minicart--dropdown.is-open{transform:none;opacity:1;transition:opacity .2s,transform .25s var(--tx-ease)}
  .tx-minicart--dropdown .tx-minicart__head{padding:10px 12px 10px 8px}
  .tx-minicart--dropdown .tx-minicart__head strong{font-size:16px}
  .tx-minicart--dropdown .tx-mc-foot{border-radius:0 0 22px 22px}
  .tx-minicart--dropdown .tx-mc-empty{padding:34px 24px}
}

/* ---------- إظهار حسب الجهاز ---------- */
@media (min-width:1025px){ .tx .tx-only-m,.tx-drawer .tx-only-m{display:none!important} }

/* ---------- الاستجابة ---------- */
@media (max-width:1280px){
  .tx-main{gap:16px}
  .tx-menu__item>a{padding:0 10px}
  .tx-menu__item>a::after{right:10px;left:10px}
  .tx-pane{grid-template-columns:minmax(0,1fr) 230px}
}
@media (max-width:1200px){
  .tx-cart-total{display:none}
  .tx-cart{padding:0 5px}
}
@media (max-width:1024px){
  .tx-nav,.tx-mega{display:none!important}
  .tx .tx-only-d{display:none!important}
  .tx-wrap{padding:0 14px}
  .tx-bar{font-size:12px}
  .tx-bar__side{display:none}
  .tx-main{height:var(--tx-main-h-m);gap:6px}
  .tx .tx-burger{display:grid!important}
  .tx-logo{margin-inline-end:auto}
  .tx-logo img{height:var(--tx-logo-h-m)}
  .tx-search--main{display:none}
  .tx-iconbtn{width:42px;height:42px}
  .tx-iconbtn[data-tip]::after{display:none}
  .tx-actions .tx-btn:not(.tx-btn--icon){height:36px;padding:0 12px!important;font-size:13px!important}
  .tx-cart{height:42px;margin-inline-start:2px}
  .tx .tx-catbtn,.tx--hidenav.is-scrolled .tx-catbtn{display:none!important}

  .tx-row--msearch{background:#fff;padding:0 0 10px;transition:opacity .25s,visibility .25s}
  .tx-row--msearch .tx-search{max-width:none;height:44px}
  .tx-row--msearch .tx-search__kbd,.tx-row--msearch .tx-search__go{display:none!important}
  .tx-row--msearch{border-bottom:1px solid var(--tx-line)}
  /* عند التمرير: يختفي حقل البحث ويظهر زر بحث صغير */
  .tx--compact.is-scrolled:not(.is-peek) .tx-row--msearch{opacity:0;visibility:hidden;pointer-events:none}
  .tx--compact.is-scrolled .tx-msearch-btn{display:grid!important}
  .tx.is-scrolled .tx-row--main{box-shadow:0 10px 30px -18px rgba(23,19,16,.35)}

  .tx--no-mstick{position:relative!important;transform:none!important}
}
@media (min-width:1025px){ .tx-row--msearch{display:none} }
@media (max-width:600px){
  /* شريط إدارة ووردبريس لا يثبت على الجوال */
  .tx--sticky-always,.tx--sticky-smart{top:0}
  .tx-minicart{width:88vw}
  .tx-mc-item__img{width:68px;height:68px}
}
@media (prefers-reduced-motion:reduce){
  .tx,.tx *,.tx-drawer,.tx-drawer *,.tx-minicart,.tx-minicart *{transition:none!important;animation:none!important}
}

/* ---------- حماية من أنماط القالب (WoodMart وغيره) ---------- */
.tx button,.tx-drawer button,.tx-minicart button{background:none;box-shadow:none!important;border:0!important;min-height:0!important;
  line-height:inherit;text-transform:none!important;letter-spacing:normal!important;border-radius:0}
.tx .tx-iconbtn,.tx-drawer .tx-iconbtn,.tx-minicart .tx-iconbtn{border-radius:50%!important}
.tx .tx-iconbtn,.tx-drawer .tx-iconbtn,.tx-minicart .tx-iconbtn,.tx .tx-acc__btn{line-height:1!important}
.tx .tx-cart-total,.tx .tx-cart-total *{color:#fff!important;font-weight:700}
.tx .tx-logo img{max-width:none;box-shadow:none;border-radius:0}
.tx .tx-menu{margin:0!important;padding:0!important}
.tx li,.tx-drawer li,.tx-minicart li{margin:0;list-style:none!important}
.tx-drawer .tx-acc{margin:0!important;padding:0!important}
.tx-minicart .amount,.tx-minicart bdi{color:inherit}

/* ---------- السلة على الجوال: نافذة سفلية بارتفاع المحتوى ---------- */
@media (max-width:767px){
  .tx-minicart.tx-minicart--msheet{top:auto;bottom:0;left:0;right:0;width:100%;height:auto;max-height:85vh;max-height:85dvh;
    border-radius:22px 22px 0 0;transform:translateY(105%);box-shadow:0 -20px 50px -20px rgba(23,19,16,.45);border:0;opacity:1}
  .tx-minicart.tx-minicart--msheet.is-open{transform:translateY(var(--tx-drag,0px))}
  .tx-minicart.tx-minicart--msheet.is-dragging{transition:none}
  .tx-minicart--msheet::before{content:"";position:absolute;top:8px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:5px;background:#dcd6cd}
  .tx-minicart--msheet .tx-minicart__head{padding-top:20px;touch-action:none}
  .tx-minicart--msheet .tx-minicart__inner{flex:0 1 auto}
  .tx-minicart--msheet .tx-mc-list{flex:0 1 auto}
  .tx-minicart--msheet .tx-mc-empty{flex:0 0 auto;padding:22px 24px 30px}
  .tx-minicart--msheet .tx-mc-empty__ic{width:68px;height:68px}
}

/* ---------- حماية السلة من تنسيقات WoodMart ---------- */
.tx-minicart .remove::before,.tx-minicart .remove::after{content:none!important;display:none!important}
.tx-minicart .remove{font-size:0!important;width:28px!important;height:28px!important}
.tx button:focus:not(:focus-visible),.tx a:focus:not(:focus-visible),
.tx-drawer button:focus:not(:focus-visible),.tx-drawer a:focus:not(:focus-visible),
.tx-minicart button:focus:not(:focus-visible),.tx-minicart a:focus:not(:focus-visible),.tx-minicart:focus{outline:none!important;box-shadow:none}
/* إخفاء الأزرار العائمة (محادثة، واتساب…) أثناء فتح السلة أو القائمة — أضف محددها من «متقدم ← CSS» إن لزم */
html.tx-lock .wd-sticky-btn,html.tx-lock .wd-toolbar,html.tx-lock .joinchat,html.tx-lock [class*="chat-widget"],html.tx-lock [id*="chat-widget"]{visibility:hidden!important}

/* ---------- إشعار «تمت الإضافة» ---------- */
.tx-toast{position:fixed;top:12px;left:12px;right:12px;z-index:99998;max-width:440px;margin:0 auto;display:flex;align-items:center;gap:10px;
  padding:10px 10px 10px 12px;background:#fff;border:1px solid var(--tx-line);border-radius:16px;box-shadow:0 18px 40px -16px rgba(23,19,16,.35);
  direction:rtl;font-family:var(--tx-font);color:var(--tx-ink);opacity:0;transform:translateY(-12px);transition:opacity .25s,transform .3s var(--tx-ease)}
.tx-toast[hidden]{display:none!important}
.tx-toast.is-on{opacity:1;transform:none}
.tx-toast__ic{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f8ee;color:#1DA851}
.tx-toast__ic .tx-svg{width:18px;height:18px}
.tx-toast__t{flex:1;min-width:0;line-height:1.35}
.tx-toast__t b{display:block;font-size:14px;font-weight:800}
.tx-toast__t small{display:block;font-size:12.5px;color:var(--tx-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-toast__t small:empty{display:none}
.tx-toast__btn{flex:0 0 auto;display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:99px;background:var(--tx-ink)!important;color:#fff!important;
  font-size:13px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.tx-toast__x{flex:0 0 auto;width:30px;height:30px;display:grid!important;place-items:center;border:0!important;background:none!important;color:var(--tx-muted);cursor:pointer;padding:0!important}
.tx-toast__x .tx-svg{width:16px;height:16px}
.tx-drawer:focus,.tx-minicart:focus,#txMiniCartClose:focus:not(:focus-visible),#txDrawerClose:focus:not(:focus-visible){outline:none!important}

/* ---------- الشعار على الجوال ---------- */
.tx-logo picture{display:contents}
@media (max-width:1024px){
  .tx .tx-logo img{height:var(--tx-logo-h-m);width:auto;max-width:var(--tx-logo-w-m,150px);object-fit:contain}
  .tx-main{position:relative}
  .tx--logo-m-center .tx-row--main .tx-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0!important;z-index:1}
  .tx--logo-m-center .tx-actions{margin-inline-start:auto}
  .tx--logo-m-start .tx-row--main .tx-logo{margin-inline-end:auto}
}

/* =================================================================
   درع ضد تنسيقات القالب: WoodMart يلوّن كل <button> بلونه الأساسي
   ويفرض إظهاره. نعيد ضبط أزرار الهيدر بالكامل ثم نطبق ألواننا.
   ================================================================= */
.tx button,.tx-drawer button,.tx-minicart button,.tx-toast button{
  background:transparent!important;background-image:none!important;color:var(--tx-ink)!important;
  box-shadow:none!important;border:0!important;text-shadow:none!important;outline-offset:2px}
.tx .tx-iconbtn:hover,.tx-drawer .tx-iconbtn:hover,.tx-minicart .tx-iconbtn:hover{background:var(--tx-sand)!important}
.tx .tx-catbtn{background:var(--tx-sand)!important}
.tx .tx-catbtn:hover,.tx .tx-catbtn[aria-expanded=true]{background:var(--tx-ink)!important;color:#fff!important}
.tx .tx-search__go{background:var(--tx-ink)!important;color:#fff!important}
.tx .tx-search__go:hover{background:var(--tx-accent-dark)!important}
.tx .tx-more.is-open .tx-more__btn,.tx .tx-more__btn:hover{color:var(--tx-accent-dark)!important}
.tx-drawer .tx-acc__btn:hover,.tx-drawer .tx-acc__item.is-open>.tx-acc__btn,.tx-drawer .tx-acc__item.is-current>.tx-acc__btn{color:var(--tx-accent-dark)!important}
.tx-minicart .tx-qty__btn:hover{background:var(--tx-sand)!important}
.tx-toast .tx-toast__x{color:var(--tx-muted)!important}
.tx-drawer .tx-acc__item,.tx-drawer .tx-acc__btn{background:transparent!important}
/* أزرار الجوال لا تظهر على الكمبيوتر مهما فرض القالب */
@media (min-width:1025px){
  .tx .tx-burger,.tx .tx-msearch-btn,.tx .tx-row--msearch{display:none!important}
}

/* ---------- لوحتا «حسابي» و«المفضلة» ---------- */
.tx-panel__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column}
@media (min-width:1025px){
  .tx-panel--account.tx-minicart--dropdown{width:340px}
  .tx-panel--wish.tx-minicart--dropdown{width:380px}
}
.tx-acct{padding:16px 18px 18px}
.tx-acct__hello{display:flex;align-items:center;gap:12px;padding:4px 0 14px;border-bottom:1px solid var(--tx-line);margin-bottom:6px}
.tx-acct__av{flex:0 0 auto;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--tx-sand);color:var(--tx-accent-dark);font-weight:800;font-size:18px}
.tx-acct__hello b{display:block;font-size:15.5px;font-weight:800}
.tx-acct__hello small{display:block;font-size:12.5px;color:var(--tx-muted);text-align:right}
.tx-acct__links a{display:flex;align-items:center;gap:12px;padding:11px 8px;border-radius:12px;font-size:14.5px;font-weight:600;transition:background .2s}
.tx-acct__links a:hover{background:var(--tx-sand)}
.tx-acct__links .tx-svg{width:19px;height:19px;color:var(--tx-muted)}
.tx-acct__l--customer-logout{margin-top:4px;padding-top:4px;border-top:1px solid var(--tx-line)}
.tx-acct__l--customer-logout a{color:#b42318}
.tx-acct__l--customer-logout .tx-svg{color:#b42318}
.tx-login{display:grid;gap:12px}
.tx-login label{display:block;font-size:13px;font-weight:700}
.tx-login input[type=text],.tx-login input[type=password]{display:block;width:100%;height:46px!important;margin-top:6px!important;padding:0 14px!important;border:1px solid var(--tx-line)!important;
  border-radius:12px!important;background:#fff!important;font:inherit;font-size:15px;color:var(--tx-ink);box-shadow:none!important}
.tx-login input:focus{border-color:var(--tx-accent-soft)!important;outline:0;box-shadow:0 0 0 4px color-mix(in srgb,var(--tx-accent) 12%,transparent)!important}
.tx-login__row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.tx-login__rem{display:inline-flex!important;align-items:center;gap:6px;font-weight:500!important}
.tx-login__row a{color:var(--tx-accent-dark);font-weight:600}
.tx-panel .tx-login button.tx-btn{width:100%;height:48px;margin-top:4px;background:var(--tx-ink)!important;color:#fff!important;border-radius:99px!important;justify-content:center}
.tx-login__reg{margin:14px 0 0;text-align:center;font-size:13.5px;color:var(--tx-muted)}
.tx-login__reg a{color:var(--tx-accent-dark);font-weight:800}
.tx-wish__load{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:40px;color:var(--tx-muted);font-size:14px}
.tx-spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--tx-sand);border-top-color:var(--tx-accent);animation:txSpin .8s linear infinite}
@keyframes txSpin{to{transform:rotate(360deg)}}
.tx-wish__list{flex:0 1 auto}
.tx-wish__go{font-size:12.5px;font-weight:700;color:var(--tx-accent-dark)!important;margin-top:2px}
.tx-panel .tx-mc-item__info{padding-inline-end:0}
.tx-panel .tx-mc-empty small{color:var(--tx-muted);font-size:13px}
.tx-panel .tx-mc-foot .tx-btn{width:100%;height:46px}
.tx-panel--wish .tx-mc-empty__ic .tx-svg{width:34px;height:34px}

/* عداد المفضلة على أيقونة القلب + مؤشر التحديث */
.tx-wish-count{position:absolute;top:4px;left:4px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--tx-accent);color:#fff;
  font-size:10.5px;font-weight:800;line-height:17px;text-align:center;box-shadow:0 0 0 2px #fff;pointer-events:none}
.tx-wish-count[data-count="0"]{display:none}
.tx-panel--wish .tx-minicart__head{position:relative}
.tx-panel--wish.is-refreshing .tx-minicart__head::after{content:"";position:absolute;right:0;left:0;bottom:-1px;height:2px;
  background:linear-gradient(90deg,transparent,var(--tx-accent),transparent);background-size:50% 100%;background-repeat:no-repeat;animation:txBar 1s linear infinite}
@keyframes txBar{from{background-position:-50% 0}to{background-position:150% 0}}

/* ---------- تفاصيل الضريبة في السلة ---------- */
.tx-mc-rows{display:flex;flex-direction:column;gap:6px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px dashed var(--tx-line)}
.tx-mc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--tx-muted)}
.tx-mc-row span:last-child{color:var(--tx-ink);font-weight:600;white-space:nowrap}
.tx-mc-total span{white-space:nowrap}


/* =================================================================
   التصاميم الإضافية (v3.4): الفخامة • البوتيك • المدمج
   الكلاسيكي لا يتأثر بأي سطر هنا.
   ================================================================= */

/* ---------- مشترك: الشريط العلوي بلون الهوية ---------- */
.tx:not(.tx--l-classic) .tx-bar{background:var(--tx-brand);color:#fff}
.tx-bar__ic{display:inline-grid;place-items:center;vertical-align:middle;margin-inline-end:8px;color:var(--tx-accent);font-style:normal}
.tx-bar__ic .tx-svg{width:17px;height:17px;fill:color-mix(in srgb,var(--tx-accent) 35%,transparent)}
.tx:not(.tx--l-classic) .tx-bar__msg{display:inline-flex;align-items:center;justify-content:center}

/* ---------- مشترك: القائمة الضخمة بنمط الأعمدة ---------- */
.tx-mega--cols{padding:0 28px}
.tx-mega__card.tx-mega__card--cols{display:block;border-radius:0 0 14px 14px;border-top:0;box-shadow:0 30px 60px -28px rgba(23,19,16,.38)}
.tx-cpane{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:0;padding:0;min-height:0}
.tx-cpane__main{min-width:0;padding:22px 28px 24px;max-height:min(520px,calc(100vh - 230px));overflow-y:auto;scrollbar-width:thin}
.tx-cpane__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:8px;border-bottom:1px solid var(--tx-line)}
.tx-kicker{display:block;font-size:12px;font-weight:700;color:var(--tx-accent);margin-bottom:2px}
.tx-cpane__head h3{margin:0;font-size:22px;font-weight:800;line-height:1.3;color:var(--tx-brand)}
.tx-cpane__head h3 small{font-size:12.5px;font-weight:500;color:var(--tx-muted)}
.tx-cpane__all{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:13.5px;font-weight:800;color:var(--tx-brand)!important;white-space:nowrap}
.tx-cpane__all .tx-svg{width:16px;height:16px;transition:transform .25s var(--tx-ease)}
.tx-cpane__all:hover .tx-svg{transform:translateX(-4px)}

.tx-cols{columns:190px 4;column-gap:0;column-rule:1px solid var(--tx-line)}
.tx-col{display:block;padding:2px 20px 12px;break-inside:avoid}
.tx-col--plain{break-inside:auto}
.tx-cols.has-groups .tx-col--plain{break-inside:avoid}
.tx-col li{break-inside:avoid}
.tx-col a{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:14.5px;font-weight:500;line-height:1.4;color:#3b332c;transition:color .2s}
.tx-col a small{font-size:11.5px;color:var(--tx-muted);font-weight:500}
.tx-col a::after{content:"";flex:0 0 auto;width:0;height:1.5px;background:var(--tx-accent);transition:width .25s var(--tx-ease)}
.tx-col a:hover{color:var(--tx-brand)}
.tx-col a:hover::after{width:18px}
.tx-col .tx-col__h{padding:6px 0 9px;margin-bottom:4px;border-bottom:1px solid var(--tx-line);font-size:15.5px;font-weight:800;color:var(--tx-brand)}
.tx-col--group ul{border-inline-start:1.5px solid var(--tx-line);padding-inline-start:14px!important;margin-top:4px!important}
.tx-col--plain+.tx-col,.tx-col--group+.tx-col{padding-top:8px}

.tx-fcard{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--tx-sand);border-inline-start:1px solid var(--tx-line);color:inherit}
.tx-fcard__img{display:block;aspect-ratio:4/5;max-height:300px;border-radius:6px;overflow:hidden;background:#e9e4dc}
.tx-fcard__img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--tx-ease)}
.tx-fcard:hover .tx-fcard__img img{transform:scale(1.05)}
.tx-fcard__body small{display:block;font-size:11.5px;font-weight:700;color:var(--tx-accent)}
.tx-fcard__body b{display:block;margin:2px 0 6px;font-size:17px;font-weight:800;line-height:1.35;color:var(--tx-brand)}
.tx-fcard__go{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--tx-ink)}
.tx-fcard__go .tx-svg{width:15px;height:15px;transition:transform .25s var(--tx-ease)}
.tx-fcard:hover .tx-fcard__go .tx-svg{transform:translateX(-4px)}
.tx-cpane.no-img .tx-fcard{justify-content:flex-end}
@media (max-width:1280px){ .tx-cpane{grid-template-columns:minmax(0,1fr) 190px} .tx-cols{columns:170px 3} }

/* ---------- قائمة الجوال (موحّدة لكل التصاميم) ---------- */
.tx-drawer .tx-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--tx-line)}
.tx-drawer__title{font-size:17px;font-weight:800;color:var(--tx-ink)}
.tx-drawer .tx-drawer__x{width:40px;height:40px;display:grid!important;place-items:center;border-radius:10px!important;background:var(--tx-sand)!important;color:var(--tx-ink)!important;transition:filter .2s}
.tx-drawer .tx-drawer__x:hover{filter:brightness(.95)}
.tx-drawer__x .tx-svg{width:18px;height:18px;stroke-width:2.4}
.tx-drawer__search{padding:14px 16px;border-bottom:1px solid var(--tx-line)}
.tx-drawer .tx-search--drawer{height:50px;margin:0;border-radius:14px;background:#fff;border:1px solid #e3ddd4}
.tx-drawer .tx-search--drawer:focus-within{border-color:var(--tx-accent-soft)}
.tx-drawer .tx-drawer__body{padding:16px 18px}
.tx-drawer__intro{margin:6px 0 10px}
.tx-drawer__intro small{display:block;font-size:12px;font-weight:600;color:var(--tx-muted)}
.tx-drawer__intro b{display:block;font-size:24px;font-weight:800;line-height:1.4;color:var(--tx-ink)}
.tx-drawer .tx-acc__item{border-bottom:1px solid var(--tx-line)}
.tx-drawer .tx-acc__btn{gap:12px;padding:9px 0!important;font-size:14.5px!important;font-weight:800!important}
.tx-drawer .tx-acc__btn .tx-mega__thumb{width:38px;height:38px;border-radius:8px;border:0}
.tx-drawer .tx-acc__btn>.tx-svg{width:16px;height:16px;opacity:.85;stroke-width:2.2;transform:rotate(90deg)}
.tx-drawer .tx-acc__item.is-open .tx-acc__btn>.tx-svg{transform:none}
.tx-drawer .tx-acc__panel>ul{padding-inline-start:50px!important}

/* =================================================================
   1) الفخامة — شعار وبحث عريض وأيقونات مربعة
   ================================================================= */
.tx--l-luxury .tx-row--main{border-bottom:1px solid var(--tx-line)}
.tx--l-luxury .tx-main{gap:28px}
.tx--l-luxury .tx-search{max-width:none;margin:0;border-radius:6px;background:#fff;border:1px solid #d9d3ca}
.tx--l-luxury .tx-search:focus-within{border-color:var(--tx-brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--tx-brand) 12%,transparent)}
.tx--l-luxury .tx-search__ic{order:3;width:54px;color:var(--tx-ink)}
.tx--l-luxury .tx-search__ic .tx-svg{width:22px;height:22px}
.tx--l-luxury .tx-search input[type=search]{padding-inline-start:18px!important}
.tx--l-luxury .tx-search__kbd,.tx--l-luxury .tx-search__go{display:none!important}
.tx--l-luxury .tx-actions{gap:12px}
.tx.tx--l-luxury .tx-iconbtn{border-radius:10px!important}
.tx.tx--l-luxury .tx-iconbtn--wa{width:46px;height:46px;background:#25D366!important;color:#fff!important}
.tx.tx--l-luxury .tx-iconbtn--wa:hover{background:#1DA851!important}
.tx.tx--l-luxury .tx-iconbtn--wa .tx-svg{width:24px;height:24px}
.tx--l-luxury .tx-cart{width:46px;height:46px;padding:0!important;margin:0;justify-content:center;border-radius:10px!important;background:var(--tx-brand)!important}
.tx--l-luxury .tx-cart:hover,.tx--l-luxury .tx-cart[aria-expanded=true]{background:var(--tx-brand)!important;filter:brightness(1.18)}
.tx--l-luxury .tx-cart__ic{background:none}
.tx--l-luxury .tx-cart-count{top:-12px;left:-12px;box-shadow:0 0 0 2px #fff}
.tx--l-luxury .tx-cart-total{display:none}

.tx--l-luxury .tx-nav{border-top:0}
.tx--l-luxury .tx-menu{gap:2px}
.tx--l-luxury .tx-menu__item>a{height:calc(var(--tx-nav-h) - 14px);margin:7px 0;padding:0 12px;border-radius:8px;transition:background .2s,color .2s}
.tx--l-luxury .tx-menu__item>a::after{right:12px;left:12px;bottom:0;height:2px;background:var(--tx-brand)}
.tx--l-luxury .tx-menu__item:hover>a,.tx--l-luxury .tx-menu__item.is-open>a{background:var(--tx-sand);color:var(--tx-brand)}
.tx--l-luxury .tx-menu__item.is-current>a{color:var(--tx-brand)}
.tx--l-luxury .tx-menu__item:hover:not(.is-open)>a::after{transform:scaleX(0)}
.tx--l-luxury .tx-nav .tx-btn,.tx--l-boutique .tx-nav .tx-btn,.tx--l-compact .tx-nav .tx-btn{border-radius:6px!important}
.tx--l-luxury .tx-nav .tx-btn--accent{height:42px;padding:0 6px 0 18px!important;background:var(--tx-accent)!important;box-shadow:none}
.tx--l-luxury .tx-nav .tx-btn--accent .tx-svg{width:30px;height:30px;padding:6px;border-radius:50%;background:var(--tx-ink);color:#fff}
.tx--l-luxury .tx-mega--cols{padding-top:0}

@media (max-width:1024px){
  .tx.tx--l-luxury .tx-iconbtn[aria-label="حسابي"]{display:grid!important}
  .tx--l-luxury .tx-actions{gap:8px}
  .tx.tx--l-luxury .tx-iconbtn--wa,.tx--l-luxury .tx-cart{width:42px;height:42px}
  .tx--l-luxury .tx-cart-count{top:-8px;left:-8px}
  .tx--l-luxury .tx-row--msearch .tx-search{height:44px}
}

/* =================================================================
   2) البوتيك — الشعار في المنتصف والقائمة في الوسط
   ================================================================= */
@media (min-width:1025px){
  .tx--l-boutique .tx-main{position:relative}
  .tx--l-boutique .tx-row--main .tx-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1}
  .tx--l-boutique .tx-search--main{flex:0 1 330px;margin:0}
  .tx--l-boutique .tx-actions{margin-inline-start:auto}
  .tx--l-boutique .tx-nav__in{justify-content:center}
  .tx--l-boutique .tx-menu{flex:0 1 auto;margin-inline:auto!important}
}
.tx--l-boutique .tx-search{background:transparent;border:1px solid var(--tx-line)}
.tx--l-boutique .tx-search__go{display:none!important}
.tx--l-boutique .tx-nav{border-top:1px solid var(--tx-line)}
.tx--l-boutique .tx-menu__item>a{font-weight:600;letter-spacing:.1px}
.tx--l-boutique .tx-menu__item>a::after{height:2px;background:var(--tx-brand)}
.tx--l-boutique .tx-menu__item:hover>a,.tx--l-boutique .tx-menu__item.is-open>a,.tx--l-boutique .tx-menu__item.is-current>a{color:var(--tx-brand)}
.tx--l-boutique .tx-cart{background:var(--tx-brand)!important}
.tx--l-boutique .tx-cart-count{box-shadow:0 0 0 2px var(--tx-brand)}
.tx--l-boutique .tx-mega--cols{padding-top:0}

/* =================================================================
   3) المدمج — الشعار والقائمة والأيقونات في صف واحد
   ================================================================= */
@media (min-width:1025px){
  .tx--l-compact .tx-main{gap:20px}
  .tx--l-compact .tx-main>.tx-nav{flex:1 1 auto;min-width:0;align-self:stretch;height:auto;border:0;background:transparent}
  .tx--l-compact .tx-main>.tx-nav .tx-nav__in{height:100%;max-width:none;padding:0}
  .tx--l-compact .tx-menu__item>a,.tx--l-compact .tx-more__btn{height:var(--tx-main-h)}
  .tx--l-compact .tx-actions .tx-cart-total{display:none}
  .tx--l-compact .tx-cart{padding:0 5px}
}
.tx--l-compact .tx-row--main{border-bottom:1px solid var(--tx-line)}
.tx--l-compact .tx-menu__item>a::after{height:2px;background:var(--tx-brand)}
.tx--l-compact .tx-menu__item:hover>a,.tx--l-compact .tx-menu__item.is-open>a,.tx--l-compact .tx-menu__item.is-current>a{color:var(--tx-brand)}
.tx--l-compact .tx-cart{background:var(--tx-brand)!important}
.tx--l-compact .tx-cart-count{box-shadow:0 0 0 2px var(--tx-brand)}
.tx.tx--l-compact .tx-dsearch-btn[aria-expanded=true]{background:var(--tx-sand)!important;color:var(--tx-brand)!important}
.tx-row--dsearch{position:absolute;top:100%;right:0;left:0;z-index:4;padding:14px 0 16px;background:#fff;border-bottom:1px solid var(--tx-line);
  box-shadow:0 24px 40px -28px rgba(23,19,16,.35);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .25s var(--tx-ease),visibility .2s}
.tx.is-dsearch .tx-row--dsearch{opacity:1;visibility:visible;transform:none}
.tx-row--dsearch .tx-search{max-width:760px}
.tx.is-dsearch .tx-mega{display:none}
@media (max-width:1024px){ .tx .tx-row--dsearch,.tx .tx-dsearch-btn{display:none!important} }
.tx--l-compact .tx-mega--cols{padding-top:0}

/* =================================================================
   البحث الفوري (v3.4)
   ================================================================= */
.tx-live{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:6;max-height:min(520px,calc(100vh - 160px));overflow-y:auto;overscroll-behavior:contain;
  padding:8px;background:#fff;border:1px solid var(--tx-line);border-radius:18px;box-shadow:0 24px 50px -20px rgba(23,19,16,.35);text-align:right;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s,transform .22s var(--tx-ease),visibility .18s;scrollbar-width:thin}
.tx-search.is-live .tx-live{opacity:1;visibility:visible;transform:none}
.tx-search.is-live .tx-search__pop{display:none}
.tx-live__sec{padding:4px 0}
.tx-live__sec+.tx-live__sec{border-top:1px solid var(--tx-line);margin-top:4px;padding-top:8px}
.tx-live__sec>small{display:block;padding:2px 10px 6px;font-size:12px;font-weight:700;color:var(--tx-muted)}
.tx-live__cats{display:flex;flex-wrap:wrap;gap:6px;padding:0 6px 4px}
.tx-live a.tx-live__cat{display:inline-flex;align-items:center;gap:8px;padding:5px 12px 5px 6px;border-radius:99px;background:var(--tx-sand);font-size:13.5px;font-weight:700;transition:background .15s,color .15s}
.tx-live__cat img{width:26px;height:26px;border-radius:50%;object-fit:cover}
.tx-live__cat em{font-style:normal;font-weight:500;color:var(--tx-muted);font-size:12px;margin-inline-start:4px}
.tx-live__cat em::before{content:"— "}
.tx-live a.tx-live__cat:hover,.tx-live a.tx-live__cat.is-active{background:var(--tx-ink);color:#fff}
.tx-live a.tx-live__cat:hover em,.tx-live a.tx-live__cat.is-active em{color:rgba(255,255,255,.7)}
.tx-live__prod{display:flex;align-items:center;gap:12px;padding:7px 8px;border-radius:12px;transition:background .15s}
.tx-live__prod:hover,.tx-live__prod.is-active{background:var(--tx-sand)}
.tx-live__img{flex:0 0 auto;width:52px;height:52px;border-radius:10px;overflow:hidden;background:var(--tx-sand)}
.tx-live__img img{display:block;width:100%!important;height:100%!important;object-fit:cover;margin:0!important}
.tx-live__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tx-live__txt b{font-size:14px;font-weight:700;line-height:1.4;color:var(--tx-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tx-live mark{background:color-mix(in srgb,var(--tx-accent) 22%,transparent);color:inherit;border-radius:3px;padding:0 1px}
.tx-live a.tx-live__cat.is-active mark,.tx-live a.tx-live__cat:hover mark{background:rgba(255,255,255,.2)}
.tx-live__price{font-size:13.5px;font-weight:800;color:var(--tx-accent-dark)}
.tx-live__price del{opacity:.55;font-weight:500;margin-inline-end:6px}
.tx-live__price ins{text-decoration:none}
.tx-live__price small{font-size:11px;font-weight:500;color:var(--tx-muted)}
.tx-live__txt em{font-style:normal;font-size:11.5px;font-weight:700;color:#b42318}
.tx-live a.tx-live__all{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px;height:44px;border-radius:12px;background:var(--tx-ink);color:#fff!important;font-size:14px;font-weight:800;transition:background .15s}
.tx-live a.tx-live__all:hover,.tx-live a.tx-live__all.is-active{background:var(--tx-accent-dark)}
.tx-live__all .tx-svg{width:17px;height:17px}
.tx-live__none{padding:22px 14px;text-align:center}
.tx-live__none b{display:block;font-size:14.5px}
.tx-live__none small{display:block;margin-top:4px;font-size:13px;color:var(--tx-muted)}
/* مؤشر التحميل مكان أيقونة البحث */
.tx-search.is-loading .tx-search__ic .tx-svg{opacity:0}
.tx-search.is-loading .tx-search__ic{position:relative}
.tx-search.is-loading .tx-search__ic::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;
  border:2px solid var(--tx-line);border-top-color:var(--tx-accent);animation:txSpin .7s linear infinite}
.tx-drawer .tx-live{max-height:60vh}
@media (max-width:1024px){ .tx-live{border-radius:14px} .tx-live__img{width:46px;height:46px} }
