:root {
    --primary-color: #324153;
    --secondary-color: #FE5000;
    --accent-color: #FFFB00;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e6ed;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow-light: 0 2px 8px rgba(50, 65, 83, 0.08);
    --shadow-medium: 0 4px 20px rgba(50, 65, 83, 0.12);
    --shadow-heavy: 0 8px 32px rgba(50, 65, 83, 0.16);
    --gradient-primary: linear-gradient(135deg, #324153 0%, #2c3949 100%);
    --gradient-secondary: linear-gradient(135deg, #FE5000 0%, #e6470a 100%);
    --gradient-accent: linear-gradient(135deg, #FFFB00 0%, #FFD700 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-request: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* واترمارک تصاویر */
img[src*="/images/"] {
    position: relative;
}

img[src*="/images/"]::after {
    content: 'www.saharparts.com';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    pointer-events: none;
    z-index: 10;
}

/* Reset و پایه‌ای */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #d3d3d4;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    padding: 0;
    margin: 0;
}

/* بهبود عملکرد با will-change برای المان‌های متحرک */
.slider-container,
.amazing-slider-container,
.category-box,
.request-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* اسلایدر تبلیغاتی - بهینه‌شده */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    padding: 0 15px;
    border-radius: 20px;
    box-shadow: none;
    background: transparent;
    z-index: 10;
    isolation: isolate;
    max-height: 50vh;
}

.slider {
    display: flex;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-stop: always;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 50vh;
    border-radius: 20px;
    margin: 0 5px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    background: #f8f9fa;
    padding: 0;
    border-radius: 20px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.slide:hover img {
    transform: scale(1.02);
}

/* دکمه‌های ناوبری اسلایدر - بهبود یافته */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
    border: 2px solid rgba(50, 65, 83, 0.1);
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0.9;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.12);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(50, 65, 83, 0.25);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* نقطه‌های اسلایدر - بهبود یافته */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 0 20px;
}

.slider-dots span {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: rgba(50, 65, 83, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.slider-dots span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.slider-dots span:hover::before {
    left: 100%;
}

.slider-dots span:hover {
    background: rgba(50, 65, 83, 0.5);
    transform: scale(1.25);
}

.slider-dots span.active {
    background: var(--secondary-color);
    transform: scale(1.3);
    border-color: var(--white);
    box-shadow: 0 0 0 4px rgba(254, 80, 0, 0.25);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(254, 80, 0, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(254, 80, 0, 0.15); }
}

/* Product price styles (kept as they might be used elsewhere) */
.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.discounted-price {
    background: var(--gradient-secondary);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(254, 80, 0, 0.35);
    animation: priceGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.discounted-price::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes priceGlow {
    0% { box-shadow: 0 6px 20px rgba(254, 80, 0, 0.35); }
    100% { box-shadow: 0 8px 25px rgba(254, 80, 0, 0.5); }
}

.view-all-box {
    flex: 0 0 calc(25% - 15px);
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 2px dashed rgba(50, 65, 83, 0.2);
}

.view-all-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(50, 65, 83, 0.25);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.view-all-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 80, 0, 0.1), transparent);
    transition: left 0.7s ease;
}

.view-all-box:hover::before {
    left: 100%;
}

/* دسته‌بندی‌ها - بهینه‌شده */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.category-box {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    height: 450px;
    isolation: isolate;
}

.category-box::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: 25px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.category-box:hover::before {
    opacity: 1;
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.category-box h3 {
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    padding: 22px;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
    
}

.category-box h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.category-box:hover h3::before {
    left: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    height: calc(450px - 80px);
}

.product-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 65, 83, 0.08), transparent);
    transition: left 0.5s ease;
}

.product-item:hover::before {
    left: 100%;
}

.product-item:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(254, 80, 0, 0.2);
}

.product-item h4 {
    margin: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    padding: 0 5px;
}

.product-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--white);
    padding: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.08);
}

