/* =========================================
   BỐ CỤC CHUNG & MÀN HÌNH PC
   ========================================= */
.ds-shop-layout-container { max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.ds-shop-page-wrapper { display: flex; flex-wrap: wrap; gap: 25px; padding: 30px 0 15px 0; }
.ds-shop-sidebar { width: 260px; flex-shrink: 0; }
.ds-shop-content { width: calc(100% - 285px); }

/* Căn chỉnh thanh Tiêu đề */
.ds-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 5px; border-bottom: 1px solid #f1f1f1; }
.ds-title-row .ds-title { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #111827; margin: 0; }
.ds-title-right { display: flex; align-items: center; gap: 15px; }

/* Giao diện Grid Lưới sản phẩm */
.ds-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.ds-shop-content ul.products::before, .ds-shop-content ul.products::after { display: none !important; }
.ds-shop-content ul.products li.product { width: 100% !important; max-width: 100% !important; margin: 0 !important; clear: none !important; }

/* CSS Phân trang mặc định */
.woocommerce-pagination { margin-top: 35px; text-align: center; width: 100%; }
.woocommerce-pagination ul.page-numbers { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0; margin: 0; list-style: none; }
.woocommerce-pagination ul.page-numbers li { border-right: 1px solid #e5e7eb; }
.woocommerce-pagination ul.page-numbers li:last-child { border-right: none; }
.woocommerce-pagination ul.page-numbers li a, .woocommerce-pagination ul.page-numbers li span { display: block; padding: 8px 14px; color: #374151; text-decoration: none; font-weight: 500; font-size: 14px; }
.woocommerce-pagination ul.page-numbers li span.current { background-color: #cc0000; color: #fff; }
.woocommerce-pagination ul.page-numbers li a:hover { background-color: #f9fafb; color: #cc0000; }

/* CSS Màu sắc mặc định cho Plugin YITH */
.yith-wcan-filters .yith-wcan-filter { margin: 0 0 20px 0; padding-top: 5px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: #cc0000; }

/* CSS Ô TÌM KIẾM TRONG WIDGET BỘ LỌC */
.ds-shop-sidebar .widget { position: relative; margin-bottom: 25px; border-bottom: 1px solid #f1f1f1; padding-bottom: 15px; }
.ds-shop-sidebar .widget:last-child { border-bottom: none; }
.ds-term-search-input {
    width: 100%; padding: 8px 12px 8px 32px !important; margin-bottom: 15px; border: 1px solid #e0e0e0;
    border-radius: 4px; font-size: 13px; color: #333; box-sizing: border-box;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat; background-position: 10px center; transition: border-color 0.3s;
}
.ds-term-search-input:focus { outline: none; border-color: #cc0000; }
.ds-shop-sidebar .widget ul { max-height: 280px; overflow-y: auto; padding-right: 5px; }
.ds-shop-sidebar .widget ul::-webkit-scrollbar { width: 4px; }
.ds-shop-sidebar .widget ul::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }