/* =========================================================
   VIIcode 最新产品页面
   与现有商品页统一为黑色视觉
   仅影响 product/latest
   ========================================================= */

body.product-latest {
    margin: 0;
    padding-top: 145px;
    color: #000;
    background: #fff;
}


/* =========================================================
   固定头部
   ========================================================= */

body.product-latest header.header {
    color: #000;
    background: #fff;
}

body.product-latest header.header a {
    color: #000;
}


/* =========================================================
   页面主体
   固定头部PC高度约168px
   ========================================================= */

body.product-latest .latest-page {
    position: relative;
    z-index: 1;
    width: 1440px;
max-width:calc(100% - 96px);
margin: auto;
padding:80px 0;
}

body.product-latest .latest-container {
    color: #000;
    background: #fff;
}

body.product-latest .latest-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

body.product-latest .latest-content {
    position: relative;
    float: none;
    min-width: 0;
    color: #000;
    background: #fff;
}


/* =========================================================
   面包屑
   ========================================================= */

body.product-latest .latest-page .breadcrumb {
    margin: 0 0 24px;
    padding: 0;
    color: #999;
    background: transparent;
    border: 0;
}

body.product-latest .latest-page .breadcrumb > li,
body.product-latest .latest-page .breadcrumb > li a {
    color: #999;
    font-size: 13px;
}

body.product-latest .latest-page .breadcrumb > li a:hover {
    color: #000;
}


/* =========================================================
   页面标题
   使用独立类名，避免与旧CSS冲突
   ========================================================= */

body.product-latest .latest-page-title {
    position: static !important;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 50px;
    padding: 0 0 14px;
    border-bottom: 1px solid #777;
}

body.product-latest .latest-page-title h1 {
    position: static !important;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #000;
    font-family:
        "Microsoft JhengHei",
        "PingFang TC",
        "Noto Sans TC",
        Arial,
        sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
}


/* =========================================================
   左侧商品分类
   ========================================================= */

body.product-latest #column-left {
    float: none;
    color: #000;
}

body.product-latest #column-left h3 {
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 14px;
    color: #000;
    border-bottom: 1px solid #666;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
}

body.product-latest #column-left h3::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 90px;
    height: 1px;
    content: "";
    background: #fff;
}

body.product-latest #column-left .list-group {
    margin: 0 0 35px;
    padding: 0;
}

body.product-latest #column-left .list-group-item {
    margin: 0;
    padding: 13px 6px;
    color: #ddd;
    font-size: 15px;
    line-height: 1.5;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #333;
    border-radius: 0;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

body.product-latest #column-left .list-group-item:hover,
body.product-latest #column-left .list-group-item:focus,
body.product-latest #column-left .list-group-item.active {
    padding-left: 12px;
    color: #000;
    background: transparent;
    border-color: #555;
}


/* =========================================================
   商品列表
   PC四列
   ========================================================= */

body.product-latest .latest-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 70px;
    align-items: stretch;
}

body.product-latest .latest-product-item {
    float: none !important;
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   商品主体
   不使用白色卡片和边框
   ========================================================= */

body.product-latest .latest-product-item .product-thumb {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #000;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

body.product-latest .latest-product-item .product-thumb:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}


/* =========================================================
   商品图片
   ========================================================= */

body.product-latest .latest-product-item .image {
    position: relative;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
}

body.product-latest .latest-product-item .image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.product-latest .latest-product-item .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: #fff;
    transition:
        opacity 0.3s ease,
        transform 0.35s ease;
}

body.product-latest .latest-product-item:hover .image img {
    opacity: 0.9;
    transform: scale(1.02);
}


/* =========================================================
   商品名称与价格
   ========================================================= */

body.product-latest .latest-product-item .caption {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 105px;
    margin: 0;
    padding: 0 8px;
    color: #000;
    background: transparent;
}