.product-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.empty-product {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.empty-product::before {
    content: "محصول موجود نیست";
    opacity: 0.7;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

/* انیمیشن‌های ورود - بهبود یافته */
.slider-container {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.amazing-products {
    animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.category-box {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--animation-delay, 0) * 0.1s) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* استایل‌های مربوط به درخواست‌های کاربران - بهینه‌شده */


@keyframes pulseLine {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}






/* استایل‌های مربوط به تعداد محصول و دکمه تامین‌کننده - بهبود یافته */




.supplier-btn {
    display: inline-block;
    background: var(--gradient-success);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.supplier-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.supplier-btn:hover::before {
    left: 100%;
}

.supplier-btn:hover {
    background: linear-gradient(135deg, #218838, #1da88a);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    text-decoration: none;
    color: white;
}

.supplier-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.supplier-btn:hover i {
    transform: rotate(10deg);
}




@keyframes pulseBtn {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
    }
}

/* استایل حرفه‌ای دکمه درخواست محصول جدید - بهبود یافته */
.request-product-section {
    margin: 60px 0;
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.request-product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(118, 75, 162, 0.03) 100%);
    pointer-events: none;
    z-index: -1;
}

.request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 45px;
    background: #FE5000;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.request-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.request-btn:hover::before {
    left: 100%;
}

.request-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.45);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.request-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.request-btn i {
    margin-left: 12px;
    font-size: 1.4rem;
    transition: transform 0.4s ease;
}

.request-btn:hover i {
    transform: rotate(90deg) scale(1.1);
}

/* انیمیشن پالس برای دکمه */
@keyframes pulse {
    0% {
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35);
    }
}

.request-btn {
    animation: pulse 2s ease-in-out infinite;
}

.request-btn:hover {
    animation: none;
}

/* Responsive Design - بهبود یافته */
@media (max-width: 1200px) {
    .view-all-box {
        flex: 0 0 calc(33.333% - 15px);
    }
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
   
}

