:root{
    --shop-primary:#0c2577;
    --shop-primary-dark:#081a55;
    --shop-primary-soft:#eef2ff;
    --shop-secondary:#fa5918;
    --shop-secondary-dark:#dc4710;
    --shop-secondary-soft:#fff2ec;
    --shop-text:#172033;
    --shop-muted:#6f7785;
    --shop-border:#e6eaf1;
    --shop-surface:#ffffff;
    --shop-bg:#f5f7fb;
    --shop-success:#169b62;
    --shop-danger:#d94b4b;
    --shop-radius:18px;
    --shop-radius-sm:12px;
    --shop-shadow:0 8px 28px rgba(12,37,119,.07);
    --shop-shadow-hover:0 15px 38px rgba(12,37,119,.13);
}

/* ---------- HOME ---------- */
.modern-home{
    background:var(--shop-bg);
    padding-bottom:28px;
}
.modern-home > .one.container-fluid{
    max-width:1480px;
    margin:0 auto;
    padding-right:18px;
    padding-left:18px;
}
.modern-home .row{
    margin-right:-6px;
    margin-left:-6px;
}
.modern-home .row > [class*="col-"]{
    padding-right:6px !important;
    padding-left:6px !important;
}

/* ---------- HERO SLIDER ---------- */
.modern-hero-wrap{
    max-width:1480px;
    margin:14px auto 20px;
    padding:0 18px;
}
.modern-hero{
    overflow:hidden;
    border-radius:22px;
    background:#fff;
    box-shadow:var(--shop-shadow);
}
.modern-hero .item{
    overflow:hidden;
    border-radius:22px;
}
.modern-hero .item img{
    width:100% !important;
    display:block;
    object-fit:cover;
    border-radius:22px;
}
.modern-hero.owl-theme .owl-nav{
    margin:0;
}
.modern-hero.owl-theme .owl-nav [class*=owl-]{
    position:absolute;
    top:50%;
    width:42px;
    height:42px;
    margin:0 !important;
    padding:0 !important;
    transform:translateY(-50%);
    border-radius:12px !important;
    background:rgba(255,255,255,.94) !important;
    color:var(--shop-primary) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.12);
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:26px !important;
    transition:.2s ease;
}
.modern-hero.owl-theme .owl-nav [class*=owl-]:hover{
    background:var(--shop-primary) !important;
    color:#fff !important;
}
.modern-hero.owl-theme .owl-prev{right:16px;}
.modern-hero.owl-theme .owl-next{left:16px;}
.modern-hero.owl-theme .owl-dots{
    position:absolute;
    right:0;
    left:0;
    bottom:10px;
}
.modern-hero.owl-theme .owl-dots .owl-dot span{
    width:7px;
    height:7px;
    margin:4px;
    background:rgba(255,255,255,.7);
    transition:.2s ease;
}
.modern-hero.owl-theme .owl-dots .owl-dot.active span{
    width:22px;
    border-radius:8px;
    background:var(--shop-secondary);
}

/* ---------- GENERAL HOME CARDS ---------- */
.modern-section-card,
.modern-news-strip{
    position:relative;
    background:var(--shop-surface) !important;
    border:1px solid var(--shop-border);
    border-radius:var(--shop-radius) !important;
    box-shadow:var(--shop-shadow);
    padding:16px !important;
    margin-bottom:18px;
    overflow:hidden;
}
.modern-news-strip{
    padding:14px 18px !important;
}

.modern-section-title{
    position:relative;
    display:flex;
    align-items:center;
    min-height:46px;
    margin:8px 0 10px;
    padding:0 15px 0 110px;
    background:#fff;
    border:1px solid var(--shop-border);
    border-radius:14px;
    overflow:hidden;
}
.modern-section-title:before{
    content:"";
    width:4px;
    height:24px;
    margin-left:10px;
    border-radius:8px;
    background:var(--shop-secondary);
    flex:0 0 auto;
}
.modern-section-title h3{
    margin:0 !important;
    padding:0 !important;
    color:var(--shop-primary) !important;
    font-size:16px !important;
    line-height:1.5;
    font-weight:700 !important;
}
.modern-view-all{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    z-index:20;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 13px;
    border:1px solid rgba(12,37,119,.12);
    border-radius:10px;
    background:var(--shop-primary-soft);
    color:var(--shop-primary) !important;
    font-size:11px;
    font-weight:600;
    text-decoration:none !important;
    transition:.2s ease;
}
.modern-view-all:hover{
    background:var(--shop-primary);
    border-color:var(--shop-primary);
    color:#fff !important;
}

