/* ==========================================================================
   UI KIT: LISTS & TABLES (Списъци, Продукти в количка, Таблици с данни)
   ========================================================================== */

/* -----------------------------------------
   1. ТАБЛИЦИ С ДАННИ (Data Tables)
----------------------------------------- */
.aopc-table-wrapper {
    width: 100%;
    overflow-x: auto; /* Позволява хоризонтален скрол на малки екрани */
    border-radius: var(--fiptec-radius-global, 14px);
    border: 1px solid var(--fiptec-slate-200);
    background-color: var(--fiptec-white);
}

.aopc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap; /* Предпазва таблицата от грозно сгъване на текста */
}

/* Заглавен ред (Тh) */
.aopc-table th {
    background-color: var(--fiptec-slate-50);
    color: var(--fiptec-slate-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fiptec-slate-200);
}

/* Редове и Клетки (Td) */
.aopc-table td {
    padding: 16px;
    color: var(--fiptec-slate-800);
    font-size: 14px;
    border-bottom: 1px solid var(--fiptec-slate-100);
    vertical-align: middle;
}

/* Изчистване на бордера на последния ред */
.aopc-table tr:last-child td {
    border-bottom: none;
}

/* Ховър ефект върху ред (Подсказва, че редът се чете/кликва) */
.aopc-table tbody tr {
    transition: background-color 0.2s ease;
}
.aopc-table tbody tr:hover {
    background-color: var(--fiptec-slate-50);
}

/* Подравняване на цифри/цени вдясно */
.aopc-table-col-right {
    text-align: right;
}
.aopc-table-col-center {
    text-align: center;
}

/* -----------------------------------------
   2. ПРОДУКТОВ СПИСЪК (Cart / Order Items)
----------------------------------------- */
.aopc-cart-list {
    display: flex;
    flex-direction: column;
}

.aopc-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fiptec-slate-100);
}
.aopc-cart-list .aopc-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.aopc-cart-list .aopc-cart-item:first-child {
    padding-top: 0;
}

/* Снимката на продукта */
.aopc-cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--fiptec-radius-md, 8px);
    object-fit: cover;
    border: 1px solid var(--fiptec-slate-100);
    background-color: var(--fiptec-slate-50);
    flex-shrink: 0;
}

/* Инфо частта (Заглавие, Вариация) */
.aopc-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Цена и Количество (Дясна част) */
.aopc-cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* -----------------------------------------
   3. ИЗЧИСТЕН СПИСЪК С ИКОНИ (Simple List)
----------------------------------------- */
.aopc-simple-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aopc-simple-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--fiptec-slate-700);
    line-height: 1.5;
}

.aopc-simple-list-icon {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--fiptec-blue);
}