/* ═══════════════════════════════════════════════════════════
   استایل ابزارک‌های فوتر Dima Shop
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   ساختار کلی فوتر
   ─────────────────────────────────────────────────────────── */
.dima-footer-widgets {
    background: #1f2937;
    color: #e5e7eb;
    padding: 50px 0 30px;
}

.dima-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .dima-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dima-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ───────────────────────────────────────────────────────────
   عنوان ابزارک
   ─────────────────────────────────────────────────────────── */
.footer-widget-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-widget-title .widget-icon {
    font-size: 18px;
}

/* ───────────────────────────────────────────────────────────
   ابزارک محصولات (تازه‌ترین، پربیننده، محبوب)
   ─────────────────────────────────────────────────────────── */
.dima-footer-products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dima-footer-product-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s;
}

.dima-footer-product-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.dima-footer-product-item .product-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.dima-footer-product-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dima-footer-product-item .product-info {
    flex: 1;
    min-width: 0;
}

.dima-footer-product-item .product-title {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dima-footer-product-item .product-title:hover {
    color: #667eea;
}

.dima-footer-product-item .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.dima-footer-product-item .product-price .old-price {
    color: #9ca3af;
    text-decoration: line-through;
}

.dima-footer-product-item .product-price .new-price {
    color: #10b981;
    font-weight: 700;
}

.dima-footer-product-item .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.dima-footer-product-item .product-meta .views,
.dima-footer-product-item .product-meta .sales,
.dima-footer-product-item .product-meta .rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dima-footer-product-item .product-meta .price {
    color: #10b981;
    font-weight: 700;
}

/* ───────────────────────────────────────────────────────────
   ابزارک دسته‌بندی - لیست
   ─────────────────────────────────────────────────────────── */
.dima-footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dima-footer-categories .category-item {
    list-style: none;
}

.dima-footer-categories .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
}

.dima-footer-categories .category-link:hover {
    background: rgba(102, 126, 234, 0.15);
    color: white;
    padding-right: 18px;
}

.dima-footer-categories .category-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* ───────────────────────────────────────────────────────────
   ابزارک دسته‌بندی - شبکه‌ای
   ─────────────────────────────────────────────────────────── */
.dima-footer-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dima-footer-categories-grid .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: #e5e7eb;
    transition: all 0.2s;
    text-align: center;
}

.dima-footer-categories-grid .category-card:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.dima-footer-categories-grid .category-icon {
    font-size: 28px;
}

.dima-footer-categories-grid .category-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.dima-footer-categories-grid .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dima-footer-categories-grid .category-name {
    font-size: 12px;
    font-weight: 600;
}

.dima-footer-categories-grid .category-count {
    font-size: 10px;
    color: #9ca3af;
}

/* ───────────────────────────────────────────────────────────
   ابزارک اطلاعات تماس
   ─────────────────────────────────────────────────────────── */
.dima-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dima-footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.dima-footer-contact .contact-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.dima-footer-contact .contact-info {
    flex: 1;
    min-width: 0;
}

.dima-footer-contact .contact-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    word-break: break-word;
}

.dima-footer-contact .contact-link:hover {
    color: #667eea;
}

.dima-footer-contact .contact-text {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.6;
}

/* شبکه‌های اجتماعی */
.dima-footer-contact .contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dima-footer-contact .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.dima-footer-contact .social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px);
}

.dima-footer-contact .social-icon {
    font-size: 18px;
}

/* ───────────────────────────────────────────────────────────
   ابزارک صفحات ایستا
   ─────────────────────────────────────────────────────────── */
.dima-footer-pages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dima-footer-pages .page-item {
    list-style: none;
}

.dima-footer-pages .page-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dima-footer-pages .page-link:hover {
    background: rgba(102, 126, 234, 0.15);
    color: white;
    padding-right: 18px;
}

.dima-footer-pages .page-icon {
    font-size: 16px;
}

.dima-footer-pages .page-title {
    font-weight: 500;
}

/* ───────────────────────────────────────────────────────────
   حالت خالی
   ─────────────────────────────────────────────────────────── */
.no-products,
.no-categories {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* ───────────────────────────────────────────────────────────
   کپی‌رایت فوتر
   ─────────────────────────────────────────────────────────── */
.dima-footer-copyright {
    background: #111827;
    padding: 20px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dima-footer-copyright a {
    color: #667eea;
    text-decoration: none;
}

.dima-footer-copyright a:hover {
    color: #764ba2;
}