/**
 * Catalogue Frontend Simple Table Styles
 * Path: includes/catalogue/catalogue-frontend.css
 */

.catalogue-table-wrapper {
    margin: 25px 0;
    width: 100%;
}

.catalogue-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Simple Table Layout ─────────────────────────────────────────────── */
.catalogue-simple-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    background: #ffffff;
    border: 1px solid #ebebeb;
    margin: 0;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.catalogue-simple-table thead th {
    padding: 12px 18px;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #ebebeb;
    vertical-align: middle;
}

.catalogue-simple-table thead th.col-brand {
    width: 65%;
    border-right: 1px solid #ebebeb;
}

.catalogue-simple-table thead th.col-link {
    width: 35%;
}

.catalogue-icon-check {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
    vertical-align: -1px;
}

/* ── Table Body ───────────────────────────────────────────────────────── */
.catalogue-simple-table tbody td {
    padding: 11px 18px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14.5px;
    color: #333333;
    transition: background-color 0.15s ease;
}

.catalogue-simple-table tbody tr:last-child td {
    border-bottom: none;
}

.catalogue-simple-table tbody tr:hover td {
    background-color: #fafafa;
}

.catalogue-simple-table tbody td.col-brand {
    border-right: 1px solid #f0f0f0;
}

.catalogue-brand-name {
    font-weight: 500;
    color: #333333;
    line-height: 1.5;
}

/* ── Link Download ────────────────────────────────────────────────────── */
.catalogue-link-download {
    color: #0088cc !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.catalogue-link-download:hover {
    color: #005580 !important;
    text-decoration: underline !important;
}

/* ── Updating State ───────────────────────────────────────────────────── */
.catalogue-link-updating {
    color: #8c8c8c;
    font-size: 13.5px;
    font-weight: 500;
    font-style: italic;
    user-select: none;
}

/* ── Empty State ──────────────────────────────────────────────────────── */
.catalogue-table-empty {
    text-align: center;
    padding: 30px 15px;
    color: #888888;
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {

    .catalogue-simple-table thead th,
    .catalogue-simple-table tbody td {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .catalogue-simple-table thead th.col-brand,
    .catalogue-simple-table tbody td.col-brand {
        width: 60%;
    }

    .catalogue-simple-table thead th.col-link,
    .catalogue-simple-table tbody td.col-link {
        width: 40%;
    }

    .catalogue-link-download {
        font-size: 13px;
    }
}