.mt-20 {
    margin-top: 20%;
}

.mt-7 {
    margin-top: 7%;
}

.pagination .page-item .page-link {
    color: red;
    border: 1px solid red;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-item.active .page-link {
    background-color: red;
    color: white;
    border-color: red;
}

.pagination .page-item .page-link:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
}

.pagination .page-item.disabled .page-link {
    color: grey;
    border-color: grey;
}

.pagination .page-item .page-link[aria-label="Previous"] {
    border-radius: 0px 10px 10px 0px;
}

.pagination .page-item .page-link[aria-label="Next"] {
    border-radius: 10px 0px 0px 10px;
}

.pagination {
    justify-content: center;
    padding: 10px 0;
}

.custom-title {
    font-size: 3.5rem;
    color: white;
    font-weight: bold;
}

.btn-searchHome {
    margin-top: 100px;
    background-color: #e31b25;
    width: 250px;
    height: 50px;
    border-radius: 30px;
}

.main-background {
    min-height: 100vh;
    background: url('../img/main-w.webp') no-repeat center center/cover;
}

.search-input {
    width: 100%;
    height: 40px;
}


.red-background {
    background-color: red;
}

.custom-search-input {
    height: auto;
}

.custom-search-input-field {
    text-align: right;
    border-radius: 50px 0px 0px 50px;
    border-right: 0;
}

.custom-search-input-icon {
    border-radius: 0px 50px 50px 0px;
    background: white;
    border-left: 0;
}


.productM-background {
    background: url('../img/background.webp') no-repeat center center;
    background-size: cover;
    /* تصویر به اندازه کامل پس‌زمینه کشیده می‌شود */
}


.col-md-4 img {
    width: 50%;
}


.backgroundRedBlack {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
    background-attachment: fixed;
    /* فیکس کردن پس‌زمینه */
    background-size: cover;
    /* پر کردن عرض و ارتفاع عنصر */
    height: 100vh;
    /* ارتفاع کامل صفحه، به طور خودکار با صفحه تطابق دارد */
    position: absolute;
    /* قرار دادن بک‌گراند روی div */
    top: 0;
    /* تنظیم موقعیت بالا */
    left: 0;
    /* تنظیم موقعیت چپ */
    right: 0;
    /* تنظیم موقعیت راست */
    bottom: 0;
    /* تنظیم موقعیت پایین */
}

.position-relative {
    position: relative;
    /* برای کنترل موقعیت */
}

.backgroundRed2 {
    background-color: #ff000017;
    background-attachment: fixed;
    /* فیکس کردن پس‌زمینه */
    background-size: cover;
    /* پر کردن عرض و ارتفاع عنصر */
    height: 100vh;
    /* ارتفاع کامل صفحه، به طور خودکار با صفحه تطابق دارد */
    position: absolute;
    /* قرار دادن بک‌گراند روی div */
    top: 0;
    /* تنظیم موقعیت بالا */
    left: 0;
    /* تنظیم موقعیت چپ */
    right: 0;
    /* تنظیم موقعیت راست */
    bottom: 0;
    /* تنظیم موقعیت پایین */
}

.image-container {
    position: relative;
    display: inline-block;
    width: 75%;
}

.highlighted-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.image-container::after {
    content: '';
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    /* قرار دادن لایه در پایین تصویر */
    left: 0;
    right: 0;
    height: 60%;
    /* افزایش ارتفاع لایه قرمز */
    background: linear-gradient(to top, rgba(255, 0, 0, 0.7), rgba(255, 0, 0, 0));
    /* گرادیانت قرمز از پایین به بالا */
}

.carousel-indicators {
    position: relative !important;
    top: 15px;
    margin-bottom: 35px;
}

.carousel-indicators button {
    width: 20px !important;
    /* عرض دکمه */
    height: 20px !important;
    /* ارتفاع دکمه */
    border-radius: 50%;
    /* گرد کردن دکمه */
    border: none !important;
    /* حذف حاشیه */
    background-color: #fff !important;
    /* رنگ پس‌زمینه */
    opacity: 0.5 !important;
    /* شفافیت */
    transition: opacity 0.2s !important;
    /* انیمیشن برای تغییر شفافیت */
}

.carousel-indicators button.active {
    opacity: 1 !important;
    /* شفافیت دکمه فعال */
}

.carousel-control-next {
    justify-content: flex-start !important;
    width: 5% !important;
}

.carousel-control-prev {

    width: 5% !important;
}

.backgroundRed2 a,
.blod-black {
    font-size: 20px;
    color: black;
    font-weight: bold;
}


.blog-bg {
    min-height: 100vh;
}

.content-box {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 50px;
    border-radius: 160px;
    max-width: 1000px;
    height: 500px;
    position: relative;
    color: white;
}

