/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
    font-family: 'titr';
    src: url('fonts/B Titr Bold_0.ttf') format('ttf');
    font-display: swap;
}

@font-face {
    font-family: 'iran';
    src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'vazir';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-display: swap;
}

        
        @font-face {
            font-family: 'titr';
            src: url('fonts/B Titr Bold_0.ttf') format('ttf');
        }
        
        @font-face {
            font-family: 'iran';
            src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
        }
        
        @font-face {
            font-family: 'vazir';
            src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
        }
        
        body {
            background-color: #f8fafc;
            color: #334155;
            line-height: 1.6;
        }
        
        /* استایل‌های اختصاصی صفحه لوازم مصرفی */
        .consumables-page {
            padding: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 4rem;
            padding: 3rem 2rem;
            background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
            border-radius: 20px;
            color: white;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }
        
        .page-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
            transform: rotate(30deg);
        }
        
        .page-title {
            font-family: 'titr';
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
            position: relative;
        }
        
        .page-subtitle {
            font-family: 'vazir';
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
            position: relative;
        }
        
        .consumables-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2.5rem;
            margin-bottom: 5rem;
        }
        
        .consumable-item {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
            position: relative;
            height: 380px;
            display: flex;
            flex-direction: column;
        }
        
        .consumable-item::before {
            content: '';
            position: absolute;
            border-radius: 20px;
            padding: 2px;
            background: linear-gradient(135deg, #3498db 0%, transparent 30%, transparent 70%, #2c3e50 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .consumable-item:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        }
        
        .consumable-item:hover::before {
            opacity: 1;
        }
        
        .consumable-link {
            display: flex;
            flex-direction: column;
            height: 100%;
            text-decoration: none;
            color: inherit;
        }
        
        .consumable-image-container {
            height: 220px;
            overflow: hidden;
            position: relative;
        }
        
        .consumable-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }
        
        .consumable-item:hover .consumable-image {
            transform: scale(1.1);
        }
        
        .consumable-info {
            padding: 1.8rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex-grow: 1;
            background: linear-gradient(to bottom, #ffffff, #f9fafb);
        }
        
        .consumable-name {
            font-family: 'vazir';
            font-size: 1.5rem;
            color: #2c3e50;
            margin-bottom: 1rem;
            text-align: center;
            position: relative;
            padding-bottom: 0.8rem;
        }
        
        .consumable-name::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, #3498db, #2c3e50);
            border-radius: 3px;
        }
        
        .consumable-cta {
            text-align: center;
            color: #3498db;
            font-family: 'vazir';
            font-weight: bold;
            font-size: 1.1rem;
            margin-top: auto;
            padding: 0.8rem;
            border-radius: 10px;
            background-color: rgba(52, 152, 219, 0.1);
            transition: all 0.3s ease;
        }
        
        .consumable-item:hover .consumable-cta {
            background-color: rgba(52, 152, 219, 0.2);
            color: #2c3e50;
        }
        
        /* انیمیشن‌ها */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .consumable-item {
            animation: fadeInUp 0.8s ease-out forwards;
            opacity: 0;
        }
        
        .consumable-item:nth-child(1) { animation-delay: 0.1s; }
        .consumable-item:nth-child(2) { animation-delay: 0.2s; }
        .consumable-item:nth-child(3) { animation-delay: 0.3s; }
        .consumable-item:nth-child(4) { animation-delay: 0.4s; }
        .consumable-item:nth-child(5) { animation-delay: 0.5s; }
        .consumable-item:nth-child(6) { animation-delay: 0.6s; }
        .consumable-item:nth-child(7) { animation-delay: 0.7s; }
        .consumable-item:nth-child(8) { animation-delay: 0.8s; }
        
        /* رسپانسیو */
        @media (max-width: 1200px) {
            .consumables-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }
        
        @media (max-width: 992px) {
            .page-title {
                font-size: 2.5rem;
            }
            
            .consumables-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 2rem;
            }
        }
        
        @media (max-width: 768px) {
            .consumables-page {
                padding: 1.5rem;
            }
            
            .page-header {
                padding: 2rem 1.5rem;
                margin-bottom: 3rem;
            }
            
            .page-title {
                font-size: 2.2rem;
            }
            
            .page-subtitle {
                font-size: 1.1rem;
            }
            
            .consumables-grid {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
                gap: 1.8rem;
            }
            
            .consumable-item {
                height: 350px;
            }
            
            .consumable-image-container {
                height: 200px;
            }
        }
        
        @media (max-width: 480px) {
            .consumables-page {
                padding: 1rem;
            }
            
            .page-header {
                padding: 1.5rem 1rem;
                border-radius: 15px;
            }
            
            .page-title {
                font-size: 1.8rem;
            }
            
            .consumable-info {
                padding: 1.2rem;
            }
            
            .consumable-name {
                font-size: 1.3rem;
            }
        }
        
        /* افکت‌های ویژه */
        .consumable-item:hover .consumable-name::after {
            width: 80px;
            transition: width 0.5s ease;
        }
        
        /* بهبود عملکرد انیمیشن‌ها */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }