:root {
    --primary-mwp: #800020;
    --gold-mwp: #D4AF37;
    --bg-mwp: #F5F5F5;
}
.mwp-daily-prices-container {
    direction: rtl;
    font-family: 'Vazir', Tahoma, sans-serif;
    background: var(--bg-mwp);
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.mwp-daily-prices-container * { box-sizing: border-box; }

.mwp-daily-prices-header {
    background: var(--primary-mwp);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 4px solid var(--gold-mwp);
}
.mwp-daily-prices-header h1 { margin: 0; font-size: 20px; font-weight: 700; }
.mwp-back-to-shop {
    background: var(--gold-mwp);
    color: var(--primary-mwp);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid white;
}
.mwp-back-to-shop:hover { transform: scale(1.05); background: #e6c44d; }

.mwp-daily-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid var(--gold-mwp);
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s;
}
.mwp-daily-search-input:focus { outline: none; border-color: var(--primary-mwp); box-shadow: 0 0 0 3px rgba(128,0,32,0.1); }

.mwp-daily-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mwp-daily-price-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.mwp-daily-price-card:hover {
    border-color: var(--gold-mwp);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.mwp-daily-price-card .mwp-product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    background: #f8f9fa;
}
.mwp-daily-price-card .mwp-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
    height: 44px;
    overflow: hidden;
    cursor: default;
}
.mwp-price-change-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 8px;
}
.mwp-price-change-up { background: #dc3545; color: white; }
.mwp-price-change-down { background: #28a745; color: white; }
.mwp-price-change-stable { background: #6c757d; color: white; }

.mwp-daily-price-card .mwp-price-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.mwp-daily-price-card .mwp-price-item {
    background: var(--bg-mwp);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #ddd;
}
.mwp-daily-price-card .mwp-price-item .mwp-label { color: #666; font-weight: 600; }
.mwp-daily-price-card .mwp-price-item .mwp-value { color: var(--primary-mwp); font-weight: 700; }
.mwp-daily-price-card .mwp-update-date {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}
.mwp-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.mwp-card-actions .mwp-btn-chart {
    background: var(--primary-mwp);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    border: 2px solid var(--gold-mwp);
}
.mwp-card-actions .mwp-btn-chart:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(128,0,32,0.3); }
.mwp-card-actions .mwp-btn-update {
    background: linear-gradient(135deg, #2ecc71, #3498db);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    border: 2px solid var(--gold-mwp);
}
.mwp-card-actions .mwp-btn-update:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,204,113,0.4); }

/* مودال نمودار */
.mwp-daily-chart-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,26,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 10px;
    backdrop-filter: blur(10px);
}
.mwp-daily-chart-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--gold-mwp);
}
.mwp-daily-chart-content h2 {
    color: var(--primary-mwp);
    margin-bottom: 5px;
    text-align: center;
}
.mwp-daily-chart-content .mwp-chart-info {
    text-align: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}
.mwp-daily-chart-content .mwp-chart-container {
    position: relative;
    height: 250px;
    margin-bottom: 15px;
}
.mwp-daily-chart-content .mwp-close-chart-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 100%;
    font-size: 16px;
}
.mwp-daily-chart-content .mwp-close-chart-btn:hover { background: #c82333; }

/* مودال درخواست تغییر قیمت */
.mwp-daily-price-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,26,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    padding: 10px;
    backdrop-filter: blur(10px);
}
.mwp-daily-price-modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #D4AF37;
}
.mwp-daily-price-modal-content h2 { color: #800020; margin-bottom: 15px; text-align: center; }
.mwp-daily-price-modal-content .mwp-form-group { margin-bottom: 15px; }
.mwp-daily-price-modal-content .mwp-form-group label { display: block; font-weight: 700; margin-bottom: 5px; }
.mwp-daily-price-modal-content .mwp-form-group input, 
.mwp-daily-price-modal-content .mwp-form-group textarea { 
    width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; 
}
.mwp-daily-price-modal-content .mwp-form-group input:focus { border-color: #D4AF37; outline: none; }
.mwp-daily-price-modal-content .mwp-form-group .mwp-image-upload {
    border: 2px dashed #ddd; padding: 20px; text-align: center; border-radius: 8px; 
    cursor: pointer; transition: all 0.3s;
}
.mwp-daily-price-modal-content .mwp-form-group .mwp-image-upload:hover { border-color: #D4AF37; background: #f8f9fa; }
.mwp-daily-price-modal-content .mwp-form-group .mwp-image-preview { margin-top: 10px; text-align: center; }
.mwp-daily-price-modal-content .mwp-modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.mwp-daily-price-modal-content .mwp-modal-actions button { 
    padding: 12px 25px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; 
    transition: all 0.3s; min-width: 120px;
}
.mwp-daily-price-modal-content .mwp-modal-actions .mwp-btn-submit {
    background: linear-gradient(135deg, #2ecc71, #3498db); color: white; border: 2px solid #D4AF37;
}
.mwp-daily-price-modal-content .mwp-modal-actions .mwp-btn-submit:hover { transform: translateY(-2px); }
.mwp-daily-price-modal-content .mwp-modal-actions .mwp-btn-cancel { background: #666; color: white; border: 2px solid #999; }
.mwp-daily-price-modal-content .mwp-modal-actions .mwp-btn-cancel:hover { background: #555; }
.mwp-daily-price-modal-content .mwp-success-message { background: #2ecc71; color: white; padding: 10px; border-radius: 8px; text-align: center; margin-top: 10px; }
.mwp-daily-price-modal-content .mwp-error-message { background: #dc3545; color: white; padding: 10px; border-radius: 8px; text-align: center; margin-top: 10px; }

@media (max-width: 768px) {
    .mwp-daily-prices-header { flex-direction: column; text-align: center; }
    .mwp-daily-prices-grid { grid-template-columns: 1fr; }
    .mwp-daily-chart-content { padding: 15px; }
}