
/* نمایش ستاره‌ها */
.star {
    font-size: 20px;
    color: #ddd;
    display: inline-block;
    position: relative;
}

.star.full {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* توزیع امتیازات */
.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.bar-container {
    flex-grow: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.bar-container .bar {
    height: 100%;
    background: #ffc107;
    border-radius: 5px;
}

/* استایل‌های جدید برای ستاره‌های نیمه */
.rating-stars-half {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
    position: relative;
    font-size: 24px;
}

.rating-stars-half input {
    display: none;
}

.rating-stars-half label {
    float: right;
    width: 0.5em;
    height: 1em;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.rating-stars-half label.half:before,
.rating-stars-half label.full:before {
    content: "★";
    position: absolute;
    color: #ddd;
}

.rating-stars-half label.full:before {
    right: 0;
}

.rating-stars-half label.half:before {
    width: 50%;
    right: 0;
    overflow: hidden;
}

.rating-stars-half input:checked ~ label.half:before,
.rating-stars-half input:checked ~ label.full:before,
.rating-stars-half label:hover ~ label.half:before,
.rating-stars-half label:hover ~ label.full:before,
.rating-stars-half input:checked + label.half:before,
.rating-stars-half input:checked + label.full:before,
.rating-stars-half label:hover:before {
    color: #ffc107;
}

/* استایل ستاره‌های نیمه */
.star-rating {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.star-rating .star {
    font-size: 24px;
    color: #ddd;
    display: inline-block;
    position: relative;
}

.star-rating .star.full {
    color: #ffc107;
}

.star-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}
/* استایل پایه ستاره‌ها */
.star-rating {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.star-rating .star {
    font-size: 24px;
    color: #ddd;
    display: inline-block;
    position: relative;
    width: 1.1em;
}

.star-rating .star.full {
    color: #ffc107;
}

.star-rating .star.half {
    color: #ddd;
}

.star-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* استایل برای بخش نظرات */
.review-rating {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

.review-rating .star {
    font-size: 16px;
    color: #ddd;
    display: inline-block;
    position: relative;
    width: 1.1em;
}

.review-rating .star.full {
    color: #ffc107;
}

.review-rating .star.half {
    color: #ddd;
}

.review-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}


/* سیستم امتیازدهی ستاره‌ای */
.star-rating-system {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.star-rating-system .star {
    font-size: 24px;
    color: #ddd;
    display: inline-block;
    position: relative;
    width: 1.1em;
    cursor: pointer;
}

.star-rating-system .star.full {
    color: #ffc107;
}

.star-rating-system .star.half {
    position: relative;
    color: #ddd;
}

.star-rating-system .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* بخش نمایش میانگین امتیازات */
.average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.average-rating .rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #424750;
}

.average-rating .stars {
    display: flex;
    direction: ltr;
}

.average-rating .star {
    font-size: 24px;
    color: #ddd;
    position: relative;
    width: 1.1em;
}

.average-rating .star.full {
    color: #ffc107;
}

.average-rating .star.half {
    position: relative;
    color: #ddd;
}

.average-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* بخش نمایش امتیاز در نظرات */
.review-rating {
    display: flex;
    direction: ltr;
    margin: 5px 0;
}

.review-rating .star {
    font-size: 16px;
    color: #ddd;
    position: relative;
    width: 1.1em;
}

.review-rating .star.full {
    color: #ffc107;
}

.review-rating .star.half {
    position: relative;
    color: #ddd;
}

.review-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}
/* سیستم امتیازدهی ستاره‌ای */
.star-rating-system {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.star-rating-system .star {
    font-size: 24px;
    color: #ddd;
    display: inline-block;
    position: relative;
    width: 1.1em;
    cursor: pointer;
}

.star-rating-system .star.full {
    color: #ffc107;
}

/* بخش نمایش میانگین امتیازات */
.average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.average-rating .rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #424750;
}

.average-rating .stars {
    display: flex;
    direction: ltr;
}
/* استایل‌های امتیازدهی محصولات */
.product-rating {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
    margin: 5px 0;
}

.product-rating .star {
    font-size: 16px;
    color: #ddd;
    position: relative;
    width: 1.1em;
    display: inline-block;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    position: relative;
    color: #ddd;
}

.product-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
    display: inline-block;
}

.average-rating .star {
    font-size: 24px;
    color: #ddd;
    position: relative;
    width: 1.1em;
}

.average-rating .star.full {
    color: #ffc107;
}

.average-rating .star.half {
    position: relative;
    color: #ddd;
}

.average-rating .star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* بخش نمایش امتیاز در نظرات */
.review-rating {
    display: flex;
    direction: ltr;
    margin: 5px 0;
}

.review-rating .star {
    font-size: 16px;
    color: #ddd;
    position: relative;
    width: 1.1em;
}

.review-rating .star.full {
    color: #ffc107;
}

/* استایل‌های جدید برای صفحه جزئیات محصول */
.product-detail-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-main-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
}

.product-info-container {
    flex: 1;
    min-width: 300px;
}

.price-box {
    margin: 20px 0;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ef394e;
}

.stock-status {
    margin: 15px 0;
    font-size: 16px;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.product-actions {
    margin-top: 25px;
}

/* استایل بخش توضیحات محصول */
.product-description-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
}

.description-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

/* استایل بخش نظرات */
.product-reviews-section {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.reviews-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* استایل واکنش‌گرا */
@media (max-width: 768px) {
    .product-main-info {
        flex-direction: column;
    }
    
    .product-image-container {
        max-width: 100%;
    }
}
.stock-qty {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}
/* استایل بخش محصولات مشابه */
.similar-products-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.similar-products-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.similar-products-wrapper {
    position: relative;
    padding: 10px 0;
}

.similar-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: #ef394e #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.similar-products-scroll::-webkit-scrollbar {
    height: 6px;
}

.similar-products-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.similar-products-scroll::-webkit-scrollbar-thumb {
    background-color: #ef394e;
    border-radius: 10px;
}

.similar-product-card {
    flex: 0 0 220px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.similar-product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
}

.similar-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.similar-product-info {
    padding: 15px;
    text-align: right;
}

.similar-product-info h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #424750;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.similar-product-price {
    color: #ef394e;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .similar-product-card {
        flex: 0 0 180px;
    }
    
    .similar-product-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .similar-product-card {
        flex: 0 0 160px;
    }
    
    .similar-products-scroll {
        gap: 15px;
    }
    
    .similar-product-image {
        height: 120px;
        padding: 10px;
    }
    
    .similar-product-info {
        padding: 10px;
    }
}
/* استایل محصولات مشابه */
.similar-products-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.similar-products-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.similar-products-wrapper {
    position: relative;
    padding: 10px 0;
}

