/* ==============================
   JETO Product List Page
   Future Power Color
================================= */

.jeto-product-page {
    padding: 35px 0 55px;
    overflow: visible;
}

.jeto-product-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
    overflow: visible;
}

/* ==============================
   Left Sidebar
================================= */

.jeto-product-sidebar {
    position: relative;
    overflow: visible;
}

.jeto-cat-panel {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(16, 36, 58, .08);
    box-sizing: border-box;
}

/* scrollbar */
.jeto-cat-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(55, 179, 74, .35) transparent;
}

.jeto-cat-panel::-webkit-scrollbar {
    width: 5px;
}

.jeto-cat-panel::-webkit-scrollbar-track {
    background: transparent;
}

.jeto-cat-panel::-webkit-scrollbar-thumb {
    background: rgba(55, 179, 74, .35);
    border-radius: 10px;
}

/* category head */
.jeto-cat-head {
    padding: 26px 24px;
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    color: #fff;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.jeto-cat-head::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(246, 189, 22, .22);
}

.jeto-cat-head h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.jeto-cat-head h3 i {
    margin-right: 8px;
}

.jeto-cat-head p {
    position: relative;
    z-index: 2;
    margin: 8px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.5;
}

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

.jeto-cat-menu,
.jeto-cat-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jeto-cat-menu {
    padding: 14px;
}

.jeto-cat-menu li {
    margin-bottom: 8px;
}

.jeto-cat-menu li:last-child {
    margin-bottom: 0;
}

.jeto-cat-menu a {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #14284b;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all .25s ease;
    box-sizing: border-box;
}

.jeto-cat-menu a span {
    flex: 1;
}

.jeto-cat-menu a i {
    flex: 0 0 auto;
    color: #109bd7;
    transition: all .25s ease;
}

/* first level */
.jeto-cat-menu > li > a {
    background: #f7fbf8;
    border: 1px solid #e7f2ee;
}

.jeto-cat-menu > li.jeto-is-active > a,
.jeto-cat-menu > li > a:hover {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(55,179,74,.18);
}

.jeto-cat-menu > li.jeto-is-active > a i,
.jeto-cat-menu > li > a:hover i {
    color: #fff;
}

/* submenu */
.jeto-cat-menu .jeto-sub-menu {
    display: none;
    padding: 8px 0 0 12px;
}

.jeto-cat-menu li.jeto-is-open > .jeto-sub-menu {
    display: block;
}

/* second level */
.jeto-cat-menu .jeto-sub-menu > li {
    margin-bottom: 6px;
}

.jeto-cat-menu .jeto-sub-menu > li > a {
    min-height: 40px;
    padding: 0 12px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.jeto-cat-menu .jeto-sub-menu > li.jeto-has-child > a {
    color: #14284b;
}

.jeto-cat-menu .jeto-sub-menu > li > a:hover,
.jeto-cat-menu .jeto-sub-menu > li > a.jeto-is-active,
.jeto-cat-menu .jeto-sub-menu > li.jeto-is-active > a {
    background: #fff;
    color: #168a3a;
    box-shadow: 0 8px 20px rgba(55,179,74,.10);
}

/* third level */
.jeto-cat-menu .jeto-third-menu {
    padding-left: 14px;
    padding-top: 6px;
}

.jeto-cat-menu .jeto-third-menu li {
    margin-bottom: 6px;
}

.jeto-cat-menu .jeto-third-menu a {
    position: relative;
    min-height: 34px;
    padding: 0 12px 0 30px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    justify-content: flex-start;
    border: none;
}

.jeto-cat-menu .jeto-third-menu a::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    width: 5px;
    height: 5px;
    background: #c4cad6;
    border-radius: 50%;
    transform: translateY(-50%);
}

.jeto-cat-menu .jeto-third-menu a:hover,
.jeto-cat-menu .jeto-third-menu a.jeto-is-active {
    background: #fff;
    color: #168a3a;
}

.jeto-cat-menu .jeto-third-menu a:hover::before,
.jeto-cat-menu .jeto-third-menu a.jeto-is-active::before {
    background: #37b34a;
}

