/**
 * Transporter Core Archive – v1.0.3
 * Unified CSS for WooCommerce shop + Transport product archives
 * @package Transporter_Core
 */

/* ── Reset ── */
.trc-archive-wrap { max-width: 1500px; margin: 0 auto; padding: 0 36px; width: 100%; box-sizing: border-box; }
.trc-archive-wrap *, .trc-archive-wrap *::before, .trc-archive-wrap *::after { box-sizing: border-box; }

/* ── Hide WoodMart's injected "Show sidebar" button when our archive is on the page ── */
.trc-archive-active .wd-show-side-widget,
.trc-archive-active .wd-tools-element.wd-tool-show-sidebar,
.trc-archive-active .wd-tool-show-sidebar,
.trc-archive-active .wd-shop-toolbar .wd-tool-show-sidebar,
.trc-archive-active .wd-shop-tools .wd-tool-show-sidebar,
.trc-archive-active .shop-toolbar-show-sidebar-btn,
.trc-archive-active .wd-show-sidebar-btn { display: none !important; }

/* ── Overlay ── */
.trc-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.trc-sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ── Header (compact) ── */
.trc-archive-header { padding-top: 20px; padding-bottom: 18px; }
.trc-breadcrumbs { font-family: "FiraGO","Fira Sans",sans-serif; font-size: 13px; color: #767676; margin-bottom: 12px; }
.trc-breadcrumbs a { color: #767676; text-decoration: none; }
.trc-breadcrumbs span { color: #333; font-weight: 600; }
.trc-page-title { font-family: "Bebas",Sans-serif; font-size: 48px; font-weight: 900; color: #111; margin: 0 0 14px 0; letter-spacing: -0.6px; line-height: 1; }

/* ── Top Bar ── */
.trc-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0 0; border-top: 1px solid #E1E1E1; width: 100%; }
.trc-results-count { color: #767676; font: 14px "Open Sans",Arial,sans-serif; }
.trc-view-controls { display: flex; align-items: center; gap: 18px; }

/* Filter toggle - HIDDEN on desktop */
.trc-filter-toggle { display: none; }

.trc-desktop-controls { display: flex; align-items: center; gap: 18px; }
.trc-view-icons { display: flex; gap: 6px; align-items: center; }
.trc-view-icons svg { width: 22px; height: 22px; fill: #BDBDBD; cursor: pointer; transition: fill 0.2s; }
.trc-view-icons svg:hover { fill: #767676; }
.trc-view-icons svg.active { fill: #333; }
.trc-view-icons-mobile { display: none; }

.trc-ordering select {
    padding: 7px 32px 7px 12px; border: 1px solid #EBEBEB; border-radius: 4px;
    color: #767676; font: 14px "Open Sans",Arial,sans-serif; appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="%23767676" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 10px center #fff;
    outline: none; cursor: pointer;
}

/* ── Main ── */
.trc-main-section { display: flex; flex-wrap: nowrap; gap: 36px; padding-bottom: 30px; margin-bottom: 50px; }

/* ── Sidebar ── */
.trc-sidebar { width: calc(25% - 18px); flex-shrink: 0; transition: left 0.3s ease; }
.trc-sidebar-inner { background: #000; padding: 26px; border-radius: 8px; }
.trc-close-sidebar { display: none; }
.trc-shop-content { width: calc(75% - 18px); position: relative; min-height: 400px; }

/* ── Widgets ── */
.trc-widget { margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.trc-widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
h5.trc-widget-title { color: #fff; font-family: "Bebas",Sans-serif; font-size: 20px; margin: 0 0 16px 0; font-weight: 400; letter-spacing: 0.5px; }

/* ── Category list ── */
ul.trc-category-list { list-style: none; padding: 0; margin: 0; }
ul.trc-category-list li { margin-bottom: 9px; }
ul.trc-category-list li a { color: rgba(255,255,255,0.55); font-size: 14px; transition: color 0.2s; text-decoration: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
ul.trc-category-list li a:hover { color: #fff; }
ul.trc-category-list li.active-category a { color: #C62D3C !important; font-weight: 700; }
.trc-cat-count { color: rgba(255,255,255,0.3); font-size: 12px; flex-shrink: 0; }
ul.trc-category-list li.active-category .trc-cat-count { color: rgba(198,45,60,0.7); }

/* Back button + parent header in level-2 view */
.trc-cat-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer; margin-bottom: 14px;
    transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.trc-cat-back:hover { color: #fff; }
.trc-cat-back svg { stroke: currentColor; }

.trc-widget-title.trc-cat-parent { display: block; }
.trc-widget-title.trc-cat-parent a { color: #fff; text-decoration: none; transition: color 0.2s; }
.trc-widget-title.trc-cat-parent a:hover { color: #C62D3C; }
.trc-widget-title.trc-cat-parent.active a { color: #C62D3C; }

ul.trc-category-children { padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 12px; padding-top: 14px; }

/* ── Filter list (sale checkbox) ── */
ul.trc-filter-list { list-style: none; padding: 0; margin: 0; }
ul.trc-filter-list li { margin-bottom: 10px; }
ul.trc-filter-list li a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,0.55); font-size: 14px; cursor: pointer; }
ul.trc-filter-list li a:hover { color: #fff; }
.trc-checkbox { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; font-size: 12px; color: #C62D3C; flex-shrink: 0; background: transparent; }
.trc-sale-toggle.active .trc-checkbox { background: #C62D3C; color: #fff; border-color: #C62D3C; }

/* ── Brands 5-col ── */
.trc-brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.trc-brand-card {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 1/1; background: #fff; border-radius: 5px;
    overflow: hidden; border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none; cursor: pointer; padding: 6px;
}
.trc-brand-card:hover { border-color: rgba(198,45,60,0.5); transform: scale(1.05); }
.trc-brand-card.active { border-color: #C62D3C; box-shadow: 0 0 0 1px #C62D3C; }
.trc-brand-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trc-brand-letter { font-family: "Bebas",Sans-serif; font-size: 14px; color: #111; font-weight: 700; line-height: 1; }
.trc-no-brands { color: rgba(255,255,255,0.4); font-size: 12px; margin: 0; font-style: italic; }

/* ── Price Slider ── */
.trc-price-slider { padding-top: 2px; }
.trc-price-track { position: relative; width: 100%; height: 28px; display: flex; align-items: center; margin-bottom: 12px; }
.trc-price-track-bg { position: absolute; top: 50%; left: 0; width: 100%; height: 4px; transform: translateY(-50%); background: rgba(255,255,255,0.12); border-radius: 2px; }
.trc-price-track-fill { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); background: #C62D3C; border-radius: 2px; z-index: 1; pointer-events: none; }
.trc-range-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.trc-range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 8px; height: 22px; background: #fff; border: none; border-radius: 3px; cursor: pointer; pointer-events: all; box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.1); position: relative; z-index: 3; }
.trc-range-input::-webkit-slider-thumb:hover { background: #C62D3C; }
.trc-range-input::-webkit-slider-thumb:active { background: #C62D3C; box-shadow: 0 0 0 4px rgba(198,45,60,0.2), 0 1px 3px rgba(0,0,0,0.4); }
.trc-range-input::-webkit-slider-runnable-track { width: 100%; height: 28px; background: transparent; border: none; }
.trc-range-input::-moz-range-thumb { width: 8px; height: 22px; background: #fff; border: none; border-radius: 3px; cursor: pointer; pointer-events: all; box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.1); }
.trc-range-input::-moz-range-thumb:hover { background: #C62D3C; }
.trc-range-input::-moz-range-track { width: 100%; height: 28px; background: transparent; border: none; }

.trc-price-values { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trc-price-val { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: "Open Sans",sans-serif; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 4px; min-width: 60px; text-align: center; }
.trc-price-val .woocommerce-Price-amount { color: #fff; }
.trc-price-val .woocommerce-Price-currencySymbol { color: #fff; }
.trc-price-sep { color: rgba(255,255,255,0.2); font-size: 13px; }

/* ── Active Filters ── */
.trc-active-filters { display: flex; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.trc-active-filter-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; font-family: "Open Sans",sans-serif; cursor: pointer; text-decoration: none; }
.trc-active-filter-item::before { content: "\2715"; font-size: 12px; color: #767676; }

/* ── Loading – smoother ── */
.trc-loading {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.6); z-index: 10; pointer-events: none;
    opacity: 0; transition: opacity 0.2s ease;
}
.trc-loading.active { opacity: 1; }
.trc-spinner { width: 36px; height: 36px; border: 3px solid #E1E1E1; border-top-color: #C62D3C; border-radius: 50%; animation: trc-spin 0.7s linear infinite; }
@keyframes trc-spin { to { transform: rotate(360deg); } }

/* ── Grid (works with or without WC `.products` class) ── */
.trc-products-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #E1E1E1; border-left: 1px solid #E1E1E1; margin: 0; padding: 0; list-style: none; transition: opacity 0.2s ease; }
.trc-products-grid.trc-fading { opacity: 0.4; }
.trc-products-grid.products { grid-template-columns: repeat(4,1fr) !important; }
.trc-products-grid.products::before, .trc-products-grid.products::after { display: none !important; }
.trc-products-grid.trc-cols-1 { grid-template-columns: 1fr !important; }
.trc-products-grid.trc-cols-2 { grid-template-columns: repeat(2,1fr) !important; }
.trc-products-grid.trc-cols-3 { grid-template-columns: repeat(3,1fr) !important; }
.trc-products-grid.trc-cols-4 { grid-template-columns: repeat(4,1fr) !important; }

.trc-list-view .trc-product-card,
.trc-list-view .trc-product-wrapper { flex-direction: row !important; gap: 20px; padding: 20px !important; }
.trc-list-view .trc-product-image-wrap { width: 180px; min-width: 180px; aspect-ratio: 1/1; }
.trc-list-view .trc-product-bottom { padding-top: 0; justify-content: center; }

/* ── WC Product Card ── */
.trc-product-card.product {
    width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 15px 15px 25px 15px !important;
    background: #fff; position: relative;
    border-right: 1px solid #E1E1E1; border-bottom: 1px solid #E1E1E1;
    display: flex !important; flex-direction: column;
    float: none !important; clear: none !important;
    list-style: none;
}
.trc-product-card::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: #C62D3C; transition: width 0.3s ease; z-index: 2; }
.trc-product-card:hover::after { width: 100%; }

.trc-product-image-wrap { position: relative; width: 100%; aspect-ratio: 1/1; }

/* WC sale flash */
.trc-product-image-wrap .onsale {
    position: absolute; top: 0; left: 0; background: #C62D3C !important; color: #fff !important;
    font-family: "Open Sans",Arial,sans-serif !important; font-size: 12px !important;
    padding: 5px 10px !important; line-height: 1 !important; border-radius: 999px !important;
    z-index: 2; min-height: auto !important; min-width: auto !important;
    font-weight: 600 !important;
}

.trc-product-image-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.trc-product-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.trc-product-bottom { width: 100%; padding-top: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.trc-product-title { margin: 0 0 5px 0; line-height: 1; }
.trc-product-title a { font-family: "Bebas",Sans-serif; font-size: 18px; font-weight: 400; color: #333; text-decoration: none; display: block; }
.trc-product-title a:hover { color: #C62D3C; }

.trc-product-card .star-rating { font-size: 12px; margin: 4px 0; color: #C62D3C; }

/* ── WC Price styles ── */
.trc-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; padding-top: 6px; }
.trc-price del { text-decoration: line-through; color: #BBB; opacity: 1; }
.trc-price del .woocommerce-Price-amount { font-family: "Bebas",Sans-serif; font-size: 13.5px; color: #BBB; }
.trc-price ins { text-decoration: none; background: transparent; }
.trc-price ins .woocommerce-Price-amount { font-family: "Bebas",Sans-serif; font-size: 16px; color: #C62D3C; }
.trc-price > .woocommerce-Price-amount { font-family: "Bebas",Sans-serif; font-size: 16px; color: #C62D3C; }

/* ── Transport price styles (non-WC HTML) ── */
.trc-price del { text-decoration: line-through; font-family: "Bebas",Sans-serif; font-size: 13.5px; color: #BBB; }
.trc-price ins { text-decoration: none; font-family: "Bebas",Sans-serif; font-size: 16px; color: #C62D3C; background: transparent; }
.trc-current-price { font-family: "Bebas",Sans-serif; font-size: 16px; color: #C62D3C; }

.trc-stock-out { display: inline-block; margin-top: 4px; font-size: 12px; color: #999; font-weight: 600; }

/* ── Transport product card (non-WC) ── */
.trc-product-wrapper {
    width: 100%; background: #fff; padding: 15px 15px 25px 15px; position: relative;
    border-right: 1px solid #E1E1E1; border-bottom: 1px solid #E1E1E1;
    display: flex; flex-direction: column;
}
.trc-product-wrapper::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: #C62D3C; transition: width 0.3s ease; z-index: 2; }
.trc-product-wrapper:hover::after { width: 100%; }

.trc-onsale {
    position: absolute; top: 0; left: 0; background: #C62D3C; color: #fff;
    font-family: "Open Sans",Arial,sans-serif; font-size: 12px;
    padding: 5px 10px; line-height: 1; border-radius: 999px; z-index: 2; font-weight: 600;
}
.trc-brand-logo { position: absolute; top: -10px; right: -10px; width: 60px; height: 60px; z-index: 2; }
.trc-brand-logo img { width: auto; height: 60px; object-fit: contain; }
.trc-placeholder-svg { width: 100%; height: 100%; }
.trc-detail-btn {
    display: none; background-color: #C62D3C; color: #fff !important;
    font-family: "Open Sans",sans-serif; font-size: 13px; font-weight: 600;
    text-align: center; padding: 10px 0; border-radius: 4px;
    margin-top: 15px; transition: background-color 0.2s; text-decoration: none;
}
.trc-detail-btn:hover { background-color: #a52330; color: #fff !important; }

/* ── Smart cart button (WC – with vertical centering) ── */
.trc-cart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #C62D3C;
    color: #fff !important;
    font-family: "Open Sans",sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    min-height: 42px;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.2s;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}
.trc-cart-btn:hover { background: #a52330; color: #fff !important; }
.trc-cart-btn.loading { opacity: 0.7; pointer-events: none; }
.trc-cart-btn.loading::after { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; margin-left: 8px; vertical-align: middle; animation: trc-spin 0.6s linear infinite; }
.trc-cart-btn.trc-in-cart { background: #8a1f29; }
.trc-cart-btn.trc-in-cart:hover { background: #6e1820; }
.trc-cart-btn.trc-at-max { background: #4a4a4a !important; cursor: not-allowed; opacity: 0.85; }
.trc-cart-btn.trc-at-max:hover { background: #4a4a4a !important; }
.trc-cart-btn.trc-out-of-stock { background: #999 !important; cursor: not-allowed; }
.trc-cart-btn.trc-out-of-stock:hover { background: #999 !important; }

.trc-product-card .added_to_cart { display: none !important; }
.trc-cart-btn.added::after { content: '\2713'; margin-left: 6px; font-weight: bold; }

/* ── WoodMart wishlist hover icons ── */
.trc-product-image-wrap .wd-wishlist-btn { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255,255,255,0.95); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: all 0.2s; }
.trc-product-image-wrap .wd-wishlist-btn:hover { background: #C62D3C; }
.trc-product-image-wrap .wd-wishlist-btn:hover a { color: #fff; }
.trc-product-image-wrap .wd-wishlist-btn a { color: #333; font-size: 16px; }

/* ── Empty State ── */
.trc-empty-state {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center; gap: 14px;
    background: #fafafa; border: 1px dashed #E1E1E1;
}
.trc-empty-icon { color: #C62D3C; opacity: 0.7; }
.trc-empty-icon svg { width: 90px; height: 90px; }
.trc-empty-title { font-family: "Bebas",Sans-serif; font-size: 28px; color: #222; margin: 0; font-weight: 400; }
.trc-empty-text { color: #767676; font-size: 14px; margin: 0; max-width: 360px; }
.trc-empty-clear-btn {
    display: inline-block; margin-top: 10px;
    background: #C62D3C; color: #fff !important;
    font-family: "Open Sans",sans-serif; font-size: 13px; font-weight: 600;
    padding: 12px 28px; border-radius: 4px; text-decoration: none;
    transition: background 0.2s;
}
.trc-empty-clear-btn:hover { background: #a52330; }

/* ── Pagination ── */
.trc-pagination { margin-top: 30px; text-align: center; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.trc-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #E1E1E1; border-radius: 4px; color: #767676; font: 14px "Open Sans",sans-serif; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.trc-page-link:hover { border-color: #C62D3C; color: #C62D3C; }
.trc-page-link.current { background: #C62D3C; border-color: #C62D3C; color: #fff; pointer-events: none; }
.trc-ellipsis { border: none; pointer-events: none; color: #999; min-width: 24px; padding: 0; }

/* ── Tablet (≤ 1200px) ── */
@media (max-width: 1200px) {
    .trc-sidebar { width: calc(28% - 18px); }
    .trc-shop-content { width: calc(72% - 18px); }
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .trc-archive-wrap { padding: 0 20px; }
    .trc-main-section { gap: 25px; }
    .trc-sidebar { width: calc(32% - 12px); }
    .trc-shop-content { width: calc(68% - 12px); }
    .trc-sidebar-inner { padding: 22px; }
    .trc-products-grid.products,
    .trc-products-grid,
    .trc-products-grid.trc-cols-4 { grid-template-columns: repeat(3, 1fr) !important; }
    .trc-page-title { font-size: 38px; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .trc-archive-wrap { padding: 0; }
    .trc-archive-header { padding: 16px 15px 12px 15px; }
    .trc-page-title { font-size: 30px; margin-bottom: 12px; }

    /* Mobile filter button - prominent button style */
    .trc-filter-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: #000;
        color: #fff;
        border: none;
        padding: 9px 16px;
        border-radius: 6px;
        font: 600 13px "Open Sans",sans-serif;
        cursor: pointer;
        transition: background 0.2s;
    }
    .trc-filter-toggle:hover, .trc-filter-toggle:focus { background: #C62D3C; }
    .trc-filter-toggle svg { stroke: currentColor; }

    /* Show mobile layout switcher, hide desktop one */
    .trc-view-icons-desktop { display: none; }
    .trc-view-icons-mobile { display: flex; }

    .trc-sidebar {
        position: fixed; top: 0; left: -100%; width: 85%; max-width: 340px;
        height: 100vh; height: 100dvh;
        background: #000; z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 0; margin: 0; box-shadow: 2px 0 20px rgba(0,0,0,0.4);
    }
    .trc-sidebar.active { left: 0; }
    .trc-sidebar-inner { background: #000; padding: 24px 18px; border-radius: 0; min-height: 100%; }
    .trc-close-sidebar { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-bottom: 24px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); cursor: pointer; }
    .trc-close-sidebar svg { fill: rgba(255,255,255,0.7); }
    .trc-shop-content { width: 100%; }

    .trc-top-bar { flex-direction: column; align-items: flex-start; gap: 10px; border-top: none; padding-top: 0; }
    .trc-results-count { width: 100%; margin-bottom: 2px; font-size: 13px; }
    .trc-view-controls { width: 100%; justify-content: space-between; border-top: 1px solid #E1E1E1; border-bottom: 1px solid #E1E1E1; padding: 10px 0; }
    .trc-desktop-controls { display: flex; align-items: center; gap: 14px; }
    .trc-ordering select { padding: 6px 28px 6px 8px; font-size: 13px; border: none; background-color: transparent; }

    .trc-main-section { margin-bottom: 30px; padding: 0; gap: 0; }
    .trc-active-filters { padding: 0 15px; }

    .trc-products-grid.products,
    .trc-products-grid,
    .trc-products-grid.trc-cols-2,
    .trc-products-grid.trc-cols-3,
    .trc-products-grid.trc-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .trc-products-grid.trc-cols-1 { grid-template-columns: 1fr !important; }

    .trc-list-view .trc-product-card,
    .trc-list-view .trc-product-wrapper { flex-direction: column !important; }
    .trc-list-view .trc-product-image-wrap { width: 100%; min-width: unset; }
    .trc-product-card.product { padding: 10px !important; }
    .trc-product-title a { font-size: 15px; }
    .trc-price ins .woocommerce-Price-amount,
    .trc-price > .woocommerce-Price-amount,
    .trc-price ins,
    .trc-price .trc-current-price { font-size: 14px; }
    .trc-product-image-wrap .onsale { font-size: 11px !important; padding: 4px 8px !important; }
    .trc-pagination { padding: 0 15px; }

    .trc-brand-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
    .trc-brand-card { padding: 5px; border-radius: 4px; }
    .trc-widget { margin-bottom: 22px; padding-bottom: 22px; }
    h5.trc-widget-title { font-size: 18px; margin-bottom: 14px; }

    .trc-empty-state { padding: 40px 20px; }
    .trc-empty-icon svg { width: 70px; height: 70px; }
    .trc-empty-title { font-size: 24px; }

    /* Transport card mobile */
    .trc-detail-btn { display: block; }
    .trc-brand-logo { width: 36px; height: 36px; top: -5px; right: -5px; }
    .trc-brand-logo img { height: 36px; }
    .trc-product-wrapper { padding: 10px; }
}

/* ── Small phone (≤ 480px) ── */
@media (max-width: 480px) {
    .trc-page-title { font-size: 26px; }
    .trc-archive-header { padding: 14px 12px 10px 12px; }
    .trc-product-card.product { padding: 8px !important; }
    .trc-product-title a { font-size: 14px; }
    .trc-price ins .woocommerce-Price-amount,
    .trc-price > .woocommerce-Price-amount,
    .trc-price ins,
    .trc-price .trc-current-price { font-size: 13px; }
    .trc-price del .woocommerce-Price-amount,
    .trc-price del { font-size: 12px; }
    .trc-cart-btn { font-size: 12px; padding: 10px; min-height: 38px; margin-top: 10px; }
    .trc-active-filters { padding: 0 12px; gap: 12px; }
    .trc-active-filter-item { font-size: 12px; }
    .trc-pagination { padding: 0 12px; }
    .trc-page-link { min-width: 34px; height: 34px; font-size: 13px; }
    .trc-brand-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .trc-brand-card { padding: 4px; }
    .trc-price-val { font-size: 12px; padding: 5px 8px; min-width: 50px; }
    .trc-sidebar-inner { padding: 20px 14px; }

    /* Transport card small phone */
    .trc-product-wrapper { padding: 8px; }
    .trc-detail-btn { font-size: 12px; padding: 8px 0; margin-top: 10px; }
}
