﻿/* ==============================
   Product Channel Page
   Main Color: #041b45
   Secondary Color: #dfae3c
============================== */

.product-channel-page {
    width: 100%;
    background: #f6f8fb;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.product-channel-content {
    padding: 64px 0 84px;
}

/* Page title */

.product-channel-title {
    margin-bottom: 32px;
    text-align: center;
}

.product-channel-title h1 {
    margin: 0;
    padding-bottom: 18px;
    position: relative;
    color: #041b45;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
}

.product-channel-title h1::after {
    content: "";
    width: 72px;
    height: 4px;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -36px;
    border-radius: 4px;
    background: #dfae3c;
}

.product-channel-title p {
    max-width: 760px;
    margin: 14px auto 0;
    color: #697386;
    font-size: 15px;
    line-height: 28px;
}

/* Product search */

.product-channel-search {
    width: 760px;
    margin: 0 auto 46px;
    padding: 7px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(4, 27, 69, .16);
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(4, 27, 69, .09);
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.product-channel-search:focus-within {
    border-color: #dfae3c;
    box-shadow: 0 16px 38px rgba(4, 27, 69, .13);
    transform: translateY(-2px);
}

.product-channel-search input {
    flex: 1;
    height: 50px;
    padding: 0 22px;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    color: #041b45;
    font-size: 15px;
}

.product-channel-search input::placeholder {
    color: #9299a6;
}

.product-channel-search button {
    width: 54px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #041b45;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(4, 27, 69, .20);
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.product-channel-search button:hover {
    background: #dfae3c;
    color: #041b45;
    transform: rotate(8deg);
    box-shadow: 0 10px 24px rgba(223, 174, 60, .28);
}

/* Category groups */

.product-category-groups {
    display: grid;
    gap: 30px;
}

.product-category-group {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(4, 27, 69, .11);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(4, 27, 69, .08);
}

/* Parent category */

.product-category-group-head {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            105deg,
            #041b45 0%,
            #0a2d67 72%,
            #123b76 100%
        );
}

.product-category-group-head::after {
    content: "";
    width: 230px;
    height: 230px;
    position: absolute;
    right: -75px;
    top: -115px;
    border-radius: 50%;
    background: rgba(223, 174, 60, .13);
    pointer-events: none;
}

.product-category-group-link {
    min-height: 104px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    text-decoration: none;
}

.product-category-group-img {
    width: 68px;
    height: 68px;
    margin-right: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.product-category-group-img img {
    display: block;
    max-width: 86%;
    max-height: 86%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.product-category-group-info {
    min-width: 0;
}

.product-category-group-info em {
    display: block;
    margin-bottom: 5px;
    color: #dfae3c;
    font-size: 12px;
    line-height: 18px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-category-group-info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 25px;
    line-height: 34px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-category-group-more {
    margin-left: auto;
    padding: 0 17px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    line-height: 40px;
    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.product-category-group-more i {
    color: #dfae3c;
    transition: transform .25s ease;
}

.product-category-group-link:hover .product-category-group-img img {
    transform: scale(1.07);
}

.product-category-group-link:hover .product-category-group-more {
    background: #dfae3c;
    border-color: #dfae3c;
    color: #041b45;
    transform: translateX(-3px);
}

.product-category-group-link:hover .product-category-group-more i {
    color: #041b45;
    transform: translateX(4px);
}

/* Child categories */

.product-subcategory-list {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-subcategory-item {
    min-width: 0;
    height: 96px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background: #f8f9fb;
    border: 1px solid #e6e9ef;
    border-radius: 13px;
    text-decoration: none;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.product-subcategory-item::before {
    content: "";
    width: 4px;
    height: 0;
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 0 4px 4px 0;
    background: #dfae3c;
    transform: translateY(-50%);
    transition: height .28s ease;
}

.product-subcategory-img {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
}

.product-subcategory-img img {
    display: block;
    max-width: 86%;
    max-height: 86%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.product-subcategory-info {
    min-width: 0;
    padding: 0 25px 0 13px;
}

.product-subcategory-info strong {
    display: block;
    overflow: hidden;
    color: #041b45;
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .25s ease;
}

.product-subcategory-info em {
    display: block;
    margin-top: 5px;
    color: #89919e;
    font-size: 12px;
    line-height: 17px;
    font-style: normal;
    transition: color .25s ease;
}

.product-subcategory-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    color: #a2a9b4;
    font-size: 17px;
    transform: translateY(-50%);
    transition:
        color .25s ease,
        transform .25s ease;
}

.product-subcategory-item:hover {
    background: #fffaf0;
    border-color: rgba(223, 174, 60, .75);
    box-shadow: 0 12px 26px rgba(4, 27, 69, .12);
    transform: translateY(-4px);
}

.product-subcategory-item:hover::before {
    height: 48px;
}

.product-subcategory-item:hover .product-subcategory-img img {
    transform: scale(1.07);
}

.product-subcategory-item:hover .product-subcategory-info strong {
    color: #dfae3c;
}

.product-subcategory-item:hover .product-subcategory-info em {
    color: #041b45;
}

.product-subcategory-item:hover .product-subcategory-arrow {
    color: #dfae3c;
    transform: translate(4px, -50%);
}

/* Empty child category state */

.product-subcategory-empty {
    padding: 24px;
}

.product-subcategory-empty a {
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    background: #f8f9fb;
    border: 1px dashed rgba(4, 27, 69, .22);
    border-radius: 12px;
    color: #041b45;
    font-size: 14px;
    text-decoration: none;
    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.product-subcategory-empty a:hover {
    background: #fffaf0;
    border-color: #dfae3c;
    color: #dfae3c;
}

/* ==============================
   Product List Page
   Main Color: #041b45
   Secondary Color: #dfae3c
============================== */

.product-list-page {
    width: 100%;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.product-list-content {
    padding: 60px 0 80px;
}

.product-list-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

/* ==============================
   Left category navigation
============================== */

.product-list-side {
    position: sticky;
    top: 76px;
    align-self: flex-start;

    /* Limit the sidebar height to the current viewport */
    max-height: calc(100vh - 150px);
}

.product-list-category {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(4, 27, 69, .08);

    /* Internal vertical layout */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
}

.product-list-category-title {
    padding: 24px 24px;
    background: linear-gradient(135deg, #041b45 0%, #dfae3c 100%);
    color: #fff;

    /* Keep the title fixed outside the scrolling area */
    flex: 0 0 auto;
}

.product-list-category-title h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}

.product-list-category-title p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 22px;
}

/* Scroll the category menu independently */
.product-list-category-menu {
    padding: 14px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Slim category menu scrollbar */
.product-list-category-menu {
    scrollbar-width: thin;              /* Firefox */
    scrollbar-color: #041b45 transparent;
}

.product-list-category-menu::-webkit-scrollbar {
    width: 3px;
}

.product-list-category-menu::-webkit-scrollbar-track {
    background: transparent;
}

.product-list-category-menu::-webkit-scrollbar-thumb {
    background: rgba(4, 27, 69, 0.65);
    border-radius: 10px;
}

.product-list-category-menu::-webkit-scrollbar-thumb:hover {
    background: #041b45;
}
.product-cate-lv1 {
    margin-bottom: 9px;
}

.product-cate-lv1:last-child {
    margin-bottom: 0;
}

.product-cate-lv1 > a {
    display: block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 38px 0 16px;
    border-radius: 12px;
    background: #f6f7f9;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv1 > a::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 0;
    color: #8d96a6;
    font-size: 16px;
    transition: all .25s ease;
}

.product-cate-lv1.is-open > a::after {
    content: "-";
}

.product-cate-lv1 > a:hover,
.product-cate-lv1 > a.active {
    background: #041b45;
    color: #fff;
    padding-left: 22px;
}

.product-cate-lv1 > a:hover::after,
.product-cate-lv1 > a.active::after {
    color: #fff;
}

/* Level 2 categories */
.product-cate-lv2 {
    display: none;
    padding: 7px 0 3px 12px;
}

.product-cate-lv1.is-open .product-cate-lv2 {
    display: block;
}

.product-cate-lv2-item {
    margin-bottom: 5px;
}

.product-cate-lv2-item > a {
    display: block;
    min-height: 36px;
    line-height: 36px;
    padding: 0 32px 0 13px;
    border-radius: 10px;
    background: #fbfbfc;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv2-item > a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9ba4b2;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.product-cate-lv2-item > a::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 0;
    color: #9ba4b2;
}

.product-cate-lv2-item.is-open > a::after {
    content: "-";
}

.product-cate-lv2-item > a:hover,
.product-cate-lv2-item > a.active {
    color: #041b45;
    background: #fff8e8;
}

/* Level 3 categories */
.product-cate-lv3 {
    display: none;
    padding: 5px 0 3px 22px;
}

.product-cate-lv2-item.is-open .product-cate-lv3 {
    display: block;
}

.product-cate-lv3 a {
    display: block;
    color: #777;
    font-size: 13px;
    line-height: 27px;
    text-decoration: none;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv3 a:hover,
.product-cate-lv3 a.active {
    color: #dfae3c;
    padding-left: 6px;
}
/* ==============================
   Right content area
============================== */

.product-list-right {
    min-width: 0;
}

.product-list-title {
    margin-bottom: 24px;
}

    .product-list-title h1 {
        margin: 0;
        font-size: 38px;
        line-height: 1.3;
        color: #222;
        font-weight: bold;
        position: relative;
        padding-bottom: 18px;
    }

        .product-list-title h1::after {
            content: "";
            width: 70px;
            height: 4px;
            border-radius: 4px;
            background: #041b45;
            position: absolute;
            left: 0;
            bottom: 0;
        }

    .product-list-title p {
        margin: 14px 0 0;
        color: #777;
        font-size: 15px;
        line-height: 28px;
    }

/* Search box */
.product-list-search {
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 32px rgba(4, 27, 69, .08);
}

    .product-list-search input {
        flex: 1;
        height: 48px;
        border: none;
        outline: none;
        padding: 0 18px;
        box-sizing: border-box;
        color: #333;
        font-size: 15px;
        background: #f8f9fb;
        border-radius: 12px;
    }

        .product-list-search input::placeholder {
            color: #999;
        }

    .product-list-search button {
        width: 140px;
        height: 48px;
        margin-left: 12px;
        border: none;
        border-radius: 12px;
        background: #041b45;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: all .25s ease;
    }

        .product-list-search button:hover {
            background: #dfae3c;
            box-shadow: 0 10px 24px rgba(223, 174, 60, .28);
        }

/* ==============================
   Product table
============================== */

.product-table-wrap {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(4, 27, 69, .08);
}

.product-list-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

    .product-list-table thead tr {
        background: #202c34;
    }

    .product-list-table thead td {
        height: 58px;
        padding: 0 12px;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        white-space: nowrap;
    }

    .product-list-table tbody tr {
        background: #fff;
        transition: all .25s ease;
    }

        .product-list-table tbody tr:nth-child(even) {
            background: #f8f9fb;
        }

        .product-list-table tbody tr:hover {
            background: #fff8e8;
        }

    .product-list-table tbody td {
        padding: 15px 12px;
        border-bottom: 1px solid #eef1f5;
        color: #333;
        font-size: 15px;
        line-height: 24px;
        text-align: center;
        vertical-align: middle;
        word-break: break-word;
    }

    .product-list-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Image column */
.product-thumb {
    width: 70px;
    height: 58px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f5f7;
    border: 1px solid #eceff3;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
        transition: all .35s ease;
    }

.product-list-table tbody tr:hover .product-thumb img {
    transform: scale(1.08);
}

/* Part number */
.product-part-link {
    color: #222;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease;
}

    .product-part-link:hover {
        color: #dfae3c;
    }

/* PDF icon */
.product-pdf-fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff2f2;
    color: #e53935 !important;
    font-size: 22px;
    text-decoration: none;
    transition: all .25s ease;
}

    .product-pdf-fa:hover {
        background: #e53935;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(229, 57, 53, .25);
    }

.product-pdf-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #aaa;
    font-size: 14px;
}

/* Quote button */
.product-quote-btn,
.gquo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #041b45;
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(4, 27, 69, .22);
}

    .product-quote-btn:hover,
    .gquo:hover {
        background: #dfae3c;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(223, 174, 60, .3);
    }

.product-quote-hidden {
    display: none;
}

/* Table column widths */
.product-list-table .col-img {
    width: 8%;
}

.product-list-table .col-part {
    width: 18%;
}

.product-list-table .col-brand {
    width: 15%;
}

.product-list-table .col-package {
    width: 14%;
}

.product-list-table .col-datecode {
    width: 11%;
}

.product-list-table .col-stock {
    width: 10%;
}

.product-list-table .col-pdf {
    width: 10%;
}

.product-list-table .col-quote {
    width: 14%;
}

/* Empty state */
.product-list-empty {
    padding: 50px 20px;
    text-align: center;
    background: #f8f9fb;
    border: 1px solid #e5e8ee;
    border-radius: 18px;
    color: #888;
    font-size: 15px;
}

.product-quote-cell {
    position: relative;
}

.product-quote-data,
.product-quote-hidden {
    display: none;
}


/* ==============================
   RFQ Quote Modal
   Main Color: #041b45
   Secondary Color: #dfae3c
============================== */

.quote-modal-mask {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(20, 30, 50, .58);
}

.quote-modal-box {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    width: 420px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
    overflow: hidden;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

    .quote-modal-box::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 5px;
        background: #041b45;
    }

.quote-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    border-radius: 50%;
    background: #f2f3f5;
    color: #7f8794;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all .25s ease;
}

    .quote-modal-close:hover {
        background: #041b45;
        color: #fff;
    }

.quote-modal-body {
    padding: 42px 32px 32px;
}

.quote-modal-icon {
    width: 82px;
    height: 82px;
    line-height: 82px;
    border-radius: 50%;
    margin: 0 auto 24px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    box-shadow: 0 18px 40px rgba(4, 27, 69, .22);
}

.quote-modal-box.success .quote-modal-icon {
    background: #041b45;
}

.quote-modal-box.error .quote-modal-icon {
    background: #e53935;
}

.quote-modal-box.warning .quote-modal-icon {
    background: #dfae3c;
}

.quote-modal-title {
    margin: 0 0 12px;
    color: #20232a;
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
}

.quote-modal-text {
    margin: 0 auto;
    max-width: 320px;
    color: #6b6f80;
    font-size: 15px;
    line-height: 26px;
}

.quote-modal-count {
    display: none;
    margin: 22px 0 26px;
    height: 48px;
    line-height: 48px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px solid #e5e8ee;
    color: #6b6f80;
    font-size: 15px;
}

    .quote-modal-count b {
        color: #041b45;
        font-size: 22px;
        margin: 0 5px;
    }

.quote-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

    .quote-modal-actions a {
        min-width: 130px;
        height: 44px;
        line-height: 44px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
        transition: all .25s ease;
    }

.quote-modal-quote {
    background: #041b45;
    color: #fff;
    box-shadow: 0 12px 26px rgba(4, 27, 69, .25);
}

    .quote-modal-quote:hover {
        background: #dfae3c;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(223, 174, 60, .28);
    }

.quote-modal-continue {
    background: #f6f7f9;
    color: #041b45;
    border: 1px solid #e5e8ee;
}

    .quote-modal-continue:hover {
        background: #041b45;
        color: #fff;
    }

.gquo.is-loading {
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}
