/* ============================================
   Frequency - استایل صفحه فروشگاه (فاز ۵)
   ============================================ */

/* ==== بنر بالای صفحه ==== */
.shop-hero {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 50%, var(--blue-200) 100%);
    padding: 50px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--blue-200);
}
.shop-hero-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 8px;
}
.shop-hero-content p {
    font-size: 0.95rem;
    color: var(--blue-600);
    max-width: 500px;
    margin: 0 auto;
}
.shop-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--blue-700);
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--blue-200);
    transition: var(--transition);
}
.shop-hero-back:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* ==== بخش اصلی فروشگاه ==== */
.shop-section {
    padding: 30px 0 60px;
    background: var(--gray-50);
    min-height: 60vh;
}

/* ==== نوار ابزار بالا (جستجو + مرتب‌سازی) ==== */
.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    flex-wrap: wrap;
}

/* جستجو */
.shop-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    flex: 1;
    max-width: 360px;
    transition: var(--transition);
}
.shop-search:focus-within {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(109,184,232,0.15);
}
.shop-search i.fa-search {
    color: var(--gray-400);
    font-size: 0.9rem;
}
.shop-search input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--gray-800);
    width: 100%;
}
.shop-search input::placeholder {
    color: var(--gray-400);
}
.search-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.85rem;
    padding: 2px;
    transition: var(--transition);
}
.search-clear-btn:hover {
    color: var(--red-500, #ef4444);
}

/* مرتب‌سازی */
.shop-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-sort label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}
.shop-sort label i {
    margin-left: 4px;
    color: var(--blue-500);
}
.shop-sort select {
    font-family: inherit;
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}
.shop-sort select:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(109,184,232,0.15);
}

/* تعداد نتایج */
.shop-count {
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ==== فیلتر دسته‌بندی‌ها ==== */
.shop-categories {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    text-decoration: none;
}
.shop-cat-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    background: var(--blue-50);
}
.shop-cat-btn.active {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(109,184,232,0.35);
}
.shop-cat-btn.active i {
    color: var(--white);
}
.shop-cat-btn i {
    font-size: 0.82rem;
    color: var(--blue-500);
}

/* ==== حالت خالی ==== */
.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}
.shop-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--blue-300);
}
.shop-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.shop-empty p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* ==== صفحه‌بندی حرفه‌ای ==== */
.shop-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0 24px;
}
.pagination-info {
    font-size: 0.88rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
}
.pagination-info strong {
    color: var(--gray-700);
    font-weight: 700;
}
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
}
.page-btn-icon {
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.85rem;
}
.page-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    background: var(--blue-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.page-btn-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ==== ریسپانسیو ==== */
@media (max-width: 1024px) {
    .shop-search { max-width: 280px; }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 36px 0 28px;
    }
    .shop-hero-content h1 {
        font-size: 1.4rem;
    }
    .shop-hero-content p {
        font-size: 0.88rem;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .shop-search {
        max-width: 100%;
        order: -1;
    }
    .shop-sort {
        justify-content: space-between;
    }
    .shop-count {
        margin-right: 0;
        text-align: center;
    }

    .shop-categories {
        gap: 8px;
        padding: 8px 0 18px;
    }
    .shop-cat-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.82rem;
        border-radius: 10px;
    }
    .page-btn-icon {
        min-width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }
    .pagination-info {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    .shop-pagination-wrapper {
        padding: 36px 0 20px;
    }
}

@media (max-width: 480px) {
    .shop-section {
        padding: 20px 0 40px;
    }
    .shop-hero-content h1 {
        font-size: 1.2rem;
    }
    .shop-pagination {
        gap: 4px;
    }
    .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }
    .page-btn-icon {
        min-width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }
    .page-dots {
        width: 24px;
        font-size: 0.75rem;
    }
}
/* ============================================
   اسلایدشو پرمیوم فروشگاه (فاز ۲۰)
   ============================================ */
.shop-slider-section {
    padding: 26px 0 4px;
    background: var(--gray-50);
}
.shop-slider {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: clamp(320px, 40vw, 440px);
    box-shadow:
        0 24px 60px rgba(16, 26, 54, 0.18),
        0 6px 18px rgba(16, 26, 54, 0.08);
    isolation: isolate;
    direction: rtl;
}
.ss-track {
    display: flex;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}
.ss-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}
.ss-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}
.ss-slide.active > img {
    animation: ssKenBurns 7.5s ease-out forwards;
}
@keyframes ssKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.10); }
}
.ss-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(10, 16, 32, 0.72) 0%, rgba(10, 16, 32, 0.34) 38%, rgba(10, 16, 32, 0.02) 68%),
        linear-gradient(to top, rgba(10, 16, 32, 0.38) 0%, transparent 36%);
}
.ss-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 0 54px 0 0;
    max-width: 62%;
}
.ss-title {
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
    animation: ssRise 0.7s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.ss-subtitle {
    font-size: clamp(0.85rem, 1.6vw, 1.08rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: ssRise 0.7s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.ss-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.94);
    color: #12233f;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 #fff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    animation: ssRise 0.7s 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.ss-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}
.ss-cta i { font-size: 0.75rem; transition: transform 0.25s; }
.ss-cta:hover i { transform: translateX(-4px); }
@keyframes ssRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- فلش‌ها ---- */
.ss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.28);
    opacity: 0;
    transition: opacity 0.3s, background 0.25s, transform 0.25s;
    z-index: 3;
}
.shop-slider:hover .ss-arrow, .shop-slider:focus-within .ss-arrow { opacity: 1; }
.ss-arrow:hover { background: rgba(255, 255, 255, 0.32); transform: translateY(-50%) scale(1.07); }
.ss-prev { right: 18px; }
.ss-next { left: 18px; }

/* ---- دات‌ها ---- */
.ss-dots {
    position: absolute;
    bottom: 18px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 3;
}
.ss-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ss-dot:hover { background: rgba(255, 255, 255, 0.75); }
.ss-dot.active {
    width: 30px;
    background: linear-gradient(90deg, #ffffff, #dceafc);
}

/* ---- نوار پیشرفت اتوپلی ---- */
.ss-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 3;
}
.ss-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(220,234,252,0.6));
    border-radius: 0 3px 3px 0;
}

@media (max-width: 768px) {
    .shop-slider-section { padding: 16px 0 0; }
    .shop-slider {
        border-radius: 20px;
        height: 210px;
    }
    .ss-content {
        max-width: 86%;
        padding: 0 20px 0 0;
        gap: 7px;
    }
    .ss-arrow { display: none; }
    .ss-dots {
        bottom: 12px;
        left: 14px;
        gap: 5px;
    }
    .ss-dot { width: 7px; height: 7px; }
    .ss-dot.active { width: 24px; }
    .ss-cta {
        padding: 8px 18px;
        font-size: 0.78rem;
    }
    .ss-progress { height: 2.5px; }
}
