.swiper-wrapper {
    height: auto !important;
}

/* Small Banners */
.small-banner__item-container {
    display: block;
    padding: 0 0.5rem;
}

.small-banner__img-container {
    border-radius: 1rem;
    /* تصویر از مرزها بیرون نمی‌رود */
    overflow: hidden;
}

.amazing-sale__top,
.play-station__top,
.play-station-plus__top,
.gift-card__top,
.blogs__top {
    text-align: -webkit-center;
    margin-bottom: 1rem;
}

/* Blog Card */
.blog-card__img-container {
    position: relative;
    width: 170px;
    /* Make image center */
    text-align: -webkit-center;
    margin: 0 auto;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-card-img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-card__detail {
    height: 70px !important;
}

/* End Blog Card */

.amazing-sale__top-title {
    background: var(--secondary-color);
    color: var(--text-color-900);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    width: 200px;
}

.amazing-sale__top-title img,
.play-station__top-title img,
.play-station-plus__top-title img,
.gift-card__top-title img,
.blogs__top-title img {
    width: 35px;
    height: 35px;
}

.amazing-sale__bottom,
.play-station__bottom,
.play-station-plus__bottom,
.gift-card__bottom,
.blogs__bottom {
    background: transparent;
    padding: 0.8rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Product Card */
.amazing-slider__item-container {
    width: 220px !important;
    margin: 1rem;
}

.product-card__container {
    background: var(--primary-color);
    border-radius: 1rem;
    padding: 1rem;
    border: 2px solid transparent;
    transition: all 0.7s;
}

.product-card__img-container {
    position: relative;
    /* width: 190px; */
    /* Make image center */
    text-align: -webkit-center;
    margin: 0 auto;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card__container:hover {
    transform: translateY(-10px);
    border-color: #ccc;
}

.product-card-img {
    display: block;
    width: 100%;
    height: auto;
}

.product-card__discount-label {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: #f00;
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__stock {
    font-size: 1rem;
    font-weight: 600;
    color: #f00;
    text-align: -webkit-center;
}

.product-card__detail {
    height: 120px;
    /* height: 100%; */
}

.product-card__title {
    color: var(--text-color-500);
    margin-top: 0.5rem;
    padding: 0.1rem 0;
}

.product-card__price {
    margin-top: auto;
    text-align: center;
    padding-bottom: 0.5rem;
}

.product-card__old-price {
    color: #979797;
    text-decoration-line: line-through;
    padding-bottom: 0.5rem;
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    font-size: 1.1rem;
    font-weight: bolder;
}

.product-card__new-price {
    color: var(--text-color-hover);
    font-size: 1.4rem;
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    font-weight: bolder;
}

/* Play Station */
.play-station-slider__item-container {
    width: 220px !important;
    margin: 1rem;
}

.play-station__top-title,
.gift-card__top-title,
.blogs__top-title {
    background: var(--secondary-color);
    color: var(--text-color-900);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    width: 250px;
}

.blogs__top-title {
    background: var(--secondary-color);
    color: var(--text-color-900);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    width: 170px;
}

.play-station-plus__top-title {
    background: var(--secondary-color);
    color: var(--text-color-900);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    width: 300px;
}

/* Category Tabs */
/* Style the tab */
.tab {
    display: flex;
    overflow: hidden;
}

.tab button {
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #ddd;
    border-radius: 0.6rem;
}

.tab button.active {
    background-color: var(--secondary-color);
    border-radius: 0.6rem;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
}

/* End */
.category-slider {
    background: var(--secondary-color);
    border-radius: 1rem;
    margin-top: 0.5rem;
}

/* Home Description */
#more {
    display: none;
}

#myBtn {
    font-size: 0.8rem;
    color: var(--text-color-link);
}

.home-description__top h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-description__bottom-txt {
    line-height: 1.5rem;
    margin-bottom: 0.6rem;
}

.home-description-title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.home-description__bottom {
    margin-top: 0.6rem;
}

.home-description__bottom p {
    margin-bottom: 0.5rem;
    line-height: 1.5rem;
}

/* Feature */
.home-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-feature__img-container {
    font-size: 3rem;
    text-align: -webkit-center;
    color: var(--text-color-900);
}

.home-feature__title {
    color: var(--text-color-900);
    padding-top: 0.5rem;
    font-weight: 600;
    text-align: -webkit-center;
}

.home-feature__txt {
    padding-top: 0.5rem;
    text-align: -webkit-center;
}

/* Tablet & Mobile (width between 768px and 1200px) */
@media(max-width:1199px) {
    .small-banner div {
        margin-bottom: 0.5rem;
        width: 165px;
    }

    .amazing-slider__item-container {
        width: 200px !important;
        margin-right: 0.7rem !important;
    }


    .category-slider {
        padding: 0;
        border-radius: 0;
    }

    .product-card__img-container,
    .blog-card__img-container {
        width: 170px;
    }

    .amazing-sale.container,
    .play-station.container,
    .play-station-plus.container,
    .gift-card.container,
    .blogs.container {
        padding: 0;
        border-radius: 0;
    }

    .amazing-sale__bottom,
    .play-station__bottom,
    .play-station-plus__bottom,
    .gift-card__bottom,
    .blogs__bottom {
        padding: 0;
        border-radius: 0;
    }

    .home-description__top h1 {
        font-size: 1rem;
        font-weight: 600;
    }

    .home-feature__item {
        margin-top: 1.5rem;
    }
}

/* Main Banner */
#tranding {
    padding: 4rem 0;
}

@media (max-width:1440px) {
    #tranding {
        padding: 7rem 0;
    }
}

#tranding .tranding-slider {
    height: 52rem;
    padding: 2rem 0;
    position: relative;
}

@media (max-width:500px) {
    #tranding .tranding-slider {
        height: 45rem;
    }
}

/* .tranding-slide {
    width: 70rem;
    height: 28rem;
    position: relative;
} */

/* --- فقط دسکتاپ و تبلت --- */
@media (min-width: 769px) {
    .tranding-slide {
        width: 70rem;
        height: 28rem;
        position: relative;
    }

    .tranding-slide .tranding-slide-img img {
        width: 70rem;
        height: 28rem;
    }
}

@media (max-width:1200px) and (min-width: 769px) {

    .tranding-slide,
    .tranding-slide .tranding-slide-img img {
        width: 50rem;
        height: 28rem;
    }
}

@media (max-width:1000px) and (min-width: 769px) {

    .tranding-slide,
    .tranding-slide .tranding-slide-img img {
        width: 38rem;
        height: 22rem;
    }
}

/* --- موبایل واقعی --- */
@media (max-width: 768px) {
    .tranding-slide {
        width: 100% !important;
        /* یک اسلاید کامل صفحه */
        height: 190px !important;
    }

    .tranding-slide .tranding-slide-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

.tranding-slider-control .swiper-pagination {
    position: relative;
    width: 15rem;
    bottom: -1rem;
}

.tranding-slider-control .swiper-pagination .swiper-pagination-bullet {
    filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
    background: #ccc !important;
}

.tranding-slider-control .swiper-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.tranding-slider .swiper-slide-prev,
.tranding-slider .swiper-slide-next {
    filter: brightness(0.6) blur(3px);
    transition: filter 0.3s ease;
}

.tranding-slider .swiper-slide-active {
    filter: none !important;
    z-index: 2;
}