﻿/* =========================================================
   Product Category Page
   Primary Color: #309a63
   Secondary Color: #23784c
========================================================= */

.product-catalog-section {
    width: 100%;
}

.product-menu-box {
    width: 1360px;
    display: flex;
    align-items: flex-start;
    gap: 34px;
    padding: 42px 0 70px;
    overflow: visible;
}

.product-menu-box-left,
.product-menu-box-right {
    float: none !important;
}


/* =========================================================
   Left Category Menu
========================================================= */

.product-menu-box-left {
    position: sticky;
    top: 100px;
    z-index: 5;
    width: 320px;
    flex-shrink: 0;
    padding: 22px 18px;
    border: 1px solid #d8e8df;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(48, 154, 99, 0.08);
}

.product-menu-box-left h2 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    color: #17251e;
    font-size: 1.35rem;
    line-height: 34px;
    font-weight: 700;
}

.product-menu-box-left h2::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 3px;
    height: 17px;
    border-radius: 3px;
    background: #309a63;
}

.product-menu-intro {
    margin: 0 0 18px;
    color: #66756d;
    font-size: 0.86rem;
    line-height: 1.7;
}


/* =========================================================
   Left Search Box
========================================================= */

.product-menu-box-left-search {
    width: 100%;
    height: 42px;
    display: flex;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #d8e8df;
    border-radius: 24px;
    background: #f6fbf8;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.product-menu-box-left-search:focus-within {
    border-color: #309a63;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(48, 154, 99, 0.12);
}

.product-menu-box-left-search input {
    width: calc(100% - 44px);
    height: 42px;
    padding: 0 15px;
    border: none;
    outline: none;
    background: transparent;
    color: #333333;
    font-size: 0.92rem;
    line-height: 42px;
}

.product-menu-box-left-search input::placeholder {
    color: #98a59e;
}

.product-menu-box-left-search button {
    width: 44px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    background: linear-gradient(
        135deg,
        #23784c 0%,
        #309a63 100%
    );
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.product-menu-box-left-search button:hover {
    background: #185d3a;
    color: #ffffff;
}


/* =========================================================
   Left Category List
========================================================= */

.product-menu-box-left ul {
    width: 100%;
    max-height: 640px;
    margin: 0;
    padding: 0 5px 0 0;
    overflow-y: auto;
}

.product-menu-box-left ul li {
    width: 100%;
    margin-bottom: 7px;
}

.product-menu-box-left ul li:last-child {
    margin-bottom: 0;
}

.product-menu-box-left ul li a {
    position: relative;
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px 8px 20px;
    overflow: hidden;
    border: 1px solid #e2ece6;
    border-radius: 9px;
    background: #f6fbf8;
    color: #333333;
    font-size: 0.93rem;
    line-height: 22px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-menu-box-left ul li a::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #309a63;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.product-menu-box-left ul li a:hover,
.product-menu-box-left ul li a.active {
    border-color: transparent;
    background: linear-gradient(
        135deg,
        #23784c 0%,
        #309a63 100%
    );
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(48, 154, 99, 0.20);
    transform: translateX(3px);
}

.product-menu-box-left ul li a:hover::before,
.product-menu-box-left ul li a.active::before {
    background: #ffffff;
    transform: scale(1.2);
}


/* =========================================================
   Left Menu Scrollbar
========================================================= */

.product-menu-box-left ul::-webkit-scrollbar {
    width: 5px;
}

.product-menu-box-left ul::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #edf8f2;
}

.product-menu-box-left ul::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #8fc9a8;
}

.product-menu-box-left ul::-webkit-scrollbar-thumb:hover {
    background: #309a63;
}


/* =========================================================
   Right Category Content
========================================================= */

