/* =========================================================
   Shiitake Store UI – المتجر والتصنيفات (المرحلة 3)
   كل القواعد تحت body.shk-shop
   ========================================================= */

body.shk-shop{background:var(--shk-bg);}
body.shk-shop #content.site-content{padding:0;margin:0;max-width:none;width:auto;}
body.shk-shop .shk-shop-main{display:block;direction:rtl;text-align:right;padding-bottom:56px;}
body.shk-shop .shk-shop-main *{box-sizing:border-box;}
body.shk-shop .shk-shop-main a{text-decoration:none;}

.shk-preview-bar{background:var(--shk-honey);color:#1F2618;text-align:center;font-weight:700;font-size:14px;padding:8px 16px;}

/* مسار التصفح */
body.shk-shop .shk-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:18px 0 6px;font-size:14px;color:var(--shk-muted);}
body.shk-shop .shk-breadcrumb a{color:var(--shk-muted);}
body.shk-shop .shk-breadcrumb a:hover{color:var(--shk-primary);}
body.shk-shop .shk-breadcrumb [aria-current]{color:var(--shk-text);font-weight:600;}

/* العنوان */
body.shk-shop .shk-shop-head{padding:6px 0 22px;}
body.shk-shop .shk-shop-head__title{font-family:var(--shk-font);font-size:32px;font-weight:800;line-height:1.4;color:var(--shk-text);margin:0;text-transform:none;letter-spacing:0;}
body.shk-shop .shk-shop-head__desc{color:var(--shk-muted);font-size:15px;line-height:1.8;max-width:760px;margin-top:6px;}
body.shk-shop .shk-shop-head__desc p{margin:0 0 6px;}

/* التخطيط: فلاتر يمين + نتائج */
body.shk-shop .shk-shop-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start;}

/* ===== الفلاتر ===== */
body.shk-shop .shk-filters{position:sticky;top:150px;background:#fff;border:1px solid var(--shk-border);border-radius:16px;padding:18px;max-height:calc(100vh - 170px);overflow-y:auto;}
body.shk-shop .shk-filters__head{display:none;}
body.shk-shop .shk-filter{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--shk-border);}
body.shk-shop .shk-filter:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0;}
body.shk-shop .shk-filter__title{display:block;font-size:15px;font-weight:800;color:var(--shk-text);margin-bottom:10px;}
body.shk-shop .shk-filters input[type="search"],
body.shk-shop .shk-filters input[type="number"]{width:100%;height:42px;margin:0;padding:0 12px;border:1px solid var(--shk-border);border-radius:10px;background:var(--shk-bg);font-family:var(--shk-font);font-size:14px;color:var(--shk-text);box-shadow:none;}
body.shk-shop .shk-filters input:focus{outline:2px solid var(--shk-brand);outline-offset:1px;border-color:var(--shk-brand);}
body.shk-shop .shk-filter__price{display:flex;align-items:center;gap:8px;}
body.shk-shop .shk-filter__price input{-moz-appearance:textfield;}
body.shk-shop .shk-filter__check{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;cursor:pointer;margin:0;}
body.shk-shop .shk-filter__check input{width:18px;height:18px;margin:0;accent-color:var(--shk-primary);}
body.shk-shop .shk-filters__apply{width:100%;height:44px;border:0;cursor:pointer;font-family:var(--shk-font);font-size:15px;}
body.shk-shop .shk-filters__reset{display:block;text-align:center;margin-top:10px;font-size:13px;font-weight:700;color:#C0392B;}
body.shk-shop .shk-filters__form{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--shk-border);}