.similar-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: #ef394e #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.similar-products-scroll::-webkit-scrollbar {
    height: 6px;
}

.similar-products-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.similar-products-scroll::-webkit-scrollbar-thumb {
    background-color: #ef394e;
    border-radius: 10px;
}

.similar-product-card {
    flex: 0 0 220px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.similar-product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
}

.similar-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.similar-product-info {
    padding: 15px;
    text-align: right;
}

.similar-product-info h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #424750;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.similar-product-rating {
    display: flex;
    align-items: center;
    margin: 8px 0;
    direction: ltr;
}

.similar-product-rating .stars {
    display: inline-block;
    unicode-bidi: bidi-override;
}

.similar-product-rating .star {
    font-size: 14px;
    color: #ddd;
    display: inline-block;
    position: relative;
}

.similar-product-rating .star.full {
    color: #ffc107;
}

.similar-product-rating .star.half {
    color: #ffc107;
    position: relative;
}

.similar-product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.similar-product-rating .rating-count {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.similar-product-price {
    color: #ef394e;
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
}

.similar-stock-status {
    font-size: 13px;
    margin-top: 5px;
}

.similar-stock-status .in-stock {
    color: #28a745;
}

.similar-stock-status .out-of-stock {
    color: #dc3545;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .similar-product-card {
        flex: 0 0 180px;
    }
    
    .similar-product-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .similar-product-card {
        flex: 0 0 160px;
    }
    
    .similar-products-scroll {
        gap: 15px;
    }
    
    .similar-product-image {
        height: 120px;
        padding: 10px;
    }
    
    .similar-product-info {
        padding: 10px;
    }
}
/* استایل بخش توزیع امتیازات */
.rating-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.rating-summary h4 {
    color: #424750;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rating-bars {
    width: 100%;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar .stars {
    width: 80px;
    color: #ffc107;
    font-size: 16px;
    text-align: left;
    direction: ltr;
    display: inline-block;
}

.bar-container {
    flex-grow: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.bar-container .bar {
    height: 100%;
    background: #ffc107;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.rating-bar .count {
    width: 80px;
    text-align: left;
    font-size: 14px;
    color: #666;
}
/* استایل‌های عمومی */
.product-detail-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-main-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.product-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-info-container {
    flex: 1;
    min-width: 300px;
}


/* استایل قیمت */
.price-box {
    margin: 20px 0;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ef394e;
}

.old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

/* استایل موجودی */
.stock-status {
    margin: 15px 0;
    font-size: 16px;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

/* استایل توزیع امتیازات */
.rating-distribution {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rating-distribution h4 {
    color: #424750;
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #ef394e;
}

.distribution-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.star-label {
    width: 80px;
    font-weight: bold;
    color: #ffc107;
    direction: ltr;
    text-align: right;
}

.progress-container {
    flex-grow: 1;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    margin: 0 15px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #ffc107;
    border-radius: 12px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.progress-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.count-label {
    width: 60px;
    color: #6c757d;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

/* استایل محصولات مشابه */
.similar-products-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.similar-products-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.similar-products-wrapper {
    position: relative;
    padding: 10px 0;
}

.similar-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: #ef394e #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.similar-products-scroll::-webkit-scrollbar {
    height: 6px;
}

.similar-products-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.similar-products-scroll::-webkit-scrollbar-thumb {
    background-color: #ef394e;
    border-radius: 10px;
}

.similar-product-card {
    flex: 0 0 220px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box
}


.test-product-info {
    padding: 10px;
}
/* استایل‌های اسلایدر */
.slider-container {
    margin: 20px 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-slider {
    width: 100%;
    height: 400px;
}

.main-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-text {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    text-align: right;
}

.slider-text h3 {
    margin: 0;
    font-size: 1.5rem;
}

.slider-text p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.swiper-button-next, 
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.6);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: #ef394e;
    opacity: 1;
}

/* واکنش‌گرایی اسلایدر */
@media (max-width: 768px) {
    .main-slider {
        height: 300px;
    }
    
    .slider-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: 200px;
    }
    
    .slider-text {
        padding: 10px;
    }
    
    .slider-text h3 {
        font-size: 1rem;
    }
    
    .slider-text p {
        font-size: 0.8rem;
    }
}
/* اضافه کردن استایل برای لینک اسلایدها */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* تغییرات برای جلوگیری از تداخل با دکمه‌های ناوبری */
.swiper-slide {
    pointer-events: none;
}

.swiper-slide .slide-link {
    pointer-events: auto;
}

.swiper-button-next, 
.swiper-button-prev {
    pointer-events: auto;
    z-index: 10;
}
/* استایل‌های صفحه جدیدترین محصولات */
.new-products-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-card {
    position: relative;
}
/* استایل‌های صفحه پرفروش‌ترین محصولات */
.top-selling-title {
    color: #424750;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.sales-count {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.sales-count i {
    color: #ef394e;
    margin-left: 5px;
}

.product-card {
    position: relative;
}
/* استایل‌های به‌روزرسانی شده برای ناوبری */
.navbar {
    display: flex;
    background-color: #ef394e;
    padding: 10px 0;
    overflow-x: hidden; /* ابتدا اسکرول بار مخفی است */
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* مخفی کردن اسکرول بار در فایرفاکس */
    transition: overflow-x 0.3s ease; /* انیمیشن برای ظاهر شدن اسکرول بار */
}

.navbar:hover,
.navbar:focus-within {
    overflow-x: auto; /* هنگام هاور یا فوکس، اسکرول بار فعال شود */
    scrollbar-width: thin; /* نمایش اسکرول بار در فایرفاکس */
}

/* استایل اسکرول بار برای مرورگرهای وبکیت */
.navbar::-webkit-scrollbar {
    height: 0; /* ابتدا اسکرول بار مخفی است */
    transition: height 0.3s ease; /* انیمیشن برای ظاهر شدن */
}

.navbar:hover::-webkit-scrollbar,
.navbar:focus-within::-webkit-scrollbar {
    height: 5px; /* هنگام هاور یا فوکس، اسکرول بار نمایش داده شود */
}

.navbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.navbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    display: inline-block;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

/* بهبود نمایش در حالت تعاملی */
.navbar a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* بهینه‌سازی برای دستگاه‌های لمسی */
@media (hover: none) {
    .navbar {
        overflow-x: auto; /* برای دستگاه‌های لمسی همیشه اسکرول بار نمایش داده شود */
        scrollbar-width: thin;
    }
    
    .navbar::-webkit-scrollbar {
        height: 5px;
    }
}
/* استایل‌های اصلی ناوبری */
.navbar {
    display: flex;
    background-color: #ef394e;
    padding: 10px 0;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* مخفی کردن اسکرول بار در همه حالت‌ها */
    position: relative;
}

/* فعال کردن اسکرول فقط هنگام تعامل */
.navbar.interacting {
    overflow-x: auto;
    scrollbar-width: thin; /* نمایش اسکرول بار در فایرفاکس */
}

/* استایل اسکرول بار برای مرورگرهای وبکیت */
.navbar::-webkit-scrollbar {
    height: 0; /* مخفی کردن اسکرول بار */
    transition: height 0.3s ease;
}

.navbar.interacting::-webkit-scrollbar {
    height: 5px; /* نمایش اسکرول بار هنگام تعامل */
}

.navbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.navbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
}

/* استایل آیتم‌های منو */
.navbar a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    display: inline-block;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

/* نشانگر انتهای منو */
.navbar-end-indicator {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, #ef394e, transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:not(.scrolled-to-end) .navbar-end-indicator {
    opacity: 1;
}
/* استایل مخصوص اسلایدهای GIF */
.gif-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تنظیمات اضافی برای اسلایدر */
.main-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-slider .swiper-slide:hover img {
    transform: scale(1.02);
}

/* بهینه‌سازی برای فایل‌های GIF */
.gif-slide {
    pointer-events: none; /* جلوگیری از تداخل با کلیک */
}

/* نشانگر برای اسلایدهای GIF */
.gif-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
}
/* به این بخش‌ها در فایل style.css اضافه کنید */

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: #ef394e;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #424750;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #ef394e;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.product-rating {
    direction: ltr;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ef394e;
    color: #ef394e;
}

