/*
Theme Name: Aureo Stone
Theme URI: https://aureostone.com
Author: Aureo Studio
Description: 极简中性轻奢手链主题 – 导航栏预览版（全黑背景+灰条导航）
Version: 0.1.0
License: GPL v2 or later
Text Domain: aureo-stone
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 网站整体黑色背景 */
body {
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    font-size: 16px;
}

/* 导航栏外层：灰色背景，粘性固定 */
.site-header {
    background-color: #2c2c2c;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo 白色 */
.logo a {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #ffffff;
}
.logo a:hover {
    color: #C1A478;
}

/* 导航菜单：白色文字 */
.main-navigation ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s;
}
.main-navigation a:hover {
    color: #C1A478;
}

/* 右侧图标组：白色 */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-icons i, .header-icons a {
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.header-icons i:hover, .header-icons a:hover {
    color: #C1A478;
}

.wpmenucart-contents { 
    display: flex; 
    align-items: center; 
}

/* 确保图标在屏幕阅读器和浏览器中能正确显示 */
.login-link i {
    font-size: 1.2rem;
}

/* 登录/登出文字链接（若用文字则保持一致） */
.login-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    .header-icons {
        justify-content: center;
    }
}

/* ========== 英雄区（电脑端保持不变，手机端已优化） ========== */
.hero-banner {
    position: relative;
    width: 100%;
    margin-top: 0;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #000000;
    padding-top: 18%;
    padding-bottom: 18%;
    min-height: 450px;
}
@media (min-width: 769px) {
    .hero-banner {
        padding-top: 12%;
        padding-bottom: 5%;
    }
}
@media (max-width: 768px) {
    .hero-banner {
        padding-top: 25%;
        padding-bottom: 0;
        background-attachment: scroll !important;
        background-size: contain !important;
        background-color: transparent !important;
        min-height: auto;
    }
    .hero-banner .hero-container {
        top: 0%;
    }
}
.hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.hero-banner .hero-container {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 2;
    text-align: center;
    padding: 20px;
}
@media (max-width: 768px) {
    .hero-banner .hero-container {
        top: 0%;
    }
}

/* 模块3上移 */
.latest-collections {
    margin-top: 0 !important;
    margin-bottom: 60px;
}

/* 手机端模块3下移 */
@media (max-width: 768px) {
    .latest-collections {
        margin-top: 180px !important;
    }
}

