/* Products listing page */

.products-section {
    padding: 120px 0 80px;
    position: relative;
    z-index: 2;
}

.product-cats {
    display: grid;
    grid-template-columns: repeat(2, 320px);
    gap: 40px;
    justify-content: center;
    margin: -60px auto 40px;
    position: relative;
    z-index: 3;
}

.product-cat {
    background: #fff;
    border-radius: 10px;
    padding: 26px 24px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid transparent;
}

.product-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 8px rgba(47, 90, 174, 0.2);
    background: #f5f7fa;
}

.product-cat.active {
    box-shadow: 0 2px 10px rgba(47, 90, 174, 0.25);
    background: #f5f7fa;
    border-color: rgba(47, 90, 174, 0.25);
}

.product-cat img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-cat span {
    font-size: 20px;
    color: #183153;
    font-weight: 500;
    line-height: 1.4;
}

.product-list {
    display: grid;
    gap: 26px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
    align-items: center;
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-media img {
    width: 210px;
    height: 210px;
    object-fit: contain;
}

.product-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #183153;
    margin: 0 0 12px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.spec-table td {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 22px;
    border-bottom: 1px solid #eef0f2;
    color: #48525c;
}

.spec-table tr:last-child td {
    border-bottom: 0;
}

.spec-table td:first-child {
    width: 160px;
    color: #7a8b99;
}

.product-actions {
    margin-top: 14px;
}

.btn-details {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-details:hover {
    background: var(--secondary-color);
}

.solar-tabs-container {
    margin-top: 10px;
    border-bottom: 1px solid #e6e8eb;
}

.solar-tabs {
    display: flex;
    gap: 28px;
    align-items: center;
    position: relative;
}

.solar-tabs .tab {
    padding: 14px 4px;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    position: relative;
}

.solar-tabs .tab.active {
    color: var(--primary-color);
}

.solar-tabs .tab-underline {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: var(--primary-color);
    width: 0;
    left: 0;
    transition: all .25s ease;
}

.tab-panels {
    margin-top: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .product-media img {
        width: 160px;
        height: 160px;
    }

    .product-cats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 0;
    }

    .solar-tabs {
        gap: 18px;
        overflow-x: auto;
    }
}

/* =============== Product View (Detail) =============== */
.product-view {
    padding: 40px 0 80px;
}

.product-view .pv-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.pv-gallery {
    position: relative;
}



.pv-main img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

/* zoom lens */
.pv-main {
    position: relative;
}

.pv-lens {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(47, 90, 174, .4);
    border-radius: 6px;
    background-repeat: no-repeat;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    pointer-events: none;
    display: none;
    background-color: rgba(255, 255, 255, .25);
}

.pv-zoom {
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    width: 420px;
    height: 420px;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    display: none;
}

.small-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.thumbnail-box {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.thumbnail-box .pv-thumb-swiper {
    width: 100%;
}

.thumbnail-box .wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.thumbnail-box .item img {
    width: 100%;
    height: 76px;
    object-fit: contain;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.thumbnail-box .item img.active {
    outline: 2px solid var(--primary-color);
}

.thumbnail-box .btn {
    width: 32px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.thumbnail-box .btn:hover {
    background: #e6ecf8;
}

.thumbnail-box .arrow {
    border: solid #2f5aae;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
}

.thumbnail-box .arrow-left {
    transform: rotate(135deg);
}

.thumbnail-box .arrow-right {
    transform: rotate(-45deg);
}

.banner-page {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    color: #475467;
}

.banner-page .page-now,
.banner-page .page-all {
    display: inline-block;
    min-width: 20px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f5f7fa;
    color: #183153;
    font-weight: 600;
}

.banner-page .of {
    margin: 0 6px;
    color: #98a2b3;
}

.pv-summary h1 {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 16px;
    color: #183153;
}

.pv-lead {
    color: #475467;
    line-height: 1.8;
    margin-bottom: 18px;
}

.pv-feature {
    margin-top: 14px;
}

.pv-feature h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #183153;
}

.pv-feature ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
    color: #475467;
}

.pv-tabs {
    margin-top: 40px;
}

.pv-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.pv-tabbar .pv-tab {
    background: #f5f7fa;
    color: #183153;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

.pv-tabbar .pv-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.pv-panels {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    margin-top: 14px;
    padding: 24px;
}

.pv-pane {
    display: none;
    color: #475467;
    line-height: 1.8;
}

.pv-pane.active {
    display: block;
}

@media (max-width: 1024px) {
    .product-view .pv-wrap {
        grid-template-columns: 1fr;
    }

    .small-box {
        min-height: 300px;
    }

    .thumbnail-box .item img {
        height: 60px;
    }

    .thumbnail-box .btn {
        height: 60px;
    }

    .pv-zoom {
        display: none;
    }
}

@media (max-width: 768px) {
    .small-box {
        min-height: 240px;
    }

    .thumbnail-box .item img {
        height: 56px;
    }

    .thumbnail-box .btn {
        height: 56px;
    }
}