.btn-outline:hover {
    background: #ef394e;
    color: white;
}

.btn-primary {
    background: #ef394e;
    color: white;
    border: 1px solid #ef394e;
}

.btn-primary:hover {
    background: #d62b3e;
    border-color: #d62b3e;
}
/* تغییرات جدید برای کارت محصول */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #000; /* رنگ مشکی خالص */
    font-family: 'Yekan', 'Tahoma', sans-serif;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none !important; /* حذف خط زیر عنوان */
}

.product-title a {
    color: #000; /* رنگ مشکی برای لینک */
    text-decoration: none !important; /* حذف خط زیر لینک */
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e; /* تغییر رنگ هنگام هاور */
}

.product-price {
    color: #ef394e;
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none !important; /* حذف خط زیر دکمه‌ها */
}

/* بهبود ظاهر ستاره‌های امتیازدهی */
.product-rating {
    direction: ltr;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.product-rating .star {
    font-size: 16px;
    color: #ddd;
    margin: 0 1px;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    position: relative;
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
    font-weight: normal;
}
/* استایل جدید کارت محصول - مینیمال و مدرن */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-meta {
    margin-top: auto;
    padding-top: 12px;
}

.product-price {
    color: #ef394e;
    font-weight: 700;
    font-size: 15px;
    margin: 6px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-rating {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    background: rgba(255,193,7,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.product-rating .stars {
    display: flex;
    margin-left: 4px;
}

.product-rating .star {
    color: #ddd;
    font-size: 14px;
    margin: 0 1px;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ef394e !important;
    color: #ef394e;
}

.btn-outline:hover {
    background: #ef394e;
    color: white;
}

.btn-primary {
    background: #ef394e;
    color: white;
}

.btn-primary:hover {
    background: #d62b3e;
}

/* نشانگر محصول جدید */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}
.product-card {
    /* سایر استایل‌های قبلی */
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(255,255,255,0) 70%);
}

.product-image,
.product-info {
    position: relative;
    z-index: 2;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(255,255,255,0) 70%);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* بقیه استایل‌ها مانند قبل باقی می‌مانند */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    position: relative;
    isolation: isolate;
}

/* گرادیان پررنگ و زیبا */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.25) 0%, 
        rgba(0,0,0,0.15) 30%, 
        rgba(255,255,255,0) 70%
    );
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: 16px;
}