.hero-rating {
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.stars {
    color: #C1A478;
    letter-spacing: 4px;
    margin-right: 6px;
}
.reviews {
    font-size: 0.9rem;
}
.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 32px;
}
.trust-points {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}
.trust-points li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-points .bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #C1A478;
    border-radius: 50%;
}
/* 手机端英雄榜文字进一步按比例缩小 */
@media (max-width: 768px) {
    .hero-rating {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
    }
    .stars {
        letter-spacing: 1px !important;
        margin-right: 3px !important;
    }
    .reviews {
        font-size: 0.5rem !important;
    }
    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    .hero-subtitle {
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
    }
    .trust-points li {
        font-size: 0.55rem !important;
        margin-bottom: 5px !important;
        gap: 5px !important;
    }
    .trust-points .bullet {
        width: 4px !important;
        height: 4px !important;
    }
    .hero-container {
        padding: 8px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* 语言切换器样式 */
.language-switcher-desktop {
    margin-left: 15px;
}
.lang-select, .lang-select-mobile {
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}
.lang-select:hover, .lang-select-mobile:hover {
    border-color: #C1A478;
}
.language-switcher-mobile {
    position: relative;
    display: inline-block;
}
.language-switcher-mobile #lang-mobile-icon {
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 8px;
}
.language-switcher-mobile .lang-select-mobile {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #1e1e1e;
    z-index: 1001;
    width: 80px;
}
.language-switcher-mobile.active .lang-select-mobile {
    display: block;
}
@media (max-width: 768px) {
    .language-switcher-desktop {
        display: none;
    }
}

/* ========== 模块3：最新系列区 ========== */
.latest-collections {
    margin: 40px 0 60px;
}
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.latest-collections .horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 12px;
    justify-content: center;
}
@media (max-width: 768px) {
    .latest-collections .horizontal-scroll {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .latest-collections .horizontal-scroll::-webkit-scrollbar {
        height: 4px;
    }
    .latest-collections .horizontal-scroll::-webkit-scrollbar-track {
        background: #2a2a2a;
        border-radius: 2px;
    }
    .latest-collections .horizontal-scroll::-webkit-scrollbar-thumb {
        background: #C1A478;
        border-radius: 2px;
    }
}
.collection-card {
    width: 160px;
    flex-shrink: 0;
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.collection-card .card-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    border: 2px solid #ffffff;
    border-bottom: none;
    transition: all 0.3s ease;
    filter: brightness(1.08);
}
.collection-card .card-info {
    background-color: #2a2a2a;
    border-radius: 0 0 12px 12px;
    border: 2px solid #ffffff;
    border-top: none;
    padding: 10px 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}
.collection-card .card-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}
.collection-card:hover .card-img,
.collection-card:hover .card-info {
    border-color: #C1A478;
}
@media (max-width: 1400px) {
    .collection-card {
        width: 150px;
    }
    .collection-card .card-img {
        height: 150px;
    }
}
@media (max-width: 1200px) {
    .collection-card {
        width: 140px;
    }
    .collection-card .card-img {
        height: 140px;
    }
}
@media (max-width: 1000px) {
    .collection-card {
        width: 130px;
    }
    .collection-card .card-img {
        height: 130px;
    }
    .collection-card .card-title {
        font-size: 0.7rem;
    }
}
@media (max-width: 800px) {
    .collection-card {
        width: 120px;
    }
    .collection-card .card-img {
        height: 120px;
    }
    .latest-collections .horizontal-scroll {
        gap: 8px;
    }
}
.collection-card a,
.collection-card a:hover {
    text-decoration: none !important;
}

/* ========== 模块4：Top Products ========== */
.latest-collections {
    margin-bottom: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 60px;
}

.top-products { margin: 80px 0; }
.products-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}
.products-grid {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}
@media (max-width: 480px) {
    .products-grid {
        gap: 12px !important;
    }
}