@media (max-width: 1200px) {
    .view-all-box {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 992px) {
    .view-all-box {
        flex: 0 0 calc(50% - 15px);
    }
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
   
    
}

@media (max-width: 768px) {
    .slider-container {
        margin: 10px;
        border-radius: 16px;
        max-height: 40vh;
    }
    
    .slide {
        min-height: 250px;
        max-height: 40vh;
        aspect-ratio: 16/9;
    }
    
    .slide img {
        object-fit: cover;
        padding: 0;
    }
    
    .slider-nav {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .amazing-products {
        margin: 25px 10px;
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .amazing-products h2 {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }
    
    .amazing-slider-container {
        padding: 12px;
    }
    
    .amazing-slide {
        flex: 0 0 calc(50% - 10px);
        padding: 15px;
        min-height: 250px;
    }
    
    .amazing-slide img {
        height: 110px;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .view-all-box {
        flex: 0 0 calc(50% - 10px);
        min-height: 250px;
    }
    
    .category-box {
        height: 400px;
    }
    
    .products-grid {
        gap: 12px;
        padding: 18px;
        height: 320px;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-item img {
        height: 70px;
    }
    
    .product-item h4 {
        font-size: 0.85rem;
    }
    
    /* بهبود درخواست‌های کاربران در موبایل */
    
    
    

    
    .supplier-btn {
        display: block;
        text-align: center;
        width: 100%;
        margin: 12px 0;
        padding: 14px 20px;
    }
    
    
    .request-product-section {
        margin: 40px 0;
        padding: 40px 15px;
        border-radius: 20px;
    }
    
    .request-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
        min-width: 280px;
    }
    
    .request-btn i {
        font-size: 1.3rem;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .amazing-slide {
        flex: 0 0 calc(100% - 16px);
        margin: 0 auto 16px;
        min-height: 230px;
    }
    
    .amazing-slide img {
        height: 100px;
    }
    
    .amazing-slide h4 {
        font-size: 1rem;
    }
    
    .discounted-price {
        font-size: 1.1rem;
        padding: 8px 16px;
    }
    
    .view-all-box {
        flex: 0 0 100%;
        min-height: 230px;
        font-size: 1.1rem;
    }
    
    .slider-dots span {
        width: 12px;
        height: 12px;
    }
    
  
    
   
    
    .request-btn {
        padding: 16px 35px;
        font-size: 1.1rem;
        min-width: 260px;
    }
    
    .request-product-section {
        padding: 30px 10px;
    }
    
    .request-help-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .slide {
        min-height: 170px;
        max-height: 35vh;
    }
    
    .amazing-slide {
        min-height: 200px;
    }
    
    .amazing-slide img {
        height: 80px;
    }
    
    .view-all-box {
        min-height: 200px;
    }

    
    
}

/* بهبود عملکرد لمسی در موبایل */
@media (hover: none) {
    .slider-nav {
        opacity: 0.7;
        transform: translateY(-50%) scale(0.9);
    }
    
    .slider-container:hover .slider-nav {
        opacity: 0.7;
    }
    
    .slider-nav:active {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* جلوگیری از zoom در موبایل هنگام لمس */
@media (max-width: 768px) {
    .slider-nav,
    .amazing-slide,
    .supplier-btn {
        touch-action: manipulation;
    }
}

/* تنظیمات فینال - بهبود یافته */
.category-box:nth-child(1) { --animation-delay: 1; }
.category-box:nth-child(2) { --animation-delay: 2; }
.category-box:nth-child(3) { --animation-delay: 3; }
.category-box:nth-child(4) { --animation-delay: 4; }
.category-box:nth-child(5) { --animation-delay: 5; }
.category-box:nth-child(6) { --animation-delay: 6; }

/* بهینه‌سازی عملکرد */
.amazing-slide,
.category-box,
.product-item {
    will-change: transform, box-shadow;
}

.slider,
.amazing-slider {
    will-change: transform;
}

/* استایل‌های درخواست‌های کاربران */

/* تنظیمات چاپ */
@media print {
    .slider-nav,
    .slider-dots,
    .amazing-products::before,
    .category-box::before {
        display: none !important;
    }
    
    .amazing-products {
        background: var(--white) !important;
        color: var(--text-dark) !important;
        box-shadow: none !important;
    }
    
    .amazing-products h2 {
        color: var(--text-dark) !important;
        text-shadow: none !important;
    }
}

/* انیمیشن‌های ورود برای کارت‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* بهبود دسترسی */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ff0000;
        --text-dark: #000000;
        --text-light: #444444;
    }
}

@media (prefers-color-scheme: dark) {
    .request-product-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .request-help-text {
        color: #bdc3c7;
    }
}

/* Focus styles for accessibility */
.request-btn:focus-visible,
.supplier-btn:focus-visible,
.slider-nav:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .category-box,
    .amazing-slide {
        border: 1px solid CanvasText;
    }
}

/* بهبود عملکرد و بهینه‌سازی */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* پشتیبانی از مرورگرهای قدیمی */
@supports not (backdrop-filter: blur(12px)) {
    .slider-nav,
    .amazing-slider-container {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* افکت‌های خاص برای تعامل */
.request-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* انیمیشن ورود */
.request-product-section {
    animation: fadeInUp 0.8s ease-out;
}

/* اضافه کردن افکت شعاع نور */
.request-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.request-btn:hover::after {
    opacity: 1;
}

/* متن اضافی زیر دکمة */
.request-subtitle {
    margin-top: 18px;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.request-subtitle i {
    color: #28a745;
}

/* بخش محصولات شگفت‌انگیز */
.amazing-products {
    background: #2f2f2f;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.amazing-products h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #ff9800;
    margin-bottom: 25px;
    font-weight: bold;
    position: relative;
}

.amazing-products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff9800;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* کانتینر اسلایدر */
.amazing-slider-container {
    position: relative;
    overflow: hidden;
}

.amazing-slider {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    transition: transform 0.3s ease-in-out;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.amazing-slider::-webkit-scrollbar {
    display: none;
}

.amazing-slide {
    background: #3c3c3c;
    border-radius: 16px;
    min-width: 220px;
    max-width: 220px;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.amazing-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.amazing-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.amazing-slide h4 {
    font-size: 1rem;
    margin: 8px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    width: 100%;
    display: block;
}

/* قیمت‌ها */
.price-box {
    margin-top: 8px;
}

.price-box del {
    font-size: 0.9rem;
    color: #bbb;
    margin-right: 6px;
}

.price-box .discounted-price {
    color: #faf5f4;
    font-size: 1rem;
    font-weight: bold;
}

.price-box .normal-price {
    color: #f1efeb;
    font-size: 1rem;
    font-weight: bold;
}

/* دکمه مشاهده همه */
.view-all-box {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: #fff !important;
    min-width: 220px;
    max-width: 220px;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}

.view-all-box:hover {
    background: linear-gradient(45deg, #ff5722, #ff9800);
    transform: translateY(-5px);
}

/* دکمه‌های اسلایدر */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #444;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #ff9800;
    color: #fff;
    opacity: 1;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .amazing-slide,
    .view-all-box {
        min-width: 180px;
        max-width: 180px;
    }
    
    .amazing-products h2 {
        font-size: 1.4rem;
    }
    
    .amazing-slide img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .amazing-slide,
    .view-all-box {
        min-width: 160px;
        max-width: 160px;
    }
    
    .amazing-products h2 {
        font-size: 1.2rem;
    }
    
    .amazing-slide h4 {
        font-size: 0.9rem;
    }
    
    .price-box .discounted-price,
    .price-box .normal-price {
        font-size: 0.9rem;
    }
}

        /* استایل بخش درخواست‌ها */
        .user-requests {
            padding: 2rem 1rem;
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .user-requests h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 2rem;
            position: relative;
            padding-bottom: 0.5rem;
            text-align: center;
        }
        
        .user-requests h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(to right, #3498db, #2ecc71);
            border-radius: 3px;
        }
        
        /* شبکه محصولات - 6 محصول در ردیف */
        .requests-row {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 1.5rem;
            justify-content: center;
            width: 100%;
        }
        
        /* کارت محصول */
        .request-card {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s forwards;
        }
        
        .request-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }
        
        /* بخش تصویر محصول */
        .request-card img {
            width: 100%;
            height: 180px;
            object-fit: contain;
            padding: 1rem;
            background: #f9f9f9;
            transition: transform 0.5s ease;
        }
        
        .request-card:hover img {
            transform: scale(1.05);
        }
        
        .no-image {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: #94a3b8;
            font-size: 3rem;
        }
        
        /* اطلاعات محصول */
        .req-info {
            padding: 1.2rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .req-info h3 {
            font-size: 1rem;
            margin-bottom: 0.8rem;
            color: #2d3748;
            line-height: 1.4;
            height: 2.8rem;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .req-code, .req-quantity, .req-price {
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
            color: #64748b;
        }
        
        .req-price {
            display: flex;
            flex-direction: column;
            margin-top: 0.5rem;
        }
        
        .price-label {
            font-size: 0.8rem;
            color: #64748b;
            margin-bottom: 0.3rem;
        }
        
        .price-value {
            color: #10b981;
            font-weight: 700;
            font-size: 1rem;
        }
        
        /* بخش تامین‌کننده */
        .supplier-section {
            margin-top: auto;
            padding-top: 1rem;
        }
        
        .supplier-btn {
            display: block;
            background: #FE5000;
            color: white;
            text-align: center;
            padding: 0.7rem;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
        }
        
        .supplier-btn:hover {
            background: #FE5000;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(79, 70, 229, 0.25);
        }
        
        .supplier-btn i {
            margin-left: 0.4rem;
        }
        
        .offer-count {
            text-align: center;
            margin-top: 0.6rem;
            font-size: 0.8rem;
            color: #6366f1;
            background: #eef2ff;
            padding: 0.3rem 0.6rem;
            border-radius: 20px;
            display: inline-block;
        }
        
        /* انیمیشن‌ها */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* تأخیر انیمیشن برای کارت‌ها */
        .request-card:nth-child(1) { animation-delay: 0.1s; }
        .request-card:nth-child(2) { animation-delay: 0.2s; }
        .request-card:nth-child(3) { animation-delay: 0.3s; }
        .request-card:nth-child(4) { animation-delay: 0.4s; }
        .request-card:nth-child(5) { animation-delay: 0.5s; }
        .request-card:nth-child(6) { animation-delay: 0.6s; }
        
        /* رسپانسیو برای تبلت */
        @media (max-width: 1200px) {
            .requests-row {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* رسپانسیو برای تبلت کوچک */
        @media (max-width: 900px) {
            .requests-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* رسپانسیو برای موبایل */
        @media (max-width: 600px) {
            .requests-row {
                grid-template-columns: 1fr;
                max-width: 400px;
            }
            
            .user-requests h2 {
                font-size: 1.5rem;
            }
            
            .request-card {
                max-width: 100%;
            }
        }