/* افکت hover پیشرفته */
.product-card:hover::before {
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.35) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(255,255,255,0) 70%
    );
    transform: scale(1.02);
}

/* نورپردازی هنگام hover */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* استایل تصویر محصول */
.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* افکت سه بعدی برای تصویر */
.product-image::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

/* استایل اطلاعات محصول */
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: white;
}

/* استایل عنوان محصول */
.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #222;
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* استایل قیمت و امتیاز */
.product-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-price {
    color: #ef394e;
    font-weight: 700;
    font-size: 16px;
    margin: 8px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* استایل دکمه‌ها */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

/* افکت دکمه‌ها */
.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-actions .btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ef394e !important;
    color: #ef394e;
}

.btn-outline:hover {
    background: #ef394e;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.2);
}

.btn-primary {
    background: #ef394e;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.25);
}

.btn-primary:hover {
    background: #d62b3e;
    box-shadow: 0 6px 16px rgba(239, 57, 78, 0.3);
    transform: translateY(-2px);
}
/* استایل‌های پروفایل کاربر */
.profile-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.profile-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #424750, #2c3036);
    color: white;
    padding: 30px 0;
}

.profile-avatar {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: #ef394e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.profile-avatar h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.user-email {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}

.profile-menu {
    display: flex;
    flex-direction: column;
}

.profile-menu a {
    color: rgba(255,255,255,0.8);
    padding: 12px 25px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.profile-menu a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.profile-menu a:hover, .profile-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.profile-menu a.active {
    border-right: 3px solid #ef394e;
}

.profile-content {
    flex: 1;
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    color: #424750;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ef394e;
    padding-bottom: 8px;
}

.profile-section h2 i {
    margin-left: 10px;
    color: #ef394e;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
}

.info-label {
    font-weight: 600;
    color: #666;
    width: 120px;
}

.info-value {
    color: #333;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.order-id {
    font-weight: bold;
    color: #424750;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending { background: #ffc107; color: #000; }
.status-processing { background: #17a2b8; color: white; }
.status-shipped { background: #007bff; color: white; }
.status-delivered { background: #28a745; color: white; }
.status-cancelled { background: #dc3545; color: white; }

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.order-total {
    font-weight: bold;
    color: #ef394e;
}

.view-order {
    color: #424750;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.view-order:hover {
    color: #ef394e;
}

.no-orders {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.no-orders i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-orders p {
    color: #666;
    margin-bottom: 20px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
}