.product-card {
    background: transparent;
    text-align: center;
    position: relative;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: 1px solid #C1A478;
    color: #C1A478;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}
.product-image {
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 8px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}
.product-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.product-card:hover .product-image {
    border-color: #C1A478;
}
.color-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.swatch {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-size: cover;
    cursor: pointer;
    border: 1px solid #444;
    transition: transform 0.2s;
}
.swatch:hover { transform: scale(1.05); border-color: #C1A478; }
.swatch-active { border-color: #C1A478; box-shadow: 0 0 0 1px #C1A478; }
.product-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin: 6px 0 2px;
}
.product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin: 2px 0;
}
.sale-price { color: #C1A478; }
.old-price {
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-left: 8px;
    opacity: 0.6;
}
.save-amount {
    display: block;
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 4px;
}
.product-rating {
    font-size: 0.8rem;
    color: #C1A478;
    margin: 4px 0;
}
.product-rating span { color: #aaa; }
.btn-wrapper { text-align: center; }
.explore-btn {
    background: #C1A478;
    color: #121212;
    border: none;
    padding: 12px 36px;
    font-weight: 600;
}
.explore-btn:hover { background: white; }

@media (max-width: 768px) {
    .top-products .product-card .card-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    .top-products .product-card .product-info-wrap {
        flex: 1;
        text-align: left;
    }
    .top-products .product-card .add-to-cart {
        position: static !important;
        display: inline-flex !important;
        transform: none !important;
        margin-left: 12px;
        flex-shrink: 0;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ========== 模块5：One-of-a-Kind ========== */
.unique-collection { 
    margin: 60px 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px 0;
}
.unique-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}
.unique-left { 
    flex: 1.85;
}
.unique-image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.unique-right { 
    flex: 1.15;
}
.unique-right h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}
.unique-right p {
    color: #ccc;
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.shop-btn {
    background: #C1A478;
    color: #121212;
    border: none;
    padding: 10px 28px;
}
@media (max-width: 768px) {
    .unique-inner { 
        flex-direction: column; 
    }
    .unique-left { 
        flex: 1; 
        width: 100%;
    }
    .unique-image { 
        height: auto;
        min-height: 160px;
        width: 100%;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #0a0a0a;
        display: block;
    }
    .unique-right h2 { 
        font-size: 1.6rem; 
    }
}

/* ========== 模块6：Shop by Stone ========== */
.shop-by-stone { margin: 40px 0; }
.stone-scroll {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 16px;
}
.stone-card {
    flex: 0 0 140px;
    text-align: center;
}
.stone-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a;
    border-radius: 50%;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
}
.stone-card:nth-child(1) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Sodalite'); }
.stone-card:nth-child(2) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Tiger+Eye'); }
.stone-card:nth-child(3) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Carnelian'); }
.stone-card:nth-child(4) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Tourmaline'); }
.stone-card:nth-child(5) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Aquamarine'); }
.stone-card:nth-child(6) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Amethyst'); }
.stone-card:nth-child(7) .stone-img { background-image: url('https://via.placeholder.com/140/2a2a2a?text=Lapis+Lazuli'); }
.stone-name {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}
@media (max-width: 640px) {
    .stone-card {
        flex: 0 0 100px;
    }
}

/* ========== 模块7：品牌故事 ========== */
.brand-story {
    margin: 80px 0;
    background: #0a0a0a;
    padding: 10px 0;
}
.story-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}
.story-text { flex: 1; }
.story-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}
.story-text p {
    color: #ccc;
    margin-bottom: 16px;
    line-height: 1.5;
}
.story-image {
    flex: 2;
    background-image: url('https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?q=80&w=2070&auto=format');
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .story-inner { flex-direction: column; }
    .story-text h2 {
        font-size: 1.6rem;
    }
}

/* ========== 模块8：Recently Viewed ========== */
.recently-viewed { margin: 80px 0; }
.section-title-left {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 32px;
    text-align: left;
}
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.recent-card {
    background: transparent;
    text-align: center;
    position: relative;
}
.recent-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}
@media (max-width: 768px) {
    .recent-grid { grid-template-columns: 1fr; }
    .section-title-left {
        font-size: 1.4rem;
    }
}

/* ========== 模块9：页脚 Footer ========== */
.site-footer {
    background: #1a1a1a;
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
}
.footer-col a:hover {
    color: #C1A478;
}
.footer-col p {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.footer-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
}
.footer-form button {
    background: #C1A478;
    border: none;
    padding: 10px 20px;
    color: #121212;
    font-weight: 600;
    width: 100%;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #333;
    padding-top: 30px;
}
.social-icons a {
    color: white;
    margin-right: 16px;
    font-size: 1.2rem;
}
.copyright {
    color: #aaa;
    font-size: 0.7rem;
}
.payment-icons i {
    font-size: 1.4rem;
    margin-left: 12px;
    color: #aaa;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .payment-icons i {
        margin: 0 6px;
    }
}

/* ========== 移动端导航样式 ========== */
.mobile-header,
.mobile-sidebar,
.mobile-sidebar-overlay {
    display: none;
}
.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: #121212;
        padding: 12px 16px;
        position: relative;
    }
    .mobile-menu-toggle {
        cursor: pointer;
        font-size: 1.4rem;
        color: #ffffff;
    }
    .mobile-logo {
        text-align: center;
    }
    .mobile-logo a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        letter-spacing: -0.02em;
    }
    .mobile-logo img {
        max-height: 30px;
        width: auto;
    }
    .mobile-icons {
        display: flex;
        gap: 18px;
        align-items: center;
    }
    .mobile-icons i,
    .mobile-icons a {
        color: #ffffff;
        font-size: 1.2rem;
        text-decoration: none;
    }
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -80%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background-color: #1e1e1e;
        z-index: 10000;
        transition: left 0.3s ease;
        padding: 20px;
        display: block;
        box-shadow: 2px 0 12px rgba(0,0,0,0.5);
    }
    .mobile-sidebar.active {
        left: 0;
    }
    .mobile-sidebar-header {
        text-align: right;
        margin-bottom: 30px;
    }
    .close-sidebar {
        font-size: 1.4rem;
        color: #fff;
        cursor: pointer;
    }
    .mobile-sidebar-menu ul {
        list-style: none;
        padding: 0;
    }
    .mobile-sidebar-menu li {
        margin-bottom: 20px;
    }
    .mobile-sidebar-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        display: block;
    }
    .mobile-sidebar-footer {
        margin-top: 40px;
        border-top: 1px solid #333;
        padding-top: 20px;
    }
    .mobile-login-link {
        color: #C1A478;
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 9999;
        display: none;
    }
    .mobile-sidebar-overlay.active {
        display: block;
    }
    .site-header .container {
        padding: 0;
    }
    .site-header {
        padding: 0;
    }
}