body.product-latest .latest-product-item .product-name {
    min-height: 48px;
    margin: 0 0 14px;
    padding: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;

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

body.product-latest .latest-product-item .product-name a {
    color: #000;
    text-decoration: none;
}

body.product-latest .latest-product-item .product-name a:hover {
    color: #bbb;
}

body.product-latest .latest-product-item .price {
    margin: auto 0 0;
    padding: 0;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

body.product-latest .latest-product-item .price-new {
    color: #000;
}

body.product-latest .latest-product-item .price-old {
    margin-left: 7px;
    color: #888;
    font-size: 13px;
    text-decoration: line-through;
}

body.product-latest .latest-product-item .price-tax {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}


/* =========================================================
   收藏及购物车按钮
   与相关商品样式统一
   ========================================================= */

body.product-latest .latest-product-item .product-button-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 22px 0 0;
    padding: 0 8px;
    background: transparent;
    border: 0;
}

body.product-latest .latest-product-item .product-button-wrapper button {
    position: static;
    float: none;
    width: 80px;
    height: 42px;
    margin: 0 12px 0 0;
    padding: 0;
    color: #000;
    background: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

body.product-latest .latest-product-item .product-button-wrapper button:hover {
    color: #000;
    background: #fff;
    border-color: #000;
}

body.product-latest .latest-product-item .btn-wishlist {
    flex: 0 0 80px;
}

body.product-latest .latest-product-item .cart {
    flex: 0 0 80px;
}

body.product-latest .latest-product-item .cart:disabled,
body.product-latest .latest-product-item .cart[disabled] {
    color: #aaa;
    cursor: not-allowed;
    background: #111;
    border-color: #444;
    opacity: 1;
}


/* =========================================================
   无商品结果
   ========================================================= */

body.product-latest .latest-empty {
    padding: 55px 20px;
    color: #000;
    text-align: center;
    background: #080808;
    border: 1px solid #333;
}

body.product-latest .latest-empty .btn {
    min-width: 130px;
    margin-top: 20px;
    padding: 11px 24px;
    color: #000;
    background: #fff;
    border: 1px solid #666;
    border-radius: 3px;
}

body.product-latest .latest-empty .btn:hover {
    color: #000;
    background: #fff;
    border-color: #000;
}


/* =========================================================
   1200px以下三列
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    body.product-latest .latest-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 55px;
    }

}


/* =========================================================
   平板两列
   ========================================================= */

@media (max-width: 991px) {

    body.product-latest .latest-page {
        padding-top: 185px;
    }

    body.product-latest .latest-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 22px;
    }

}


/* =========================================================
   手机端
   ========================================================= */

@media (max-width: 767px) {

    body.product-latest .latest-page {
        padding-top: 90px;
        padding-bottom: 45px;
    }

    body.product-latest .latest-container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    body.product-latest .latest-layout-row {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    body.product-latest #column-left,
    body.product-latest #column-right,
    body.product-latest .latest-content {
        float: none;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    body.product-latest #column-left {
        margin-bottom: 35px;
    }

    body.product-latest #column-left h3 {
        font-size: 18px;
    }

    body.product-latest #column-left .list-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
        margin-bottom: 0;
    }

    body.product-latest #column-left .list-group-item {
        min-width: 0;
        padding: 11px 4px;
        font-size: 13px;
    }

    body.product-latest .latest-page-title {
        margin-bottom: 35px;
    }

    body.product-latest .latest-page-title h1 {
        font-size: 21px;
    }

    body.product-latest .latest-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 42px;
    }

    body.product-latest .latest-product-item .image {
        margin-bottom: 14px;
    }

    body.product-latest .latest-product-item .caption {
        min-height: 93px;
        padding: 0 3px;
    }

    body.product-latest .latest-product-item .product-name {
        min-height: 42px;
        margin-bottom: 9px;
        font-size: 13px;
        line-height: 1.55;
    }

    body.product-latest .latest-product-item .price {
        font-size: 13px;
    }

    body.product-latest .latest-product-item .product-button-wrapper {
        margin-top: 15px;
        padding: 0 3px;
    }

    body.product-latest .latest-product-item .product-button-wrapper button {
        flex: 1 1 0;
        width: auto;
        height: 38px;
        margin-right: 6px;
    }

    body.product-latest .latest-product-item .product-button-wrapper button:last-child {
        margin-right: 0;
    }

}


/* =========================================================
   小屏手机
   ========================================================= */

@media (max-width: 374px) {

    body.product-latest .latest-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.product-latest .latest-products-grid {
        gap-right: 8px;
        column-gap: 8px;
    }

    body.product-latest .latest-product-item .product-name {
        font-size: 12px;
    }

}

/* =========================================================
   PC端最终比例修正
   有左侧分类时，右侧商品使用3列
   ========================================================= */

/* =========================================================
   product/latest 左侧商品分类
   精确匹配 ul#category-one > li.panel
   ========================================================= */

body.product-latest #column-left ul#category-one.sidebar-widget {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* 清除全站旧 .panel 样式 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    list-style: none;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #292929 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* 分类链接 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel > a {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    border: 0 !important;
    outline: 0;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        padding-left 0.25s ease;
}


/* 鼠标经过 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:hover,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:focus,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:active {
    background: transparent !important;
    border-color: #444 !important;
}

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:hover > a,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:focus > a,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:active > a {
    padding-left: 14px;
    color: #fff !important;
    background: #111 !important;
}


/* 当前选中的分类 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.active,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.open {
    background: transparent !important;
}

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.active > a,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.open > a {
    padding-left: 14px;
    color: #fff !important;
    background: #111 !important;
}


/* 去掉最后一项底线 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:last-child {
    border-bottom: 0 !important;
}


/* 如果分类中存在展开图标 */

body.product-latest #column-left ul#category-one.sidebar-widget > li.panel > a i,
body.product-latest #column-left ul#category-one.sidebar-widget > li.panel > a .fa {
    float: right;
    margin-top: 4px;
    color: #999;
}


/* =========================================================
   手机端分类两列
   ========================================================= */

@media (max-width: 767px) {

    body.product-latest #column-left ul#category-one.sidebar-widget {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    body.product-latest #column-left ul#category-one.sidebar-widget > li.panel {
        min-width: 0;
    }

    body.product-latest #column-left ul#category-one.sidebar-widget > li.panel > a {
        min-height: 48px;
        padding: 10px 5px;
        font-size: 13px;
        line-height: 1.45;
    }

    body.product-latest #column-left ul#category-one.sidebar-widget > li.panel:hover > a,
    body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.active > a,
    body.product-latest #column-left ul#category-one.sidebar-widget > li.panel.open > a {
        padding-left: 9px;
    }

}