/* ===== تصميم صفحة المنتجات V2 - Modern Minimal ===== */

/* المتغيرات */
:root {
    --v2-primary: #374151;
    --v2-secondary: #1f2937;
    --v2-accent: #6b7280;
    --v2-accent-light: #6b9b7a;
    --v2-gold: #f4a261;
    --v2-success: #2a9d8f;
    --v2-text: #2d3436;
    --v2-text-light: #636e72;
    --v2-bg: #fafafa;
    --v2-card: #ffffff;
    --v2-border: #eee;
    --v2-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --v2-radius: 20px;
}

/* ===== الصفحة الرئيسية ===== */
.products-v2 {
    background: var(--v2-bg);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ===== البانر العلوي ===== */
.v2-banner {
    background: linear-gradient(135deg, #374151 0%, #1f2937 50%, #4b5563 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.v2-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: v2-pulse 15s ease-in-out infinite;
}

@keyframes v2-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.v2-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.v2-banner h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px;
    letter-spacing: -1px;
}

.v2-banner h1 span {
    background: linear-gradient(90deg, #8bc34a, #cddc39);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* شريط الإحصائيات */
.v2-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.v2-stat {
    text-align: center;
}

.v2-stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #8bc34a;
    display: block;
}

.v2-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===== شريط التصفية العائم ===== */
.v2-filter-bar {
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.v2-filter-card {
    background: var(--v2-card);
    border-radius: var(--v2-radius);
    padding: 25px 30px;
    box-shadow: var(--v2-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* البحث */
.v2-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.v2-search input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--v2-border);
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    background: var(--v2-bg);
}

.v2-search input:focus {
    outline: none;
    border-color: var(--v2-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74,124,89,0.15);
}

.v2-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-text-light);
    font-size: 18px;
}

/* أزرار الفلترة */
.v2-filter-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.v2-filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--v2-border);
    border-radius: 50px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-filter-btn:hover {
    border-color: var(--v2-accent);
    color: var(--v2-accent);
}

.v2-filter-btn.active {
    background: var(--v2-accent);
    border-color: var(--v2-accent);
    color: #fff;
}

.v2-filter-btn i {
    font-size: 12px;
}

/* الترتيب */
.v2-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-sort label {
    font-size: 14px;
    color: var(--v2-text-light);
    font-weight: 600;
}

.v2-sort select {
    padding: 12px 18px 12px 40px;
    border: 2px solid var(--v2-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text);
    background: var(--v2-bg);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    min-width: 140px;
}

.v2-sort select:focus {
    outline: none;
    border-color: var(--v2-accent);
}

/* ===== التخطيط الرئيسي ===== */
.v2-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* ===== الفلاتر الجانبية ===== */
.v2-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.v2-sidebar-card {
    background: var(--v2-card);
    border-radius: var(--v2-radius);
    padding: 25px;
    box-shadow: var(--v2-shadow);
    position: sticky;
    top: 160px;
}

.v2-sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--v2-text);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--v2-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-sidebar-title i {
    color: var(--v2-accent);
}

/* قسم الفلتر */
.v2-filter-section {
    margin-bottom: 25px;
}

.v2-filter-section:last-child {
    margin-bottom: 0;
}

.v2-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-filter-label i {
    color: var(--v2-accent);
    font-size: 12px;
}

/* التصنيفات كأزرار */
.v2-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-category-btn {
    padding: 8px 16px;
    border: 2px solid var(--v2-border);
    border-radius: 25px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.v2-category-btn:hover,
.v2-category-btn.active {
    background: linear-gradient(135deg, #1f2937, #6b7280);
    border-color: #1f2937;
    color: #fff;
}

/* فلتر السعر */
.v2-price-range {
    padding: 10px 0;
}

.v2-price-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.v2-price-box {
    background: var(--v2-bg);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-text);
}

.v2-range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to left, #1f2937 0%, #6b7280 100%);
    border-radius: 3px;
    outline: none;
}

.v2-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #1f2937, #6b7280);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(44, 85, 48, 0.4);
    border: 3px solid #fff;
}

/* فلتر التقييم */
.v2-rating-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.v2-rating-item:hover {
    background: var(--v2-bg);
}

.v2-rating-item input {
    width: 18px;
    height: 18px;
    accent-color: #1f2937;
}

.v2-rating-stars {
    display: flex;
    gap: 3px;
}

.v2-rating-stars i {
    font-size: 14px;
    color: #ffc107;
}

.v2-rating-stars i.empty {
    color: #ddd;
}

/* زر مسح الفلاتر */
.v2-clear-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--v2-bg);
    color: var(--v2-text-light);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    margin-top: 20px;
}

.v2-clear-btn:hover {
    background: var(--v2-accent);
    color: #fff;
}

/* ===== شبكة المنتجات ===== */
.v2-products-area {
    flex: 1;
}

.v2-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.v2-products-count {
    font-size: 15px;
    color: var(--v2-text-light);
}

.v2-products-count strong {
    color: var(--v2-text);
    font-weight: 800;
}

.v2-view-toggle {
    display: flex;
    gap: 8px;
}

