/* تنظیمات برای اسلایدر نیم صفحه */
.halfscreen-carousel {
    height: 50vh;
    width: 100%;
    overflow: hidden;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* لایه تیره روی تصاویر برای خوانایی بهتر متن */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* محتوای متنی در سمت راست */
.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: auto;
    right: 10%;
    text-align: right;
    padding: 20px;
    background: transparent;
    width: 40%;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.6s ease;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.8s ease;
}

.carousel-caption .btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: slideInRight 1s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* انیمیشن ورود از راست */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== افکت محو شدن اسلایدر ========== */
.halfscreen-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.halfscreen-carousel.carousel-fade .carousel-item.active {
    opacity: 1;
}

.halfscreen-carousel.carousel-fade .carousel-item-next.carousel-item-left,
.halfscreen-carousel.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.halfscreen-carousel.carousel-fade .carousel-item-next,
.halfscreen-carousel.carousel-fade .carousel-item-prev,
.halfscreen-carousel.carousel-fade .carousel-item.active,
.halfscreen-carousel.carousel-fade .active.carousel-item-left,
.halfscreen-carousel.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

/* ========== استایل دکمه‌های کنترل ========== */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 35px;
    height: 35px;
    background-size: 100%;
}

/* استایل ایندیکیتورها */
.carousel-indicators {
    z-index: 3;
    bottom: 15px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators li.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 992px) {
    .carousel-caption {
        width: 60%;
        right: 5%;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}



@media (max-width: 480px) {
    .halfscreen-carousel {
        height: 35vh;
    }

    .carousel-caption h1 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption .btn {
        padding: 4px 12px;
        font-size: 0.6rem;
    }
}



/*slider*/


.slider {
    padding: 5px 0 35px 0;
    /*color: #fff;*/
}
.slider .swiper-container {
    width: 100%;
    height: 100%;
}
.slider__flex {
    display: flex;
    /*align-items: flex-start;*/
}
.slider__col {
    display: flex;
    flex-direction: column;
    width: auto;
    margin-left: 32px;
}
.slider__prev,
.slider__next {
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.slider__prev:focus,
.slider__next:focus {
    outline: none;
}
.slider__thumbs {
    height: calc(400px - 96px);
}
.slider__thumbs .slider__image {
    transition: 0.25s;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    opacity: 0.5;
}
.slider__thumbs .slider__image:hover {
    opacity: 1;
}
.slider__thumbs .swiper-slide-thumb-active .slider__image {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    opacity: 1;
}
.slider__images {
    height: 400px;
    width: 100%;
}
.slider__images .slider__image img {
    transition: 3s;
}
.slider__images .slider__image:hover img {
    transform: scale(1.1);
}
.slider__image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}
.slider__thumbs .slider__image img {
    display: block;
    width: 100px;
    height: 100px;
    -o-object-fit: cover;
    object-fit: cover;
}
.slider__images .slider__image img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}



.slider .arrow-prev{
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 20px solid #c4c4c4;
}
.slider .arrow-next{
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid #c4c4c4;
}


.dynamic-fields-wrapper{
    margin: 20px 0; padding: 15px; background: #f9f9f9; border-radius: 8px;
}

.fl-main-container .fl-container.fl-flasher .fl-message, .fl-main-container .fl-container.fl-flasher .fl-title {
    display: block ruby !important;
}

.dynamic-field{
    width: 100%;
}


