﻿:root {
    --primary-color: #2ecc71;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --accent-color: #ff6f61;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding-bottom: 70px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: black;
}

html[dir="rtl"] .dropdown-submenu .dropdown-menu {
    right: 100%;
    left: auto;
    margin-right: 10px;
}

html[dir="ltr"] .dropdown-submenu .dropdown-menu {
    left: 100%;
    right: auto;
    margin-left: 10px;
}

html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: unset !important;
}

html[dir="ltr"] .ms-auto {
    margin-left: auto !important;
    margin-right: unset !important;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav .dropdown-menu {
    text-align: inherit;
}

.auth {
    display: block !important;
}

#preload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8c1d0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

    #preload img {
        max-width: 150px;
        max-height: 150px;
        object-fit: contain;
        margin-bottom: 20px;
    }

.preload-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    animation: fadeInText 0.5s ease-in-out;
}

#preload.fade-out {
    opacity: 0;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lookbook-section {
    padding: 60px 0;
    background-color: white;
}

    .lookbook-section h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
    }

.lookbook-item {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

    .lookbook-item:hover {
        transform: scale(1.05);
    }

    .lookbook-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        loading: lazy;
    }

#lookbookModal .modal-content {
    background: transparent;
    border: none;
}

#lookbookModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#lookbookModal img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
}

#lookbookModal .btn-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 10px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.carousel-inner img {
    object-fit: cover;
    height: 100%;
    /*width: 100%;*/
    loading: lazy;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px 20px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

    .hero-section h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero-section p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

.item-slider-container {
    position: relative;
    overflow: hidden;
}

.item-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

    .item-slider:active {
        cursor: grabbing;
    }

.on-sale-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    word-break: break-word;
    padding: 0 6px;
    min-width: 40px;
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 22px;
    position: relative;
    background-color: #fc5732;
    color: var(--white);
    border-radius: 999px;
}

.discount-badge {
    font-size: 0.8rem;
    /*font-weight: bold;*/
}

.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

    .icon-btn i {
        margin: 0;
    }

/* مدیریت stacked modals */
.modal-open {
    padding-right: 0px !important;
}

.modal-backdrop ~ .modal-backdrop {
    opacity: 0.25;
}

.modal-backdrop {
    left: 0px;
}

.modal:nth-of-type(1) {
    z-index: 1050;
}

.modal:nth-of-type(2) {
    z-index: 1060;
}

.modal:nth-of-type(3) {
    z-index: 1070;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
}

    .btn-primary:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

.slider-controls-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

    .slider-controls-top .slider-btn {
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

        .slider-controls-top .slider-btn:hover {
            background-color: var(--accent-color);
        }

.slider-controls-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

    .slider-controls-side:hover {
        background-color: var(--accent-color);
    }

    .slider-controls-side.prev {
        right: -20px;
    }

    .slider-controls-side.next {
        left: -20px;
    }

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-body .list-group-item {
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

    .modal-body .list-group-item:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .modal-body .list-group-item.submenu-toggle::after {
        content: '>';
        float: left;
        font-size: 0.8rem;
    }

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

    .cart-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        margin-left: 10px;
        loading: lazy;
    }

    .cart-item .cart-details {
        flex-grow: 1;
    }

    .cart-item .quantity-controls {
        display: flex;
        align-items: center;
    }

        .cart-item .quantity-controls button {
            width: 30px;
            height: 30px;
            padding: 0;
        }

        .cart-item .quantity-controls input {
            width: 70px;
            text-align: center;
            border: none;
            background: none;
        }

.cart-total {
    font-weight: bold;
    margin-top: 15px;
    text-align: left;
}

.container-slider {
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mainCarousel image {
    max-width: 100%;
    height: auto;
    transform: scale(1);
    vertical-align: middle;
    width
}

* استایل جدول بدون border */
.table-no-border {
    width: 100%;
    margin-bottom: 1rem;
}

.table-no-border th,
.table-no-border td {
    padding: 0.5rem;
    border: none; /* حذف تمام borderها */
    font-size: 0.9rem;
}

.table-no-border th {
    font-weight: 600;
    text-align: right; /* برای زبان فارسی */
}

.table-no-border td {
    text-align: right; /* برای زبان فارسی */
}


.announcement-bar {
    z-index: 1030;
    /*   padding-right: 65px;
    transition: all 0.3s linear;*/
}

.announcement-text {
    font-size: 16px;
    /*line-height: 1.6;*/
}

.bg_primary {
    background-color: var(--bs-red);
}

.container-full,
.container {
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%;
}

.container-full {
    padding-left: 40px;
    padding-right: 40px;
}

.container-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 15px;
}

.noti-bar-text {
    padding: 10px 0px;
}

.fw-5 {
    font-weight: 500 !important;
}

.fixed-top-Menu {
    position: fixed;
    top: 45px;
    right: 0;
    left: 0;
    z-index: 1030;
}

.py-6,
.pt-6 {
    padding-top: 6rem !important;
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
}

.my-6 {
    margin-top: 6rem !important;
    margin-bottom: 3rem !important;
}

.flex {
    display: flex;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

    .mobile-nav .nav-link {
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        color: var(--text-color);
    }

        .mobile-nav .nav-link:hover {
            color: var(--primary-color);
        }

    .mobile-nav .nav-item {
        flex: 1;
    }



.flat-spacing-21 {
    padding-top: 60px;
    padding-bottom: 100px;
}

.tf-grid-layout.lg-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tf-grid-layout.gap30 {
    gap: 30px;
    display: grid;
}

.tf-content-left {
    margin-right: 122px;
}

.tf-content-right {
    margin-left: 122px;
}

.mb_15 {
    margin-bottom: 15px;
}

.mb_20 {
    margin-bottom: 20px;
}

textarea,
input[type=text],
input[type=password],
input[type=datetime],
input[type=datetime-local],
input[type=date],
input[type=month],
input[type=time],
input[type=week],
input[type=number],
input[type=email],
input[type=url],
input[type=search],
input[type=tel],
input[type=color] {
    font-family: "Albert Sans", sans-serif;
    border: 1px solid rgb(235, 235, 235);
    outline: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    line-height: 24px;
    border-radius: 3px;
    padding: 12px 18px;
    width: 100%;
    background: #FFF;
    color: #909090;
    font-weight: 400;
}

textarea {
    height: 112px;
    resize: none;
}


.tf-btn {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    will-change: background-color, color, border;
    pointer-events: auto;
    overflow: hidden;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    box-sizing: border-box;
    padding: 14px 24px;
    display: inline-flex;
    border-radius: 3px;
    align-items: center;
    border: 1px solid transparent;
    background-color: transparent;
}

.animate-hover-btn {
    position: relative;
    overflow: hidden;
}

.btn-fill {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}