body.shk-shop .shk-catlist{list-style:none;margin:0;padding:0;display:grid;gap:2px;}
body.shk-shop .shk-catlist li{margin:0;padding:0;}
body.shk-shop .shk-catlist a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;color:var(--shk-text);font-size:14px;font-weight:600;line-height:1.5;}
body.shk-shop .shk-catlist a:hover{background:var(--shk-bg);color:var(--shk-primary);}
body.shk-shop .shk-catlist .is-current a{background:#F1F3E3;color:var(--shk-primary);}
body.shk-shop .shk-catlist__count{flex:0 0 auto;min-width:28px;text-align:center;font-size:12px;font-weight:700;color:var(--shk-muted);background:var(--shk-bg);border-radius:999px;padding:1px 8px;}

body.shk-shop .shk-filters-overlay{position:fixed;inset:0;z-index:100000;background:rgba(20,24,16,.45);}
body.shk-shop .shk-filters-overlay[hidden]{display:none!important;}

/* ===== شريط الأدوات ===== */
body.shk-shop .shk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
body.shk-shop .shk-toolbar__filters{display:none;align-items:center;gap:8px;height:42px;padding:0 16px;border:1px solid var(--shk-border);border-radius:10px;background:#fff;color:var(--shk-text);font-family:var(--shk-font);font-size:14px;font-weight:700;cursor:pointer;}
body.shk-shop .shk-toolbar__count{margin:0;font-size:14px;color:var(--shk-muted);font-weight:600;}
body.shk-shop .shk-toolbar__order{margin:0;}
body.shk-shop .shk-orderby{height:42px;min-width:210px;padding:0 12px;border:1px solid var(--shk-border);border-radius:10px;background:#fff;font-family:var(--shk-font);font-size:14px;color:var(--shk-text);cursor:pointer;}

/* الفلاتر المفعلة */
body.shk-shop .shk-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 16px;padding:0;}
body.shk-shop .shk-chips li{margin:0;}
body.shk-shop .shk-chips a{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#F1F3E3;color:var(--shk-primary);font-size:13px;font-weight:700;}
body.shk-shop .shk-chips a:hover{background:var(--shk-primary);color:#fff;}

/* الشبكة: 4 أعمدة جنب الفلاتر */
body.shk-shop .shk-shop-results .shk-grid--products{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}

/* ترقيم الصفحات */
body.shk-shop .shk-pagination{margin-top:32px;}
body.shk-shop .shk-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;list-style:none;margin:0;padding:0;border:0;}
body.shk-shop .shk-pagination li{margin:0;border:0;}
body.shk-shop .shk-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--shk-border);border-radius:10px;background:#fff;color:var(--shk-text);font-weight:700;font-size:14px;}
body.shk-shop .shk-pagination a.page-numbers:hover{border-color:var(--shk-primary);color:var(--shk-primary);}
body.shk-shop .shk-pagination .page-numbers.current{background:var(--shk-primary);border-color:var(--shk-primary);color:#fff;}
body.shk-shop .shk-pagination .page-numbers.dots{border:0;background:transparent;}

/* لا توجد نتائج */
body.shk-shop .shk-empty{background:#fff;border:1px dashed var(--shk-border);border-radius:16px;padding:48px 20px;text-align:center;}
body.shk-shop .shk-empty strong{display:block;font-size:20px;margin-bottom:6px;}
body.shk-shop .shk-empty p{color:var(--shk-muted);margin:0 0 18px;}
body.shk-shop .shk-empty .shk-btn{display:inline-flex;padding:0 24px;}

/* ===== تابلت ===== */
@media (max-width:1200px){
  body.shk-shop .shk-shop-results .shk-grid--products{grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* ===== موبايل وتابلت صغير: الفلاتر درج من اليمين ===== */
@media (max-width:991px){
  body.shk-shop .shk-shop-layout{grid-template-columns:minmax(0,1fr);gap:0;}
  body.shk-shop .shk-filters{position:fixed;top:0;bottom:0;right:0;left:auto;z-index:100001;width:min(88vw,360px);max-height:none;border-radius:0;border:0;padding:0 16px 24px;transform:translateX(105%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s;}
  body.shk-shop .shk-filters.is-open{transform:none;visibility:visible;transition:transform .25s ease;}
  body.shk-shop .shk-filters__head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:1;padding:12px 0;margin-bottom:12px;border-bottom:1px solid var(--shk-border);font-size:17px;}
  body.shk-shop .shk-toolbar__filters{display:inline-flex;}
  body.shk-shop .shk-toolbar__count{display:none;}
  body.shk-shop .shk-orderby{min-width:0;width:100%;}
  body.shk-shop .shk-toolbar__order{flex:1;}
}
@media (max-width:768px){
  body.shk-shop .shk-shop-head__title{font-size:24px;}
  body.shk-shop .shk-shop-head{padding-bottom:14px;}
  body.shk-shop .shk-shop-results .shk-grid--products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  body.shk-shop .shk-pagination .page-numbers{min-width:38px;height:38px;padding:0 8px;}
}

@media (prefers-reduced-motion:reduce){
  body.shk-shop .shk-filters,body.shk-shop .shk-filters.is-open{transition:none!important;}
}
