:root {
    --rf-bg: #fffdf9;
    --rf-red: #B71C1C;
    --rf-red-gradient: linear-gradient(135deg, #B71C1C 0%, #8a0e0e 100%);
    --rf-border: #eeeadd;
    --rf-text: #333;
}

/* کانتینر اصلی */
.rf-shop-wrapper {
    font-family: Tahoma, sans-serif; font-size: 13px; direction: rtl;
    background-color: var(--rf-bg); padding: 20px; border-radius: 12px;
}

.rf-shop-inner { display: flex; gap: 25px; align-items: flex-start; }
.rf-sidebar { width: 260px; flex-shrink: 0; }
.rf-content { flex: 1; min-width: 0; }

/* --- استایل Hub (صفحه اصلی مجموعه‌ها) --- */
.rf-hub-container { text-align: center; padding: 20px 0; }
.rf-hub-search {
    max-width: 400px; margin: 0 auto 30px; position: relative;
}
.rf-hub-search input {
    width: 100%; padding: 15px 45px 15px 15px; border-radius: 50px;
    border: 1px solid #ddd; font-size: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.rf-hub-search .dashicons { position: absolute; right: 15px; top: 18px; font-size: 20px; color: #999; }

.rf-hub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.rf-hub-card {
    background: #fff; border-radius: 15px; padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); cursor: pointer;
    border-bottom: 5px solid var(--rf-red); transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rf-hub-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(183, 28, 28, 0.15); }
.rf-hub-card h4 { margin: 15px 0 0; font-size: 18px; color: #333; font-weight: bold; }
.rf-hub-icon { font-size: 40px; color: var(--rf-red); width: 40px; height: 40px; display: block; }

/* دکمه بازگشت */
.rf-back-btn {
    display: inline-flex; align-items: center; gap: 5px;
    margin-bottom: 20px; padding: 8px 15px; background: #fff;
    border: 1px solid #ddd; border-radius: 8px; cursor: pointer;
    color: #666; font-weight: bold; transition: 0.2s;
}
.rf-back-btn:hover { border-color: var(--rf-red); color: var(--rf-red); }

/* --- هدر گرافیکی (طبق عکس) --- */
.rf-hero-header {
    background: var(--rf-red-gradient);
    color: #fff; padding: 30px; border-radius: 15px; margin-bottom: 25px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 25px rgba(183, 28, 28, 0.25);
    position: relative; overflow: hidden; min-height: 90px;
}

.rf-hero-header::before {
    content: 'PRICE LIST';
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    font-size: 60px; font-weight: 900; color: rgba(255,255,255,0.06);
    pointer-events: none; font-family: sans-serif; letter-spacing: 2px;
}

.rf-hero-title h2 { margin: 0; font-size: 24px; font-weight: bold; color: #fff; }
.rf-hero-info { text-align: left; z-index: 2; }
.rf-date-badge {
    background: rgba(255,255,255,0.2); padding: 8px 15px;
    border-radius: 50px; font-size: 14px; backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3); display: inline-block;
}

/* --- فیلترها (طرح کارتی سفید با نوار قرمز) --- */
.rf-filter-box { display: flex; flex-direction: column; gap: 20px; }

.rf-filter-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 5px solid var(--rf-red); /* نوار قرمز */
}
.rf-filter-card h4 {
    margin: 0; padding: 15px; font-size: 15px; font-weight: bold;
    color: #222; border-bottom: 1px solid #f5f5f5; text-align: center;
}
.rf-chk-list {
    padding: 15px; max-height: 250px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
}
.rf-chk-list label {
    font-size: 13px; color: #555; cursor: pointer;
    display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.rf-chk-list input { width: 18px; height: 18px; accent-color: var(--rf-red); }

.rf-search-wrap input {
    width: 100%; padding: 12px 10px 12px 35px; border-radius: 50px;
    border: 1px solid #ddd; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.rf-search-wrap .dashicons { position: absolute; left: 15px; top: 12px; color: #bbb; }

.rf-reset-btn {
    width: 100%; padding: 10px; border: 1px dashed var(--rf-red);
    color: var(--rf-red); background: #fff; border-radius: 8px; cursor: pointer;
}
.rf-reset-btn:hover { background: var(--rf-red); color: #fff; border-style: solid; }

/* --- جدول محصولات --- */
.rf-table-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid var(--rf-border);
    overflow: hidden;
}
.rf-responsive-table { overflow-x: auto; }
.rf-table { width: 100%; border-collapse: collapse; min-width: 800px; }

.rf-table th {
    background: #fdfbf7; color: #5d4037; padding: 18px 15px;
    border-bottom: 2px solid #ecdca8; text-align: center; font-weight: bold;
}
.rf-table td {
    padding: 15px; border-bottom: 1px solid #f0f0f0;
    text-align: center; color: #444; vertical-align: middle;
}
.rf-table tr:nth-child(even) { background: #fff; }
.rf-table tr:nth-child(odd) { background: #fffdf5; }
.rf-table tr:hover { background: #ffebee; }

/* دکمه افزودن (دایره قرمز) */
.rf-btn-add {
    background: var(--rf-red); color: #fff; width: 38px; height: 38px;
    border-radius: 50%; border: none; font-size: 24px; font-weight: 300;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.3); margin: 0 auto;
    transition: 0.2s; padding-bottom: 4px;
}
.rf-btn-add:hover { transform: scale(1.1); background: #900; }

.rf-price { font-weight: bold; font-size: 15px; color: #222; }
.rf-chg { font-size: 12px; font-weight: bold; direction: ltr; }
.rf-chg.up { color: green; } .rf-chg.down { color: red; }

/* سبد خرید شناور */
.rf-float-cart {
    position: fixed; bottom: 25px; left: 25px; z-index: 9999;
    background: var(--rf-red); color: #fff; padding: 12px 25px;
    border-radius: 50px; box-shadow: 0 10px 30px rgba(183, 28, 28, 0.4);
    cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: bold;
    border: 2px solid #fff; transition: 0.3s;
}
.rf-float-cart:hover { transform: translateY(-5px); }

/* مودال */
.rf-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10000;
    display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px);
}
.rf-modal {
    background: #fff; width: 500px; max-width: 95%; border-radius: 15px;
    overflow: hidden; display: flex; flex-direction: column; max-height: 85vh;
}
.rf-modal-head {
    background: var(--rf-red); color: #fff; padding: 18px;
    display: flex; justify-content: space-between; font-weight: bold; font-size: 16px;
}
.rf-modal-body { padding: 20px; overflow-y: auto; }
.rf-cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #ddd; padding: 12px 0; }
.rf-submit { width: 100%; padding: 14px; background: #2e7d32; color: #fff; border:none; border-radius:8px; font-weight:bold; margin-top:20px; cursor:pointer; }

@media (max-width: 768px) {
    .rf-shop-inner { flex-direction: column; }
    .rf-sidebar { width: 100%; }
    .rf-hero-header { flex-direction: column; text-align: center; gap: 15px; }
    .rf-hero-header::before { display: none; }
}