/* ---------- BANNERS ---------- */
.modern-banner{
    margin-bottom:14px;
}
.modern-banner a{
    display:block;
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 18px rgba(12,37,119,.06);
}
.modern-banner img{
    width:100% !important;
    display:block;
    border-radius:16px;
    transition:transform .35s ease;
}
.modern-banner a:hover img{
    transform:scale(1.018);
}

/* ---------- PRODUCT CARDS: SHARED ---------- */
.modern-product-card,
.modern-product-card .product-item-container{
    box-sizing:border-box;
}
.modern-product-card{
    position:relative;
    height:100%;
    background:#fff !important;
    border:1px solid var(--shop-border) !important;
    border-radius:16px !important;
    overflow:hidden;
    box-shadow:0 4px 16px rgba(12,37,119,.045);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.modern-product-card:hover{
    transform:translateY(-4px);
    border-color:rgba(12,37,119,.16) !important;
    box-shadow:var(--shop-shadow-hover);
}
.modern-product-card a{
    text-decoration:none !important;
}

/* carousel card */
.modern-carousel-product{
    padding:0 !important;
    margin:0 !important;
}
.modern-carousel-product > a{
    width:100%;
    float:none !important;
    display:flex;
    flex-direction:column;
    color:inherit;
}
.modern-carousel-product .wdecds{
    position:relative !important;
    height:225px !important;
    padding:12px;
    background:linear-gradient(180deg,#fbfcff 0%,#f7f9fd 100%);
    overflow:hidden !important;
}
.modern-carousel-product .wdecds > img{
    width:100% !important;
    height:100% !important;
    padding:8px !important;
    object-fit:contain !important;
    transition:transform .28s ease;
}
.modern-carousel-product:hover .wdecds > img{
    transform:scale(1.045);
}
.modern-carousel-product > a > h3{
    min-height:48px;
    margin:0 !important;
    padding:13px 14px 5px !important;
    color:var(--shop-text) !important;
    font-size:13px !important;
    font-weight:500 !important;
    line-height:1.9 !important;
    text-align:right;
}
.modern-carousel-product > a > .price{
    min-height:46px;
    display:block;
    padding:4px 14px 10px;
    color:var(--shop-primary) !important;
    font-size:17px !important;
    font-weight:700;
    line-height:1.5;
    text-align:right;
}
.modern-carousel-product > a > .price > span{
    font-size:10px !important;
    color:var(--shop-muted);
}

/* grid product */
.modern-product-grid{
    margin-bottom:14px;
}
.modern-product-grid .modern-product-card{
    padding:0 !important;
}
.modern-product-grid .product-item-container{
    position:relative;
    display:flex;
    flex-direction:column;
    height:100%;
    padding:0 12px 12px;
    background:#fff;
}
.modern-product-grid .left-block{
    position:relative;
    margin:0 -12px;
}
.modern-product-grid .product-image-container{
    height:225px !important;
    padding:12px;
    background:linear-gradient(180deg,#fbfcff 0%,#f7f9fd 100%);
    overflow:hidden !important;
}
.modern-product-grid .product-image-container a{
    display:block;
    width:100%;
    height:100%;
}
.modern-product-grid .product-image-container img{
    width:100% !important;
    height:100% !important;
    padding:7px !important;
    object-fit:contain !important;
    transition:transform .28s ease;
}
.modern-product-grid .modern-product-card:hover .product-image-container img{
    transform:scale(1.045);
}
.modern-product-grid .right-block{
    flex:1;
    padding-top:12px;
}
.modern-product-grid .right-block h4{
    min-height:45px;
    margin:0 0 6px !important;
    font-size:13px !important;
    line-height:1.8;
    font-weight:500;
}
.modern-product-grid .right-block h4 a{
    color:var(--shop-text) !important;
}
.modern-product-grid .right-block h4 a:hover{
    color:var(--shop-primary) !important;
}
.modern-product-grid .right-block .price{
    margin-top:4px !important;
    color:var(--shop-primary) !important;
    font-size:17px !important;
    font-weight:700;
    line-height:1.55;
}

/* old price */
.modern-product-card .price-old{
    display:block !important;
    margin-top:3px;
    color:#9aa1ad !important;
    font-size:10px !important;
    font-weight:400 !important;
    text-decoration:line-through;
}

/* discount */
.modern-product-card .offprq,
.modern-product-card .label-sale{
    position:absolute !important;
    top:12px !important;
    right:12px !important;
    left:auto !important;
    z-index:8;
    display:inline-flex !important;
    align-items:center;
    gap:3px;
    min-height:28px;
    padding:0 9px !important;
    border:0 !important;
    border-radius:9px !important;
    background:var(--shop-secondary) !important;
    color:#fff !important;
    box-shadow:0 5px 12px rgba(250,89,24,.22);
    font-size:11px !important;
    font-weight:700 !important;
    line-height:28px !important;
}
.modern-product-card .offprq span,
.modern-product-card .label-sale span{
    font-size:9px !important;
    font-weight:400;
}

/* quick view */
.modern-product-card .ghf{
    position:absolute !important;
    right:50% !important;
    bottom:12px !important;
    left:auto !important;
    z-index:9;
    transform:translate(50%,10px);
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:102px;
    height:34px;
    padding:0 12px !important;
    border-radius:10px !important;
    background:rgba(12,37,119,.94) !important;
    color:#fff !important;
    opacity:0;
    visibility:hidden;
    cursor:pointer;
    font-size:10px !important;
    transition:.22s ease;
}
.modern-product-card:hover .ghf{
    opacity:1;
    visibility:visible;
    transform:translate(50%,0);
}

/* add to cart */
.modern-product-card .form-group{
    width:100% !important;
    float:none !important;
    margin:5px 0 0 !important;
    padding:0 12px 12px;
}
.modern-product-grid .modern-product-card .form-group{
    padding:0;
    margin-top:8px !important;
}
.modern-product-card .eaddtocard{
    width:100% !important;
    min-height:40px;
    margin:0 !important;
    padding:0 12px !important;
    border:0 !important;
    border-radius:11px !important;
    background:var(--shop-primary) !important;
    color:#fff !important;
    box-shadow:none !important;
    font-family:inherit !important;
    font-size:11px !important;
    font-weight:600 !important;
    line-height:40px !important;
    text-transform:none !important;
    transition:.2s ease;
}
.modern-product-card .eaddtocard:hover{
    background:var(--shop-secondary) !important;
    transform:none !important;
}
.modern-product-card .eaddtocard img{
    width:20px !important;
    margin-left:6px;
    filter:brightness(0) invert(1);
}

/* stock */
.modern-product-card .renot,
.modern-product-card .c-promotion-box__cover-text{
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-height:36px;
    margin:7px 12px 12px !important;
    border-radius:10px;
    background:#f1f3f6 !important;
    color:#8b93a0 !important;
    font-size:11px !important;
    font-weight:600;
}
.modern-product-card .c-promotion-box__cover{
    position:static !important;
    width:auto !important;
    height:auto !important;
    background:transparent !important;
}
.modern-product-card .c-promotion-box__cover-text{
    margin:0 !important;
}

/* messages */
.modern-product-card [class^="Spass"],
.modern-product-card [class*=" Spass"]{
    display:block;
    padding:0 12px 8px;
    color:var(--shop-success);
    font-size:10px;
    line-height:1.7;
}
.modern-product-card [class^="Spass"] a,
.modern-product-card [class*=" Spass"] a{
    color:var(--shop-primary) !important;
    font-weight:700;
}

/* wishlist + compare */
.modern-product-grid .list-block{
    position:absolute;
    top:12px;
    left:12px;
    z-index:10;
    display:flex !important;
    flex-direction:column;
    gap:6px;
    opacity:0;
    transform:translateX(-6px);
    transition:.2s ease;
}
.modern-product-grid .modern-product-card:hover .list-block{
    opacity:1;
    transform:none;
}
.modern-product-grid .list-block .btn-button{
    width:34px !important;
    height:34px !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid var(--shop-border) !important;
    border-radius:10px !important;
    background:#fff !important;
    color:var(--shop-primary) !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 12px rgba(12,37,119,.08);
    cursor:pointer;
}
.modern-product-grid .list-block .btn-button:hover{
    background:var(--shop-primary) !important;
    border-color:var(--shop-primary) !important;
    color:#fff !important;
}

/* ---------- QUICK VIEW MODAL CONTENT ---------- */
.modern-quick-modal{
    width:760px !important;
    max-width:94vw !important;
    padding:20px !important;
    border-radius:18px;
    background:#fff;
    direction:rtl;
}
.modern-quick-modal h5{
    margin:8px 0 10px !important;
    color:var(--shop-text);
    font-size:18px;
    line-height:1.8;
}
.modern-quick-modal .modern-modal-image{
    width:100% !important;
    max-height:330px;
    object-fit:contain;
    padding:10px;
    border:1px solid var(--shop-border);
    border-radius:14px;
    background:#fafbfe;
}
.modern-quick-modal .qazcde{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:10px auto !important;
    color:var(--shop-muted);
}
.modern-quick-modal .qazcde input{
    width:82px !important;
    height:38px !important;
    margin:0 !important;
    padding:0 8px !important;
    border:1px solid var(--shop-border) !important;
    border-radius:9px !important;
    box-shadow:none !important;
    text-align:center;
    font-size:14px !important;
}
.modern-quick-modal .price{
    display:block;
    width:100%;
    padding:18px 0 !important;
    color:var(--shop-primary) !important;
    text-align:center;
    font-size:24px !important;
    font-weight:700;
}

/* ---------- PRODUCT CAROUSEL NAV ---------- */
.modern-products-carousel.owl-theme .owl-nav,
.modern-brands-carousel.owl-theme .owl-nav{
    margin:0;
}
.modern-products-carousel.owl-theme .owl-nav [class*=owl-],
.modern-brands-carousel.owl-theme .owl-nav [class*=owl-]{
    position:absolute;
    top:50%;
    z-index:20;
    width:36px;
    height:36px;
    margin:0 !important;
    padding:0 !important;
    transform:translateY(-50%);
    border:1px solid var(--shop-border) !important;
    border-radius:11px !important;
    background:#fff !important;
    color:var(--shop-primary) !important;
    box-shadow:0 4px 14px rgba(12,37,119,.10);
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:22px !important;
}
.modern-products-carousel.owl-theme .owl-nav [class*=owl-]:hover,
.modern-brands-carousel.owl-theme .owl-nav [class*=owl-]:hover{
    background:var(--shop-primary) !important;
    border-color:var(--shop-primary) !important;
    color:#fff !important;
}
.modern-products-carousel .owl-prev,
.modern-brands-carousel .owl-prev{right:-9px;}
.modern-products-carousel .owl-next,
.modern-brands-carousel .owl-next{left:-9px;}

/* ---------- BRANDS ---------- */
.modern-brand-card{
    height:90px;
    padding:10px !important;
    border:1px solid var(--shop-border);
    border-radius:13px !important;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s ease;
}
.modern-brand-card:hover{
    border-color:rgba(12,37,119,.18);
    box-shadow:0 7px 18px rgba(12,37,119,.07);
}
.modern-brand-card a{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}
.modern-brand-card img{
    width:88% !important;
    max-height:65px;
    margin:0 auto !important;
    object-fit:contain;
    filter:grayscale(18%);
    opacity:.9;
    transition:.2s ease;
}
.modern-brand-card:hover img{
    filter:none;
    opacity:1;
    transform:scale(1.035);
}

/* ---------- POPUP ---------- */
#boxes #dialog{
    max-width:94vw;
    max-height:90vh;
    overflow:auto;
    padding:14px !important;
    border-radius:18px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.22);
}
#boxes #dialog .close{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px !important;
    height:34px !important;
    margin:0 0 8px auto !important;
    border-radius:10px;
    color:var(--shop-primary) !important;
    background:#f3f5f9 !important;
    font-size:22px;
    opacity:1;
}
#mask{
    background:rgba(9,17,40,.56) !important;
    backdrop-filter:blur(3px);
}