.date-circle {
    position: absolute;
    top: 450px;
    left: 210px;
    background-color: #d91b30;
    color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.footer-bg {
    min-height: 50vh;
    background: url('../img/footer-bg.webp') no-repeat center center/cover;
}

.footer-bg div div {
    color: white;
}

.p-15 {
    padding: 5.5rem !important;
}

.b-product {
    border-radius: 100px;
}

.se-width {
    width: 50% !important;
    float: inline-end;
}

.bg-products {
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        /* رنگ مشکی کمرنگ با شفافیت 40% */
        url('../img/background.webp') no-repeat center center;
    background-size: cover;
}


.overlay-product {
    position: absolute;
    bottom: 12%;
    right: 5%;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
    direction: rtl;
    z-index: 1;
}

.overlay-product-amount {
    position: absolute;
    bottom: 2%;
    right: 5%;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    direction: rtl;
    z-index: 1;
}


#carouselContent {
    overflow-x: hidden;
}

#sideMenu {
    position: fixed;
    top: 0;
    left: -500px;
    width: 500px;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

#sideMenu ul {
    list-style: none;
    padding: 0;
}

#sideMenu ul li {
    padding: 15px;
}

#sideMenu ul li a {
    color: white;
    text-decoration: none;
}



#sideMenu .b-product {
    border-radius: 50px;
    margin: 10px;
}

#sideMenu .btn-searchHome {
    width: 90%;
}

.description p {
    text-align: justify;
}

.fblog {
    border: 1px solid black;
    border-radius: 10px;
    padding: 15px;
}

.bgp-blog {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
    border-radius: 50px;
}

.mt-9 {
    margin-top: 9rem !important;
}


.circelF-cart {
    background-color: red;
    margin-left: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
}

.circelN-cart {
    background-color: transparent;
    border: 2px solid red;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    margin-left: 10px;
}


.bcart {
    border: 2px solid black;
    border-radius: 45px;
    padding: 15px;
}

.bcart .btn-searchHome {
    width: 100px;
    height: 30px;
}

.bgp-blog .btn-searchHome {
    background-color: #ffffff;
}

.a-none {
    text-decoration: none;
    color: inherit;
}



.desktop-section {
    display: block;
}

.mobile-section {
    display: none !important;
}


.modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    flex: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
}

.dir-rtl {
    direction: ltr;
}

.mt-cus-1 {
    margin-top: 3rem;
}

.mt-cus-2 {
    margin-top: 3rem;
}

.custom-blogs {
    position: relative;
    z-index: 10;
}

.productM-background {
    position: relative;
    z-index: 1;
}


.homeWin {
    font-size: 35px;
    float: inline-start;
}

.main-backgroundRed {
    overflow: hidden;
    position: relative;
}

.m-right {
    margin-right: 75px;
}

