/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 30 2026 | 15:07:08 */
/*
 * cwt-table.css
 * Save as: your-child-theme/assets/css/cwt-table.css
 * ─────────────────────────────────────────────────────
 * Table layout for WooCommerce archive with WC filter widgets in sidebar.
 */

/* ══════════════════════════════════════════════════════
   PAGE LAYOUT
   ══════════════════════════════════════════════════════ */
#cwt-page-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1380px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR — WC default filter widgets live here
   ══════════════════════════════════════════════════════ */
#cwt-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

#cwt-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}

.cwt-clear-btn {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.75);
    border-radius: 3px;
    padding: 2px 9px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}
.cwt-clear-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── WooCommerce widget overrides (Price Filter, Layered Nav, Categories) ── */
#cwt-sidebar .widget {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
}
#cwt-sidebar .widget:last-child { border-bottom: none; }

#cwt-sidebar .widget-title,
#cwt-sidebar .widgettitle {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #444 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

span.woocommerce-Price-amount.amount bdi {
    color: var(--primary);
}

/* Layered nav checkboxes */
#cwt-sidebar .wc-layered-nav-term,
#cwt-sidebar .woocommerce-widget-layered-nav-list__item {
    font-size: 13px;
    margin-bottom: 5px;
}
#cwt-sidebar .woocommerce-widget-layered-nav-list__item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
#cwt-sidebar .woocommerce-widget-layered-nav-list__item a:hover { color: var(--primary); }
#cwt-sidebar .woocommerce-widget-layered-nav-list__item--chosen > a { color: var(--primary); font-weight: 600; }

/* Layered nav count badge */
#cwt-sidebar .woocommerce-widget-layered-nav-list__item .count {
    color: #aaa;
    font-size: 11px;
}

/* Price filter slider */
#cwt-sidebar .price_slider_wrapper { padding-top: 4px; }
#cwt-sidebar .price_slider {
    margin: 0 0 12px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}
#cwt-sidebar .ui-slider-range { background: var(--primary); }
#cwt-sidebar .ui-slider-handle {
    background: var(--primary);
    border-color: var(--primary);
    width: 14px;
    height: 14px;
    top: -5px;
    border-radius: 50%;
}
#cwt-sidebar .price_slider_amount .button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.15s;
}
#cwt-sidebar .price_slider_amount .button:hover { background: #aa0000 !important; }
#cwt-sidebar .price_slider_amount .price_label { font-size: 12px; color: #555; margin-top: 6px; display: block; }

/* Product categories widget */
#cwt-sidebar .product-categories { list-style: none; margin: 0; padding: 0; }
#cwt-sidebar .product-categories li { margin-bottom: 5px; font-size: 13px; }
#cwt-sidebar .product-categories a { color: #333; text-decoration: none; }
#cwt-sidebar .product-categories a:hover,
#cwt-sidebar .product-categories .current-cat > a { color: var(--primary); font-weight: 600; }
#cwt-sidebar .product-categories .count { color: #aaa; font-size: 11px; }

/* Active filters widget */
#cwt-sidebar .woocommerce-widget-layered-nav-filters ul { list-style: none; margin: 0; padding: 0; }
#cwt-sidebar .woocommerce-widget-layered-nav-filters .chosen a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background: #fff0f0;
    color: var(--primary);
    border: 1px solid #f5c0c0;
    border-radius: 3px;
    padding: 2px 7px;
    text-decoration: none;
    margin-bottom: 4px;
}
#cwt-sidebar .woocommerce-widget-layered-nav-filters .chosen a::after {
    content: "×";
    font-size: 14px;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════ */
#cwt-main {
    flex: 1;
    min-width: 0;
}

/* WC outputs a div.woocommerce — remove its padding/margin */
#cwt-main .woocommerce,
#cwt-main .woocommerce-page { margin: 0; padding: 0; }

/* ── Results header ───────────────────────────────────── */
#cwt-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

/* WC result count */
#cwt-results-header .woocommerce-result-count {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* WC ordering dropdown */
#cwt-results-header .woocommerce-ordering {
    margin: 0;
}
#cwt-results-header .woocommerce-ordering select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   TABLE WRAPPER
   ══════════════════════════════════════════════════════ */
#cwt-table-wrap {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
}

/* ══════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════ */
#cwt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

/* Head */
#cwt-table thead tr {
    background: #fafafa;
}
#cwt-table thead th {
    padding: 10px 13px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #ebebeb;
    white-space: nowrap;
}

/* Row */
.product-row {
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.1s;
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: #fafafa; }
.product-row--featured { background: #fffdf0; }
.product-row--featured:hover { background: #fffbe8; }

#cwt-table td {
    padding: 13px 13px;
    vertical-align: middle;
    color: #333;
}

/* ── Column specifics ─────────────────────────────────── */

/* Product (image + title) */
.td-product { min-width: 160px; }
.table-product-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.img-wrap { display: block; flex-shrink: 0; }
.cwt-thumb,
.img-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    display: block;
}
.title-wrap {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.3;
}
.title-wrap:hover { text-decoration: underline; }

/* Badges */
.cwt-badge {
    display: inline-block;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
}
.cwt-badge--bestseller {
    background: #fff8e1;
    color: #a07800;
    border: 1px solid #edd060;
}

/* Warehouse */
.td-warehouse { font-size: 12.5px; color: #555; min-width: 120px; }

/* Stock */
.td-stock { text-align: center; white-space: nowrap; color: #444; }

/* Price */
.td-price { white-space: nowrap; font-weight: 600; color: #1a1a1a; }
.td-price .woocommerce-Price-amount { font-size: 13px; }

/* MFR */
.td-mfr { font-size: 12px; color: #666; }

/* SKU / Part Number */
.td-sku { min-width: 120px; }
.cwt-part-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}
.cwt-part-link:hover { text-decoration: underline; }

/* Description */
.td-desc { font-size: 12px; color: #777; min-width: 130px; max-width: 200px; }

/* MOQ / SPQ */
.td-moq { font-size: 12.5px; color: #444; white-space: nowrap; }

/* Action */
.td-action { white-space: nowrap; }

/* ── Buttons ──────────────────────────────────────────── */
.cwt-login-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.cwt-login-link:hover { text-decoration: underline; }

.cwt-login-btn,
.td-action .button.cwt-login-btn {
    display: inline-block;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s;
    cursor: pointer;
}
.cwt-login-btn:hover,
.td-action .button.cwt-login-btn:hover {
    background: #aa0000 !important;
    color: #fff !important;
}

/* WC Add to Cart button in table */
.td-action .button.add_to_cart_button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: background 0.15s;
}
.td-action .button.add_to_cart_button:hover {
    background: #aa0000 !important;
    color: #fff !important;
}
.td-action .added_to_cart { font-size: 12px; color: var(--primary); display: block; margin-top: 4px; text-decoration: none; }

/* ══════════════════════════════════════════════════════
   WC NOTICES (above table)
   ══════════════════════════════════════════════════════ */
.woocommerce-notices-wrapper { margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */
.woocommerce-pagination {
    margin-top: 16px;
    text-align: center;
}
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    padding: 0 8px;
    margin: 0 2px;
    transition: all 0.12s;
}
.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media ( max-width: 900px ) {
    #cwt-page-wrap { flex-direction: column; }
    #cwt-sidebar { width: 100%; position: static; max-height: none; }
}
@media ( max-width: 600px ) {
    #cwt-results-header { flex-direction: column; align-items: flex-start; }
}