/* =============================================
   CUSTOM SIDEBAR
   [custom_sidebar] shortcode styles
   Thêm vào: woostify-child/single-product-custom.css
   hoặc file CSS riêng và enqueue trong functions.php
   ============================================= */

.csb-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Roboto', sans-serif;
}

/* ── Block wrapper ── */
.csb-block {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.csb-block__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f2444 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* ── Search ── */
.csb-search {
    display: flex;
    align-items: center;
    background: #f2f4f7;
    border-radius: 50px;
    padding: 8px 8px 8px 18px;
    gap: 8px;
}

.csb-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.csb-search__input::placeholder { color: #aaa; }

.csb-search__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1652a6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.csb-search__btn:hover { background: #0f3d7e; }

/* ── Category list ── */
.csb-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csb-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 50px;
    border: 1px solid #e8edf5;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: #fff;
}

.csb-cat-item:hover,
.csb-cat-item.is-active {
    background: #f0f5ff;
    border-color: #1652a6;
}

.csb-cat-item__name {
    font-size: 13.5px;
    color: #444;
    font-weight: 500;
    transition: color 0.2s ease;
}

.csb-cat-item:hover .csb-cat-item__name,
.csb-cat-item.is-active .csb-cat-item__name { color: #1652a6; }

.csb-cat-item__count {
    font-size: 13px;
    color: #888;
}

/* ── Products ── */
.csb-products {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.csb-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f4f9;
    transition: background 0.2s ease;
}

.csb-product-item:last-child { border-bottom: none; padding-bottom: 0; }
.csb-product-item:first-child { padding-top: 0; }

.csb-product-item__img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    flex-shrink: 0;
    background: #f7f9fc;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csb-product-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.csb-product-item__info { flex: 1; min-width: 0; }

/* Stars */
.csb-stars { display: flex; gap: 1px; margin-bottom: 4px; }
.csb-star { font-size: 13px; line-height: 1; }
.csb-star--full  { color: #f5a623; }
.csb-star--empty { color: #ddd; }

.csb-product-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #0f2444;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.csb-product-item:hover .csb-product-item__name { color: #1652a6; }

.csb-product-item__price { font-size: 13px; color: #1652a6; font-weight: 600; }
.csb-product-item__price .woocommerce-Price-amount { color: #1652a6; }

/* ── Sticky Sidebar ── */
aside.sp-sidebar {
    position: static;
}
@media (min-width: 1024px) {
    aside.sp-sidebar {
        position: sticky;
        top: 109px;
    }
}