/* 下滑搜索区域 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}
.search-dropdown.active {
    display: block;
}
.search-dropdown-inner {
    padding: 15px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.search-form-dropdown {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.search-form-dropdown .search-field {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #555;
    background-color: #1a1a1a;
    color: white;
    border-radius: 4px;
    outline: none;
}
.search-form-dropdown .search-field:focus {
    border-color: #C1A478;
}
.search-form-dropdown .search-submit {
    background-color: #C1A478;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #121212;
    transition: 0.2s;
}
.search-form-dropdown .search-submit:hover {
    background-color: #ffffff;
    color: #121212;
}
@media (max-width: 768px) {
    .search-dropdown-inner {
        padding: 12px 16px;
    }
    .search-form-dropdown .search-field {
        padding: 10px 12px;
    }
    .search-form-dropdown .search-submit {
        padding: 10px 20px;
    }
}

/* ========== 购物车页面样式 ========== */
.cart-page-wrapper {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0;
    min-height: 60vh;
}
.cart-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
}
.cart-table-responsive {
    overflow-x: auto;
}
.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    background-color: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.shop_table.cart th,
.shop_table.cart td {
    padding: 16px 12px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: middle;
    text-align: center;
}
.shop_table.cart th {
    background-color: #121212;
    font-weight: 600;
    color: #C1A478;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.shop_table.cart td {
    color: #e0e0e0;
}
.product-thumbnail img {
    max-width: 70px;
    border-radius: 8px;
}
.product-name a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
.product-name a:hover {
    color: #C1A478;
}
.product-remove .remove {
    color: #ff6b6b;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 300;
}
.product-remove .remove:hover {
    color: #ff3b3b;
}
.quantity .qty {
    width: 70px;
    padding: 8px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    text-align: center;
    border-radius: 4px;
}
.cart .actions {
    background-color: #0a0a0a;
    text-align: right;
    padding: 20px;
}
.coupon {
    float: left;
    display: flex;
    gap: 12px;
    align-items: center;
}
.coupon label {
    display: none;
}
.coupon input {
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    min-width: 200px;
}
.button {
    background-color: #C1A478;
    color: #121212;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.button:hover {
    background-color: #ffffff;
    color: #121212;
}
.update-cart {
    background-color: #2a2a2a;
    color: white;
}
.update-cart:hover {
    background-color: #C1A478;
    color: #121212;
}
.cart-collaterals {
    margin-top: 40px;
}
.cart_totals {
    background-color: #0a0a0a;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    margin-left: auto;
}
.cart_totals h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}
.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}
.cart_totals th,
.cart_totals td {
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}
.cart_totals th {
    font-weight: 500;
    color: #ccc;
}
.cart_totals td {
    color: white;
    font-weight: 600;
}
.wc-proceed-to-checkout {
    margin-top: 20px;
    text-align: center;
}
.checkout-button {
    background-color: #C1A478;
    color: #121212;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    border-radius: 30px;
}
.checkout-button:hover {
    background-color: white;
    color: #121212;
}
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    font-size: 1.2rem;
    color: #ccc;
}
.return-to-shop {
    text-align: center;
    margin-top: 20px;
}
.return-to-shop .button {
    background: transparent;
    border: 1px solid #C1A478;
    color: #C1A478;
}
.return-to-shop .button:hover {
    background: #C1A478;
    color: #121212;
}
@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 30px 0;
    }
    .shop_table.cart th,
    .shop_table.cart td {
        padding: 12px 8px;
    }
    .coupon {
        float: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    .cart .actions {
        text-align: center;
    }
    .cart_totals {
        max-width: 100%;
        margin-top: 30px;
    }
    .coupon input {
        min-width: 160px;
    }
}