.product-menu-box-right {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   Primary Category Section
========================================================= */

.product-category-section,
.product-menu-box-right dl {
    width: 100%;
    margin: 0 0 40px;
    padding: 0 0 30px;
    overflow: hidden;
    border: 1px solid #d8e8df;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(48, 154, 99, 0.06);
    scroll-margin-top: 115px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-category-section:hover,
.product-menu-box-right dl:hover {
    border-color: rgba(48, 154, 99, 0.45);
    box-shadow: 0 18px 42px rgba(48, 154, 99, 0.12);
}


/* =========================================================
   Primary Category Title
========================================================= */

.product-category-title,
.product-menu-box-right dl dt {
    width: 100%;
    padding: 20px 26px 15px;
    border-bottom: 1px solid #d8e8df;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f3faf6 100%
    );
}

.product-category-title a,
.product-menu-box-right dl dt a {
    position: relative;
    display: inline-block;
    padding-left: 16px;
    color: #17251e;
    font-size: 1.45rem;
    line-height: 34px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.product-category-title a::before,
.product-menu-box-right dl dt a::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #309a63;
}

.product-category-title a:hover,
.product-menu-box-right dl dt a:hover {
    color: #309a63;
}


/* =========================================================
   Primary Category Content
========================================================= */

.product-category-content,
.product-menu-box-right dl dd {
    width: 100%;
    margin: 0;
    padding: 22px 26px 0;
}


/* =========================================================
   Simple Secondary Categories
========================================================= */

.product-menu-box-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 26px;
}

.product-menu-box-simple a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #d8e8df;
    border-radius: 8px;
    background: #f6fbf8;
    color: #24372e;
    font-size: 0.92rem;
    line-height: 22px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-menu-box-simple a:hover {
    border-color: #309a63;
    background: #309a63;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(48, 154, 99, 0.18);
    transform: translateY(-2px);
}


/* =========================================================
   Grouped Secondary Categories
========================================================= */

.product-menu-box-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 44px;
    row-gap: 26px;
}

.product-menu-box-item {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   Secondary Group Title
========================================================= */

.product-menu-box-item .group-title,
.product-menu-box-item > a {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding-left: 14px;
    color: #17251e;
    font-size: 1.05rem;
    line-height: 27px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.product-menu-box-item .group-title::before,
.product-menu-box-item > a::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #309a63;
    transition: transform 0.25s ease;
}

.product-menu-box-item .group-title:hover,
.product-menu-box-item > a:hover {
    color: #309a63;
}

.product-menu-box-item .group-title:hover::before,
.product-menu-box-item > a:hover::before {
    transform: scale(1.25);
}


/* =========================================================
   Tertiary Categories
========================================================= */

.product-menu-box-item ul {
    width: 100%;
    margin: 0;
    padding: 0;
}

.product-menu-box-item ul li {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
    padding-left: 12px;
}

.product-menu-box-item ul li:last-child {
    margin-bottom: 0;
}

.product-menu-box-item ul li::before {
    content: "-";
    position: absolute;
    top: 0;
    left: 0;
    color: #8aad98;
}

.product-menu-box-item ul li a {
    display: block;
    color: #51645a;
    font-size: 0.9rem;
    line-height: 23px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.product-menu-box-item ul li a:hover {
    padding-left: 4px;
    color: #309a63;
}


/* =========================================================
   Quaternary Categories
========================================================= */

.product-menu-box-item ul li ul.sub-list,
.product-menu-box-item ul li ul {
    margin-top: 5px;
    padding-left: 12px;
}

.product-menu-box-item ul li ul.sub-list li,
.product-menu-box-item ul li ul li {
    margin-bottom: 5px;
}

.product-menu-box-item ul li ul.sub-list li::before,
.product-menu-box-item ul li ul li::before {
    color: #b8d0c2;
}

.product-menu-box-item ul li ul.sub-list li a,
.product-menu-box-item ul li ul li a {
    color: #66756d;
    font-size: 0.84rem;
    line-height: 21px;
}

.product-menu-box-item ul li ul.sub-list li a:hover,
.product-menu-box-item ul li ul li a:hover {
    color: #23784c;
}


/* =========================================================
   Empty State
========================================================= */

.product-category-empty {
    padding: 36px 20px;
    border: 1px dashed #d8e8df;
    border-radius: 12px;
    background: #f6fbf8;
    color: #87968e;
    text-align: center;
}


/* =========================================================
   Legacy JavaScript Structure
========================================================= */

.product-menu-box-right dl dd > .product-menu-box-item.no-child {
    display: inline-block;
    margin: 0 10px 12px 0;
}

.product-menu-box-right dl dd > .product-menu-box-item.no-child > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 8px 15px;
    border: 1px solid #d8e8df;
    border-radius: 8px;
    background: #f6fbf8;
    color: #24372e;
    font-size: 0.92rem;
    line-height: 22px;
    font-weight: 400;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-menu-box-right dl dd > .product-menu-box-item.no-child > a::before {
    display: none;
}

.product-menu-box-right dl dd > .product-menu-box-item.no-child > a:hover {
    border-color: #309a63;
    background: #309a63;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(48, 154, 99, 0.18);
    transform: translateY(-2px);
}


/* =========================================================
   Product Sourcing CTA
========================================================= */

.product-catalog-cta {
    width: 100%;
    padding: 0 0 72px;
}

.product-catalog-cta-inner {
    position: relative;
    width: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    padding: 42px 48px;
    overflow: hidden;
    border: 1px solid #d8e8df;
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        #f3faf6 0%,
        #ffffff 55%,
        #eef8f2 100%
    );
    box-shadow: 0 18px 46px rgba(48, 154, 99, 0.10);
}

.product-catalog-cta-inner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #54b77d 0%,
        #54b77d 32%,
        #309a63 100%
    );
}

