/* Atlobni Categories v18 - independent from main style */
.category-strip{background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%);padding:18px 0 22px;border-bottom:1px solid #edf2f4;}
.category-slider{display:flex;align-items:center;gap:12px;position:relative;}
.category-track{display:flex;gap:18px;overflow:hidden;scroll-behavior:smooth;flex:1;padding:5px 4px 8px;scroll-snap-type:x proximity;}
.category-item{flex:0 0 92px;text-align:center;color:#183447;padding:9px 5px 10px;border:1px solid transparent;border-radius:16px;transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease;scroll-snap-align:start;}
.category-item:hover{background:#fff;border-color:#e4edf1;box-shadow:0 8px 22px rgba(16,43,61,.08);transform:translateY(-2px);}
.cat-icon{width:78px;height:78px;margin:0 auto 9px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(145deg,#f7fbfd,#eef5f8);border:1px solid #e3edf1;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.cat-icon img{width:64px!important;height:64px!important;max-width:64px;max-height:64px;object-fit:contain;display:block;}
.category-item span{display:block;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cat-arrow{width:34px;height:34px;border:1px solid #dfe9ed;background:#fff;border-radius:50%;box-shadow:0 4px 14px rgba(16,43,61,.10);font-size:24px;color:#34515f;flex:0 0 34px;line-height:1;cursor:pointer;transition:.2s ease;}
.cat-arrow:hover{background:#0aa879;color:#fff;border-color:#0aa879;}
.section-icon-preview{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#f5f9fb;border:1px solid #e3edf1;overflow:hidden;}
.section-icon-preview img{width:64px!important;height:64px!important;max-width:64px;max-height:64px;object-fit:contain;}
.section-icon-upload{display:flex;gap:14px;align-items:center;margin-bottom:14px;padding:12px;border:1px solid #e2ebef;border-radius:14px;background:#f9fbfc;}
.section-icon-current{width:84px;height:84px;flex:0 0 84px;border-radius:14px;border:1px dashed #b8cbd3;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#8a9aa3;font-size:11px;}
.section-icon-current img{width:64px!important;height:64px!important;max-width:64px;max-height:64px;object-fit:contain;}
.section-icon-upload-fields{flex:1;min-width:0;}
.section-icon-upload-fields small{display:block;color:#71828b;margin-top:7px;line-height:1.5;}
@media (max-width:760px){
 .category-strip{padding:14px 0 18px;}
 .category-slider{gap:7px;}
 .category-track{gap:0;padding:4px 0 8px;scroll-snap-type:x mandatory;}
 .category-item{flex:0 0 50%;padding:8px 4px 10px;scroll-snap-align:start;}
 .cat-icon{width:72px;height:72px;margin-bottom:7px;border-radius:16px;}
 .cat-icon img{width:64px!important;height:64px!important;}
 .category-item span{font-size:12px;}
 .cat-arrow{width:32px;height:32px;flex-basis:32px;font-size:22px;}
 .section-icon-upload{align-items:flex-start;}
}


/* Atlobni Categories v22 — final layout fixes only */

/* سطح المكتب: زر "جميع الأقسام" في أقصى اليسار */
@media (min-width: 761px) {
  .category-track .category-item:first-child {
    order: 99;
  }
}

/* الجوال: إظهار أسهم السلايدر بوضوح فوق أي قواعد سابقة */
@media (max-width: 760px) {
  .category-slider {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 7px;
    overflow: visible !important;
  }

  .category-track {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .category-slider .cat-arrow {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 30;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    background: #fff !important;
    color: #183447 !important;
    border: 1px solid #d7e3e8 !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(16,43,61,.14);
    line-height: 1;
    pointer-events: auto;
  }

  .category-slider .cat-arrow:hover,
  .category-slider .cat-arrow:active {
    background: #0aa879 !important;
    color: #fff !important;
    border-color: #0aa879 !important;
  }
}

/* تأكيد عدم تغيير حجم الأيقونات */
.category-item .cat-icon img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain;
}