.m-left {
    margin-left: 75px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.se-width2 {
    width: 50%;
}

/********************/

.responsive-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.responsive-list li {
    background-color: #e31b25;
    color: white;
    list-style: none;
    margin: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    flex: 0 0 calc(50% - 1rem);
    /* 2 items per row on small screens */
    border-radius: 0.5rem;
}

.responsive-list li a {
    color: white;
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .responsive-list li {
        flex: 0 0 auto;
        /* auto width for desktop */
    }
}

.footerDis{
    padding-right: 70px;
}

.marginAuto{
    margin-top: auto;
}

/************************ media phone ****************/

@media only screen and (max-width: 770px) {
    .desktop-section {
        display: none !important;
    }

    .mobile-section {
        display: block !important;
    }

    .main-background {
        background: url(../img/main-a.webp) no-repeat center center;
        background-size: cover;
        min-height: 94vh;
    }

    .custom-title {
        font-size: 2rem;
        color: rgb(0, 0, 0);
        font-weight: bold;
    }

    .btn-searchHome {
        margin-top: 20px;
        background-color: #e31b25;
        width: 219px;
        height: 46px;
        border-radius: 30px;
    }


    .main .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
        /* رنگ قرمز ملایم با شفافیت 50% */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main .text {
        color: #fff;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
    }

    .productM-background {
        position: relative;
        /* برای استفاده از pseudo-element ها */
        background: url('../img/background.webp') no-repeat center center;
        background-size: cover;
        /* تصویر به اندازه کامل پس‌زمینه کشیده می‌شود */
    }

    .productM-background::before {
        content: "";
        /* ضروری است که محتوای خالی داشته باشد */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(255 0 0 / 22%);
        /* رنگ قرمز با شفافیت 50% */
        z-index: 1;
        /* لایه رنگ قرمز بالاتر از تصویر پس‌زمینه قرار می‌گیرد */
    }

    .productM-background>* {
        position: relative;
        z-index: 2;
        /* محتواهایی که داخل این بخش هستند بالاتر از لایه رنگی قرار می‌گیرند */
    }


    .blog-bg {
        min-height: 25vh;
    }


    .content-box {
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 27px;
        padding: 10px;
        margin: 12px;
        max-width: 210px;
        height: 220px;
        position: relative;
        color: white;
    }

    .blog-p {
        font-size: 13px;
        text-align: justify;
    }

    .date-circle {
        position: absolute;
        top: 127px;
        left: -38px;
        background-color: #d91b30;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .footer-bg div div {
        margin-right: 0px;
        color: white;
    }

    .custom-btn {
        background-color: white;
        /* پس‌زمینه سفید */
        border-radius: 50%;
        /* گرد کردن دکمه */
        padding: 12px;
        /* فاصله داخلی دکمه */
        width: 50px;
        /* عرض دکمه */
        height: 50px;
        /* ارتفاع دکمه */
        display: flex;
        /* استفاده از فلیکس باکس برای وسط‌چینی */
        justify-content: center;
        /* وسط‌چین کردن محتوا در افقی */
        align-items: center;
        /* وسط‌چین کردن محتوا در عمودی */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* افزودن سایه برای زیبایی بیشتر */
    }

    .custom-btn i {
        font-size: 24px;
        /* اندازه آیکون */
        color: #007bff;
        /* رنگ آیکون */
    }

    .custom-btn:hover {
        background-color: #f8f9fa;
        /* رنگ پس‌زمینه هنگام هاور */
    }

    .footer-btn {
        background: transparent;
        border: none;
        color: black;
        font-size: 2rem;
        /* بزرگ بودن آیکون */
        padding: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-btn:hover {
        color: #007bff;
        /* تغییر رنگ هنگام هاور */
    }

    .p-15 {
        padding: 1.5rem !important;
    }

    .b-product {
        border-radius: 30px;
    }

    .se-width {
        width: 100% !important;
        float: inline-end;
    }

    .overlay-product {
        position: absolute;
        bottom: 17%;
        right: 5%;
        color: white;
        font-size: 10px;
        font-weight: bold;
        text-align: right;
        direction: rtl;
        z-index: 1;
    }

    .overlay-product-amount {
        position: absolute;
        bottom: 5%;
        right: 5%;
        color: white;
        font-size: 10px;
        font-weight: bold;
        text-align: right;
        direction: rtl;
        z-index: 1;
    }

    .fs-4 {
        font-size: unset !important;
    }

    .image-container {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    #carouselContent {
        overflow-x: auto;
    }

    #carouselContent .image-container {
        width: 90% !important;
    }

    #sideMenu {
        position: fixed;
        top: 0;
        /* left: -400px; */
        /* منو در ابتدا مخفی است */
        width: 95%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
        transition: left 0.3s ease;
        z-index: 9999;
    }

    #sideMenu .tag-p p {
        font-size: 10px;
    }

    #sideMenu .btn-searchHome {
        width: 100%;
        font-size: 13px;
    }

    .circelF-cart {
        background-color: red;
        margin-left: 2px;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-weight: bold;
        font-size: 16px;
        margin-right: 0px;
    }

    .bcart {
        font-size: 12px;
        padding: 5px;
    }

    .circelN-cart {
        background-color: transparent;
        border: 2px solid red;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: red;
        font-weight: bold;
        font-size: 16px;
        margin-right: -30px;
        margin-left: 5px;
    }

    .listCart .bcart {
        font-size: 12px;
        padding: 20px;
    }


    .listPayment .bcart {
        padding: 10px;
    }

    .listPayment input[type="text"] {
        height: 25px;
    }

    .listPayment-select {
        margin-top: 10px;
    }

    .bcart .btn-searchHome {
        width: 80px;
        height: 30px;
    }

    .backgroundRed2 a,
    .blod-black {
        color: black;
        font-size: 60%;
        font-weight: bold;
    }

    .mt-cus-1 {
        margin-top: 10px;
    }

    .mt-cus-2 {
        margin-top: 1.5rem;
    }

    .fs-7 {
        font-size: 18px;
    }

    .m-right {
        margin-right: 0px;
    }

    .m-left {
        margin-left: 0px;
    }

}

.clearfix {
    width: 60%;
    float: left;
}

.clearfix .custom-title{
    width: 55rem;
}


.product-card {
    background: #d32f2f;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    color: #fff;
    padding: 16px;
    position: relative;
    aspect-ratio: 1/1;   /* مربع */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 175px;     /* حداقل عرض در موبایل */
    max-width: 280px;     /* بیشترین عرض کارت (در دسکتاپ) */
    width: 100%;
  }
  .badge-custom {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
  }
  .product-card img {
    max-width: 70px;
    margin-bottom: 12px;
  }

  .product-card-square {
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 130px;
    max-width: 260px;
  }
  .product-card-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    
  }
  
  .btn-border {
    border: 2px solid red;
    border-radius: 6px;
    background-color: white;
    color: red;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .btn-border:hover {
    background-color: red;
    color: white;
    text-decoration: none;
  }
  
  /* برای موبایل - 2 در 2 */
  @media (max-width: 768px) {
    .btn-border {
      min-width: calc(50% - 10px);
      max-width: calc(50% - 10px);
      flex: 0 0 calc(50% - 10px);
      font-size: 12px;
      padding: 6px 8px;
    }
  }
  
  /* برای دسکتاپ - 4 تایی در یک ردیف */
  @media (min-width: 769px) {
    .btn-border {
      min-width: auto;
      max-width: none;
      flex: 1;
      font-size: 14px;
      padding: 8px 16px;
    }
  }

  .backgroundRed2 .w-100{
    gap: 10px;
  }