.product-catalog-cta-inner::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(48, 154, 99, 0.05);
}

.product-catalog-cta-text {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    max-width: 830px;
}

.product-catalog-cta-text > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 13px;
    padding: 5px 14px;
    border: 1px solid rgba(48, 154, 99, 0.35);
    border-radius: 999px;
    background: #eef8f2;
    color: #23784c;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.product-catalog-cta-text h2 {
    margin: 0 0 14px;
    color: #17251e;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 800;
}

.product-catalog-cta-text p {
    margin: 0;
    color: #5d6f65;
    font-size: 15px;
    line-height: 1.85;
}

.product-catalog-cta-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-catalog-cta-primary,
.product-catalog-cta-secondary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 24px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-catalog-cta-primary {
    border: 1px solid #309a63;
    background: #309a63;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(48, 154, 99, 0.25);
}

.product-catalog-cta-primary:hover {
    border-color: #23784c;
    background: #23784c;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(35, 120, 76, 0.24);
    transform: translateY(-2px);
}

.product-catalog-cta-secondary {
    border: 1px solid #cfe1d7;
    background: #ffffff;
    color: #309a63;
}

.product-catalog-cta-secondary:hover {
    border-color: #309a63;
    background: #f3faf6;
    color: #23784c;
    box-shadow: 0 10px 22px rgba(48, 154, 99, 0.10);
    transform: translateY(-2px);
}

.product-catalog-cta-primary i,
.product-catalog-cta-secondary i {
    font-size: 16px;
}


/* =========================================================
   Mobile Layout
========================================================= */

