/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.banner-content {
    animation: slideIn 0.5s ease-out;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: static;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.header-left {
    display: flex;
    align-items: center;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.country-selector:hover {
    color: #666;
}

.header-center .logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 默认隐藏汉堡，桌面端不显示 */
.hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid #e5e5e5;
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .hamburger-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger-btn i {
        font-size: 18px;
        color: #fff;
    }
}

/* 桌面端图标分组容器（与现有结构兼容） */
.icon-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons>div {
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.header-icons>div:hover {
    background-color: #f5f5f5;
}

.header-icons i {
    font-size: 18px;
    color: #333;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Modal Styles */
.search-overlay,
.product-modal,
.cart-modal,
.wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content,
.search-results {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-modal,
.close-search {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cart-item,
.wishlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.wishlist-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item-image img:hover {
    transform: scale(1.05);
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wishlist-item-info .item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.wishlist-item-info .item-price {
    font-weight: 700;
    color: #000;
    font-size: 16px;
}

.wishlist-item-info .item-specs {
    color: #666;
    font-size: 12px;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 0;
    font-weight: 400;
}

.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item button,
.wishlist-item button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

.checkout-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.empty-wishlist {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navigation */
.main-nav {
    border-top: none;
    background: #000;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px 20px;
    margin: 0;
    padding: 0 10px;
    max-width: 100%;
}

.nav-menu > li {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 6px 16px;
        padding: 0 8px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 4px 12px;
        padding: 0 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu > li {
        flex-shrink: 0;
    }
    
    .main-nav .nav-link {
        font-size: 13px;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        background: #000;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
}

.main-nav .nav-link {
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 12px;
    position: relative;
    transition: color 0.3s ease;
    display: block;
    min-width: fit-content;
}

.main-nav .nav-link:link,
.main-nav .nav-link:visited {
    color: #fff !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link:focus-visible {
    color: #007bff !important; /* 与分类选中一致的蓝色 */
}

.main-nav .nav-link.active {
    color: #007bff; /* 与分类选中一致的蓝色 */
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007bff; /* 与分类选中一致的蓝色下划线 */
}

.nav-link.sale {
    color: #d01345;
    font-weight: 700;
}

/* Search Container in Header Icons */
.header-icons .search-container {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px;
    width: 400px;
    margin-right: 15px;
}

.header-icons .search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    color: #000;
    font-weight: 500;
}

.header-icons .search-container input::placeholder {
    color: #666;
    font-weight: normal;
}

.header-icons .search-container button {
    background: #000;
    color: white;
    border: 2px solid #000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-icons .search-container button:hover {
    background: #333;
    border-color: #333;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.header-icons .search-container button i {
    font-size: 14px;
    font-weight: bold;
    color: white !important;
}

/* Main Content */
.main-content {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    margin: 0;
    padding: 0;
}

.hero-carousel {
    position: relative;
    height: auto; /* 自适应内容高度 */
    overflow: visible; /* 不裁剪图片 */
    border-radius: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: auto; /* 由激活的slide内容撑开高度 */
}

.carousel-slide {
    position: relative; /* 让容器高度由内容决定 */
    width: 100%;
    height: auto;
    display: none; /* 仅显示激活项，避免容器高度被绝对定位影响 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* 激活的slide显示并淡入 */
.carousel-slide.active {
    display: block;
    opacity: 1;
}

/* 轮播图图片：固定宽度1920px，高度按比例自适应，不裁剪，且在容器中居中 */
.carousel-slide img {
    display: block;
    width: 1920px;
    max-width: 100%; /* 小屏下等比缩小 */
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 确保完整显示，不裁剪 */
    margin: 0 auto; /* 居中 */
}

/* 移动端优化：提高轮播可视高度，图片自适应屏宽且不裁剪 */
@media (max-width: 768px) {
    /* 容器高度由图片自适应，不强制固定，避免裁切 */
    .hero-carousel,
    .carousel-container,
    .carousel-slide {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    /* 手机端优先按屏宽自适应，仍不裁剪 */
    .carousel-slide img {
        width: 100%;
        max-width: 1920px;
        height: auto;             /* 等比缩放 */
        max-height: 450px;        /* 不超过450px高 */
        object-fit: contain;      /* 保证完整显示，不裁剪 */
    }
}
.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #000;
}

/* New in Section */
.new-in-section {
    padding: 20px 0 10px 0;
    background-color: #fff;
}

.new-in-section .section-title {
    margin-bottom: 15px;
}

/* Category Scroll Section */
.category-scroll-section {
    margin: 0 0 30px 0;
    background-color: #f8f8f8;
    padding: 15px 0;
}

.category-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.category-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 0;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    flex: 1;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px 12px 12px 12px;
    text-align: center;
}

.category-card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Scrollbar styling for category scroll */
.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Products Section */
.products-section {
    margin-bottom: 80px;
}

.products-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Trending Carousel Styles */
.trending-carousel-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.trending-carousel-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.trending-products-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    touch-action: pan-y; /* 允许纵向滚动，阻止横向滚动传递到页面 */
    overscroll-behavior-x: contain; /* 阻止横向滚动越界到文档 */
}

.trending-products-track .product-item {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 250px;
    max-width: calc(25% - 22.5px);
}

.trending-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.trending-carousel-btn.prev-btn {
    left: 10px;
}

.trending-carousel-btn.next-btn {
    right: 10px;
}

.trending-buy-now-container {
    text-align: center;
    margin-top: 40px;
}

.trending-buy-now-btn {
    background: #000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-buy-now-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Trending carousel dots */
.trending-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.trending-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-dot.active {
    background: #000;
    transform: scale(1.2);
}

.trending-dot:hover {
    background: #666;
}

/* Responsive adjustments for trending carousel */
@media (max-width: 1024px) {
    .trending-products-track .product-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .trending-carousel-container {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden; /* 避免页面产生横向滚动 */
    }

    .trending-carousel-wrapper {
        border-radius: 0 !important;
        overflow: hidden !important; /* 限制滑动区域在轮播内部 */
    }

    .trending-products-track {
        gap: 0 !important;
        padding: 0 15px !important;
    }

    .trending-products-track .product-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important; /* 覆盖桌面端的25%上限 */
        min-width: auto !important;
        margin-right: 10px !important;
    }

    .trending-products-track .product-item:last-child {
        margin-right: 0 !important;
    }

    .trending-products-track .product-item .product-image {
        border-radius: 0 !important;
        height: auto !important;
        aspect-ratio: 10 / 13; /* 高度≈宽度的1.3倍 */
    }

    .trending-carousel-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .trending-carousel-container {
        padding: 0 15px; /* 更紧凑的左右留白 */
        overflow: hidden; /* 防止全页横向滚动 */
    }

    /* 手机端：一行两个 */
    .trending-products-track .product-item {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: auto !important;
        margin-right: 10px !important;
    }

    .trending-products-track .product-item:last-child {
        margin-right: 0 !important;
    }

    .trending-products-track {
        gap: 0 !important;
        padding-bottom: 1px; /* 触控时避免父级抖动 */
    }

    .trending-products-track .product-item .product-image {
        height: auto !important;
        aspect-ratio: 10 / 13; /* 高≈宽*1.3 */
    }
}

/* Related Products Carousel Styles */
.related-carousel-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.related-carousel-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.related-products-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.related-products-track .product-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 200px;
    max-width: calc(25% - 15px);
}

.related-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.related-carousel-btn.prev-btn {
    left: 10px;
}

.related-carousel-btn.next-btn {
    right: 10px;
}

/* Related carousel dots */
.related-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.related-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-dot.active {
    background: #000;
    transform: scale(1.2);
}

.related-dot:hover {
    background: #666;
}

/* Responsive adjustments for related carousel */
@media (max-width: 1024px) {
    .related-products-track .product-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .related-carousel-container { padding: 0 16px; }
    /* 手机端：不使用轮播，改为两列网格，显示全部 */
    .related-carousel-wrapper { overflow: visible; }
    .related-products-track { flex-wrap: wrap; gap: 12px; transform: none !important; }
    .related-products-track .product-item {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: auto !important;
    }
    .related-carousel-btn, .related-carousel-dots { display: none !important; }
}

@media (max-width: 480px) {
    .related-carousel-container { padding: 0 12px; }
    .related-products-track { flex-wrap: wrap; gap: 10px; transform: none !important; }
    .related-products-track .product-item { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); min-width: auto !important; }
}

.product-item {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* All Products 页面：商品图强制 1:1 正方形（仅在 products.html 生效） */
.all-products-page .product-image {
    height: auto;            /* 覆盖默认 400px 固定高度 */
    aspect-ratio: 1 / 1;     /* 正方形 */
}
.all-products-page .product-image img {
    height: 100%;            /* 让图片填满正方形容器 */
    object-fit: cover;       /* 居中裁剪，视觉更统一 */
}

/* 相关推荐：卡片宽高比 1:1.3（高度≈宽度1.3倍） */
.related-products-track .product-image {
    height: auto !important;
    aspect-ratio: 10 / 13;
}
.related-products-track .product-image img {
    height: 100% !important;
    object-fit: cover;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background-color: #000;
    color: #fff;
}

.add-to-wishlist {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-wishlist:hover {
    background-color: #d01345;
    color: #fff;
}

.product-item .product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* Footer */
.footer {
    background-color: #f8f8f8;
    padding: 60px 0 20px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #000;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #666;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods i {
    font-size: 24px;
    color: #666;
}

/* Blog Styles */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 60px;
    border-radius: 12px;
}

.blog-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.blog-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-posts {
    margin-bottom: 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 14px;
}

.blog-date {
    color: #666;
}

.blog-category {
    background: #007bff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number.active {
    background: #000;
    color: #fff;
}

.pagination-number:not(.active):hover {
    background: #f0f0f0;
}

.pagination-dots {
    color: #666;
    font-weight: 500;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Search Results Info */
.search-results-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.search-results-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.search-results-text .search-term {
    color: #007bff;
    font-weight: 600;
}

.search-results-text .result-count {
    color: #28a745;
    font-weight: 600;
}

.search-results-text .no-results {
    color: #6c757d;
}

/* All Products Page Styles */
.all-products-page {
    background-color: #fff;
    min-height: 100vh;
    padding-top: 20px;
}

/* Category Scroll List */
.category-scroll-container {
    margin: 30px 0 10px 0;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding: 20px 0;
    border-radius: 8px;
}

.category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-scroll-btn:hover {
    background: #fff;
    border-color: #000;
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.category-scroll-btn.prev {
    left: 10px;
}

.category-scroll-btn.next {
    right: 10px;
}

.category-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.category-scroll-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 50px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
    cursor: grab;
}

.category-scroll-list:active {
    cursor: grabbing;
}

.category-scroll-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 14px 28px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: fit-content;
}

.category-item:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.category-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {

    /* 顶部两行：第一行居中Logo，第二行：汉堡(左)-搜索(中)-图标组(右) */
    .header-top {
        border-bottom: none;
        padding: 8px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .header-left {
        display: none;
    }

    .header-center {
        width: 100%;
        text-align: center;
    }

    .header-center .logo h1 {
        font-size: 20px;
        margin: 4px 0 8px;
    }

    .header-right {
        width: 100%;
    }

    .header-icons {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .header-icons .search-container {
        flex: 1;
        width: auto;
        order: 2;
    }

    .header-icons .search-container input {
        font-size: 13px;
        padding: 8px;
    }

    .header-icons .search-container button {
        width: 32px;
        height: 32px;
    }

    .hamburger-btn {
        order: 1;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid #e5e5e5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-btn i {
        font-size: 18px;
    }

    .icon-group {
        order: 3;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .icon-group>div {
        padding: 6px;
    }

    /* 折叠导航 */
    .main-nav { 
        padding: 0 !important; 
        border: 0 !important; 
        height: auto !important; 
        display: block !important; 
        margin: 0 !important; 
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        background: #000;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        display: flex;
    }

    /* New In 区域分类卡片手机端样式 */
    .category-scroll-section {
        margin: 15px 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
    }

    .category-scroll-container {
        padding: 0 15px !important;
        margin: 0 !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .category-scroll-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        gap: 0 !important;
        display: block !important;
    }

    #hot-categories-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .category-card {
        width: 100% !important;
        height: 180px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
        transition: none !important;
        flex: none !important;
    }

    .category-card:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .category-card-content h3 {
        font-size: 14px;
        font-weight: 600;
    }

    .category-scroll-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .category-scroll-btn.prev {
        left: 5px;
    }

    .category-scroll-btn.next {
        right: 5px;
    }

    .category-scroll-list {
        padding: 10px 40px;
        gap: 12px;
    }

    .category-item {
        padding: 12px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-scroll-container {
        padding: 0;
        margin: 0;
    }

    .category-scroll-wrapper {
        padding: 0;
        margin: 0;
    }

    .category-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .category-scroll-btn.prev {
        left: 2px;
    }

    .category-scroll-btn.next {
        right: 2px;
    }

    .category-scroll-list {
        padding: 8px 35px;
        gap: 10px;
    }

    .category-item {
        padding: 10px 18px;
        font-size: 13px;
        min-width: auto;
    }

    /* New In 区域分类卡片小屏手机端样式 */
    .category-scroll-section {
        margin: 15px 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
    }

    .category-scroll-container {
        padding: 0 12px !important;
        margin: 0 !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .category-scroll-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        gap: 0 !important;
        display: block !important;
    }

    #hot-categories-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .category-card {
        width: 100% !important;
        height: 160px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
        transition: none !important;
        flex: none !important;
    }

    .category-card:hover {
        transform: none !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    }

    .category-card {
        width: 100%;
        height: 160px;
        border-radius: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .category-card-content h3 {
        font-size: 13px;
    }
}

/* Filter Area */
.filter-area {
    background-color: #fff;
    padding: 25px;
    margin: 5px 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.filter-section label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #000;
}

.filter-checkbox {
    margin-right: 5px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-reset-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .filter-area {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-section {
        justify-content: space-between;
        min-width: auto;
    }

    .filter-select {
        min-width: 100px;
        flex: 1;
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0; /* 顶部留白强制为0 */
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #000;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.products-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.products-grid-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.load-more-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

.loading-spinner i {
    margin-right: 8px;
}

.loading-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.loading-products i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
    font-size: 18px;
}

.no-more-products {
    color: #666;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    font-style: italic;
    display: none;
}

/* Product Detail Page Styles */
.product-detail-page {
    padding-top: 0; /* 原为80px，已移除以消除头部与内容间空隙 */
    background-color: #f8f9fa;
    min-height: 100vh;
}

.product-detail-page .page-header {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.back-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 6px; /* 缩小与面包屑的间距（原15px） */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #007bff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

/* 详情页返回/面包屑块顶部留白压到0（防强制继承） */
.product-detail-page .breadcrumb,
.product-detail-page .page-header nav.breadcrumb {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto 40px; /* 顶部不再额外留白 */
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 移动端详情图轮播 */
.mobile-gallery { display: none; }
.mobile-gallery-wrapper { overflow: hidden; border-radius: 8px; }
.mobile-gallery-track { display: flex; transition: transform .4s ease; touch-action: pan-y; }
.mobile-slide { flex: 0 0 100%; }
.mobile-slide img { width: 100%; display: block; border-radius: 8px; }
.mobile-gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.mobile-gallery-dots .dot { width: 8px; height: 8px; border-radius: 50%; background:#ccc; }
.mobile-gallery-dots .dot.active { background:#000; transform: scale(1.2); }

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.zoom-btn:hover {
    background: white;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-brand {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

/* Removed product rating styles */

/* Product Detail Images */
.product-detail-images {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.product-detail-images h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.detail-images-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.02);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Product Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.size-selector,
.color-selector,
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-selector label,
.color-selector label,
.quantity-selector label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.size-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.size-option {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
}

.size-option:hover {
    border-color: #007bff;
}

.size-option.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.size-guide {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
}

.size-guide:hover {
    text-decoration: underline;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

#quantity {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-to-cart-btn,
.add-to-wishlist-btn,
.buy-now-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn {
    background: #007bff;
    color: white;
}

.add-to-cart-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.add-to-wishlist-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    font-size: 18px;
    padding: 18px 40px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.add-to-wishlist-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.buy-now-btn {
    background: #28a745;
    color: white;
}

.buy-now-btn:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.feature i {
    color: #28a745;
    width: 20px;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.detail-section li:last-child {
    border-bottom: none;
}

.detail-section p {
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
}

/* Related Products */
.related-products {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.related-products h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    /* 小屏：启用移动轮播，隐藏桌面主图/缩略图和详情图片块 */
    .mobile-gallery { display: block; }
    .product-images .main-image, .product-images .thumbnail-images, .product-detail-images { display: none; }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 24px;
    }

    .product-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 20px;
        margin: -20px;
        border-top: 1px solid #e9ecef;
    }

    .related-products {
        padding: 20px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {

    /* 保持头部为单行，下面只保留与内容区相关的调整 */
    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .category-card {
        width: 150px;
        height: 200px;
    }

    .category-card img {
        height: 150px;
    }

    .category-card-content {
        padding: 10px;
    }

    .category-card-content h3 {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .products-grid-all {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 全部商品页：标题与统计信息居中 */
    .all-products-page .page-header { align-items: center !important; text-align: center !important; display: flex !important; flex-direction: column !important; }
    .all-products-page .page-header h1 { text-align: center !important; width: 100%; }
    .all-products-page .products-count { text-align: center !important; width: 100%; }

    /* 全部商品页：卡片高度为宽度的1.3倍 */
    .products-grid-all .product-image {
        height: auto !important;
        aspect-ratio: 10 / 13; /* 高≈宽*1.3 */
    }
    .products-grid-all .product-image img {
        height: 100% !important;
        object-fit: cover;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .header-icons .search-container {
        width: auto;
        flex: 1;
    }

    .header-icons .search-container input {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-banner {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .category-card {
        width: 120px;
        height: 160px;
    }

    .category-card img {
        height: 120px;
    }

    .category-card-content {
        padding: 8px;
    }

    .category-card-content h3 {
        font-size: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* 小屏也保持1.3倍比例 */
    .products-grid-all .product-image {
        height: auto !important;
        aspect-ratio: 10 / 13;
    }
    .products-grid-all .product-image img {
        height: 100% !important;
        object-fit: cover;
    }
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-zoom-modal.active {
    display: flex;
}

.image-zoom-modal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-modal .close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.image-zoom-modal .close-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.zoom-container {
    position: relative;
    overflow: visible;
    cursor: grab;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.zoom-container:active {
    cursor: grabbing;
}

.zoom-container img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.zoom-btn-control {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.zoom-btn-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-btn-control:active {
    transform: scale(0.95);
}

/* Mobile responsive for zoom modal */
@media (max-width: 768px) {
    .image-zoom-modal .close-modal {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .zoom-container img {
        max-width: 95vw;
        max-height: 70vh;
    }

    .zoom-controls {
        bottom: 10px;
        padding: 8px;
    }

    .zoom-btn-control {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* ========== Mobile Hero Carousel Styles ========== */
@media (max-width: 768px) {
    /* Hero carousel mobile adjustments */
    .hero-carousel {
        height: calc(100vw / 1.4) !important; /* 1:1.4 aspect ratio */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide carousel navigation buttons on mobile */
    .carousel-btn {
        display: none !important;
    }
    
    /* Black dots for mobile carousel - positioned below carousel */
    .carousel-dots {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        padding: 15px 0 !important;
        background-color: #fff !important;
        margin: 0 !important;
    }
    
    .carousel-dots .dot {
        background-color: rgba(0, 0, 0, 0.4) !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    .carousel-dots .dot.active {
        background-color: rgba(0, 0, 0, 0.8) !important;
        transform: scale(1.3) !important;
    }
    
    /* Ensure carousel takes full width */
    .hero-section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
    }
    
    .carousel-container {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .carousel-slide {
        width: 100vw !important;
    }
    
    .carousel-slide img {
        width: 100vw !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ========== Global mobile full-width and square corners ========== */
@media (max-width: 768px) {
    /* Remove horizontal gutters */
    html, body { overflow-x: hidden; }
    .container, .header-container { padding-left: 0 !important; padding-right: 0 !important; }
    .products-section .container, .related-carousel-container, .trending-carousel-container { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
    .all-products-page { padding-left: 0 !important; padding-right: 0 !important; }
    .page-header { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* All Products page: edge-to-edge grid */
    .products-grid-all { padding-left: 0 !important; padding-right: 0 !important; }
    .products-section { margin-left: 0 !important; margin-right: 0 !important; }
    .filter-area { border-radius: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* Square corners everywhere commonly used */
    .product-item, .product-image, .product-image img,
    .related-products, .trending-carousel-wrapper,
    .category-card, .quick-view, .add-to-wishlist,
    .pagination-btn, .search-results, .search-results-info,
    .thumbnail, .detail-image { border-radius: 0 !important; box-shadow: none !important; }

    /* Product detail page: no side gutters, no rounded corners */
    .product-detail-container { padding: 0 !important; margin: 0 auto !important; border-radius: 0 !important; box-shadow: none !important; background: #fff; gap: 0 !important; }
    .product-detail-page .page-header { padding-left: 0 !important; padding-right: 0 !important; }
    .product-images .main-image { border-radius: 0 !important; margin-top: 0 !important; }
    .mobile-gallery-wrapper { border-radius: 0 !important; }
    .mobile-slide img { border-radius: 0 !important; }
    .thumbnail { border-radius: 0 !important; }
    .detail-images-container .detail-image { border-radius: 0 !important; box-shadow: none !important; }
    .related-products { padding-left: 0 !important; padding-right: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
    .product-actions { padding-left: 12px !important; padding-right: 12px !important; margin: 0 !important; }

    /* 价格与规格信息区域：左右留出适当距离 */
    .product-info { padding-left: 12px !important; padding-right: 12px !important; }

    /* 隐藏移动端顶部促销条与国家选择 */
    .top-banner { display: none !important; }
    .header-left .country-selector { display: none !important; }

    /* 头部行布局与间距 */
    .header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px !important; background: #2c2c2c; color: #fff; }
    .header-top .logo h1, .header-top .logo a { font-size: 20px; line-height: 1; margin: 0; color: #fff !important; }
    .header-right .header-icons { display: flex; align-items: center; gap: 14px; }
    .header-right .icon-group { display: flex; align-items: center; gap: 14px; }
    .hamburger-btn i, .header-icons i { color: #fff !important; }

    /* 移动端只显示搜索按钮，不显示输入框 */
    .header-icons .search-container { display: flex; align-items: center; }
    .header-icons .search-container input { display: none !important; }
    .header-icons .search-container button { width: 36px; height: 36px; border-radius: 18px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }

    /* 轮播图上方空白去除 */
    .product-detail-page .page-header { margin: 0 !important; padding: 0 !important; border: 0 !important; height: auto !important; }
    .product-detail-page .back-btn { padding: 0 !important; margin-bottom: 4px !important; }
    /* 兜底：容器本身的顶部内边距也清零，确保紧贴 */
    .product-detail-page .container { padding-top: 0 !important; }
    .product-images { gap: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
    .mobile-gallery { margin-top: 0 !important; padding-top: 0 !important; }
    .breadcrumb { margin-bottom: 0 !important; padding: 0 !important; }
    /* 避免页头与详情容器之间产生任何外边距 */
    .page-header + .product-detail-container { margin-top: 0 !important; padding-top: 0 !important; }
    .product-detail-container .product-images { margin-top: 0 !important; }
    .product-detail-container { margin-top: 0 !important; }

    /* 移动端：抽屉式分类子菜单样式 */
    #mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; z-index: 9998; }
    #mobile-nav-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 60vw; background: #fff; z-index: 9999; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -8px 0 20px rgba(0,0,0,0.15); }
    #mobile-nav-panel.open { transform: translateX(0); }
    #mobile-nav-panel .mnav-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #eee; }
    #mobile-nav-panel .mnav-title { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
    #mobile-nav-panel .mnav-back, #mobile-nav-panel .mnav-close { background: none; border: none; width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
    #mobile-nav-panel .mnav-content { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 24px; }
    #mobile-nav-panel .mnav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: #111; border-bottom: 1px solid #eee; }
    #mobile-nav-panel .mnav-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex: 0 0 36px; }
    #mobile-nav-panel .mnav-item span { font-size: 15px; }
    #mobile-nav-panel .mnav-loading, #mobile-nav-panel .mnav-empty, #mobile-nav-panel .mnav-error { padding: 16px; color: #666; }
    /* 分类卡片：左标题右图片，卡片之间有间距 */
    #mobile-nav-panel .mnav-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 16px; padding: 14px 16px; background: #f7f7f7; border-radius: 10px; }
    #mobile-nav-panel .mnav-card-title { font-weight: 800; letter-spacing: .8px; font-size: 15px; color: #111; }
    #mobile-nav-panel .mnav-card-image { width: 40%; height: 80px; border-radius: 8px; background: #eee center/cover no-repeat; }
    #mobile-nav-panel .mnav-skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: mnav-skel 1.2s ease-in-out infinite; }
    @keyframes mnav-skel { 0%{background-position: 100% 0;} 100%{background-position: 0 0;} }
}

/* 全屏搜索模态框（移动端为主，也兼容桌面） */
.search-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; z-index: 9999; }
.search-modal.open { display: block; }
.search-modal .modal-inner { position: absolute; top: 0; left: 0; right: 0; background: #f2f2f2; min-height: 100%; padding: 16px; }
.search-modal .close-search { position: absolute; top: 12px; right: 16px; width: 36px; height: 36px; border-radius: 18px; background: #333; color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.search-modal .search-field { margin-top: 40px; }
.search-modal .search-field input { width: 100%; height: 44px; padding: 0 44px 0 16px; border-radius: 22px; border: 2px solid #ffb84d; background: #fff; font-size: 16px; }
.search-modal .search-field .submit { position: absolute; right: 28px; top: 40px; width: 36px; height: 36px; border-radius: 18px; border: none; background: #ffb84d; color: #333; display: flex; align-items: center; justify-content: center; }

/* ========== Back To Top (全站通用) ========== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9990;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  }
}