/* ── CMC Commodities Overview  [cmc_commodities_overview] ────────────────── */

.cmc-com-wrap {
    width: 100%;
    font-family: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    direction: rtl;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.cmc-com-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px 8px;
    direction: rtl;
}

.cmc-com-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: rgba(12,12,12,0.85);
}

.cmc-com-icon-trend {
    fill: none;
    stroke: rgba(12,12,12,0.55);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cmc-com-title {
    font-size: 12px;
    font-weight: 700;
    color: #0C0C0C;
    letter-spacing: 0.02em;
}

.cmc-com-title-sub {
    margin-right: auto;
    font-size: 10px;
    color: rgba(12,12,12,0.55);
    letter-spacing: 0.05em;
    direction: rtl;
}

/* ── Category section ────────────────────────────────────────────────────── */

.cmc-com-section {
    border-bottom: 1px solid #f1f5f9;
}

.cmc-com-section:last-child { border-bottom: none; }

.cmc-com-section-hd {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px 4px;
    border-bottom: 1px solid #f1f5f9;
}

.cmc-com-section-hd--metals { color: #92400e; background: #fffbeb; }
.cmc-com-section-hd--energy { color: #9a3412; background: #fff7ed; }
.cmc-com-section-hd--agri   { color: #14532d; background: #f0fdf4; }

/* ── Commodity items ─────────────────────────────────────────────────────── */

.cmc-com-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 10px;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.12s;
    direction: rtl;
}

.cmc-com-item:last-child  { border-bottom: none; }
.cmc-com-item:hover       { background: #f8fafc; }
.cmc-com-item:hover .cmc-com-name { color: #4D5B72; }

/* Category color dot */
.cmc-com-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cmc-com-dot--metals { background: #f59e0b; }
.cmc-com-dot--energy { background: #f97316; }
.cmc-com-dot--agri   { background: #22c55e; }

/* Arabic name */
.cmc-com-name {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.12s;
}

/* Symbol tag */
.cmc-com-sym {
    font-size: 9px;
    color: #94a3b8;
    direction: ltr;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
}

/* RTL chevron (points left = navigate forward in RTL) */
.cmc-com-arrow {
    width: 5px;
    height: 8px;
    flex-shrink: 0;
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.12s;
}

.cmc-com-item:hover .cmc-com-arrow { stroke: #4D5B72; }
