:root {
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 10px;
    --gap: 12px;
}

* {
    box-sizing: border-box
}

.products-section {
  padding: 40px 0;
  background-color: var(--light-color);
}

/* Top Filters */
.orders-layout {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.orders-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.date {
    display: flex;
    gap: 8px;
    align-items: center
}

/* ===== الجدول العام ===== */
.table-responsive {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/* ===== العناوين ===== */
.table thead th {
    font-weight: 600;
    background: #333;
    color: #fff;
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.selecthead {
    font-weight: 600;
    background: #333;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    min-width: 120px;
    max-width: 150px;
}

/* ===== الخلايا ===== */
.table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    max-width: 500px;
}

/* ===== الصور داخل الجدول ===== */
.table td img {
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* .card {
    background: var(--gray-color);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6)
} */

 table {
    width: 100%;
    border-collapse: collapse
}

thead th {
    font-weight: 600;
    text-align: left;
    padding: 12px 8px;
    color: var(--bg-light);
    font-size: 13px
}

tbody td {
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle
} 

.badge {
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px
}

.badge.pending {
    background: rgba(255, 165, 0, 0.12);
    color: orange
}

.badge.shipped {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-color)
}

.action-buttons {
    display: flex;
    gap: var(--gap);
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
}

.action-btn {
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.action-btn.edit {
    background: rgba(255, 193, 7, 0.15);
    color: #ff9800;
}

.action-btn.edit:hover {
    background: #ff9800;
    color: #fff;
}

.action-btn.delete {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.action-btn.delete:hover {
    background: #f44336;
    color: #fff;
}

.action-btn.save {
    background: rgba(244, 67, 54, 0.15);
    color: var(--main-color);
}

.action-btn.save:hover {
    background: var(--main-color);
    color: #fff;
}

/* Hover states + clickable rows */
tbody tr {
    cursor: pointer;
    transition: background .15s ease
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02)
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px
}

.page-btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer
}

.page-btn.active {
    background: var(--accent-color);
    border: none;
    color: white
}