.cart-count-badge {
    position: absolute;
    top: 40px;
    right: 15px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1;
}
.div-message-cart{
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}
.box-cart-message {
    width: 100%;
    margin: 5px auto 15px auto;
    background-color: #fff;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px;
    border: 1px solid #e9e9e9;
    padding: 10px 10px;
}
.div-message-cart {
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.div-message-cart.show {
    transform: translateY(0);
}

.check-icon-cart {
    width: 30px;
}
.div-message-cart.show {
    animation: slide-toast 4.5s ease-in-out forwards;
}


@keyframes slide-toast {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}
.bottom-0 {
    bottom: 0;
}

.start-0 {
    right: 0;
}

.end-0 {
    left: 0;
}

.position-fixed{
    position: fixed;
}


.sidebar-left {
    height: 100%;
    width: 400px;
    position: fixed;
    top: 0;
    left: -600px;
    background-color: #FFF;
    overflow-x: hidden;
    z-index: 1000;
    transition: left 0.5s ease-in-out;
}

.sidebar-left.open {
    left: 0;
}

.sidebar-left .sidebar-header{
    position: absolute;
    width: 100%;
    text-align: left;
    text-transform: inherit;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    padding: 1.34em;
    line-height: 1;
    z-index: 1;
    max-height: 3.5em;
    font-size: 20px;
}

.sidebar-content {
    padding-top: 70px;
    height: 100%;
}
.sidebar-left .title{
    color: #415161;
}
.sidebar-left .close-btn{
    position: absolute;
    top: 0.5em;
    right: 0;
    border: none;
    margin: 0;
    padding: .6em 1em .4em;
    color: #415161;
    background-color: transparent;
}

.sidebar-left .shop-content-cart{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.sidebar-left .ground-list{
    display: block;
    height: 100%;
}


.sidebar-left .box-total{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    border-bottom-color: rgb(236, 236, 236);
    font-size: 17px;
}

.sidebar-left ul{
    padding: 1.3em;
    flex: 1;
    overflow: auto;
    list-style: none outside;
    margin: 0;
    position: relative;
}

.sidebar-left ul li{
    border-bottom: none;
    min-height: 110px;
    list-style: none;
    position: relative;
    margin: 0;
    line-height: 1.5;
}

.sidebar-left .empty{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}
.sidebar-left .empty .txt{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.34em;
}

.sidebar-left .grd_thum{
    display: flex;
}
.sidebar-left a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    color: #000;
    display: inline;
    transition: 0.3s;
}

.sidebar-left .show-product{
    color: #67727d;
    font-size: 16px;
    border: 2px solid #67727d;;
    margin: 20px;
    border-right: 0;
    display: block;
}
.sidebar-left .ground-shop{
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-left .ground-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-left .ground-content .text-fade{
    font-size: 17px;
}

.sidebar-left a:hover {
    color: #575757;
}

.sidebar-left .closebtn {
    font-size: 36px;
    margin-left: 50px;
}

.menu.closed .sidebar-content {
    opacity: 0;
    transition: opacity 0.1s;
}

.openbtn {
    font-size: 30px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #444;
}

.btn-sidebar-left {
    bottom: 0;
    display: block;
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 20px;
    right: 0;
    z-index: 1000;
}

.woo_buttons .btn.btn-theme3{
    height: 54px;
    border-radius: 4px;
    width: 100%;
    background: #1ac35d;
}



@media (max-width: 768px) {
    .halfscreen-carousel {
        height: 40vh;
    }

    .carousel-caption {
        width: 80%;
        right: 5%;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.7rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .slider .arrow-prev{
        width: 0;
        height: 0;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-right: 20px solid #838181;
        border-left: 0;
        margin-right: 10px;
    }
    .slider .arrow-next{
        width: 0;
        height: 0;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left: 20px solid #838181;
        border-right: 0;
        margin-left: 10px;
    }
    .slider__flex {
        flex-direction: column-reverse;
    }
    .slider__col {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        margin-top: 24px;
        width: 100%;
    }
    .slider__images {
        width: 100%;
    }
    .slider__thumbs {
        height: 100px;
        width: calc(100% - 96px);
        margin-right: 20px;
    }
    .slider__prev,
    .slider__next {
        height: auto;
        width: 32px;
    }

    .slider__images,
    .slider__thumbs {
        overflow: hidden;
    }
    .slider__col {
        flex-direction: row-reverse;
    }
    .slider__images .swiper-container,
    .slider__thumbs .swiper-container {
        direction: rtl;
    }
    .slider__images .swiper-wrapper,
    .slider__thumbs .swiper-wrapper {
        flex-direction: row-reverse;
    }

    .slider__prev { order: 1; }
    .slider__next { order: 3; }

    .slider__thumbs .slider__image img {
        display: block;
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }

}
