/* Shared product-category navigation for archive-product and taxonomy-product_cat. */
.salecnc-main-container {
   display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 35px;
    background: #fff;
    box-sizing: border-box;
}

.salecnc-main-category-bar {
    width: 100%;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.salecnc-main-category-row {
    display: flex;
    max-width: 1600px;
    margin: 20px auto auto;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: thin;
}

.salecnc-main-category-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    color: #263548;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.salecnc-main-category-item:hover { background: #fff3e5; color: #e86800; }
.salecnc-main-category-item.is-active { background: #effbdc; color: #376d10; }
.salecnc-main-category-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.salecnc-main-category-image {
    display: flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ebeff3;
    border-radius: 50%;
    background: #fff;
}
.salecnc-main-category-image img { width: 100%; height: 100%; object-fit: contain; }
.salecnc-main-category-image svg { width: 15px; height: 15px; fill: none; stroke: #7d8997; stroke-width: 1.5; }

.salecnc-category-browser {
    margin: 0 0 24px;
    border: 1px solid #edf0f3;
    background: #fff;
    overflow: hidden;
}

.salecnc-child-category-row { display: flex; gap: 16px; overflow-x: auto; padding: 15px 18px 13px; scrollbar-width: thin; }
.salecnc-child-category-item { display: flex; flex: 0 0 92px; flex-direction: column; align-items: center; gap: 7px; color: #4a596b; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; }
.salecnc-child-category-image { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #ebeff3; border-radius: 50%; background: #fff; transition: border-color .18s ease, transform .18s ease; }
.salecnc-child-category-image img { width: 100%; height: 100%; object-fit: contain; }
.salecnc-child-category-image svg { width: 27px; height: 27px; fill: none; stroke: #7d8997; stroke-width: 1.5; }
.salecnc-child-category-item:hover .salecnc-child-category-image, .salecnc-child-category-item.is-active .salecnc-child-category-image { border-color: #ff8200; transform: translateY(-2px); }
.salecnc-child-category-item:hover, .salecnc-child-category-item.is-active { color: #dc6500; }

@media (max-width: 767px) {
    .salecnc-main-container { padding: 14px 8px !important; }
    .salecnc-main-category-row { padding: 8px; }
    .salecnc-main-category-item { min-height: 35px; padding: 0 10px; font-size: 12px; }
    .salecnc-category-browser { margin-bottom: 18px; }
    .salecnc-child-category-row { gap: 10px; padding: 12px 10px; }
    .salecnc-child-category-item { flex-basis: 76px; font-size: 11px; }
    .salecnc-child-category-image { width: 53px; height: 53px; }
}

@media (max-width: 1100px) {
    .salecnc-main-container { flex-direction: column; }
}

.salecnc-infinite-sentinel {
    min-height: 48px;
    padding: 16px;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.salecnc-infinite-sentinel.is-loading::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #d9e0e7;
    border-top-color: #ff8200;
    border-radius: 50%;
    content: '';
    vertical-align: -2px;
    animation: salecnc-infinite-spin .7s linear infinite;
}

@keyframes salecnc-infinite-spin { to { transform: rotate(360deg); } }