.v2-view-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--v2-border);
    border-radius: 10px;
    background: transparent;
    color: var(--v2-text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.v2-view-btn:hover,
.v2-view-btn.active {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff;
}

/* شبكة المنتجات */
.v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== كارت المنتج الجديد ===== */
.v2-product-card {
    background: var(--v2-card);
    border-radius: var(--v2-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

/* صورة المنتج */
.v2-product-image {
    position: relative;
    height: 280px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.v2-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========== نظام معرض صور المنتج ========== */

/* أسهم التنقل - تصميم بسيط */
.v2-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #1f2937;
    z-index: 10;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.v2-product-image:hover .v2-img-nav {
    opacity: 1;
}

.v2-img-nav:hover:not(.disabled) {
    background: #1f2937;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.v2-img-nav.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    background: rgba(200,200,200,0.5);
}

.v2-img-prev { left: 8px; }
.v2-img-next { right: 8px; }

/* مؤشر عدد الصور */
.v2-product-image.has-gallery::before {
    content: attr(data-count);
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 4;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v2-product-image.has-gallery:hover::before {
    opacity: 1;
}

/* نقاط الصور */
.v2-img-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.v2-img-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2-img-dot.active {
    background: #1f2937;
    transform: scale(1.2);
}

.v2-img-dot:hover:not(.active) {
    background: rgba(255,255,255,0.9);
}

/* إيقاف تكبير الصورة عند التنقل */
.v2-product-image.has-gallery:hover .v2-main-img {
    transform: scale(1.05);
}

/* ========== وحدات البيع ========== */
.v2-units-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.v2-unit-btn {
    padding: 8px 16px;
    border: 1px solid var(--v2-border);
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
    flex: 1;
    min-width: 70px;
    text-align: center;
}

.v2-unit-btn:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.v2-unit-btn.active {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff !important;
}

/* وحدة البيع اللي عندها عرض - نفس الأصلي */
.v2-unit-btn.has-offer {
    /* نفس التصميم الأصلي */
}

.v2-unit-btn.has-offer:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.v2-unit-btn.has-offer.active {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff;
}

/* الأيقونة داخل الزر المختار تصير بيضاء */
.v2-unit-btn.active i {
    color: #fff !important;
}

/* الأزرار بشكل عام - 2 في كل صف */
.v2-units-row .v2-unit-btn {
    flex: 0 0 calc(50% - 4px);
    padding: 8px 12px;
    font-size: 12px;
}

/* إذا عدد فردي (3، 5، 7...) - الأخير يأخذ كل العرض */
.v2-units-row .v2-unit-btn:last-child:nth-child(odd) {
    flex: 1 1 100%;
}

@media (max-width: 480px) {
    .v2-units-row {
        gap: 6px;
    }
    .v2-unit-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .v2-units-row:has(.v2-unit-btn:nth-child(2):last-child) .v2-unit-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ========== المتغيرات (الألوان/الأحجام) ========== */
.v2-variants-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.v2-variant-btn {
    padding: 8px 16px;
    border: 1px solid var(--v2-border);
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
    flex: 1;
    min-width: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.v2-variant-btn:hover:not(:disabled) {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.v2-variant-btn.active {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff !important;
}

.v2-variant-btn.active .v2-variant-name {
    color: #fff !important;
}

.v2-variant-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.v2-variant-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.v2-variant-btn.active .v2-variant-color {
    border-color: rgba(255,255,255,0.4);
}

.v2-variant-name {
    white-space: nowrap;
}

.v2-variant-out {
    font-size: 9px;
    color: #dc2626;
    margin-right: 4px;
}

.v2-variant-btn.active .v2-variant-out {
    color: #fca5a5;
}

/* المتغير اللي عنده عرض - نفس الأصلي */
.v2-variant-btn.has-offer {
    /* نفس التصميم الأصلي */
}

.v2-variant-btn.has-offer:hover:not(:disabled) {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.v2-variant-btn.has-offer.active {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff;
}

.v2-variant-offer {
    color: #f59e0b;
    font-size: 10px;
    margin-right: 4px;
}

.v2-variant-btn.active .v2-variant-offer {
    color: #fef3c7;
}

/* الأزرار بشكل عام - 2 في كل صف */
.v2-variants-row .v2-variant-btn {
    flex: 0 0 calc(50% - 4px);
    padding: 8px 12px;
    font-size: 12px;
}

/* إذا عدد فردي (3، 5، 7...) - الأخير يأخذ كل العرض */
.v2-variants-row .v2-variant-btn:last-child:nth-child(odd) {
    flex: 1 1 100%;
}

@media (max-width: 480px) {
    .v2-variants-row {
        gap: 6px;
    }
    .v2-variant-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .v2-variant-color {
        width: 12px;
        height: 12px;
    }
}

/* الشارات */
.v2-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.v2-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v2-badge.sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.v2-badge.new {
    background: linear-gradient(135deg, var(--v2-success), #48cae4);
}

.v2-badge.featured {
    background: linear-gradient(135deg, var(--v2-gold), #e76f51);
}

.v2-badge.out {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* أزرار الإجراءات */
.v2-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.v2-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.v2-action-btn:hover {
    transform: scale(1.1);
    background: #f5f5f5;
}

.v2-action-btn.fav.active {
    color: #ef4444;
}

/* محتوى المنتج */
.v2-product-content {
    padding: 25px;
}

.v2-product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--v2-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.v2-product-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s;
}

.v2-product-title:hover {
    color: var(--v2-accent);
}

/* التقييم */
.v2-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.v2-product-rating .stars {
    display: flex;
    gap: 2px;
}

.v2-product-rating .stars i {
    font-size: 13px;
    color: #ffc107;
}

.v2-product-rating .stars i.empty {
    color: #e0e0e0;
}

.v2-product-rating .count {
    font-size: 12px;
    color: var(--v2-text-light);
}

/* العد التنازلي */
.v2-countdown {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.v2-countdown-label {
    font-size: 11px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.v2-countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.v2-countdown-box {
    background: var(--v2-accent);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
}

.v2-countdown-box .num {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.v2-countdown-box .txt {
    font-size: 9px;
    opacity: 0.9;
}

/* السعر والزر */
.v2-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--v2-border);
    position: relative;
}

.v2-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-price-current {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.v2-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.v2-price-new-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-discount-badge {
    font-size: 11px;
    color: #333;
    font-weight: 600;
    background: #eee;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ===== أزرار السلة والكمية - نفس تصميم index ===== */

/* wrapper السلة */
.v2-cart-wrapper {
    position: relative;
    min-width: 120px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex-shrink: 0;
}

/* زر الإضافة للسلة */
.v2-add-cart {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.v2-add-cart:hover {
    transform: translateY(-50%) scale(1.08);
}

.v2-add-cart.hidden {
    left: -60px;
    pointer-events: none;
}

.v2-add-cart svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.v2-plus-icon {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* أزرار الكمية - انزلاق من اليسار */
.v2-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 12px;
    height: 40px;
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.v2-qty-controls.active {
    left: 0;
}

.v2-qty-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.v2-qty-btn i {
    color: #333;
    font-size: 12px;
}

.v2-qty-btn:hover {
    background: rgba(0,0,0,0.08);
}

.v2-qty-btn:active {
    transform: scale(0.9);
}

.v2-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.v2-qty-display {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    min-width: 18px;
    text-align: center;
}

/* badge الكمية */
.v2-qty-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.v2-qty-badge.hidden-slide {
    left: -60px;
}

.v2-qty-badge-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.v2-qty-badge-num:hover {
    background: #e0e0e0;
}

/* نقاط التحميل */
.v2-loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 18px;
}

.v2-loading-dots span {
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    animation: v2DotPulse 0.6s infinite ease-in-out;
}

.v2-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.v2-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes v2DotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* زر الإشعار - نفس حجم ومكان زر السلة */
.v2-notify-btn {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    font-size: 18px !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 !important;
}

/* إلغاء النص المضاف من style.css */
.v2-notify-btn.product-notify::after {
    content: none !important;
    display: none !important;
}

.v2-notify-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #e5e5e5 !important;
}

/* ===== الترقيم ===== */
.v2-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 30px 0;
}

.v2-page-btn {
    min-width: 48px;
    height: 48px;
    padding: 0 18px;
    border: 2px solid var(--v2-border);
    border-radius: 12px;
    background: var(--v2-card);
    color: var(--v2-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.v2-page-btn:hover:not(:disabled) {
    border-color: var(--v2-accent);
    color: var(--v2-accent);
}

.v2-page-btn.active {
    background: var(--v2-accent);
    border-color: var(--v2-accent);
    color: #fff;
}

.v2-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== زر الفلاتر للموبايل ===== */
.v2-mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.v2-mobile-filter-btn:active {
    background: #1f2937;
}

/* ===== نافذة الفلاتر للموبايل ===== */
.v2-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.v2-mobile-overlay.show {
    opacity: 1;
}

.v2-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: var(--v2-card);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.v2-mobile-sidebar.show {
    right: 0;
}

.v2-mobile-header {
    background: var(--v2-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.v2-mobile-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.v2-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.v2-mobile-body {
    padding: 20px;
}

.v2-mobile-footer {
    padding: 20px;
    border-top: 1px solid var(--v2-border);
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--v2-card);
}

.v2-mobile-apply {
    flex: 1;
    padding: 14px;
    background: var(--v2-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.v2-mobile-reset {
    padding: 14px 20px;
    background: var(--v2-bg);
    color: var(--v2-text-light);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

/* ===== الإشعارات ===== */
.v2-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--v2-card);
    border-radius: 16px;
    padding: 18px 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid var(--v2-success);
}

.v2-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.v2-toast.error {
    border-right-color: var(--v2-accent);
}

.v2-toast-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--v2-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.v2-toast.error .v2-toast-icon {
    background: var(--v2-accent);
}

.v2-toast-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 4px;
}

.v2-toast-content p {
    font-size: 14px;
    color: var(--v2-text-light);
    margin: 0;
}

.v2-toast-close {
    background: none;
    border: none;
    color: var(--v2-text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-right: -10px;
}

/* ===== حالة عدم وجود منتجات ===== */
.v2-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.v2-empty-icon {
    width: 120px;
    height: 120px;
    background: var(--v2-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.v2-empty-icon i {
    font-size: 50px;
    color: var(--v2-text-light);
}

.v2-empty h3 {
    font-size: 24px;
    color: var(--v2-text);
    margin: 0 0 10px;
}

.v2-empty p {
    font-size: 16px;
    color: var(--v2-text-light);
    margin: 0 0 25px;
}

.v2-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--v2-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.v2-empty-btn:hover {
    background: var(--v2-primary);
    transform: translateY(-3px);
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 1200px) {
    .v2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .v2-sidebar {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .v2-main {
        flex-direction: column;
    }
    
    .v2-sidebar {
        display: none;
    }
    
    .v2-mobile-filter-btn {
        display: flex;
    }
    
    .v2-mobile-overlay {
        display: block;
    }
    
    .v2-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .v2-banner h1 {
        font-size: 36px;
    }
    
    .v2-stats {
        gap: 30px;
    }
    
    .v2-stat-number {
        font-size: 28px;
    }
    
    .v2-filter-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .v2-search {
        max-width: 100%;
    }
    
    .v2-filter-btns {
        justify-content: center;
    }
    
    .v2-sort {
        justify-content: center;
        width: 100%;
    }
    
    /* إظهار الأزرار دائماً على التابلت */
    .v2-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .v2-banner {
        padding: 40px 20px;
    }
    
    .v2-banner h1 {
        font-size: 28px;
    }
    
    .v2-banner p {
        font-size: 14px;
    }
    
    .v2-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .v2-stat {
        flex: 1;
        min-width: 80px;
    }
    
    .v2-stat-number {
        font-size: 24px;
    }
    
    .v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .v2-product-image {
        height: 200px;
        padding: 20px;
    }
    
    .v2-product-content {
        padding: 18px;
    }
    
    .v2-product-title {
        font-size: 15px;
    }
    
    .v2-price-current {
        font-size: 15px;
    }
    
    .v2-add-cart,
    .v2-notify-btn {
        width: 42px;
        height: 42px;
    }
    
    .v2-add-cart svg {
        width: 20px;
        height: 20px;
    }
    
    .v2-plus-icon {
        font-size: 15px;
    }
    
    .v2-qty-controls {
        padding: 4px 10px;
        height: 38px;
        gap: 6px;
        left: -110px;
    }
    
    .v2-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        min-width: 28px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .v2-qty-btn i {
        font-size: 11px;
    }
    
    .v2-qty-display {
        font-size: 14px;
        min-width: 20px;
    }
    
    .v2-qty-badge-num {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .v2-cart-wrapper {
        min-width: 95px;
        height: 40px;
    }
    
    .v2-filter-btns {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .v2-filter-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .v2-banner h1 {
        font-size: 24px;
    }
    
    .v2-stats {
        display: none;
    }
    
    .v2-filter-bar {
        margin-top: -20px;
    }
    
    .v2-filter-card {
        padding: 15px;
    }
    
    .v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .v2-product-image {
        height: 160px;
        padding: 15px;
    }
    
    .v2-product-content {
        padding: 15px;
    }
    
    .v2-product-category {
        font-size: 10px;
    }
    
    .v2-product-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .v2-product-rating {
        margin-bottom: 10px;
    }
    
    .v2-product-rating .stars i {
        font-size: 11px;
    }
    
    .v2-countdown {
        padding: 10px;
    }
    
    .v2-countdown-box {
        padding: 5px 8px;
        min-width: 35px;
    }
    
    .v2-countdown-box .num {
        font-size: 14px;
    }
    
    .v2-price-current {
        font-size: 14px;
    }
    
    .v2-price-old {
        font-size: 11px;
    }
    
    .v2-discount-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    /* تخطيط جديد للـ footer - السعر فوق والسلة تحت */
    .v2-product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .v2-product-price {
        width: 100%;
        text-align: right;
    }
    
    .v2-price-new-row {
        justify-content: flex-end;
    }
    
    .v2-cart-wrapper {
        width: 100%;
        min-width: unset;
        height: 42px;
        justify-content: flex-end;
    }
    
    .v2-add-cart,
    .v2-notify-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .v2-notify-btn {
        position: absolute;
        right: 0;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .v2-notify-btn i {
        font-size: 16px;
    }
    
    .v2-add-cart svg {
        width: 20px;
        height: 20px;
    }
    
    .v2-plus-icon {
        font-size: 14px;
    }
    
    .v2-qty-controls {
        padding: 4px 12px;
        height: 42px;
        gap: 8px;
        left: -130px;
        position: absolute;
        right: auto;
    }
    
    .v2-qty-controls.active {
        left: auto;
        right: 0;
    }
    
    .v2-qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        min-width: 30px;
    }
    
    .v2-qty-btn i {
        font-size: 12px;
    }
    
    .v2-qty-display {
        font-size: 15px;
        min-width: 24px;
    }
    
    .v2-qty-badge-num {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .v2-qty-badge {
        left: auto;
        right: 0;
    }
    
    .v2-qty-badge.hidden-slide {
        left: auto;
        right: -60px;
    }
    
    .v2-cart-wrapper {
        min-width: unset;
        height: 42px;
    }
    
    .v2-add-cart {
        position: absolute;
        right: 0;
        left: auto;
    }
    
    .v2-action-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .v2-badges {
        top: 10px;
        right: 10px;
    }
    
    .v2-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .v2-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .v2-product-image {
        height: 220px;
    }
    
    .v2-product-content {
        padding: 20px;
    }
    
    .v2-product-title {
        font-size: 16px;
    }
    
    /* في العمود الواحد - السعر والسلة جنب بعض */
    .v2-product-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .v2-product-price {
        width: auto;
    }
    
    .v2-cart-wrapper {
        width: auto;
        min-width: 130px;
    }
    
    .v2-price-current {
        font-size: 18px;
    }
    
    .v2-price-old {
        font-size: 13px;
    }
    
    .v2-discount-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .v2-add-cart,
    .v2-notify-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .v2-notify-btn i {
        font-size: 18px;
    }
    
    .v2-cart-wrapper {
        min-width: 120px;
        height: 45px;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 360px) {
    .v2-price-current {
        font-size: 13px;
    }
    
    .v2-price-old {
        font-size: 10px;
    }
    
    .v2-discount-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .v2-price-new-row {
        gap: 4px;
    }
    
    .v2-product-title {
        font-size: 13px;
    }
    
    .v2-product-category {
        font-size: 11px;
    }
}

/* إخفاء الفلاتر القديمة */
.filters-sidebar {
    display: none !important;
}

/* تعديل للتوافق مع الهيدر */
@media (max-width: 1199px) {
    .products-v2 {
        padding-bottom: 120px;
    }
}

/* ===== نافذة العرض السريع ===== */
.v2-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.v2-preview-modal.show {
    opacity: 1;
    visibility: visible;
}

.v2-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.v2-preview-content {
    position: relative;
    background: var(--v2-card);
    border-radius: 16px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.v2-preview-modal.show .v2-preview-content {
    /* بدون تأثيرات */
}

.v2-preview-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.v2-preview-close:hover {
    background: #e5e5e5;
}

.v2-preview-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.v2-preview-image {
    flex: 1;
    max-width: 350px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.v2-preview-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.v2-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.v2-preview-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(74,124,89,0.15), rgba(74,124,89,0.08));
    color: var(--v2-accent);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
}

.v2-preview-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--v2-text);
    margin: 0;
    line-height: 1.3;
}

.v2-preview-rating .stars {
    display: flex;
    gap: 3px;
}

.v2-preview-rating .stars i {
    font-size: 16px;
    color: #ffc107;
}

.v2-preview-rating .stars i.empty {
    color: #ddd;
}

.v2-preview-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--v2-primary);
}

.v2-preview-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    width: fit-content;
}

.v2-preview-stock.available {
    background: #d1fae5;
    color: #111111;
}

.v2-preview-stock.low {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.v2-preview-stock.out {
    background: #fee2e2;
    color: #dc2626;
}

.v2-preview-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
}

.v2-preview-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 16px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.v2-preview-details-btn:hover {
    background: #374151;
}

.v2-preview-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.v2-preview-cart-btn:hover {
    background: #e5e5e5;
}

.v2-preview-cart-btn.in-cart {
    background: #1f2937 !important;
    color: #fff !important;
}

.v2-preview-cart-btn.in-cart:hover {
    background: #374151 !important;
}

.v2-preview-cart-btn.change-unit {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.v2-preview-cart-btn.change-unit:hover {
    background: #e5e5e5 !important;
}

/* زر عرض المزيد من الخيارات */
.v2-preview-options-btn {
    background: #f5f5f5 !important;
    color: #333 !important;
    text-decoration: none;
}

.v2-preview-options-btn:hover {
    background: #e5e5e5 !important;
}

/* ===== الوحدات والمتغيرات في العرض السريع ===== */
.v2-preview-units,
.v2-preview-variants {
    margin: 12px 0;
}

.v2-preview-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 8px;
}

.v2-preview-units-btns,
.v2-preview-variants-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-preview-unit-btn,
.v2-preview-variant-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.v2-preview-unit-btn:hover,
.v2-preview-variant-btn:hover {
    border-color: var(--v2-primary);
    background: rgba(74,124,89,0.05);
}

.v2-preview-unit-btn.active,
.v2-preview-variant-btn.active {
    border-color: var(--v2-primary);
    background: var(--v2-primary);
    color: #fff;
}

.v2-preview-variant-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

.v2-preview-min-order {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    margin: 10px 0;
}

.v2-preview-min-order i {
    color: #f59e0b;
}

.v2-preview-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.v2-preview-price-current {
    font-size: 28px;
    font-weight: 900;
    color: var(--v2-primary);
}

.v2-preview-price-old {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .v2-preview-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .v2-preview-image {
        max-width: 100%;
        max-height: 200px;
    }
    
    .v2-preview-title {
        font-size: 20px;
    }
    
    .v2-preview-price {
        font-size: 26px;
    }
    
    .v2-preview-price-current {
        font-size: 22px;
    }
    
    .v2-preview-price-old {
        font-size: 14px;
    }
    
    .v2-preview-unit-btn,
    .v2-preview-variant-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== تحسينات فلتر السعر ===== */
.v2-price-slider-container {
    margin-top: 15px;
}

.v2-price-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.v2-price-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.v2-price-label.min {
    color: var(--v2-success);
}

.v2-price-label.max {
    color: var(--v2-accent);
}

.v2-slider-wrapper {
    position: relative;
    padding: 15px 0;
}

.v2-price-indicator {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v2-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
    z-index: 10;
}

.v2-price-indicator::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--v2-primary);
}

.v2-price-indicator.show {
    opacity: 1;
    visibility: visible;
    top: -12px;
}

.v2-price-indicator.decreased {
    background: var(--v2-success);
}

.v2-price-indicator.decreased::after {
    border-top-color: var(--v2-success);
}

.v2-price-indicator.increased {
    background: var(--v2-accent);
}

.v2-price-indicator.increased::after {
    border-top-color: var(--v2-accent);
}

.v2-price-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.v2-price-marks span {
    font-size: 11px;
    color: var(--v2-text-light);
    font-weight: 600;
}

/* تغيير لون صندوق السعر */
.v2-price-box.decreased {
    background: #d1fae5;
    color: var(--v2-success);
    border: 2px solid var(--v2-success);
}

.v2-price-box.increased {
    background: #fee2e2;
    color: var(--v2-accent);
    border: 2px solid var(--v2-accent);
}

/* ===== تحسينات الترتيب للموبايل ===== */
@media (max-width: 768px) {
    .v2-sort {
        width: 100%;
    }
    
    .v2-sort label {
        display: none;
    }
    
    .v2-sort select {
        width: 100%;
        padding: 14px 18px 14px 40px;
        font-size: 14px;
        border-radius: 25px;
        background-color: var(--v2-primary);
        color: #fff;
        border: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        min-width: auto;
    }
    
    .v2-sort select option {
        background: var(--v2-card);
        color: var(--v2-text);
    }
}

@media (max-width: 576px) {
    .v2-filter-card {
        gap: 15px;
    }
    
    .v2-sort select {
        padding: 12px 15px 12px 35px;
        font-size: 13px;
    }
    
    .v2-filter-btns {
        gap: 8px;
    }
    
    .v2-filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .v2-filter-btn i {
        display: none;
    }
}

/* ===== إصلاح القائمة الجانبية ===== */
.v2-mobile-overlay {
    pointer-events: none;
}

.v2-mobile-overlay.show {
    pointer-events: auto;
}

.v2-mobile-sidebar {
    pointer-events: auto;
}

/* ===== تحسين هيدر القائمة الجانبية ===== */
.v2-mobile-header {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-secondary) 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-mobile-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 20px;
    flex: 1;
}

.v2-mobile-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.v2-mobile-header-icon i {
    font-size: 22px;
    color: #fff;
}

.v2-mobile-header-text h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.v2-mobile-header-text span {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* تعتيم الخلفية */
.v2-mobile-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* زر الإغلاق - المنطقة الخضراء على اليسار (نفس تصميم الهيدر) */
.v2-filter-close-btn {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 320px);
    height: 100%;
    background: linear-gradient(180deg, #374151 0%, #1f2937 30%, #1f2937 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 10px;
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
}

.v2-filter-close-btn i {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.v2-filter-close-btn span {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.v2-mobile-overlay.show .v2-filter-close-btn {
    opacity: 1;
    visibility: visible;
}

.v2-filter-close-btn:active {
    background: linear-gradient(180deg, #153821 0%, #374151 30%, #374151 100%);
}

.v2-filter-close-btn:active i {
    background: rgba(255, 255, 255, 0.25);
}

/* تعتيم الهيدر عند فتح القائمة */
body.v2-filters-open .header,
body.v2-filters-open .mobile-header-new {
    filter: brightness(0.3);
    pointer-events: none;
    transition: filter 0.3s;
}

/* زر الإغلاق داخل الهيدر */
.v2-header-close-btn {
    width: 50px;
    height: 100%;
    min-height: 90px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.v2-header-close-btn:hover,
.v2-header-close-btn:active {
    background: var(--v2-accent);
}

.v2-header-close-btn i {
    transition: transform 0.3s;
}

.v2-header-close-btn:active i {
    transform: rotate(90deg);
}

/* الشاشات الصغيرة */
@media (max-width: 576px) {
    .v2-filter-close-btn {
        display: none;
    }
    
    .v2-mobile-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .v2-header-close-btn {
        min-height: 80px;
    }
}

/* الشاشات الكبيرة - إخفاء زر الهيدر وإظهار الزر الخارجي */
@media (min-width: 577px) {
    .v2-header-close-btn {
        display: none;
    }
}

/* ===== Dual Price Slider ===== */
.v2-price-range-new {
    padding: 15px 0;
}

.v2-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.v2-price-value {
    background: var(--v2-bg);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.v2-price-value.min {
    border-color: var(--v2-success);
}

.v2-price-value.max {
    border-color: var(--v2-accent);
}

.v2-price-value-label {
    display: block;
    font-size: 11px;
    color: var(--v2-text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.v2-price-value-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--v2-text);
}

.v2-price-value.min .v2-price-value-num {
    color: var(--v2-success);
}

.v2-price-value.max .v2-price-value-num {
    color: var(--v2-accent);
}

.v2-price-value-currency {
    font-size: 12px;
    color: var(--v2-text-light);
    margin-right: 3px;
}

.v2-price-separator {
    color: var(--v2-text-light);
    font-size: 18px;
}

/* Dual Slider */
.v2-dual-slider {
    position: relative;
    height: 8px;
    margin: 30px 10px 20px;
}

.v2-slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.v2-slider-range {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, var(--v2-success), var(--v2-accent));
    border-radius: 4px;
    right: 0;
    left: 0;
}

.v2-slider-min,
.v2-slider-max {
    position: absolute;
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
}

.v2-slider-min::-webkit-slider-thumb,
.v2-slider-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 3px solid var(--v2-success);
    transition: transform 0.2s;
}

.v2-slider-max::-webkit-slider-thumb {
    border-color: var(--v2-accent);
}

.v2-slider-min::-webkit-slider-thumb:hover,
.v2-slider-max::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.v2-slider-thumb {
    position: absolute;
    top: -30px;
    transform: translateX(50%);
    background: var(--v2-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.v2-dual-slider:hover .v2-slider-thumb {
    opacity: 1;
}

.v2-slider-thumb.min {
    background: var(--v2-success);
}

.v2-slider-thumb.max {
    background: var(--v2-accent);
}

.v2-slider-thumb::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--v2-primary);
}

.v2-slider-thumb.min::after {
    border-top-color: var(--v2-success);
}

.v2-slider-thumb.max::after {
    border-top-color: var(--v2-accent);
}

.v2-price-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.v2-scale-mark {
    font-size: 11px;
    color: var(--v2-text-light);
    font-weight: 600;
}

/* ===== عرض List ===== */
.v2-grid.v2-list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.v2-list-view .v2-product-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
}

.v2-list-view .v2-product-image {
    width: 250px;
    min-width: 250px;
    height: 200px;
    border-radius: 16px 0 0 16px;
}

.v2-list-view .v2-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 30px;
}

.v2-list-view .v2-product-title {
    font-size: 20px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.v2-list-view .v2-product-footer {
    margin-top: auto;
}

.v2-list-view .v2-price-current {
    font-size: 26px;
}

.v2-list-view .v2-actions {
    flex-direction: row;
    bottom: 15px;
    top: auto;
}

.v2-list-view .v2-countdown {
    max-width: 300px;
}

/* تجاوب List View */
@media (max-width: 768px) {
    .v2-list-view .v2-product-card {
        flex-direction: column;
    }
    
    .v2-list-view .v2-product-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
    
    .v2-list-view .v2-product-content {
        padding: 20px;
    }
    
    .v2-list-view .v2-product-title {
        font-size: 16px;
    }
    
    .v2-list-view .v2-price-current {
        font-size: 20px;
    }
}

/* ===== تحسينات إضافية للموبايل ===== */
@media (max-width: 992px) {
    .v2-mobile-sidebar {
        width: 340px;
    }
    
    .v2-price-values {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .v2-price-value {
        flex: 1;
        min-width: 100px;
    }
    
    .v2-price-separator {
        display: none;
    }
}

@media (max-width: 576px) {
    .v2-mobile-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .v2-mobile-header-content {
        padding: 15px;
    }
    
    .v2-mobile-header-icon {
        width: 45px;
        height: 45px;
    }
    
    .v2-mobile-header-text h3 {
        font-size: 16px;
    }
    
    .v2-mobile-close-btn {
        width: 50px;
        min-height: 80px;
        font-size: 20px;
    }
    
    .v2-dual-slider {
        margin: 25px 5px 15px;
    }
    
    .v2-slider-min::-webkit-slider-thumb,
    .v2-slider-max::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
}

/* إضافة class للـ body عند فتح الفلاتر */
body.v2-filters-open {
    overflow: hidden;
}

body.v2-filters-open .header {
    filter: brightness(0.4);
    transition: filter 0.3s;
}

/* ===== قائمة الفلاتر للموبايل - نفس تصميم الهيدر ===== */

/* الـ Overlay مع زر الإغلاق */
.v2-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.v2-mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .v2-mobile-overlay {
        display: block;
    }
}

/* زر الإغلاق - نفس تصميم الهيدر بالضبط */
.v2-filter-close-btn {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 320px);
    height: 130px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 100002;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
}

.v2-filter-close-btn i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.v2-filter-close-btn span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.v2-mobile-overlay.show .v2-filter-close-btn {
    opacity: 1;
    transform: translateY(0);
}

.v2-filter-close-btn:active {
    background: linear-gradient(180deg, #153821, #374151);
}

.v2-filter-close-btn:active i {
    background: rgba(255, 255, 255, 0.25);
}

/* القائمة الجانبية */
.v2-mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--v2-card);
    z-index: 100001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.v2-mobile-sidebar.show {
    transform: translateX(0);
}

/* هيدر القائمة */
.v2-mobile-header {
    background: linear-gradient(135deg, #1f2937, #4b5563);
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.v2-mobile-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
    flex: 1;
}

.v2-mobile-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.v2-mobile-header-icon i {
    font-size: 22px;
    color: #fff;
}

.v2-mobile-header-text h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.v2-mobile-header-text span {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* زر الإغلاق داخل الهيدر - للشاشات الصغيرة جداً */
.v2-header-close-btn {
    display: none;
    width: 50px;
    height: 100%;
    min-height: 104px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.v2-header-close-btn:active {
    background: rgba(255,255,255,0.2);
}

/* محتوى الفلاتر */
.v2-mobile-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* فوتر الفلاتر */
.v2-mobile-footer {
    padding: 20px;
    border-top: 1px solid var(--v2-border);
    display: flex;
    gap: 10px;
    background: var(--v2-card);
    flex-shrink: 0;
}

.v2-mobile-apply {
    flex: 1;
    padding: 14px;
    background: var(--v2-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.v2-mobile-apply:active {
    background: #d63850;
    transform: scale(0.98);
}

.v2-mobile-reset {
    padding: 14px 20px;
    background: var(--v2-bg);
    color: var(--v2-text-light);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.v2-mobile-reset:active {
    background: #e0e0e0;
}

/* تعتيم الهيدر */
body.v2-filters-open .header,
body.v2-filters-open .mobile-header-new {
    filter: brightness(0.3);
    pointer-events: none;
    transition: filter 0.3s;
}

/* ===== التجاوب ===== */

/* شاشات أقل من 420px - إخفاء زر الإغلاق الخارجي وإظهار الداخلي */
@media (max-width: 420px) {
    .v2-filter-close-btn {
        display: none !important;
    }
    
    .v2-header-close-btn {
        display: flex;
    }
    
    .v2-mobile-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* شاشات متوسطة */
@media (min-width: 421px) and (max-width: 576px) {
    .v2-filter-close-btn {
        width: calc(100% - 300px);
        height: 100px;
    }
    
    .v2-mobile-sidebar {
        width: 300px;
    }
}

/* ===== تصميم Bottom Sheet للفلاتر - نظيف وبسيط ===== */

/* الخلفية المعتمة */
.v2-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.v2-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* الـ Sheet نفسه */
.v2-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 99999;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.v2-filter-sheet.show {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .v2-filter-sheet {
        display: flex;
    }
}

/* المقبض للسحب */
.v2-sheet-handle {
    padding: 14px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.v2-sheet-handle span {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

/* الهيدر */
.v2-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.v2-sheet-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-sheet-header h3 i {
    color: #6b7280;
    font-size: 16px;
}

/* زر الإغلاق */
.v2-sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.v2-sheet-close:active {
    background: #e5e7eb;
}

/* المحتوى */
.v2-sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 160px);
    background: #fafafa;
}

/* الأقسام */
.v2-sheet-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.v2-sheet-section:last-child {
    margin-bottom: 0;
}

.v2-sheet-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-sheet-section h4 i {
    color: #9ca3af;
    font-size: 13px;
}

/* الـ Chips */
.v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-chip {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-chip i {
    font-size: 12px;
    color: #9ca3af;
}

.v2-chip:active,
.v2-chip.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.v2-chip.active i {
    color: #fff;
}

/* سلايدر السعر */
.v2-price-slider-wrap {
    padding: 10px 0;
}

.v2-price-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.v2-price-labels span {
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.v2-sheet-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.v2-sheet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #111827;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* الفوتر */
.v2-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

.v2-sheet-reset {
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: none;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.v2-sheet-reset:active {
    background: #f9fafb;
}

.v2-sheet-apply {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.v2-sheet-apply:active {
    background: #1f2937;
}

/* تعتيم الهيدر */
body.v2-filters-open .mobile-header-new {
    opacity: 0.5;
    pointer-events: none;
}

/* إخفاء الأكواد القديمة */
.v2-mobile-overlay:not(.v2-sheet-overlay),
.v2-mobile-sidebar:not(.v2-filter-sheet),
.v2-filter-close-btn,
.v2-mobile-header,
.v2-header-close-btn,
.v2-mobile-body,
.v2-mobile-footer {
    display: none !important;
}


/* ===== تحسينات الفلاتر الموحدة ===== */

/* نص التقييم */
.v2-rating-text {
    font-size: 11px;
    color: #9ca3af;
    margin-right: 4px;
}

/* خيارات التوفر */
.v2-stock-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    background: #f9fafb;
    border: 1px solid transparent;
}

.v2-stock-item:hover {
    background: #f3f4f6;
}

.v2-stock-item input {
    width: 18px;
    height: 18px;
    accent-color: #111827;
}

.v2-stock-item input:checked + .v2-stock-icon + span {
    font-weight: 700;
    color: #111827;
}

.v2-stock-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.v2-stock-icon.available {
    background: #d1fae5;
    color: #059669;
}

.v2-stock-icon.out {
    background: #fef3c7;
    color: #d97706;
}

.v2-stock-item span:last-child {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* خيارات العروض والمميزات */
.v2-special-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-special-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    background: #f9fafb;
    border: 1px solid transparent;
}

.v2-special-item:hover {
    background: #f3f4f6;
}

.v2-special-item input {
    width: 18px;
    height: 18px;
    accent-color: #111827;
}

.v2-special-item input:checked + .v2-special-icon + span {
    font-weight: 700;
    color: #111827;
}

.v2-special-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.v2-special-icon.sale {
    background: #fee2e2;
    color: #dc2626;
}

.v2-special-icon.featured {
    background: #fef3c7;
    color: #f59e0b;
}

.v2-special-icon.bestseller {
    background: #dbeafe;
    color: #2563eb;
}

.v2-special-item span:last-child {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ===== تحسينات فلاتر الموبايل ===== */

/* نجوم التقييم في الموبايل */
.v2-rating-chips {
    flex-direction: column;
    gap: 8px;
}

.v2-rating-chip {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
}

.v2-chip-stars {
    display: flex;
    gap: 2px;
}

.v2-chip-stars i {
    font-size: 13px;
    color: #fbbf24;
}

.v2-chip-stars i.empty {
    color: #e5e7eb;
}

.v2-chip-text {
    font-size: 11px;
    color: #9ca3af;
    margin-right: 6px;
}

.v2-rating-chip.active .v2-chip-text {
    color: rgba(255,255,255,0.7);
}

.v2-rating-chip.active .v2-chip-stars i {
    color: #fef3c7;
}

.v2-rating-chip.active .v2-chip-stars i.empty {
    color: rgba(255,255,255,0.3);
}

/* عدد الفلاتر النشطة */
.v2-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    margin-right: 6px;
}

/* تحسين زر الفلاتر للموبايل */
.v2-mobile-filter-btn {
    position: relative;
}

.v2-mobile-filter-btn .v2-filter-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.v2-mobile-filter-btn .v2-filter-badge.show {
    display: flex;
}

/* ===== تحسينات إضافية للتجاوب ===== */

@media (max-width: 992px) {
    .v2-sheet-section h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .v2-chips {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .v2-sheet-body {
        padding: 16px;
    }
    
    .v2-sheet-section {
        margin-bottom: 16px;
        padding: 14px;
    }
    
    .v2-rating-chip {
        padding: 10px 14px;
    }
    
    .v2-chip-stars i {
        font-size: 12px;
    }
}


/* ===== تحسينات نهائية للفلاتر ===== */

/* تحسين عرض التقييم في الديسكتوب */
.v2-rating-item {
    border: 2px solid transparent;
    transition: all 0.3s;
}

.v2-rating-item:has(input:checked) {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1), rgba(74, 124, 89, 0.05));
    border-color: #1f2937;
    border-radius: 12px;
}

/* تحسين عرض التوفر والعروض */
.v2-stock-item:has(input:checked),
.v2-special-item:has(input:checked) {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1), rgba(74, 124, 89, 0.05));
    border-color: #1f2937;
}

/* تأثير hover محسن */
.v2-stock-item:hover,
.v2-special-item:hover {
    transform: translateX(-3px);
}

/* شارة عدد الفلاتر */
.v2-mobile-filter-btn {
    position: relative;
}

.v2-filter-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 24px;
    height: 24px;
    background: var(--v2-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
    animation: v2BadgePulse 2s infinite;
}

.v2-filter-badge.show {
    display: flex;
}

@keyframes v2BadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* تحسين الـ chips في الموبايل */
.v2-sheet-section .v2-chips {
    gap: 10px;
}

.v2-sheet-section .v2-chip {
    flex-grow: 0;
}

/* تحسين سلايدر السعر في الموبايل */
.v2-price-slider-wrap {
    padding: 15px 5px;
}

.v2-price-labels {
    margin-bottom: 20px;
}

.v2-price-labels span {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* تحسين أزرار الفوتر */
.v2-sheet-footer {
    padding: 20px;
    gap: 15px;
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}

.v2-sheet-reset {
    min-width: 100px;
}

.v2-sheet-apply {
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.35);
}

/* تحسين الانتقالات */
.v2-chip,
.v2-stock-item,
.v2-special-item,
.v2-rating-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسين للشاشات الصغيرة جداً */
@media (max-width: 380px) {
    .v2-sheet-body {
        padding: 12px;
    }
    
    .v2-chip {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .v2-chip i {
        font-size: 12px;
    }
    
    .v2-sheet-section h4 {
        font-size: 13px;
    }
    
    .v2-price-labels span {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* تحسين عرض عدد النتائج */
.v2-products-count {
    background: var(--v2-bg);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
}

/* إضافة أيقونة للنتائج */
.v2-products-count::before {
    content: '\f0b0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    color: var(--v2-accent);
}


/* عداد الفلاتر في هيدر الـ Sheet */
.v2-sheet-count {
    font-size: 13px;
    color: #ef4444;
    font-weight: 700;
    margin-right: 4px;
}


/* ===== Dual Price Slider للموبايل ===== */
.v2-mobile-price-range {
    padding: 8px 0;
}

.v2-mobile-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.v2-mobile-price-box {
    flex: 1;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.v2-mobile-price-box.min {
    border-color: #111827;
}

.v2-mobile-price-box.max {
    border-color: #6b7280;
}

.v2-mobile-price-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 4px;
}

.v2-mobile-price-num {
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: #111827;
}

.v2-mobile-price-currency {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.v2-mobile-price-separator {
    color: #d1d5db;
    font-size: 16px;
}

/* Dual Slider للموبايل */
.v2-mobile-dual-slider {
    position: relative;
    height: 6px;
    margin: 20px 6px 12px;
}

.v2-mobile-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.v2-mobile-slider-range {
    position: absolute;
    height: 6px;
    background: #111827;
    border-radius: 3px;
    right: 0;
    left: 0;
}

.v2-mobile-slider-min,
.v2-mobile-slider-max {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
}

.v2-mobile-slider-min::-webkit-slider-thumb,
.v2-mobile-slider-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 3px solid #111827;
}

.v2-mobile-slider-max::-webkit-slider-thumb {
    border-color: #6b7280;
}

.v2-mobile-slider-min::-webkit-slider-thumb:active,
.v2-mobile-slider-max::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* العلامات */
.v2-mobile-price-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 4px;
}

.v2-mobile-price-scale span {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 380px) {
    .v2-mobile-price-box {
        padding: 10px 10px;
    }
    
    .v2-mobile-price-num {
        font-size: 16px;
    }
    
    .v2-mobile-slider-min::-webkit-slider-thumb,
    .v2-mobile-slider-max::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
        border-width: 3px;
    }
}


/* ===== الأرقام فوق النقط في الموبايل ===== */
.v2-mobile-thumb-label {
    position: absolute;
    top: -28px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(50%);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.v2-mobile-thumb-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid;
}

.v2-mobile-thumb-label.min {
    background: #111827;
}

.v2-mobile-thumb-label.min::after {
    border-top-color: #111827;
}

.v2-mobile-thumb-label.max {
    background: #6b7280;
}

.v2-mobile-thumb-label.max::after {
    border-top-color: #6b7280;
}

/* تحسين المسافة للـ dual slider */
.v2-mobile-dual-slider {
    margin-top: 35px;
    margin-bottom: 15px;
}


/* ===== نافذة المشاركة ===== */
.v2-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v2-share-modal.show {
    opacity: 1;
    visibility: visible;
}

.v2-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.v2-share-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-share-modal.show .v2-share-content {
    transform: scale(1) translateY(0);
}

.v2-share-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-share-close:hover {
    background: var(--v2-accent);
    color: #fff;
    transform: rotate(90deg);
}

/* هيدر المشاركة */
.v2-share-header {
    text-align: center;
    margin-bottom: 25px;
}

.v2-share-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1f2937, #6b7280);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.3);
}

.v2-share-icon i {
    font-size: 28px;
    color: #fff;
}

.v2-share-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px;
}

.v2-share-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    max-width: 280px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* أزرار المشاركة */
.v2-share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.v2-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    border: none;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.v2-share-btn i {
    font-size: 24px;
    transition: transform 0.3s;
}

.v2-share-btn span {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.v2-share-btn:hover {
    transform: translateY(-3px);
}

.v2-share-btn:hover i {
    transform: scale(1.15);
}

/* ألوان منصات التواصل */
.v2-share-btn.whatsapp i { color: #25D366; }
.v2-share-btn.whatsapp:hover { background: #25D366; }
.v2-share-btn.whatsapp:hover i, .v2-share-btn.whatsapp:hover span { color: #fff; }

.v2-share-btn.twitter i { color: #1DA1F2; }
.v2-share-btn.twitter:hover { background: #1DA1F2; }
.v2-share-btn.twitter:hover i, .v2-share-btn.twitter:hover span { color: #fff; }

.v2-share-btn.facebook i { color: #1877F2; }
.v2-share-btn.facebook:hover { background: #1877F2; }
.v2-share-btn.facebook:hover i, .v2-share-btn.facebook:hover span { color: #fff; }

.v2-share-btn.telegram i { color: #0088cc; }
.v2-share-btn.telegram:hover { background: #0088cc; }
.v2-share-btn.telegram:hover i, .v2-share-btn.telegram:hover span { color: #fff; }

.v2-share-btn.email i { color: #EA4335; }
.v2-share-btn.email:hover { background: #EA4335; }
.v2-share-btn.email:hover i, .v2-share-btn.email:hover span { color: #fff; }

.v2-share-btn.copy i { color: #6366f1; }
.v2-share-btn.copy:hover { background: #6366f1; }
.v2-share-btn.copy:hover i, .v2-share-btn.copy:hover span { color: #fff; }

/* حقل الرابط */
.v2-share-link {
    display: flex;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 5px;
}

.v2-share-link input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 13px;
    color: #4b5563;
    font-family: 'Cairo', sans-serif;
    outline: none;
    direction: ltr;
    text-align: left;
}

.v2-share-link button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f2937, #6b7280);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-share-link button:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    transform: scale(1.05);
}

/* تجاوب الموبايل */
@media (max-width: 480px) {
    .v2-share-content {
        padding: 25px 20px;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(100%);
    }
    
    .v2-share-modal.show .v2-share-content {
        transform: translateY(0);
    }
    
    .v2-share-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .v2-share-btn {
        padding: 15px 8px;
    }
    
    .v2-share-btn i {
        font-size: 22px;
    }
    
    .v2-share-btn span {
        font-size: 11px;
    }
    
    .v2-share-icon {
        width: 60px;
        height: 60px;
    }
    
    .v2-share-icon i {
        font-size: 24px;
    }
    
    .v2-share-header h3 {
        font-size: 20px;
    }
}


/* ===== تأثير زر النسخ ===== */
.v2-share-link button i,
.v2-share-btn.copy i {
    transition: all 0.4s ease;
}

/* تأثير ظهور علامة الصح */
.v2-share-link button.copied i,
.v2-share-btn.copy.copied i {
    animation: v2CheckAppear 0.4s ease forwards;
}

/* تأثير اختفاء علامة الصح */
.v2-share-link button.fade-out i,
.v2-share-btn.copy.fade-out i {
    animation: v2CheckDisappear 0.4s ease forwards;
}

@keyframes v2CheckAppear {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes v2CheckDisappear {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* ===== تحسينات عرض القائمة للشاشات الصغيرة ===== */
/* جعل الأيقونات تظهر من الأسفل في عرض القائمة على الموبايل - مثل عرض الشبكة */
@media (max-width: 768px) {
    .v2-list-view .v2-actions {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        top: auto;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .v2-list-view .v2-product-image {
        position: relative;
    }
    
    .v2-list-view .v2-action-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 576px) {
    .v2-list-view .v2-actions {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .v2-list-view .v2-action-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* العد التنازلي في عرض القائمة - عرض كامل على الشاشات الصغيرة */
@media (max-width: 768px) {
    .v2-list-view .v2-countdown {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== تغيير موقع الشارات في الشاشات الكبيرة ===== */
/* نقل الشارات (الخصم، مميز، نفد) إلى الجهة اليسرى في الشاشات الكبيرة */
@media (min-width: 992px) {
    .v2-badges {
        right: auto;
        left: 15px;
        top: 15px;
    }
    
    /* في عرض القائمة - الشارات تبقى في اليسار */
    .v2-list-view .v2-badges {
        left: 15px;
        right: auto;
        top: 15px;
    }
}

/* ===== تحسين الشارات في عرض القائمة للشاشات الكبيرة ===== */
@media (min-width: 769px) {
    .v2-list-view .v2-badges {
        flex-direction: row;
        gap: 8px;
    }
    
    .v2-list-view .v2-badge {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== إخفاء المنتجات المفلترة ===== */
.v2-product-card.v2-hidden {
    display: none !important;
}

/* ===== زر مسح الفلاتر - يظهر فقط عند وجود فلاتر نشطة ===== */
.v2-clear-btn {
    display: none;
}

.v2-clear-btn.has-filters {
    display: block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    animation: v2PulseBtn 2s infinite;
}

@keyframes v2PulseBtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

/* ===== أزرار الكمية في كارت المنتج ===== */
.v2-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-add-cart.hidden {
    display: none !important;
}

/* زر "تم الإضافة" - الصح - معطل */
.v2-in-cart-check {
    display: none !important;
}

/* أزرار الإجراءات على الصور */
    .v2-action-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* ===== أيقونة التحميل في زر الإشعار ===== */
.v2-notify-btn .loading-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-top: 2px solid #6b7280;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* عند التسجيل - الزر أخضر */
.v2-notify-btn.notified {
    background: linear-gradient(135deg, #222222, #111111);
    border-color: #222222;
    color: #fff;
}

.v2-notify-btn.notified:hover {
    background: linear-gradient(135deg, #111111, #047857);
    border-color: #111111;
}

/* ===== رسالة الحد الأدنى ===== */
.v2-min-qty-msg {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, #374151, #1f2937);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-min-qty-msg::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.v2-min-qty-msg.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.v2-min-qty-msg i {
    color: #fbbf24;
}

/* ===== رسالة الحد الأدنى الثابتة ===== */
.v2-min-order-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(31, 41, 55, 0.08);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 8px;
    min-height: 32px;
}

.v2-min-order-info i {
    color: #6b7280;
    font-size: 12px;
}

.v2-min-order-info strong {
    color: #1f2937;
}

/* placeholder لتوحيد ارتفاع الكروت */
.v2-min-order-placeholder {
    min-height: 32px;
    margin-bottom: 8px;
}
