/* طبقة البلور */
#custom-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

/* تفعيل التأثير */
body.focus-active #custom-focus-overlay {
    opacity: 1;
    visibility: visible;
}

/* رفع التصنيفات فوق البلور */
.sub-nav-header {
    position: relative;
    z-index: 9999 !important;
    padding: 20px 0;
}

/* تكبير كروت الأقسام */
.sub-cat-icon .sub-categories {
    background: #ffffff !important;
    border-radius: 25px !important;
    padding: 35px 25px !important; /* حجم ضخم */
    min-width: 170px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

/* تكبير النصوص داخل الكروت */
.sub-cat-icon .sub-title {
    font-size: 1.5rem !important; /* خط كبير جداً */
    font-weight: 900 !important;
    color: #000 !important;
    margin: 0;
}

/* أنيميشن الظهور (تأثير القفز) */
.sub-cat-icon {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.5s ease;
}

body.focus-active .sub-cat-icon {
    opacity: 1;
    transform: scale(1);
}

/* تأثير عند الوقوف بالماوس */
.sub-cat-icon .sub-categories:hover {
    transform: scale(1.1);
    background: #ff0000 !important; /* أحمر عند الاختيار */
}
.sub-cat-icon .sub-categories:hover .sub-title {
    color: #fff !important;
}

/* منع السكرول أثناء وضع التركيز */
body.focus-active {
    overflow: hidden;
}












/* كود توسيط أقسام سلة */
.s-block--banners .square-grid {
    display: grid !important;
    /* هذا السطر يلغي الـ 4 أعمدة ويجعلها تتكيف مع العدد الموجود */
    grid-template-columns: repeat(auto-fit, minmax(150px, 280px)) !important; 
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
}

/* لضمان اختفاء أي إزاحة جهة اليسار أو اليمين */
.s-block--banners .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}