/* ========================================================
   Naike Modern Sleek Sidebar Navigation & Search Component
   Ultra-Smooth Drawer Accordion & Contemporary Industrial Aesthetics
   ======================================================== */

#products-aside-wrap {
    float: left;
    width: 24%;
    max-width: 280px;
    min-width: 240px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.products-aside {
    width: 100% !important;
    float: none !important;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* --- 1. Sleek Modern Search Card --- */
.products-aside-search {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.products-aside-search .hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    height: auto;
    line-height: normal;
}

.products-aside-search .hd svg {
    width: 16px;
    height: 16px;
    color: #0066cc;
}

.products-aside-search select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    color: #334155;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    margin-bottom: 10px;
    appearance: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.products-aside-search select:focus {
    border-color: #0066cc;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.products-aside-search .search-text {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.products-aside-search .search-text:focus {
    border-color: #0066cc;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.products-aside-search .option {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.products-aside-search #search_submit {
    height: 34px;
    line-height: 34px;
    padding: 0 18px;
    background: #0066cc;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}

.products-aside-search #search_submit:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35);
}

/* --- 2. Sleek Modern Categories Card --- */
.products-aside-nav {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    line-height: normal;
}

/* Header */
.products-aside-nav .hd {
    background: linear-gradient(135deg, #07386d 0%, #0066cc 100%);
    color: #ffffff;
    height: 48px;
    line-height: 48px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.products-aside-nav .hd-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-aside-nav .hd-badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Category List */
.products-aside-nav .firstList {
    list-style: none;
    padding: 8px 6px;
    margin: 0;
}

/* Top Level Items */
.products-aside-nav .firstList > li {
    background: transparent;
    border-bottom: none;
    margin: 2px 0;
    border-radius: 8px;
    transition: background 0.18s ease;
    overflow: hidden;
}

.products-aside-nav .firstList > li > .cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.products-aside-nav .firstList > li > .cat-row:hover {
    background: #f1f5f9;
}

.products-aside-nav .firstList > li.active > .cat-row,
.products-aside-nav .firstList > li.opened > .cat-row {
    background: #eff6ff;
}

.products-aside-nav .cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.products-aside-nav .cat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.2s;
}

.products-aside-nav .firstList > li.active .cat-icon,
.products-aside-nav .firstList > li.opened .cat-icon,
.products-aside-nav .firstList > li > .cat-row:hover .cat-icon {
    color: #0066cc;
}

.products-aside-nav .cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.products-aside-nav .firstList > li.active .cat-name,
.products-aside-nav .firstList > li.opened .cat-name {
    color: #0066cc;
}

/* Modern Chevron Arrow */
.products-aside-nav .chevron-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.products-aside-nav .chevron-btn:hover {
    background: rgba(0, 102, 204, 0.12);
    color: #0066cc;
}

.products-aside-nav .chevron-svg {
    width: 14px;
    height: 14px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-aside-nav .firstList > li.opened > .cat-row .chevron-svg {
    transform: rotate(90deg);
    color: #0066cc;
}

/* Hide old un-styled icon tags */
.products-aside-nav i[class^="icon-chevron"] {
    display: none !important;
}

/* --- 3. Ultra-Smooth Drawer Accordion for Second List --- */
.products-aside-nav .secondList-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-aside-nav .firstList > li.opened > .secondList-wrap {
    grid-template-rows: 1fr;
}

.products-aside-nav .secondList-inner {
    overflow: hidden;
    padding: 0 0 6px 14px;
    margin: 0 0 4px 18px;
    border-left: 2px solid #e2e8f0;
}

.products-aside-nav .secondList {
    display: block !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-aside-nav .secondList > li {
    background: transparent;
    border: none;
    padding: 0;
    margin: 2px 0;
    border-radius: 6px;
}

.products-aside-nav .secondList > li > .sec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.products-aside-nav .secondList > li > .sec-row:hover {
    background: #f1f5f9;
    color: #0066cc;
    transform: translateX(3px);
}

.products-aside-nav .secondList > li.opened > .sec-row {
    background: #edf2f7;
    color: #0066cc;
    font-weight: 600;
}

.products-aside-nav .sec-chevron-svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
}

.products-aside-nav .secondList > li.opened > .sec-row .sec-chevron-svg {
    transform: rotate(90deg);
    color: #0066cc;
}

/* Remove old pseudo bullets */
.products-aside-nav .secondList > li:before,
.products-aside-nav .thirdList > li:before {
    display: none !important;
}

/* --- 4. Smooth Third Level Submenu --- */
.products-aside-nav .thirdList-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-aside-nav .secondList > li.opened > .thirdList-wrap {
    grid-template-rows: 1fr;
}

.products-aside-nav .thirdList-inner {
    overflow: hidden;
    padding: 2px 0 4px 10px;
    margin: 2px 0 2px 10px;
    border-left: 2px dashed #cbd5e1;
}

.products-aside-nav .thirdList {
    display: block !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-aside-nav .thirdList > li {
    position: relative;
    padding: 0;
    margin: 1px 0;
}

.products-aside-nav .thirdList > li > a {
    display: block;
    padding: 4px 8px;
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 4px;
    border-bottom: none !important;
    transition: all 0.15s ease;
}

.products-aside-nav .thirdList > li > a:hover {
    background: #e0f2fe;
    color: #0284c7;
    padding-left: 12px;
}

.products-aside-nav .thirdList > li.active > a {
    background: #0066cc;
    color: #ffffff !important;
    font-weight: 600;
}

/* Keep catalog heading and badge on one clean line. */
.products-aside-nav .hd { gap: 8px; padding-left: 12px; padding-right: 12px; }
.products-aside-nav .hd-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; font-size: 12px; letter-spacing: .4px; }
.products-aside-nav .hd-title span { white-space: nowrap; }
.products-aside-nav .hd-badge { flex: 0 0 auto; white-space: nowrap; font-size: 9px; line-height: 1.2; padding: 4px 7px; letter-spacing: .4px; }

/* Keep a closed mobile sidebar from reserving a white strip over page content. */
@media screen and (max-width:930px) {
  body.products #products-aside-wrap { width:0 !important; min-width:0 !important; right:auto !important; overflow:visible !important; background:transparent !important; }
  body.products #products-aside-wrap.show { width:100vw !important; min-width:0 !important; right:0 !important; overflow:hidden !important; background:rgba(15,23,42,.42) !important; }
}