/* 将移动端导航断点扩展到平板（宽度 ≤ 1024px） */
@media (max-width: 1024px) {
    .desktop-header {
        display: none !important;
    }
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: #121212;
        padding: 12px 16px;
        position: relative;
    }
    .mobile-menu-toggle {
        cursor: pointer;
        font-size: 1.4rem;
        color: #ffffff;
    }
    .mobile-logo {
        text-align: center;
    }
    .mobile-logo a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        letter-spacing: -0.02em;
    }
    .mobile-logo img {
        max-height: 30px;
        width: auto;
    }
    .mobile-icons {
        display: flex;
        gap: 18px;
        align-items: center;
    }
    .mobile-icons i,
    .mobile-icons a {
        color: #ffffff;
        font-size: 1.2rem;
        text-decoration: none;
    }
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -80%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background-color: #1e1e1e;
        z-index: 10000;
        transition: left 0.3s ease;
        padding: 20px;
        display: block;
        box-shadow: 2px 0 12px rgba(0,0,0,0.5);
    }
    .mobile-sidebar.active {
        left: 0;
    }
    .mobile-sidebar-header {
        text-align: right;
        margin-bottom: 30px;
    }
    .close-sidebar {
        font-size: 1.4rem;
        color: #fff;
        cursor: pointer;
    }
    .mobile-sidebar-menu ul {
        list-style: none;
        padding: 0;
    }
    .mobile-sidebar-menu li {
        margin-bottom: 20px;
    }
    .mobile-sidebar-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        display: block;
    }
    .mobile-sidebar-footer {
        margin-top: 40px;
        border-top: 1px solid #333;
        padding-top: 20px;
    }
    .mobile-login-link {
        color: #C1A478;
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 9999;
        display: none;
    }
    .mobile-sidebar-overlay.active {
        display: block;
    }
    .site-header .container {
        padding: 0;
    }
    .site-header {
        padding: 0;
    }
}

/* ========== 右侧滑出购物车 ========== */
.cart-slideout {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    max-width: 90vw;
    height: 100%;
    background-color: #0a0a0a;
    box-shadow: -2px 0 15px rgba(0,0,0,0.5);
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}
.cart-slideout.open {
    right: 0;
}
.cart-slideout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}
.cart-slideout-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.close-cart {
    font-size: 1.1rem;
    cursor: pointer;
    color: #C1A478;
}
.cart-slideout-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    font-size: 0.85rem;
}
.widget_shopping_cart .cart_list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
}
.widget_shopping_cart .cart_list li img {
    width: 50px;
    border-radius: 6px;
}
.widget_shopping_cart .cart_list li .product-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}
.widget_shopping_cart .cart_list li .quantity {
    font-size: 0.75rem;
    color: #C1A478;
}
.widget_shopping_cart .total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}
.cart-slideout-footer {
    padding: 16px 20px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 12px;
}
.cart-slideout-footer .btn {
    flex: 1;
    text-align: center;
    background: #C1A478;
    color: #121212;
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
}
.cart-slideout-footer .btn:hover {
    background: #fff;
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
}
.cart-overlay.active {
    display: block;
}
.widget_shopping_cart .cart_list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}
.widget_shopping_cart .cart_list li img {
    width: 60px;
    border-radius: 8px;
}
.widget_shopping_cart .cart_list li .product-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}
.widget_shopping_cart .cart_list li .quantity {
    font-size: 0.8rem;
    color: #C1A478;
}
.widget_shopping_cart .total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    font-weight: 600;
    text-align: right;
}

