﻿
/* ------- Premium UI (clean, modern, high-conversion) ------- */
.list-hero {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.list-title {
    font-size: 18px;
    font-weight: 950;
    color: #0f172a;
}

.list-sub {
    margin-top: 6px;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .list-sub .dot {
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: #cbd5e1;
        display: inline-block;
    }

.sort-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.sort-item {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: .15s;
    white-space: nowrap;
}

    .sort-item:hover {
        background: #fff;
        border-color: #111827;
    }

    .sort-item.active {
        background: #111827;
        border-color: #111827;
        color: #fff;
    }

/* Product card */
.p-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .p-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(0,0,0,.10);
    }

.p-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.p-pill {
    pointer-events: none;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.p-in {
    background: rgba(246,127,31,.16);
    color: #92400e;
    border-color: rgba(246,127,31,.30);
}

.p-out {
    background: rgba(148,163,184,.18);
    color: #475569;
    border-color: rgba(148,163,184,.35);
}

.p-img {
    display: block;
    background: #f8fafc;
    padding: 10px;
}

    .p-img img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        border-radius: 14px;
        background: #fff;
        display: block;
    }

.p-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.p-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .95;
}

.p-title {
    display: block;
    color: #0f172a;
    font-weight: 950;
    font-size: 13px;
    line-height: 1.7;
    max-height: 44px;
    overflow: hidden;
    text-decoration: none;
}

    .p-title:hover {
        text-decoration: underline;
    }

.p-brand {
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

    .p-price .lbl {
        color: #64748b;
        font-weight: 900;
        font-size: 12px;
    }

    .p-price .val {
        color: #0f172a;
        font-weight: 950;
        font-size: 16px;
    }

    .p-price .cur {
        color: #64748b;
        font-weight: 900;
        font-size: 12px;
    }

.p-actions {
    margin-top: 8px;
}

/* Pagination */
.pager-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pager {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    flex-wrap: wrap;
    justify-content: center;
}

.pg-btn, .pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 950;
    font-size: 12px;
    transition: .15s;
    padding: 0 10px;
}

    .pg-btn:hover, .pg-num:hover {
        background: #fff;
        border-color: #111827;
    }

    .pg-btn.disabled {
        opacity: .45;
        cursor: not-allowed;
        background: #f1f5f9;
    }

    .pg-num.active {
        background: #111827;
        border-color: #111827;
        color: #fff;
    }

.pg-dots {
    color: #94a3b8;
    font-weight: 900;
    padding: 0 4px;
}

.empty-box {
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 18px;
    padding: 26px 18px;
    text-align: center;
    color: #64748b;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

@media (max-width: 576px) {
    .sort-bar {
        justify-content: flex-start;
    }

    .p-img img {
        height: 190px;
    }
}
