﻿@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir.eot');
    src: url('/assets/fonts/Vazir.eot?#iefix') format('eot'), url('/assets/fonts/Vazir.woff2') format('woff2'), url('/assets/fonts/Vazir.woff') format('woff'), url('/assets/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'yekan';
    src: url("../fonts/Yekan.eot") format('eot');
    src: url("../fonts/Yekan.ttf") format('truetype'), url("../fonts/Yekan.woff") format('woff');
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    direction: rtl;
    font-family: 'Vazir';
    background: #ebf2fa;
}

input,
button {
    font-family: 'Vazir';
}

a {
    text-decoration: none !important;
}


/* slider */


.banner-slider-main {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

    .banner-slider-main .slider {
        display: flex;
        width: 100%;
        position: relative;
    }


.slider .slideshow {
    flex: 0 0 70%;
    max-width: 70%;
    position: relative;
}

.slideshow .carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.carousel-item-text {
    position: absolute;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
}

    .carousel-item-text h4 {
        font-size: 40px;
        font-weight: bold;
    }

    .carousel-item-text h6 {
        font-size: 20px;
        margin: 10px 0;
    }

    .carousel-item-text a {
        background: #fff;
        padding: 7px 10px;
        border-radius: 25px;
        color: #000;
        text-decoration: none;
    }

.slider .mens-fashion {
    flex: 0 0 30%;
    max-width: 30%;
    position: relative;
    height: 500px;
}

    .slider .mens-fashion img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mens-fashion .mens-fashion-text {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    color: #fff;
}

.mens-fashion-text h4 {
    font-size: 40px;
    font-weight: bold;
}

.mens-fashion-text h6 {
    font-size: 20px;
    margin: 10px 0 30px 0;
}

.mens-fashion-text a {
    background: #fff;
    padding: 7px 10px;
    border-radius: 25px;
    color: #000;
    text-decoration: none;
}


/*banner-slider- index1*/
.simple-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

    .simple-slider .slides {
        display: flex;
        transition: transform 0.5s ease;
        /* ✅ عرض رو با CSS محاسبه نمی‌کنیم — JS هم نیاز نیست — فقط flex و min-width کافیه */
    }

    .simple-slider .slide {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0; /* ✅ مهم — اجازه نده فشرده بشه */
    }

        .simple-slider .slide img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            display: block;
        }

    /* Dots */
    .simple-slider .dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
    }

    .simple-slider .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s;
    }

        .simple-slider .dot.active {
            background: white;
        }

/* Responsive */
@media (max-width: 768px) {
    .simple-slider .slide img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .simple-slider .slide img {
        height: 180px;
    }
}

.css-only-slider {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

    .css-only-slider .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        animation: slideShow 9s infinite;
    }

        .css-only-slider .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }


        .css-only-slider .slide:nth-child(1) {
            animation-delay: 0s;
        }

        .css-only-slider .slide:nth-child(2) {
            animation-delay: 3s;
        }

        .css-only-slider .slide:nth-child(3) {
            animation-delay: 6s;
        }

@keyframes slideShow {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}





/* category */

.cat-link {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}


.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

.cat-content:hover .cat-overlay {
    opacity: 1;
}


.cat-content-text {
    text-align: center;
}

    .cat-content-text .cat-content-text-title {
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
    }

.cat-content:hover .cat-content-text .cat-content-text-title {
    color: #efd3d7;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    transform: scale(1.05);
}


.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cat-content:hover .cat-img {
    filter: brightness(0.7);
}

.cat-content .cat-name {
    font-size: 24px;
}