/* arrow rotate */
.jeto-cat-menu li.jeto-is-open > a > i {
    transform: rotate(180deg);
}

/* ==============================
   Right Main
================================= */

.jeto-product-main {
    min-width: 0;
    width: 100%;
}

.jeto-product-head {
    margin-bottom: 24px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(55,179,74,.08), rgba(16,155,215,.08));
    border: 1px solid #e7f2ee;
    border-radius: 24px;
}

.jeto-product-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #168a3a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.jeto-product-head h1 {
    margin: 0 0 12px;
    color: #14284b;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
}

.jeto-product-head p {
    margin: 0;
    max-width: 780px;
    color: #5b6472;
    font-size: 16px;
    line-height: 1.65;
}

/* ==============================
   Product Grid
================================= */

.jeto-product-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.jeto-product-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    transition: all .35s ease;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(16,36,58,.05);
}

.jeto-product-card:hover {
    background: #fff;
    border-color: rgba(16,155,215,.34);
    box-shadow: 0 16px 40px rgba(16,155,215,.14);
    transform: translateY(-6px);
}

.jeto-product-img {
    width: 100%;
    height: auto;
    padding: 22px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.jeto-product-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #37b34a 0%, #109bd7 72%, #f6bd16 100%);
}

.jeto-product-img img {
    display: block;

    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all .4s ease;
}

.jeto-product-card:hover .jeto-product-img img {
    transform: scale(1.06);
}

.jeto-product-info {
    flex: 1;
    padding: 20px 20px 22px;
    box-sizing: border-box;
}

.jeto-product-info h2 {
    margin: 0 0 10px;
    color: #14284b;
    font-size: 20px;
    line-height: 1.38;
    font-weight: 800;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jeto-product-info p {
    margin: 0;
    color: #5b6472;
    font-size: 14.5px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================
   Pagination
================================= */

.jeto-product-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jeto-product-pagination a,
.jeto-product-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7fbf8;
    border: 1px solid #e7f2ee;
    border-radius: 50%;
    color: #14284b;
    font-size: 15px;
    line-height: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.jeto-product-pagination a:hover,
.jeto-product-pagination a.jeto-is-active {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(55,179,74,.22);
}

.jeto-product-pagination a.jeto-disabled {
    opacity: .45;
    pointer-events: none;
}

/* ==============================
   Responsive
================================= */

@media (max-width: 1400px) {
    .jeto-product-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 28px;
    }

    .jeto-product-grid {
        gap: 20px;
    }

    .jeto-product-img {
        height: 210px;
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .jeto-product-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px;
    }

    .jeto-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .jeto-product-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 22px;
    }

    .jeto-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jeto-product-img {
        height: 210px;
    }
}

@media (max-width: 768px) {
    .jeto-product-page {
        padding: 28px 0 42px;
    }

    .jeto-product-layout {
        display: block;
    }

    .jeto-product-sidebar {
        margin-bottom: 22px;
    }

    .jeto-cat-panel {
        position: static;
        max-height: none;
        border-radius: 20px;
    }

    .jeto-cat-head {
        padding: 22px 18px;
        border-radius: 20px 20px 0 0;
    }

    .jeto-cat-head h3 {
        font-size: 20px;
    }

    .jeto-cat-menu {
        padding: 12px;
    }

    .jeto-cat-menu a {
        min-height: 42px;
        font-size: 14px;
    }

    .jeto-cat-menu .jeto-third-menu a {
        padding-left: 30px;
    }

    .jeto-product-head {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .jeto-product-head h1 {
        font-size: 26px;
    }

    .jeto-product-head p {
        font-size: 15px;
        line-height: 1.65;
    }

    .jeto-product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jeto-product-card {
        border-radius: 18px;
    }

    .jeto-product-img {
        height: 220px;
        padding: 20px;
    }

    .jeto-product-info {
        padding: 18px 18px 20px;
    }

    .jeto-product-info h2 {
        font-size: 18px;
    }

    .jeto-product-info p {
        font-size: 14px;
    }

    .jeto-product-pagination {
        margin-top: 24px;
        gap: 6px;
    }

    .jeto-product-pagination a,
    .jeto-product-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        line-height: 36px;
    }
}