/* ==================== اسلایدر ویژه ==================== */

/* استایل‌های اسلایدر */
.star-products-section {
    padding: 0rem 0;
    background: #f9f9f9;
    margin: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: #e74c3c;
}

.star-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 15px;
}

.star-slider-track {
    display: flex;
    flex-direction: row-reverse;
    transition: transform 1.5s ease;
    gap: 16px;
    padding: 30px 0;
    direction: rtl;
}

.star-product {
    flex: 0 0 180px;
    position: relative;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    transition: all 0.3s;
}

.star-product:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
}

.star-product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.star-product-inner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.star-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.star-product:hover .star-product-image {
    transform: scale(1.1);
}

.star-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    text-align: center;
    z-index: 2;
}

.star-product-title {
    color: white;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.star-discount-badge {
    background: #FF0000;
    color: white;
    font-size: 0.8rem;
    padding: 3px 50px;
    border-radius: 15px;
    display: inline-block;
}

.star-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.star-slider-btn {
    pointer-events: all;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.star-slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* رسپانسیو - بهبود یافته */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .star-product {
        flex: 0 0 160px;
    }
    
    .star-product-inner {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .star-products-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .star-product {
        flex: 0 0 140px;
    }
    
    .star-product-inner {
        height: 140px;
    }
    
    .star-slider-container {
        padding: 0 25px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-title::after {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .star-products-section {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }
    
    .star-product {
        flex: 0 0 120px;
    }
    
    .star-product-inner {
        height: 120px;
    }
    
    .star-slider-container {
        padding: 0 15px;
    }
    
    .star-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .star-product {
        flex: 0 0 100px;
    }
    
    .star-product-inner {
        height: 100px;
    }
    
    .star-product-title {
        font-size: 0.8rem;
        padding: 10px 5px;
    }
    
    .star-discount-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}


/* منوی موبایل */

/* ==================== فوتر ==================== */
.main-footer {
    background-color: #2c3e50;
    color: #fff;
    margin-top: 3rem;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.logo-footer img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.about-text {
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-methods img {
    height: 25px;
    width: auto;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: #e74c3c;
    padding-right: 0.5rem;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.contact-info i {
    margin-left: 0.5rem;
    color: #e74c3c;
    margin-top: 0.2rem;
}

.newsletter-desc {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.copyright strong {
    color: #e74c3c;
}

.footer-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #e74c3c;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c0392b;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        margin-bottom: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-menu ul {
        justify-content: center;
    }
}

/* ==================== محتوای اصلی ==================== */
.main-content {
    padding: 0.2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.view-all {
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.view-all:hover {
    color: #c0392b;
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* اسلایدر اصلی */
.main-slider {
    position: relative;
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide {
    position: relative;
    display: none;
    width: 100%;
    height: 500px;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Lalezar', cursive;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* کلیدهای دسترسی سریع */
.quick-access {
    margin-bottom: 3rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-access-item {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.quick-access-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.quick-access-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: #fff;
    text-align: center;
}

.overlay h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* بنر تبلیغاتی */
.promo-banner {
    margin-bottom: 3rem;
}

.promo-banner img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.promo-banner img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-slider {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slide-content {
        right: 5%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .products-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide {
        height: 400px;
    }
    
    .slide-content {
        padding: 1rem;
        right: 50%;
        transform: translate(50%, -50%);
        text-align: center;
        width: 90%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .products-slider {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .slide {
        height: 300px;
    }
}


/* دسته‌بندی محصولات */
.category-products {
    margin: 0rem 0;
}

.category-slider-section {
    margin-bottom: 3rem;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.category-slider-container {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.category-slider {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    margin-left: 0; /* مطمئن شو margin اضافی نداری */
    margin-right: 0;
    padding: 0;
}

.category-product {
    flex: 0 0 200px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.category-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-product a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 1rem;
}

.category-product img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.category-product h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.category-product:hover h4 {
    color: #e74c3c;
}

.product-price {
    margin-top: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    display: block;
}

.new-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1rem;
}

.category-prev, .category-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1rem;
    color: #333;
}

.category-prev { right: 0; }
.category-next { left: 0; }

.banner-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.banner-full {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-media {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .banner-media {
        max-height: 300px;
    }
}


/* مسیر راه (Breadcrumb) */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    margin-left: 1rem;
    font-size: 0.9rem;
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    position: absolute;
    left: -0.7rem;
    color: #999;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e74c3c;
}

/* عنوان دسته‌بندی */
.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #777;
    font-size: 1rem;
}

/* فیلتر محصولات */
.product-filters {
    margin-bottom: 2rem;
    padding: 1rem 0;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.9rem;
}

.filter-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.filter-btn i {
    margin-left: 0.5rem;
}

/* لیست محصولات */

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 2;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #e74c3c;
}

.product-price {
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.new-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.5rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

.add-to-cart i {
    margin-left: 0.5rem;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.page-item:hover:not(.disabled):not(.active) {
    background-color: #e0e0e0;
}

.page-item.active {
    background-color: #e74c3c;
    color: #fff;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

/* استایل‌های جدید برای دسته‌بندی‌ها و محصولات */

/* مسیر دسته‌بندی */
.category-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.category-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 3px;
}

.category-breadcrumb a:hover {
    color: #e74c3c;
}

.category-breadcrumb span {
    margin: 0 5px;
    color: #999;
}

.category-breadcrumb strong {
    color: #e74c3c;
    font-weight: 500;
}

/* محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.product-info {
    padding: 18px;
}

.product-title a {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-title a:hover {
    color: #ff5e62;
}

.product-price {
    margin: 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.new-price {
    color: #ff5e62;
    font-size: 18px;
    font-weight: bold;
}

.regular-price {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.discount-percent {
    background: #ff5e62;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.quick-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.quick-view-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

.quick-view-btn i {
    margin-left: 5px;
}/* پیام عدم وجود محصول */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #666;
}

.no-products i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-products p {
    font-size: 1.1rem;
    margin: 0;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.page-item:hover:not(.disabled):not(.active) {
    background: #e0e0e0;
}

.page-item.active {
    background: #e74c3c;
    color: #fff;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-breadcrumb {
        font-size: 0.8rem;
    }
}

/* صفحه محصول */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 3rem 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnails img:hover {
    border-color: #e74c3c;
}

.product-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-price {
    margin: 1.5rem 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-left: 10px;
}

.new-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.5rem;
}

.product-meta {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    margin-bottom: 0.7rem;
}

.meta-label {
    font-weight: bold;
    color: #555;
    width: 100px;
}

.meta-value {
    color: #333;
}

.in-stock {
    color: #27ae60;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-options input[type="radio"] {
    display: none;
}

.color-options label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-options input[type="radio"]:checked + label {
    border-color: #333;
    transform: scale(1.1);
}

.option-group select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 200px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin: 2rem 0;
}

.btn-wishlist {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-wishlist:hover {
    background: #f5f5f5;
    color: #333;
}

.product-description h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.product-description p {
    line-height: 1.8;
    color: #555;
}

/* ریسپانسیو صفحه محصول */
@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
    }
    
    .main-image {
        height: 250px;
    }
}

/* صفحه درباره ما */
.about-section {
    margin: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.feature-item i {
    color: #e74c3c;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.team-section {
    margin: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #f5f5f5;
}

.team-member h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #777;
    font-size: 0.9rem;
}

.contact-info-section {
    margin: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ریسپانسیو صفحه درباره ما */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* صفحه سفارش اختصاصی */
.custom-order-section {
    margin: 3rem 0;
}

.custom-order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
}

.info-box h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.info-box h2 i {
    margin-left: 10px;
    color: #e74c3c;
}

.info-box p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.features-list {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: #27ae60;
    margin-left: 10px;
}

.gallery-box {
    margin-top: 3rem;
}

.gallery-box h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.order-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-area i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.upload-area p {
    margin: 0;
    color: #555;
}

.upload-area input[type="file"] {
    display: none;
}

.file-info {
    font-size: 0.9rem;
    color: #555;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ریسپانسیو صفحه سفارش اختصاصی */
@media (max-width: 992px) {
    .custom-order-content {
        grid-template-columns: 1fr;
    }
    
    .order-info {
        order: -1;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box, .order-form {
        padding: 1.5rem;
    }
}

/* صفحه 404 */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 3rem 0;
}

.error-content h1 {
    font-size: 6rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    font-family: 'Lalezar', cursive;
}

.error-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.error-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .error-content h1 {
        font-size: 4rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
}

/* استایل دکمه ورود/خروج */
.nav-item .fa-sign-in-alt,
.nav-item .fa-sign-out-alt {
    margin-left: 5px;
}

/* تغییر رنگ دکمه در حالت هاور */
.nav-item a[href*="login.php"]:hover,
.nav-item a[href*="logout.php"]:hover {
    color: #e74c3c;
}

/* استایل موبایل */
.mobile-nav-list .fa-sign-in-alt,
.mobile-nav-list .fa-sign-out-alt {
    margin-left: 8px;
}

.category-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
}

.category-slider::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول در کروم */
}

.category-slider {
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.category-product {
  flex: 0 0 calc(100% / 5 - 12px);
  scroll-snap-align: start;
  background: #fff;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
}

.category-product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.category-slider-container {
  overflow-x: hidden; /* از auto به hidden تغییر کن */
  position: relative;
}

@media (max-width: 1200px) {
  .category-slider .category-product {
    flex: 0 0 25%; /* 4 محصول */
  }
}

@media (max-width: 992px) {
  .category-slider .category-product {
    flex: 0 0 33.33%; /* 3 محصول */
  }
}

@media (max-width: 768px) {
  .category-slider .category-product {
    flex: 0 0 50%; /* 2 محصول */
  }
}

@media (max-width: 480px) {
  .category-slider .category-product {
    flex: 0 0 100%; /* 1 محصول */
  }
}

<script>
document.querySelectorAll('.category-slider-container').forEach(container => {
  const slider = container.querySelector('.category-slider');
  const btnNext = container.querySelector('.category-next');
  const btnPrev = container.querySelector('.category-prev');

  if (btnNext && btnPrev) {
    btnNext.addEventListener('click', () => {
      slider.scrollBy({ left: slider.offsetWidth, behavior: 'smooth' });
    });

    btnPrev.addEventListener('click', () => {
      slider.scrollBy({ left: -slider.offsetWidth, behavior: 'smooth' });
    });
  }

  let isDown = false;
  let startX;
  let scrollLeft;

  slider.addEventListener('mousedown', (e) => {
    isDown = true;
    startX = e.pageX - slider.offsetLeft;
    scrollLeft = slider.scrollLeft;
  });

  slider.addEventListener('mouseleave', () => {
    isDown = false;
  });

  slider.addEventListener('mouseup', () => {
    isDown = false;
  });

  slider.addEventListener('mousemove', (e) => {
    if (!isDown) return;
    e.preventDefault();
    const x = e.pageX - slider.offsetLeft;
    const walk = (x - startX) * 1.5;
    slider.scrollLeft = scrollLeft - walk;
  });

  let startTouchX = 0;
  slider.addEventListener('touchstart', e => {
    startTouchX = e.touches[0].clientX;
  });

  slider.addEventListener('touchmove', e => {
    const touchX = e.touches[0].clientX;
    const diff = startTouchX - touchX;
    slider.scrollLeft += diff;
    startTouchX = touchX;
  });
});
</script>

/* فونت زیبا و فارسی‌سازی اعداد */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

body {
    font-family: 'IRANSans', sans-serif;
}

.product-price {
    font-size: 14px;
    direction: rtl;
}

.product-price .new-price,
.product-price .old-price {
    font-size: 14px;
    display: block;
    color: #55993A;
    font-family: 'IRANSans', sans-serif;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #9E0000;
}

.product-price span::before {
    content: attr(data-price);
    unicode-bidi: plaintext;
}

.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.product-images {
    flex: 1 1 40%;
    max-width: 500px;
}

.product-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-info {
    flex: 1 1 55%;
}

@media (max-width: 768px) {
    .product-wrapper {
        flex-direction: column;
    }

    .product-images, .product-info {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