.category .cat-name a {
    color: #000;
    font-weight: 700;
    font-size: 20px; 
    transition: color 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.cat-name a:hover {
    color: #efd3d7;
}


@media (max-width: 768px) {
    .category .cat-name a {
        font-size: 18px; 
    }
}

@media (max-width: 576px) {
    .category .cat-name a {
        font-size: 16px; 
    }
}








/* product */


.product{
    padding:40px 0;
}

.product .product-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


    .product .product-item img {
        height: 100%;
    }

    .product .product-item .product-image {
        position: relative;
        overflow: hidden;
        border-radius: 5px;
    }


    .product .product-item .pic-1 {
        opacity: 1;
        visibility: visible;
        transition: all .3s ease-in-out;
    }

    .product .product-item .pic-2 {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        transition: all .3s ease-in-out;
    }

    .product .product-item:hover .pic-1 {
        opacity: 0;
        visibility: hidden;
    }

    .product .product-item:hover .pic-2 {
        opacity: 1;
        visibility: visible;
    }

    .product .product-item .product-image ul {
        position: absolute;
        bottom: 50px;
        right: 20px;
        list-style: none;
    }

        .product .product-item .product-image ul li a {
            background: #fff;
            color: #000;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
        }


.product-image ul li {
    transform: translateX(200%);
    transition: all .3s ease-in-out;
}

.product-image:hover ul li {
    transform: translateX(0);
}



.product-image .add-to-cart {
    position: absolute;
    z-index: 1;
    bottom: 0;
    width: 100%;
    background: #232020;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    transform: translateY(100%);
    transition: all .3s ease-in-out;
}

.product-image:hover .add-to-cart {
    transform: translateY(0);
}

.product-content-title h3 {
    font-size: 20px;
}

.product-content-price {
    text-align: center;
    display: flex;
    justify-content: center;
}

    .product-content-price .old {
        text-decoration: line-through;
        margin-left: 40px;
        color: #c00;
    }

    .product-content-price .price {
        color: green;
    }









@media (min-width: 992px) and (max-width: 1065px) {
    .navbar-collapse {
        display: none !important;
    }

        .navbar-collapse.show {
            display: block !important;
            position: absolute;
            top: 100%;
            right: 0;
            background: #311b92;
            z-index: 1000;
            width: 100%;
        }

    .navbar {
        position: relative;
    }

    .navbar-toggler {
        display: none;
    }
}





@media (min-width: 992px) {
    .banner-slider-main .slider {
        flex-direction: row;
    }
}

.banner-slider-main .slider .slideshow {
    flex: 0 0 100%;
    max-width: 100%;
}

    .banner-slider-main .slider .slideshow .carousel-item {
        height: 400px;
    }

        .banner-slider-main .slider .slideshow .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.carousel-item-text {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
}

    .carousel-item-text h4 {
        font-size: 28px;
        font-weight: bold;
    }

    .carousel-item-text h6 {
        font-size: 18px;
        margin: 10px 0;
    }

    .carousel-item-text a {
        background: #fff;
        color: #000;
        padding: 8px 16px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
    }

.banner-slider-main .slider .mens-fashion {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
}

    .banner-slider-main .slider .mens-fashion img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
    }

.mens-fashion-text {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    color: #fff;
}

    .mens-fashion-text h4 {
        font-size: 28px;
        font-weight: bold;
    }

    .mens-fashion-text h6 {
        font-size: 18px;
        margin: 10px 0;
    }

    .mens-fashion-text a {
        background: #fff;
        color: #000;
        padding: 8px 16px;
        border-radius: 25px;
        text-decoration: none;
    }

@media (min-width: 768px) {
    .banner-slider-main .slider {
        flex-direction: row;
    }

        .banner-slider-main .slider .slideshow {
            flex: 0 0 70%;
            max-width: 70%;
        }

        .banner-slider-main .slider .mens-fashion {
            flex: 0 0 30%;
            max-width: 30%;
            margin-top: 0;
        }

            .banner-slider-main .slider .mens-fashion img {
                height: 400px;
            }
}
















.product .product-item {
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 420px;
    display: flex;
    flex-direction: column;
}

.product .product-image {
    position: relative;
    overflow: hidden;
}

    .product .product-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.product-image .pic-2 {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity .3s;
}

.product-item:hover .pic-1 {
    opacity: 0;
}

.product-item:hover .pic-2 {
    opacity: 1;
}

.product-image ul {
    position: absolute;
    bottom: 50px;
    right: 20px;
    list-style: none;
}

    .product-image ul li {
        transform: translateX(200%);
        transition: transform .3s;
        margin: 10px 0;
    }

.product-image:hover ul li {
    transform: translateX(0);
}

.product-image ul li a {
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.add-to-cart {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #232020;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    transform: translateY(100%);
    transition: transform .3s;
}

.product-image:hover .add-to-cart {
    transform: translateY(0);
}

.product-content h3 {
    font-size: 15px;
    margin: 15px 5px;
}

.product-content-price {
    display: flex;
    justify-content: center;
    /*      align-items: center;*/
    font-size: 16px;
}

    .product-content-price .old {
        text-decoration: line-through;
        color: #c00;
        margin-left: 10px;
    }

.price {
    color: green;
    font-weight: bold;
}


.best-product {
    background: url('https://via.placeholder.com/1920x400') no-repeat center/cover;
    padding: 60px 0;
    position: relative;
    color: #fff;
}

    .best-product::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.6);
    }

    .best-product * {
        z-index: 1;
        position: relative;
    }


@media (max-width: 576px) {
    .carousel-item-text h4 {
        font-size: 22px;
    }

    .carousel-item-text h6 {
        font-size: 16px;
    }

    .product .product-item {
        height: 400px;
    }

    .product .product-image img {
        height: 250px;
    }
}





/* Pagination Style */
.pagination {
    margin: 40px 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}

.page-item {
    margin: 0;
}

.page-link {
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .page-link:hover {
        background-color: #f8f9fa;
        border-color: #c00;
        color: #c00;
    }

.page-item.active .page-link {
    background-color: #c00;
    border-color: #c00;
    color: white;
}

.page-item.disabled .page-link {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #ddd;
}