@media (max-width: 1500px){
    .slider-container{
        width: 85% !important;
        height: 380px !important;
    }
}

@media (max-width: 1430px){
    .slider-container{
        width: 84% !important;
        height: 370px !important;
    }
}

@media (max-width: 1360px){
    .slider-container{
        width: 83% !important;
        height: 375px !important;
    }
}

@media (max-width: 1380px){
    .slider-container{
        width: 83% !important;
        height: 350px !important;
    }
}

@media (max-width: 1300px){
    .slider-container{
        width: 82% !important;
        height: 320px !important;
    }
}

@media (max-width: 1200px){
    .slider-container{
        width: 81% !important;
        height: 300px !important;
    }
}

@media (max-width: 1150px){
    .slider-container{
        width: 80% !important;
        height: 260px !important;
    }
}

@media (max-width: 1080px){
    .slider-container{
        width: 78% !important;
        height: 240px !important;
    }
}

@media (max-width: 970px){
    .slider-container{
        width: 75% !important;
        height: 200px !important;
    }
}

@media (max-width: 900px){
    .slider-container{
        width: 100% !important;
        height: 250px !important;
    }
}


@media (max-width: 900px) {

    /*الهيدر أصغر */
    header {
        background-color: #850606;
    }

    .header-bar {
        padding: 6px 12px;
        min-height: 46px;
        gap: 8px;
    }

    .header-actions {
        gap: 10px;
    }

    .hdr-menu {
        font-size: 18px;
        padding: 2px;
    }

    .hdr-user {
        font-size: 17px;
        padding: 2px;
    }

    .hdr-bell {
        font-size: 18px;
        padding: 2px;
        color: #fff;
    }

    .hdr-bell:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    .hdr-vip img {
        width: 24px;
        height: 24px;
    }

    .hdr-plus {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }

    .hdr-balance-text {
        font-size: 12px;
    }

    .hdr-sep {
        height: 16px;
        opacity: 0.35;
    }

    .logo-placeholder {
        width: 45px;
        height: 45px;
    }

    .logo-placeholder img {
        height: 45px;
        width: 45px;
        max-width: 45px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* محاذاة عناصر الرئيسية  */
    .slider-container,
    .welcome-box-moving,
    .search-container,
    .categories-container,
    #searchEmptyHint {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        border-radius: 25px;
    }

    .slide,
    .slide img {
        width: 100% !important;
    }


    .slider-container {
        height: 250px !important;
        margin-top: 22px !important;
        margin-bottom: 10px !important;
        border-radius: 14px !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden;
        background: transparent !important;
    }

    .slide,
    .slide img {
        border-radius: 14px !important;
        border: none !important;
    }

    /*  الشريط المتحرك  */
    .welcome-box-moving {
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        padding: 12px 0 !important;
        margin-bottom: 15px !important;
        overflow: hidden !important;
        direction: ltr !important;
    }

    .moving-track {
        display: flex !important;
        width: max-content !important;
        animation: marquee 22s linear infinite !important;
    }

    .moving-text {
        display: inline-block !important;
        flex-shrink: 0 !important;
        padding-inline-end: 4rem !important;
        padding-left: 0 !important;
        white-space: nowrap !important;
        font-size: 14px !important;
        font-weight: 600;
    }


    .search-container,
    .catalog-search,
    .favorites-page .catalog-search {
        width: 100% !important;
        height: 47px;
        max-width: 100% !important;
        margin: 0 0 20px !important;
        position: relative;
    }

    .search-input,
    .catalog-search .search-input,
    .favorites-page .catalog-search .search-input,
    .ordh-search input {
        width: 100% !important;
        padding: 14px 20px !important;
        border: none !important;
        border-radius: 25px !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        color: #666 !important;
        outline: none !important;
        text-align: right !important;
        box-sizing: border-box !important;
        height: auto !important;
    }

    .categories-container {
        background: transparent !important;
    }


    .categories-container,
    .product-card,
    .favorite-card,
    .app-page__card,
    .favorites-empty,
    .catalog-page,
    .container > .card,
    .pay-card,
    .deposit-card,
    .orders-card,
    .orders-table-wrap,
    .dash-card,
    .profile-card,
    .info-card,
    .placeholder-card {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: transparent !important;
    }

    .categories-container {
        border-radius: 0 !important;
        padding: 8px 0 90px !important;
        gap: 12px 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .category-item {
        width: calc(33.333% - 8px) !important;
    }

    .category-circle {
        border: none !important;
        background: transparent !important;
        border-radius: 14px !important;
        overflow: hidden;
    }

    .category-circle img {
        border-radius: 15px !important;
        border: none !important;
    }

    .category-name {
        font-size: 12px !important;
        margin-top: 6px !important;
        font-weight: 700;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-card {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .product-card__img {
        border-radius: 14px !important;
        border: none !important;
        margin-bottom: 6px !important;
    }

    .product-card__name {
        font-size: 12px !important;
    }

    .product-card__price {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .product-card__buy {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }


    .fab-container {
        bottom: 20px;
        left: 14px;
    }

    .fab-button {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
        box-shadow: 0 3px 10px rgba(133, 6, 6, 0.45) !important;
    }

    .fab-option {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    .fab-options {
        margin-bottom: 56px !important;
        gap: 10px !important;
    }


    body.has-bottom-nav .fab-container {
        bottom: 72px;
    }

    body.has-bottom-nav .container,
    body.has-bottom-nav .site-footer {
        padding-bottom: 100px;
    }

    body.has-bottom-nav .categories-container {
        padding-bottom: 110px !important;
    }
}

@media (max-width: 790px){
    .slider-container{
        width: 100% !important;
        height: 200px !important;
    }
}

@media (max-width: 640px){
    .slider-container{
        width: 100% !important;
        height: 190px !important;
    }
}

@media (max-width: 600px){
    .slider-container{
        width: 100% !important;
        height: 160px !important;
    }
}

@media (max-width: 530px){
    .slider-container{
        width: 100% !important;
        height: 150px !important;
    }
}

@media (max-width: 490px){
    .slider-container{
        width: 100% !important;
        height: 120px !important;
    }
}


@media (max-width: 480px) {
    .slider-container {
        height: 125px !important;
    }

    .category-name {
        font-size: 11px !important;
    }

    .header-bar {
        min-height: 55px;
        padding: 5px 10px;
    }
}
