﻿* {
  box-sizing: border-box;
}

a {
    text-decoration:none;
}

.imgSize { 
    max-width: 100%; 
    height: auto; 
}

input {
    font-family:inherit;
    font-size:inherit;
    direction:inherit;
    color:inherit
}

textarea {
    font-family:inherit;
    font-size:inherit;
    direction:inherit;
    color:inherit
}

@font-face {
    font-family: SUI;
    src: url(https://nicekids.top/v8/Fonts/SegoeUI.woff) format('woff');
}

.MainTitleText {
}

.MainTitleTextPC {
    font-family:Segoe UI, SUI;
    font-size:larger; 
    font-weight:bold;
    direction:rtl;
}

.MainTitleTextMobile {
    font-family:Segoe UI, SUI;
    font-size:x-large; 
    font-weight:bold;
    direction:rtl;
    line-height: normal;
    -webkit-text-stroke: 0 transparent;
}

.MainBodyTextPC {
    font-family:Segoe UI, SUI;
    font-size:medium;
    direction:rtl;
}

.MainBodyTextMobile {
    font-family:Segoe UI, SUI;
    font-weight:bold;
    font-size:large;
    direction:rtl;
    line-height: 125%;
}

.MainDarkColors {
    color:white;
    background-color:#d0acac;
}

.ComplementaryDarkColors {
    color:white;
    background-color:#95c0c0;
}

.MainLightColors {
    color:#895454;
    background-color:#f4ebeb;
}

.ComplementaryLightColors {
    color:#3e6e6e;
    background-color:#cfe4e4;
}

.TopLogoBox {
    margin-left:12px;
    float:right; 
}

.TopLoginBox {
    float:left; 
    padding-top:8px;
    height:60px;
    display:none;
    margin-right:7px;
}

.TopLoginButton {
    border-radius: 7px 7px 7px 7px;
    cursor: pointer;
}

.TopCartBox {
    float: left;
    padding-top: 8px;
    height: 60px;
    margin-right: 7px;
    position: relative;
}

.TopOrderBox {
    float:left; 
    padding-top:8px;
    height:60px;
    display:none;
    margin-right:7px;
}

.PcHeaderBox {
    min-width:1000px; 
    overflow:auto; 
}

.MobileHeaderBox {
    overflow:auto; 
}

.PcSearchBox {
    float:right; 
    padding-top:10px; 
    height:60px; 
    width:50%; 
    display:none;
}

.MobileSearchBox {
	overflow:auto;
    height:54px; 
    display:none;
}

.PcSearchText {
    outline: none; 
    padding-right:7px; 
    border-radius: 0px 7px 7px 0px; 
    border-style:none; 
    width: 85%;
    height: 40px;
    color: #d0acac;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    float:right;
}

.MobileSearchText {
    outline: none; 
    padding-right:7px; 
    border-radius: 0px 7px 7px 0px; 
    border-style:none; 
    width: 85%;
    height: 40px;
    color: #d0acac;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    float:right;
}

.PcSearchButton {
    outline: none;
    border-radius: 7px 0px 0px 7px;
    border-style:none;
    height: 40px; 
    color: white;
    background-color: #95c0c0;  
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    cursor: pointer;
    float:right;
}

.MobileSearchButton {
    outline: none;
    border-radius: 7px 0px 0px 7px;
    border-style:none;
	width: 15%;
    height: 40px; 
    color: white;
    background-color: #95c0c0;  
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    cursor: pointer;
	float:right;
}

.CancelButton {
    outline: none;
    border-radius: 7px 7px 7px 7px;
    border-style:none;
    height: 42px; 
    color: white;
    background-color: red;  
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    cursor: pointer;
    padding-right:15px;
    padding-left:15px;
}

.PhoneVerificationBox {
    margin:7px auto; 
    padding:7px; 
    max-width:500px; 
    min-height:200px; 
    border-radius:7px;
}

.VerificationText {
    outline: none;
    border-radius: 0px 7px 7px 0px;
    border-style:none; 
    width:68%;
    height: 40px;
    text-align:left; 
    padding-left:10px;
    color: #d0acac;
    background-color:white;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    float:right;
}

.VerificationButton {
    outline: none;
    border-radius: 7px 0px 0px 7px;
    border-style:none;
	width: 32%;
    height: 40px; 
    color: white;
    background-color: #95c0c0;  
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    cursor: pointer;
	float:right;
}

.ReturnToHomePageBox {
    float:left; 
    background-color:#95c0c0; 
    text-align:center; 
    padding:5px; 
    border-radius:8px; 
    margin-top:5px;
}

.ReturnToHomePageButton {
    border-style:none;
    cursor: pointer;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
}

.SaveAndReturnBox {
    float:left; 
    background-color:#95c0c0; 
    padding:5px; 
    margin:5px;
    border-radius:8px;
}

.SaveAndReturnButton {
    color:white;
    background-color:#95c0c0;
    border-style:none;
    width:150px;
    cursor: pointer;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    padding-bottom:3px;
}

.CancelAndReturnBox {
    float:left; 
    background-color:#d0acac; 
    padding:5px; 
    margin:5px;
    border-radius:8px;
}

.CancelAndReturnButton {
    color:white;
    background-color:#d0acac;
    border-style:none;
    min-width:80px;
    cursor: pointer;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    padding-bottom:3px;
}

.PublicButton {
    color:white;
    background-color:#95c0c0;
    border-style:none;
    cursor: pointer;
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    padding-top:3px;
    padding-bottom:6px;
    padding-left:10px;
    padding-right:10px;
    border-radius:5px;
}

.TopGradientBox {
    width:100%;
    height: auto; 
    background: linear-gradient(to bottom, #d0acac, #f4ebeb);
    position: relative;
}

.BottomGradientBox {
    width: 100%;
    height: auto;
    background: linear-gradient(to top, #d0acac, #f4ebeb);
    position: relative;
}

/* ظرف نگهداری عناصر دسته بندی کلی کالاها در بالای صفحه اصلی */
.TopCategoryContainer {
    padding: 30px;
    display: grid;
    gap: 16px;
    justify-content: center;
}

/* ایجاد جلوه ویژه برای متن های تبلیغاتی بالای صفحه اصلی */
@keyframes fadeSlot {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    0.43% {
        opacity: 1;
        transform: translateY(0);
    }

    5.8% {
        opacity: 1;
        transform: translateY(0);
    }

    6.67% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.PromotionalText {
    position: absolute;
    top: 10px;
    right: 15px;
    opacity: 0;
    animation: fadeSlot 49.5s infinite;
    animation-fill-mode: both;
    will-change: opacity, transform;
    width: 90vw;
    white-space: nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.PromotionalText:nth-child(1)  { animation-delay: 0s; }
.PromotionalText:nth-child(2)  { animation-delay: 3.3s; }
.PromotionalText:nth-child(3)  { animation-delay: 6.6s; }
.PromotionalText:nth-child(4)  { animation-delay: 9.9s; }
.PromotionalText:nth-child(5)  { animation-delay: 13.2s; }
.PromotionalText:nth-child(6)  { animation-delay: 16.5s; }
.PromotionalText:nth-child(7)  { animation-delay: 19.8s; }
.PromotionalText:nth-child(8)  { animation-delay: 23.1s; }
.PromotionalText:nth-child(9)  { animation-delay: 26.4s; }
.PromotionalText:nth-child(10) { animation-delay: 29.7s; }
.PromotionalText:nth-child(11) { animation-delay: 33s; }
.PromotionalText:nth-child(12) { animation-delay: 36.3s; }
.PromotionalText:nth-child(13) { animation-delay: 39.6s; }
.PromotionalText:nth-child(14) { animation-delay: 42.9s; }
.PromotionalText:nth-child(15) { animation-delay: 46.2s; }

/* ایجاد فید برای پایین عکس های مربوط به کتگوری */
.FadeBottom {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  -webkit-mask-size: 100% 100%;
  
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
  mask-repeat: no-repeat;
  mask-position: bottom;
  mask-size: 100% 100%;
}

/* ایجاد فید برای بالای عکس های مربوط به کتگوری */
.FadeTop {
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: top;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
    mask-repeat: no-repeat;
    mask-position: top;
    mask-size: 100% 100%;
}

/* ایجاد فاصله عمودی بین عناصر بطوریکه هم در موبایل و هم در دسکتاپ خوب به نظر برسد */
.Spacer {
    height:clamp(1px, 1vw, 5px);
}

/* کدهای اسکرول به بالا: */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #d0acac;
    color: #fff;
    border: 2px solid #895454;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

#backToTop .arrow {
  color: white;
}

/* مخصوص صفحه Product 
    در حالت موبایل:*/
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}

.swiper-slide {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.swiper-slide img {
        width: 100%;
        height: auto; /* ارتفاع تصویر برش داده نمی‌شود */
        display: block;
        border-radius: 12px;
    }

.swiper-pagination {

    bottom: 0px !important;
}

/* مخصوص صفحه Product 
    در حالت دسکتاپ:*/
        .ProductPageDesktopGalleryContainer {
            display: flex;
            justify-content: center;
            padding: 20px;
            max-width:900px;
        }

        .ProductPageDesktopGalleryWrapper {
            display: flex;
            gap: 20px;
            max-width: 900px;
            width: 100%;
            direction: ltr;
        }

        .ProductPageDesktopGalleryMainImage {
            flex: 1;
            max-width: 700px;
        }

        .ProductPageDesktopGalleryMainImage img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            display: block;
        }

.ProductPageDesktopGalleryThumbnailColumn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
    /*height: 600px;*/

    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    scrollbar-width: thin; /* برای فایرفاکس */
    scrollbar-color: #3e6e6e white; /* رنگ برای فایرفاکس */
    overflow-x: hidden;
}

    /* برای کروم، اج و سفاری */
.ProductPageDesktopGalleryThumbnailColumn::-webkit-scrollbar {
        width: 10px; /* پهنای میله */
    }

.ProductPageDesktopGalleryThumbnailColumn::-webkit-scrollbar-track {
        background: #f1f1f1; /* رنگ پس‌زمینه */
        border-radius: 10px;
    }

.ProductPageDesktopGalleryThumbnailColumn::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #ff4081, #e91e63); /* رنگ گرادیان */
        border-radius: 10px;
    }

.ProductPageDesktopGalleryThumbnailColumn::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #e91e63, #c2185b);
        }



