﻿/* Categories Section */
.secCategories {
    padding: 30px 0 50px 0;
    background-color: #f5f5f5;
}


.section-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-wrapper {
    position: relative;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.category-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-right: none;
    border-bottom: none;
    padding: 0;
    margin: 0;
}

.category-item:nth-child(6n) {
    border-right: 1px solid #e5e5e5;
}

.category-item:nth-last-child(-n+6) {
    border-bottom: 1px solid #e5e5e5;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 20px 10px;
    min-height: 160px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.category-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    z-index: 1;
    text-decoration: none;
}

.category-image-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-name {
    text-align: center;
    color: rgba(0, 0, 0, 0.87);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-item:nth-child(6n) {
        border-right: none;
    }

    .category-item:nth-child(4n) {
        border-right: 1px solid #e5e5e5;
    }

    .category-item:nth-last-child(-n+6) {
        border-bottom: none;
    }

    .category-item:nth-last-child(-n+4) {
        border-bottom: 1px solid #e5e5e5;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-item:nth-child(4n) {
        border-right: none;
    }

    .category-item:nth-child(3n) {
        border-right: 1px solid #e5e5e5;
    }

    .category-item:nth-last-child(-n+4) {
        border-bottom: none;
    }

    .category-item:nth-last-child(-n+3) {
        border-bottom: 1px solid #e5e5e5;
    }

    .category-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-link {
        min-height: 140px;
        padding: 15px 8px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-item:nth-child(3n) {
        border-right: none;
    }

    .category-item:nth-child(2n) {
        border-right: 1px solid #e5e5e5;
    }

    .category-item:nth-last-child(-n+3) {
        border-bottom: none;
    }

    .category-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e5e5e5;
    }

    .section-title {
        font-size: 16px;
    }
}
.secTopImg {
    padding: 40px 0;
    background-color: #f5f5f5;
}
/* Promotion Section */
.secPromotion {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.promotion-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-see-all {
    color: #066BC8;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
}

.promotion-see-all:hover {
    color: #3b91e6;
    text-decoration: none;
}

.promotion-wrapper {
    position: relative;
    background-color: #fff;
    padding: 20px 10px;
    border-radius: 2px;
}

.promotion-slider {
    margin: 0 -10px;
}

.promotion-item {
    padding: 0 10px;
}

.promotion-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.promotion-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.promotion-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.promotion-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ffce3d;
    color: #066BC8;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 0 0 2px;
}

.promotion-info {
    padding: 5px 0;
}

.promotion-name {
    color: rgba(0, 0, 0, 0.87);
    font-size: 13px;
    font-weight: 400;
    margin: 8px 0 0 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

@media (max-width: 768px) {
    .promotion-name {
        font-size: 12px;
        min-height: 32px;
    }
}
.promotion-price-wrapper {
    margin-bottom: 5px;
}

.promotion-price {
    color: #066BC8;
    font-size: 16px;
    font-weight: 500;
}

.original-price {
    color: #929292;
    font-size: 13px;
    text-decoration: line-through;
}

/* Slick Arrows for Promotion */
.promotion-slider .slick-prev,
.promotion-slider .slick-next {
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 1;
    transition: all 0.3s ease;
}

.promotion-slider .slick-prev:hover,
.promotion-slider .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.promotion-slider .slick-prev {
    left: -10px;
}

.promotion-slider .slick-next {
    right: -10px;
}

.promotion-slider .slick-prev:before,
.promotion-slider .slick-next:before {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-title {
        font-size: 16px;
    }

    .promotion-price {
        font-size: 14px;
    }

    .original-price {
        font-size: 12px;
    }
}


/* Top Products Section */
.secTopProducts {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.top-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.top-products-title {
    font-size: 18px;
    font-weight: 500;
    color: #066BC8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-products-see-all {
    color: #066BC8;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
}

.top-products-see-all:hover {
    color: #3b91e6;
    text-decoration: none;
}

.top-products-wrapper {
    position: relative;
    background-color: #fff;
    padding: 20px 10px;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
}

.top-products-slider {
    margin: 0 -10px;
}

.top-product-item {
    padding: 0 10px;
}

.top-product-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.top-product-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.top-product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.top-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #066BC8;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.top-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-product-info {
    padding: 5px 0;
}

.top-product-sales {
    color: #929292;
    font-size: 11px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    padding: 2px 6px;
    display: inline-block;
    border-radius: 2px;
}

.top-product-name {
    color: rgba(0, 0, 0, 0.87);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

/* Slick Arrows for Top Products */
.top-products-slider .slick-prev,
.top-products-slider .slick-next {
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 1;
    transition: all 0.3s ease;
}

.top-products-slider .slick-prev:hover,
.top-products-slider .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.top-products-slider .slick-prev {
    left: -10px;
}

.top-products-slider .slick-next {
    right: -10px;
}

.top-products-slider .slick-prev:before,
.top-products-slider .slick-next:before {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .top-products-title {
        font-size: 16px;
    }

    .top-product-name {
        font-size: 13px;
        min-height: 36px;
    }

    .top-product-sales {
        font-size: 10px;
    }
}


/* All Products Section */
.secAllProducts {
    padding: 40px 0 60px 0;
    background-color: #f5f5f5;
}

.allproduct-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.54);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.allproduct-wrapper {
    width: 100%;
}

/* Grid Layout - 一排6个 */
.allproduct-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.allproduct-item {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.allproduct-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.allproduct-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.allproduct-link:hover {
    text-decoration: none;
    color: inherit;
}

.allproduct-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #fff;
    overflow: hidden;
}

.allproduct-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.allproduct-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 212, 36, 0.9);
    color: #066BC8;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 0 0 2px;
}

/* Hover Overlay */
.allproduct-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.allproduct-item:hover .allproduct-hover-overlay {
    transform: translateY(0);
}

.allproduct-detail-btn {
    width: 100%;
    padding: 8px 16px;
    background-color: #066BC8;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.allproduct-detail-btn:hover {
    background-color: #3b91e6;
}

/* Product Info */
.allproduct-info {
    padding: 10px;
}

.allproduct-name {
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.allproduct-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.allproduct-price {
    color: #066BC8;
    font-size: 16px;
    font-weight: 500;
}

.allproduct-discount-amount {
    color: #929292;
    font-size: 12px;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 2px;
}


@media (max-width: 1200px) {
    .allproduct-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .allproduct-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 768px) {
    .allproduct-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .allproduct-name {
        font-size: 12px;
        min-height: 32px;
    }

    .allproduct-price {
        font-size: 14px;
    }

    .allproduct-discount-amount {
        font-size: 11px;
    }
}

/* Responsive - 一排2个 */
@media (max-width: 480px) {
    .allproduct-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .allproduct-title {
        font-size: 16px;
    }
}