/* --- ساختار چیدمان کاتالوگ لوکس سویل از صفر --- */
.shop-page-wrapper {
    padding-top: 140px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(45, 27, 53, 0.05);
}

.shop-title h2 { font-size: 24px; color: var(--deep-plum); font-weight: 700; }
.shop-title p { font-size: 13px; opacity: 0.6; margin-top: 4px; }

/* دکمه بازکننده فیلتر در موبایل */
.sevil-mobile-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--deep-plum);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
}
.sevil-mobile-trigger:active { transform: scale(0.95); }

/* ساختار کلی گرید دسکتاپ */
.shop-main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* سایدبار فیلتر دسکتاپ */
.sevil-filter-sidebar {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 24px;
}

.sidebar-header-desktop {
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-plum);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-ivory);
}

.mobile-only-header { display: none; }

.filter-section-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.filter-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-plum);
    margin-bottom: 14px;
}

.custom-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    cursor: pointer;
}
.custom-check-label input { width: 16px; height: 16px; accent-color: var(--deep-plum); }

.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.btn-set-price {
    width: 100%;
    background: var(--rose-gold);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.sort-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sort-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}
.sort-radio-label input { accent-color: var(--deep-plum); }

.sidebar-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-submit-filter { flex: 2; background: var(--deep-plum); color: white; border: none; padding: 12px; border-radius: 12px; font-weight: bold; cursor: pointer; font-size: 13px; }
.btn-reset-filter { flex: 1; background: #f5f5f5; color: #333; border: 1px solid #ddd; padding: 12px; border-radius: 12px; text-align: center; text-decoration: none; font-size: 12px; font-weight: bold; }

/* نمایش کارت‌های محصولات سویل */
.sevil-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-lux-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-lux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 27, 53, 0.06);
}

.card-img-container {
    position: relative;
    background: #fdfcfb;
    padding-top: 100%;
    width: 100%;
    overflow: hidden;
}
.card-img-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.lux-badge { position: absolute; top: 12px; right: 12px; background: #D90429; color: white; font-size: 11px; padding: 4px 10px; border-radius: 6px; font-weight: bold; z-index: 2; }

.card-body-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.tag-item { font-size: 10px; padding: 2px 8px; background: rgba(188, 138, 95, 0.1); color: var(--rose-gold); border-radius: 10px; font-weight: bold; }

.card-title-text { font-size: 15px; font-weight: 700; color: var(--deep-plum); line-height: 1.4; margin-bottom: 6px; min-height: 42px; }
.card-desc-text { font-size: 12px; color: #777; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lux-price-box { border-top: 1px dashed rgba(0,0,0,0.06); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.price-item-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.currency-label { font-size: 11px; opacity: 0.6; margin-right: 2px; }

/* پیجینیشن */
.sevil-pagination-bar { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.p-btn { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid #eee; border-radius: 10px; color: var(--deep-plum); text-decoration: none; font-weight: bold; font-size: 14px; transition: all 0.2s; }
.p-btn.active, .p-btn:hover { background: var(--deep-plum); color: white; border-color: var(--deep-plum); }
.p-dots { color: #ccc; padding: 0 4px; letter-spacing: 2px; }

/* --- استایل‌های کامپوزیتی حالت ریسپانسیو و مدال کشویی موبایل --- */
@media (max-width: 1200px) {
    .sevil-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .shop-main-layout { grid-template-columns: 1fr; }
    .sevil-mobile-trigger { display: flex; }

    /* معماری مدال Bottom Sheet کامپوزیت و کاملاً ایزوله شده */
    .sevil-filter-sidebar {
        position: fixed !important;
        left: 0;
        bottom: 0;
        width: 100% !important;
        height: 85vh !important;
        background: white !important;
        z-index: 100000 !important;
        border-radius: 30px 30px 0 0 !important;
        box-shadow: 0 -20px 50px rgba(45, 27, 53, 0.25) !important;
        padding: 24px !important;
        overflow-y: auto !important;

        /* مخفی بودن اولیه خارج از کادر پایینی صفحه */
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: block !important;
    }

    /* کلس اکتیو کننده مدال در موبایل */
    .sevil-filter-sidebar.is-visible {
        transform: translateY(0) !important;
    }

    .sidebar-header-desktop { display: none; }

    .mobile-only-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        margin-bottom: 20px;
        border-bottom: 2px solid #f5f5f5;
    }
    .mobile-only-header h3 { font-size: 16px; color: var(--deep-plum); font-weight: bold; }
    .btn-close-modal {
        background: #f0ebf2;
        color: var(--deep-plum);
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
    }

    /* بک‌دراپ تاریک شیشه‌ای پشت مدال */
    .sevil-modal-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(45, 27, 53, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 99999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sevil-modal-overlay.is-visible {
        display: block !important;
        opacity: 1 !important;
    }
}

@media (max-width: 576px) {
    .sevil-products-grid { grid-template-columns: 1fr; }
    .shop-top-bar { flex-direction: column; align-items: stretch; gap: 15px; text-align: center; }
}