/* ==========================================================================
   شاهنامه | ویجت‌های المنتور
   ========================================================================== */

.sh-section-heading {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
    color: #0f172a;
}
.sh-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; right: 50%;
    transform: translateX(50%);
    width: 60px; height: 3px;
    background: #2563eb;
    border-radius: 8px;
}

/* ---------- اسلایدر بنر ---------- */
.sh-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.sh-hero-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* RTL: اسلایدها از راست به چپ چیده می‌شوند */
}
.sh-hero-slide {
    min-width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
}
.sh-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 8px;
}
.sh-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 8%;
    max-width: 640px;
}
.sh-slide-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}
.sh-slide-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    color: #e2e8f0;
}
.sh-slide-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
}
.sh-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    color: #fff;
}
.sh-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sh-hero-arrow:hover { background: #2563eb; color: #fff; }
.sh-hero-prev { right: 20px; }
.sh-hero-next { left: 20px; }
.sh-hero-dots {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.sh-hero-dot {
    width: 10px; height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}
.sh-hero-dot.active { background: #fff; width: 28px; border-radius: 8px; }

/* ---------- شبکه دسته‌بندی ---------- */
.sh-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sh-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
    border: 1px solid #eef2f7;
}
.sh-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.sh-cat-icon { font-size: 34px; }
.sh-cat-name { font-weight: 700; font-size: 15px; }
.sh-cat-count { font-size: 12px; opacity: 0.75; }

/* ---------- شبکه/اسلایدر کتاب‌ها ---------- */
.sh-books-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.sh-books-header .sh-section-heading {
    text-align: right;
    margin: 0;
    padding-bottom: 0;
}
.sh-books-header .sh-section-heading::after { display: none; }
.sh-books-nav { display: flex; gap: 8px; }
.sh-books-nav button,
.sh-books-prev, .sh-books-next {
    width: 40px; height: 40px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    color: #475569;
    transition: all 0.25s ease;
}
.sh-books-nav button:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

.sh-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sh-books-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 8px;
}
.sh-books-slider::-webkit-scrollbar { display: none; }
.sh-books-slider .sh-book-item {
    min-width: 240px;
    flex: 0 0 auto;
}
.sh-book-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    transition: all 0.25s ease;
}
.sh-book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.sh-book-thumb {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}
.sh-book-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.sh-book-item:hover .sh-book-thumb img { transform: scale(1.05); }
.sh-book-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.sh-badge-sale { background: #ef4444; }
.sh-badge-out { background: #64748b; right: auto; left: 10px; }
.sh-book-body { padding: 14px; }
.sh-book-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.6;
}
.sh-book-name a { color: #0f172a; }
.sh-book-name a:hover { color: #2563eb; }
.sh-book-author {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.sh-book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sh-book-price {
    font-weight: 800;
    color: #2563eb;
    font-size: 15px;
}
.sh-book-price del { color: #cbd5e1; font-weight: 500; font-size: 13px; }
.sh-book-cart {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.sh-book-cart:hover { background: #1d4ed8; color: #fff; transform: scale(1.08); }

/* ---------- نوار ویژگی‌ها ---------- */
.sh-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sh-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    transition: all 0.25s ease;
}
.sh-feature:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(15,23,42,0.1); }
.sh-feature-icon {
    font-size: 30px;
    color: #2563eb;
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
}
.sh-feature-text { display: flex; flex-direction: column; gap: 2px; }
.sh-feature-title { font-weight: 700; font-size: 14px; color: #0f172a; }
.sh-feature-subtitle { font-size: 12px; color: #94a3b8; }

/* ---------- نویسندگان و ناشران ---------- */
.sh-authors-grid,
.sh-publishers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.sh-publishers-grid { grid-template-columns: repeat(5, 1fr); }
.sh-author-card,
.sh-publisher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    transition: all 0.25s ease;
}
.sh-author-card:hover,
.sh-publisher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.sh-author-photo img {
    width: 100px; height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(15,23,42,0.12);
}
.sh-author-photo .sh-avatar-placeholder,
.sh-publisher-logo .sh-avatar-placeholder {
    width: 100px; height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    font-size: 34px;
    margin: 0 auto;
}
.sh-publisher-logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}
.sh-author-name,
.sh-publisher-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.sh-author-count,
.sh-publisher-count {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 8px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 768px) {
    .sh-slide-title { font-size: 28px; }
    .sh-slide-subtitle { font-size: 15px; }
    .sh-hero-slide { height: 340px; }
    .sh-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-books-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-features { grid-template-columns: repeat(2, 1fr); }
    .sh-authors-grid, .sh-publishers-grid { grid-template-columns: repeat(3, 1fr); }
    .sh-books-header { flex-direction: column; gap: 12px; align-items: stretch; }
}
@media (max-width: 480px) {
    .sh-cats-grid, .sh-books-grid, .sh-features { grid-template-columns: repeat(1, 1fr); }
    .sh-authors-grid, .sh-publishers-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-slide-content { padding: 0 6%; }
}