@media (max-width: 768px) {
    .product-menu-box {
        width: 94%;
        display: block;
        padding: 28px 0 42px;
    }

    .product-menu-box-left,
    .product-menu-box-right {
        width: 100%;
    }

    .product-menu-box-left {
        position: static;
        margin-bottom: 18px;
        padding: 18px 15px;
        border-radius: 12px;
    }

    .product-menu-box-left h2 {
        margin-bottom: 7px;
        font-size: 1.15rem;
        line-height: 30px;
    }

    .product-menu-intro {
        margin-bottom: 14px;
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .product-menu-box-left-search {
        height: 40px;
        margin-bottom: 14px;
    }

    .product-menu-box-left-search input {
        height: 40px;
        font-size: 0.86rem;
        line-height: 40px;
    }

    .product-menu-box-left-search button {
        height: 40px;
    }

    .product-menu-box-left ul {
        max-height: 230px;
    }

    .product-menu-box-left ul li {
        margin-bottom: 6px;
    }

    .product-menu-box-left ul li a {
        min-height: 36px;
        padding: 7px 10px 7px 18px;
        font-size: 0.86rem;
    }

    .product-menu-box-left ul li a::before {
        top: 16px;
        left: 8px;
    }

    .product-menu-box-left ul li a:hover,
    .product-menu-box-left ul li a.active {
        transform: none;
    }

    .product-category-section,
    .product-menu-box-right dl {
        margin-bottom: 20px;
        padding-bottom: 18px;
        border-radius: 12px;
    }

    .product-category-title,
    .product-menu-box-right dl dt {
        padding: 18px 16px 12px;
    }

    .product-category-title a,
    .product-menu-box-right dl dt a {
        font-size: 1.15rem;
        line-height: 30px;
    }

    .product-category-title a::before,
    .product-menu-box-right dl dt a::before {
        top: 7px;
        height: 17px;
    }

    .product-category-content,
    .product-menu-box-right dl dd {
        padding: 16px 16px 0;
    }

    .product-menu-box-simple {
        gap: 9px;
        margin-bottom: 20px;
    }

    .product-menu-box-simple a {
        min-height: 36px;
        padding: 7px 11px;
        border-radius: 7px;
        font-size: 0.85rem;
    }

    .product-menu-box-groups {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 20px;
    }

    .product-menu-box-item .group-title,
    .product-menu-box-item > a {
        margin-bottom: 8px;
        font-size: 0.98rem;
        line-height: 24px;
    }

    .product-menu-box-item .group-title::before,
    .product-menu-box-item > a::before {
        top: 9px;
    }

    .product-menu-box-item ul li {
        margin-bottom: 5px;
    }

    .product-menu-box-item ul li a {
        font-size: 0.85rem;
        line-height: 21px;
    }

    .product-menu-box-item ul li ul.sub-list li a,
    .product-menu-box-item ul li ul li a {
        font-size: 0.8rem;
        line-height: 20px;
    }

    .product-menu-box-right dl dd > .product-menu-box-item.no-child {
        display: block;
        margin: 0 0 9px;
    }

    .product-menu-box-right dl dd > .product-menu-box-item.no-child > a {
        width: 100%;
        min-height: 36px;
        padding: 7px 11px;
        font-size: 0.85rem;
    }

    .product-catalog-cta {
        padding: 0 0 46px;
    }

    .product-catalog-cta-inner {
        min-height: 0;
        display: block;
        padding: 34px 20px 26px;
        border-radius: 17px;
    }

    .product-catalog-cta-text > span {
        min-height: 28px;
        margin-bottom: 11px;
        padding: 4px 11px;
        font-size: 10px;
        line-height: 18px;
        letter-spacing: 0.9px;
    }

    .product-catalog-cta-text h2 {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 1.45;
    }

    .product-catalog-cta-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .product-catalog-cta-actions {
        width: 100%;
        margin-top: 24px;
    }

    .product-catalog-cta-primary,
    .product-catalog-cta-secondary {
        min-height: 48px;
        padding: 11px 16px;
        font-size: 14px;
    }

    .product-catalog-cta-primary:hover,
    .product-catalog-cta-secondary:hover {
        transform: none;
    }
}


/* =========================================================
   Cached Server-rendered Category Directory
========================================================= */

.product-category-section {
    scroll-margin-top: 110px;
}

.product-menu-box-simple:empty,
.product-menu-box-groups:empty {
    display: none;
}

.product-category-direct a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #309a63;
    border-radius: 8px;
    background: #ffffff;
    color: #309a63;
    font-size: 0.92rem;
    line-height: 22px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.product-category-direct a:hover {
    background: #309a63;
    color: #ffffff;
    transform: translateY(-2px);
}

.product-category-search-empty {
    display: none;
    padding: 56px 24px;
    border: 1px dashed #bcd7c8;
    border-radius: 14px;
    background: #f6fbf8;
    color: #718179;
    text-align: center;
}

.product-category-search-empty > i {
    display: block;
    margin-bottom: 13px;
    color: #309a63;
    font-size: 34px;
}

.product-category-search-empty strong,
.product-category-search-empty span {
    display: block;
}

.product-category-search-empty strong {
    color: #263a30;
    font-size: 17px;
    line-height: 27px;
}

.product-category-search-empty span {
    margin-top: 5px;
    font-size: 13px;
    line-height: 22px;
}

@media (max-width: 768px) {
    .product-category-section {
        scroll-margin-top: 80px;
    }

    .product-category-search-empty {
        padding: 40px 18px;
    }
}
