/* استایل‌های صفحه اصلی */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    background: rgba(255,255,255,0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.9);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* بخش دسته‌بندی‌ها */
.categories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-count {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-link {
    display: inline-block;
    background: #e91e63;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.category-link:hover {
    background: #c2185b;
}

/* بخش محصولات جدید */
.new-products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 10px;
}

.final-price {
    font-weight: bold;
    color: #e91e63;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #c2185b;
}

.view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.view-product:hover {
    background: #e0e0e0;
}


/* بخش محصولات ویژه */
.featured-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 10px;
}

.final-price {
    font-weight: bold;
    color: #e91e63;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #c2185b;
}

.view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-product:hover {
    background: #e0e0e0;
}

/* بخش مزایا */
.advantages-section {
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 15px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* بخش وبلاگ */
.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
}

.blog-info h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.blog-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-link {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.blog-link:hover {
    text-decoration: underline;
}

/* بخش خبرنامه */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(to right, #e91e63, #c2185b);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #000;
}

/* استایل‌های عمومی */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e91e63;
    margin: 15px auto 0;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #e91e63;
    color: white;
    border: 2px solid #e91e63;
}

.btn-primary:hover {
    background: #c2185b;
    border-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-outline {
    background: transparent;
    color: #e91e63;
    border: 2px solid #e91e63;
}

.btn-outline:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.no-products, .no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-section,
    .new-products {
        padding: 40px 0;
    }
}

/* استایل‌های عمومی */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    color: #2c3e50;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e91e63;
    margin: 15px auto 0;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #e91e63;
    color: white;
}

.btn-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #e91e63;
    color: #e91e63;
    background: transparent;
}

.btn-outline:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
}

.no-categories,
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* استایل‌های خاص برای دکمه‌های مشاهده همه */
.view-all-categories,
.view-all-products {
    display: inline-block;
    padding: 12px 30px;
    background: #e91e63;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.view-all-categories:hover,
.view-all-products:hover {
    background: transparent;
    color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* استایل‌های برای بخش‌های مختلف */
.categories-section .section-actions .btn-outline,
.new-products .section-actions .btn-outline {
    background: #e91e63;
    color: white;
    border: 2px solid #e91e63;
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.categories-section .section-actions .btn-outline:hover,
.new-products .section-actions .btn-outline:hover {
    background: transparent;
    color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.25);
}

/* اگر از کلاس‌های دیگر استفاده می‌کنید */
.more-link,
.view-more,
.see-all {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
}

.more-link:hover,
.view-more:hover,
.see-all:hover {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* استایل برای حالت‌های مختلف */
.category-link {
    display: block;
    text-align: center;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 10px;
    font-weight: 500;
}

.category-link:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
}
/* استایل اسلایدر پس‌زمینه عکس */
.image-background-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}