
/* =========================================
   MIRSOFT HOMEPAGE HERO
========================================= */

:root {
    --mirsoft-primary: #3E4095;
    --mirsoft-secondary: #2DAA5E;
    --mirsoft-bg: #F7F8FC;
    --mirsoft-border: #E5E7F0;
    --mirsoft-radius: 18px;
}


/* Hero Section */

.mirsoft-home-hero {
    padding: 20px 0;
    background: var(--mirsoft-bg);
}

.mirsoft-home-hero * {
    box-sizing: border-box;
}

.mirsoft-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}


/* =========================================
   MAIN SLIDER
========================================= */

.mirsoft-hero-main {
    min-width: 0;
    width: 100%;
}

.mirsoft-main-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6.5;
    overflow: hidden;
    border-radius: var(--mirsoft-radius);
    background: #fff;
    direction: rtl;
    isolation: isolate;
}

.mirsoft-main-swiper .swiper-wrapper {
    height: 100%;
}

.mirsoft-main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mirsoft-hero-slide {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mirsoft-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

@media (hover: hover) {
    .mirsoft-hero-slide:hover img {
        transform: scale(1.025);
    }
}


/* =========================================
   SLIDER NAVIGATION
========================================= */

.mirsoft-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;

    background: rgba(255,255,255,.92);
    color: var(--mirsoft-primary);

    font-size: 20px;
    cursor: pointer;

    transform: translateY(-50%);
    transition: all .25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.mirsoft-hero-prev {
    right: 16px;
}

.mirsoft-hero-next {
    left: 16px;
}

.mirsoft-hero-nav:hover {
    background: var(--mirsoft-primary);
    color: #fff;
    border-color: var(--mirsoft-primary);
}

.mirsoft-hero-nav:focus-visible {
    outline: 2px solid var(--mirsoft-secondary);
    outline-offset: 3px;
}


/* =========================================
   SLIDER PAGINATION
========================================= */

.mirsoft-main-swiper .swiper-pagination {
    bottom: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mirsoft-main-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    opacity: 1;
    background: rgba(255,255,255,.65);
    border-radius: 20px;
    transition: all .3s ease;
}

.mirsoft-main-swiper .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--mirsoft-secondary);
}


/* =========================================
   SIDE BANNERS
========================================= */

.mirsoft-hero-banners {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.mirsoft-hero-banner {
    position: relative;
    display: block;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--mirsoft-radius);
    background: #fff;
}

.mirsoft-hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