/* ========== 添加到购物车按钮 ========== */
.product-card .card-media {
    position: relative;
    margin-bottom: 16px;
}
.add-to-cart {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(193, 164, 120, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
}
.product-card:hover .add-to-cart {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 768px) {
    .add-to-cart {
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 30px;
        height: 30px;
        bottom: 8px;
        right: 8px;
    }
    .add-to-cart i {
        font-size: 0.8rem;
    }
    .product-card .card-info {
        margin-top: 10px;
        padding-top: 0;
    }
}
.add-to-cart i {
    font-size: 1.2rem;
    font-weight: 600;
    color: #121212;
    transition: transform 0.3s ease;
}
.add-to-cart:hover {
    background-color: #C1A478;
    transform: scale(1.05);
}
.add-to-cart:hover i {
    transform: rotate(360deg);
}
.add-to-cart.click-effect {
    transform: scale(0.92);
}
.product-card .card-info {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ========== 统一模块4与模块8的布局 ========== */
.top-products .products-grid,
.recently-viewed .recent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
@media (max-width: 1024px) {
    .top-products .products-grid,
    .recently-viewed .recent-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 768px) {
    .top-products .products-grid,
    .recently-viewed .recent-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .top-products .product-card .card-info,
    .recently-viewed .product-card .card-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    .top-products .product-card .product-info-wrap,
    .recently-viewed .product-card .product-info-wrap {
        flex: 1;
        text-align: left;
    }
    .top-products .product-card .add-to-cart,
    .recently-viewed .product-card .add-to-cart {
        position: static !important;
        display: inline-flex !important;
        transform: none !important;
        margin-left: 12px;
        flex-shrink: 0;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
@media (max-width: 480px) {
    .top-products .products-grid,
    .recently-viewed .recent-grid {
        gap: 12px !important;
    }
}

/* 电脑端 Logo 尺寸控制（显示为 130x35，不裁剪原图） */
.logo img,
.custom-logo {
    width: 130px;
    height: auto;
    max-height: 35px;
    object-fit: contain;
}

/* 移动端 Logo 适当缩小（保持比例） */
@media (max-width: 1024px) {
    .mobile-logo img,
    .mobile-logo .custom-logo {
        width: 100px;
        max-height: 28px;
        height: auto;
        object-fit: contain;
    }
}

/* 全局顶部通知栏 - 静态居中显示 */
.global-top-notification {
    background: #C1A478;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: none;
}
.global-top-notification .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.notification-content {
    display: block;
    text-align: center;
}
@media (max-width: 768px) {
    .global-top-notification {
        padding: 8px 0;
        font-size: 0.75rem;
    }
    .global-top-notification .container {
        padding: 0 16px;
    }
}

/* ========== 强制桌面端导航菜单不换行（修复第四项换行问题） ========== */
/* 注意：此段 CSS 仅影响宽度 > 1024px 的桌面端，平板及手机仍使用移动端布局 */
@media (min-width: 1025px) {
    /* 确保 header 内部不换行 */
    .header-inner {
        flex-wrap: nowrap;
    }
    .desktop-header {
        display: flex;
        align-items: center;
        gap: 24px;
        width: 100%;
    }
    .logo {
        flex-shrink: 0;
    }
    .main-navigation {
        flex: 1;
        min-width: 0;
        overflow: visible;
    }
    .main-navigation .nav-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 28px;
        list-style: none;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }
    .main-navigation .nav-menu li {
        flex-shrink: 0;
    }
    .header-icons {
        flex-shrink: 0;
        display: flex;
        gap: 20px;
        align-items: center;
    }
    /* 如果屏幕宽度在 1025px ~ 1280px 之间，减小菜单间距防止溢出 */
    @media (max-width: 1280px) {
        .main-navigation .nav-menu {
            gap: 20px;
        }
        .desktop-header {
            gap: 16px;
        }
    }
    /* 极端情况下如果仍有溢出，允许菜单横向滚动（不换行） */
    .main-navigation {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
    }
    .main-navigation::-webkit-scrollbar {
        height: 4px;
    }
    .main-navigation::-webkit-scrollbar-track {
        background: #444;
    }
    .main-navigation::-webkit-scrollbar-thumb {
        background: #C1A478;
        border-radius: 2px;
    }
}