/* ---------- MOBILE ---------- */
@media(max-width:767px){
    .modern-home > .one.container-fluid,
    .modern-hero-wrap{
        padding-right:10px;
        padding-left:10px;
    }
    .modern-hero-wrap{
        margin-top:9px;
        margin-bottom:12px;
    }
    .modern-hero,
    .modern-hero .item,
    .modern-hero .item img{
        border-radius:13px;
    }
    .modern-hero.owl-theme .owl-nav [class*=owl-]{
        width:32px;
        height:32px;
        border-radius:9px !important;
        font-size:20px !important;
    }
    .modern-hero.owl-theme .owl-prev{right:8px;}
    .modern-hero.owl-theme .owl-next{left:8px;}

    .modern-section-title{
        min-height:43px;
        margin:6px 0 8px;
        padding-right:11px;
        padding-left:92px;
        border-radius:12px;
    }
    .modern-section-title:before{
        width:3px;
        height:20px;
        margin-left:7px;
    }
    .modern-section-title h3{
        font-size:13px !important;
    }
    .modern-view-all{
        left:9px;
        min-height:30px;
        padding:0 9px;
        border-radius:8px;
        font-size:9px;
    }
    .modern-section-card,
    .modern-news-strip{
        padding:9px !important;
        margin-bottom:12px;
        border-radius:13px !important;
    }

    .modern-carousel-product .wdecds,
    .modern-product-grid .product-image-container{
        height:160px !important;
        padding:6px;
    }
    .modern-carousel-product > a > h3{
        min-height:43px;
        padding:9px 9px 3px !important;
        font-size:10.5px !important;
        line-height:1.75 !important;
    }
    .modern-carousel-product > a > .price,
    .modern-product-grid .right-block .price{
        min-height:38px;
        padding:2px 9px 7px;
        font-size:13px !important;
    }
    .modern-product-card .offprq,
    .modern-product-card .label-sale{
        top:7px !important;
        right:7px !important;
        min-height:24px;
        padding:0 6px !important;
        border-radius:7px !important;
        font-size:9px !important;
        line-height:24px !important;
    }
    .modern-product-card .ghf{
        display:none !important;
    }
    .modern-product-card .form-group{
        padding:0 8px 8px;
    }
    .modern-product-card .eaddtocard{
        min-height:35px;
        padding:0 6px !important;
        border-radius:9px !important;
        font-size:9.5px !important;
        line-height:35px !important;
    }
    .modern-product-grid .product-item-container{
        padding:0 8px 8px;
    }
    .modern-product-grid .left-block{
        margin:0 -8px;
    }
    .modern-product-grid .right-block{
        padding-top:8px;
    }
    .modern-product-grid .right-block h4{
        min-height:40px;
        font-size:10.5px !important;
        line-height:1.75;
    }
    .modern-product-grid .list-block{
        top:7px;
        left:7px;
        opacity:1;
        transform:none;
        flex-direction:row;
    }
    .modern-product-grid .list-block .btn-button{
        width:29px !important;
        height:29px !important;
        border-radius:8px !important;
        font-size:11px;
    }
    .modern-products-carousel .owl-prev,
    .modern-brands-carousel .owl-prev{right:-4px;}
    .modern-products-carousel .owl-next,
    .modern-brands-carousel .owl-next{left:-4px;}
    .modern-products-carousel.owl-theme .owl-nav [class*=owl-],
    .modern-brands-carousel.owl-theme .owl-nav [class*=owl-]{
        width:30px;
        height:30px;
        border-radius:8px !important;
        font-size:18px !important;
    }
    .modern-brand-card{
        height:68px;
        padding:7px !important;
        border-radius:10px !important;
    }
    .modern-brand-card img{
        max-height:48px;
    }
    .modern-quick-modal{
        padding:12px !important;
    }
    .modern-quick-modal .row > div{
        width:100%;
        float:none;
    }
}

@media(max-width:420px){
    .modern-carousel-product .wdecds,
    .modern-product-grid .product-image-container{
        height:145px !important;
    }
    .modern-product-card .eaddtocard{
        font-size:9px !important;
    }
}