.ProductPageDesktopGalleryThumbnailColumn img {
        width: 100%;
        cursor: pointer;
        border-radius: 8px;
        transition: transform 0.2s, opacity 0.2s;
    }

.ProductPageDesktopGalleryThumbnailColumn img:hover {
            transform: scale(1.05);
            opacity: 0.8;
        }

/* استایل برای خطاهایی که ممکن است رخ دهند */
.EreorBox {
    border-width:2px; 
    border-style:solid; 
    border-radius:10px; 
    border-color:red; 
    color:red; 
    background:white; 
    direction:rtl; 
    font-size:small; 
    max-width: 700px;
    min-height:100px;
    margin-left:auto;
    margin-right:auto;
    padding:10px;
    display:none
}

/* استایل برای افکت 
    hover
    تصاویر در لیست جدیدترین محصولات در صفحه نخست */
a.DefaultPageNewestsListProductCard {
      overflow: hidden;
      border-radius: 12px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none; /* حذف خط زیر لینک */
      color: inherit; /* رنگ متن مثل قبل */
      display: block;
      padding:5px;
    }

a.DefaultPageNewestsListProductCard:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

.DefaultPageNewestsListProductCard img {
      transition: transform 0.4s ease, filter 0.4s ease;
      display: block;
    }

.DefaultPageNewestsListProductCard:hover img {
      transform: scale(1.08); /* کمی زوم */
      filter: brightness(1.1); /* روشن‌تر */
    }

/**
    چهار تا کلاس زیر مربوط به کادری هست که در هنگام افزوده شدن کالایی به سبد خرید ظاهر می شود
    کادری از نوع:
    sweetalert2
*/

/* رنگ پس‌زمینه کل کادر */
.swal2-popup {
    background: #f4ebeb !important;
    border: 1px solid #895454 !important;
    border-radius: 20px;
}

/* متن‌های داخل کادر (title و text) */
.swal2-title, .swal2-html-container {
    color: #895454 !important;
}

/* استایل دکمه تایید */
.swal2-confirm {
    background-color: #cfe4e4 !important;
    color: #3e6e6e !important;
    border: 1px solid #3e6e6e !important;
    border-radius: 6px;
    padding: 8px 20px;
}

/* استایل دکمه انصراف */
.swal2-cancel {
    background-color: #95c0c0 !important;
    color: white !important;
    border: 1px solid #3e6e6e !important;
    border-radius: 6px;
    padding: 8px 20px;
}




