/* ═══════════════════════════════════════════════════════════════
   home.css - استایل‌های صفحه اصلی
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. Product Card Styles
   ───────────────────────────────────────────────────────────── */
.product-card {
     width: calc((100% - 100px) / 6); /* 6 محصول در هر ردیف با gap 20px */
    min-width: 200px;
    max-width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────
   2. File Download Buttons
   ───────────────────────────────────────────────────────────── */
.file-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.file-btn-base {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.file-btn-base:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* رنگ‌بندی دکمه‌های فایل */
.file-stp {
    background: #28a745;
}

.file-intlib {
    background: #007bff;
}

.file-altium {
    background: #ff9800;
}

.file-orcad {
    background: #9c27b0;
}

.file-proteus {
    background: #e91e63;
}

.file-zip {
    background: #343a40;
}

.file-other {
    background: #6c757d;
}

/* ─────────────────────────────────────────────────────────────
   3. Product List Layout (استایل‌های inline استخراج شده)
   ───────────────────────────────────────────────────────────── */
#product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ─────────────────────────────────────────────────────────────
   4. Loading Status
   ───────────────────────────────────────────────────────────── */
#loading-status {
    text-align: center;
    display: none;
    padding: 20px;
}

/* ─────────────────────────────────────────────────────────────
   5. Back-to-Top Button
   ───────────────────────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: #1e40af;
    transform: scale(1.1);
}