@media (hover: hover) {
    .mirsoft-hero-banner:hover img {
        transform: scale(1.04);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .mirsoft-home-hero {
        padding: 14px 0;
    }

    .mirsoft-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mirsoft-main-swiper {
        aspect-ratio: 16 / 7.5;
    }

    .mirsoft-hero-banners {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .mirsoft-hero-banner {
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 575px) {

    .mirsoft-home-hero {
        padding: 10px 0;
    }

    .mirsoft-hero-grid {
        gap: 10px;
    }

    .mirsoft-main-swiper {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .mirsoft-hero-banners {
        gap: 10px;
    }

    .mirsoft-hero-banner {
        border-radius: 12px;
        aspect-ratio: 16 / 8;
    }

    .mirsoft-hero-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .mirsoft-hero-prev {
        right: 8px;
    }

    .mirsoft-hero-next {
        left: 8px;
    }

    .mirsoft-main-swiper .swiper-pagination {
        bottom: 8px !important;
    }

    .mirsoft-main-swiper .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
    }

    .mirsoft-main-swiper .swiper-pagination-bullet-active {
        width: 16px;
    }
}

/* =========================================
   DAILY OFFERS - PREMIUM DESIGN
========================================= */

.mirsoft-daily-offers {
    position: relative;
    overflow: hidden;
    padding: 32px 0 38px;
    background:
        radial-gradient(ellipse at 5% 10%, rgba(45,170,94,.25), transparent 35%),
        radial-gradient(ellipse at 95% 90%, rgba(125,115,220,.35), transparent 40%),
        linear-gradient(135deg, #29276F 0%, #3E4095 48%, #5146A8 100%);
}

/* Decorative circles */

.mirsoft-daily-offers::before,
.mirsoft-daily-offers::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mirsoft-daily-offers::before {
    width: 260px;
    height: 260px;
    top: -140px;
    right: -70px;
    border: 1px solid rgba(255,255,255,.12);
}

.mirsoft-daily-offers::after {
    width: 320px;
    height: 320px;
    bottom: -220px;
    left: -100px;
    border: 1px solid rgba(255,255,255,.10);
}

.mirsoft-daily-offers > .container {
    position: relative;
    z-index: 1;
}


/* Header */

.mirsoft-daily-offers .mirsoft-section-header {
    margin-bottom: 24px;
}

.mirsoft-daily-offers .mirsoft-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9DE9BC;
    font-size: 12px;
    font-weight: 700;
}

.mirsoft-daily-offers .mirsoft-section-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5BE39A;
    box-shadow: 0 0 12px rgba(91,227,154,.8);
}

.mirsoft-daily-offers .mirsoft-section-title h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.mirsoft-daily-offers .mirsoft-section-more {
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
}

.mirsoft-daily-offers .mirsoft-section-more:hover {
    color: #29276F;
    background: #fff;
}


/* Product slider */

.mirsoft-daily-offers .mirsoft-offers-swiper {
    padding: 5px 2px 15px;
    overflow: hidden;
}

.mirsoft-daily-offers .swiper-slide {
    height: auto;
    display: flex;
}

.mirsoft-daily-offers .swiper-slide > * {
    width: 100%;
}

/* White product cards */
.mirsoft-daily-offers .product_box {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(14,12,56,.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) {
    .mirsoft-daily-offers .product_box:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(14,12,56,.22);
    }
}


/* Navigation */

.mirsoft-daily-offers .mirsoft-products-nav {
    width: 40px;
    height: 40px;
    color: #3E4095;
    border: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.mirsoft-daily-offers .mirsoft-products-nav:hover {
    background: #2DAA5E;
    color: #fff;
}

.mirsoft-daily-offers .mirsoft-offers-prev {
    right: -18px;
}

.mirsoft-daily-offers .mirsoft-offers-next {
    left: -18px;
}


/* Mobile */

@media (max-width: 767px) {

    .mirsoft-daily-offers {
        padding: 24px 0 26px;
    }

    .mirsoft-daily-offers .mirsoft-section-header {
        margin-bottom: 17px;
    }

    .mirsoft-daily-offers .mirsoft-section-title h2 {
        font-size: 21px;
    }

    .mirsoft-daily-offers .mirsoft-section-more {
        padding: 8px 11px;
        font-size: 12px;
    }

    .mirsoft-daily-offers .mirsoft-offers-swiper {
        overflow: visible;
        padding: 4px 0 15px;
    }

    .mirsoft-daily-offers .mirsoft-products-wrapper {
        overflow: hidden;
    }

    .mirsoft-daily-offers .product_box {
        border-radius: 13px;
    }

    .mirsoft-daily-offers .mirsoft-products-nav {
        display: none;
    }
}

@media (max-width: 380px) {

    .mirsoft-daily-offers .mirsoft-section-title h2 {
        font-size: 19px;
    }
}

/* Minimal Daily Offers Navigation */

.mirsoft-daily-offers .mirsoft-products-nav {
    width: 32px;
    height: 32px;

    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;

    box-shadow: none;
    backdrop-filter: blur(8px);

    font-size: 17px;

    transition: all .2s ease;
}

.mirsoft-daily-offers .mirsoft-products-nav:hover {
    background: rgba(255,255,255,.95);
    color: #3E4095;
    border-color: transparent;
}

.mirsoft-daily-offers .mirsoft-products-nav.swiper-button-disabled {
    opacity: .25;
}

.mirsoft-daily-offers .mirsoft-offers-prev {
    right: -12px;
}

.mirsoft-daily-offers .mirsoft-offers-next {
    left: -12px;
}

@media (max-width: 767px) {
    .mirsoft-daily-offers .mirsoft-products-nav {
        display: none;
    }
}

/* Minimal View All Link */

.mirsoft-daily-offers .mirsoft-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;

    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 500;

    transition: color .2s ease;
}

.mirsoft-daily-offers .mirsoft-section-more i {
    font-size: 16px;
    transition: transform .2s ease;
}

.mirsoft-daily-offers .mirsoft-section-more:hover {
    color: #9DE9BC;
    background: transparent;
}

.mirsoft-daily-offers .mirsoft-section-more:hover i {
    transform: translateX(-3px);
}

@media (max-width: 767px) {
    .mirsoft-daily-offers .mirsoft-section-more {
        font-size: 12px;
    }
}

/* ============================
   Modern Home Product Sections
============================ */

.hm-row {
    direction: rtl;
    padding: 36px 0 42px;
    overflow: hidden;
    background: #f7f8fc;
}

.hm-row > .container {
    max-width: 1320px;
}

/* Header */
.hm-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.hm-row-heading h2 {
    position: relative;
    margin: 0;
    padding-right: 15px;
    color: #20213b;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.7;
    letter-spacing: -0.5px;
}

.hm-row-heading h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 12%;
    height: 76%;
    width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, #65bc50, #3e4095);
}

.hm-row-heading h2::after {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 15px;
    width: 38px;
    height: 3px;
    border-radius: 10px;
    background: #65bc50;
}

/* More link */
.hm-row-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3e4095;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .25s ease;
}

.hm-row-more i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eeeffb;
    font-size: 15px;
    transition: all .25s ease;
}

.hm-row-more:hover {
    color: #65bc50;
}

.hm-row-more:hover i {
    background: #65bc50;
    color: #fff;
    transform: translateX(-3px);
}

/* Tabs */
.hm-row-tabs-wrap {
    margin-bottom: 24px;
}

.hm-row-tabs {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 1px 8px;
}

.hm-row-tabs::-webkit-scrollbar {
    display: none;
}

.hm-row-tab {
    position: relative;
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid #e6e7f1;
    border-radius: 12px;
    background: #fff;
    color: #666982;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s ease;
}

.hm-row-tab:hover {
    border-color: #bfc0e7;
    color: #3e4095;
    transform: translateY(-2px);
}

.hm-row-tab.active {
    color: #fff;
    border-color: #3e4095;
    background: linear-gradient(135deg, #3e4095, #5557b5);
    box-shadow: 0 5px 14px rgba(62, 64, 149, .2);
}

/* Products slider */
.hm-row-slider {
    position: relative;
}

.hm-row-swiper {
    padding: 4px 2px 14px;
}

.hm-row-slide {
    height: auto;
}

/* Product cards */
.hm-row-slide .product_box {
    height: 100%;
    border: 1px solid #ececf4;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: transform .3s ease,
                box-shadow .3s ease,
                border-color .3s ease;
}

.hm-row-slide .product_box:hover {
    transform: translateY(-5px);
    border-color: #dedff1;
    box-shadow: 0 12px 28px rgba(42, 43, 91, .09);
}

/* Navigation */
.hm-row-nav {
    position: absolute;
    top: 42%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(230, 231, 241, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #3e4095;
    font-size: 20px;
    box-shadow: 0 5px 18px rgba(30, 30, 70, .10);
    cursor: pointer;
    transition: all .25s ease;
}

.hm-row-prev {
    right: -18px;
}

.hm-row-next {
    left: -18px;
}

.hm-row-nav:hover {
    background: #3e4095;
    color: #fff;
    border-color: #3e4095;
    transform: scale(1.08);
}

.hm-row-nav.swiper-button-disabled {
    opacity: .25;
    cursor: default;
}

/* Loading */
.hm-row-content.loading {
    opacity: .65;
    pointer-events: none;
}

.hm-row-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px;
    color: #3e4095;
    font-size: 13px;
    font-weight: 700;
}

.hm-row-content.loading .hm-row-loading {
    display: flex;
}

.hm-row-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e2f3;
    border-top-color: #3e4095;
    border-radius: 50%;
    animation: hmSpin .7s linear infinite;
}

@keyframes hmSpin {
    to { transform: rotate(360deg); }
}

/* Empty */
.hm-row-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    color: #9294ad;
    font-size: 14px;
}

.hm-row-empty i {
    font-size: 38px;
    color: #b7b9d8;
}

/* Responsive */
@media (max-width: 767px) {
    .hm-row {
        padding: 25px 0 30px;
    }

    .hm-row-header {
        margin-bottom: 16px;
    }

    .hm-row-heading h2 {
        font-size: 18px;
    }

    .hm-row-more {
        font-size: 11px;
    }

    .hm-row-more i {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .hm-row-tabs-wrap {
        margin-bottom: 16px;
    }

    .hm-row-tab {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .hm-row-nav {
        display: none;
    }

    .hm-row-slide .product_box {
        border-radius: 14px;
    }
}

@media (min-width: 768px) {
    .hm-row-swiper {
        overflow: visible;
    }
}
.home-row-white .hm-row {
    background: #fff;
}

.home-row-gray .hm-row {
    background: #f7f8fc;
}
/* Skeleton Loading */
.hm-row-loading {
    display: none;
    width: 100%;
    padding: 12px 0;
}

.hm-row-content.loading .hm-row-loading {
    display: block;
}

.hm-row-content.loading .hm-row-slider {
    display: none;
}

.hm-row-skeleton {
    display: flex;
    gap: 18px;
    overflow: hidden;
    direction: rtl;
}

.hm-skeleton-card {
    flex: 0 0 calc(20% - 15px);
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 18px;
}

.hm-skeleton-image,
.hm-skeleton-line,
.hm-skeleton-price {
    position: relative;
    overflow: hidden;
    background: #f0f1f6;
    border-radius: 8px;
}

.hm-skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
    border-radius: 12px;
}

.hm-skeleton-line {
    height: 12px;
    margin-bottom: 10px;
}

.hm-skeleton-line.short {
    width: 65%;
}

.hm-skeleton-price {
    width: 55%;
    height: 18px;
    margin-top: 18px;
}

/* Shimmer Animation */
.hm-skeleton-image::after,
.hm-skeleton-line::after,
.hm-skeleton-price::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.75),
        transparent
    );
    animation: hmShimmer 1.4s infinite;
}

@keyframes hmShimmer {
    100% {
        transform: translateX(100%);
    }
}

@media(max-width:767px) {
    .hm-skeleton-card {
        flex: 0 0 46%;
        padding: 10px;
        border-radius: 14px;
    }

    .hm-row-skeleton {
        gap: 12px;
    }
}
