/*
Theme Name: MuseCraft
Theme URI: 
Author: 你的名字
Description: 手工与工艺品专属商城主题
Version: 1.0
*/

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #faf8f6;
    color: #333;
    line-height: 1.6;
}

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

/* 头部导航 */
.site-header {
    background: #fff;
    border-bottom: 2px solid #e8e0d8;
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #a67c52;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: #333;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #a67c52;
}

/* 底部 */
.site-footer {
    background: #2c2c2c;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* ===== 首页网格响应式 ===== */
@media (max-width: 1200px) {
    .container [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}
@media (max-width: 992px) {
    .container [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 576px) {
    .container [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .mobile-break {
        display: block !important;
    }
    .logo {
        font-size: 22px;
    }
    .main-nav ul {
        gap: 15px;
    }
    .main-nav a {
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    .container [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ============================================
   ⭐ 面包屑 - 全局样式（新增）
   ============================================ */

.woocommerce-breadcrumb-wrapper .woocommerce-breadcrumb {
    font-size: 13px !important;
    color: #999 !important;
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f0ebe6 !important;
}

.woocommerce-breadcrumb-wrapper .woocommerce-breadcrumb a {
    color: #a67c52 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.woocommerce-breadcrumb-wrapper .woocommerce-breadcrumb a:hover {
    color: #7a5f42 !important;
    text-decoration: underline !important;
}

/* 面包屑分隔符（可选美化） */
.woocommerce-breadcrumb-wrapper .woocommerce-breadcrumb .breadcrumb-separator {
    color: #ccc !important;
    margin: 0 6px !important;
}
/* ============================================
   购物车图标
   ============================================ */

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 购物车按钮 */
.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-cart:hover {
    background: #f5f0eb;
    color: #a67c52;
}

.nav-cart svg {
    display: block;
}

/* 购物车数量徽章 */
.nav-cart .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 768px) {
    .nav-cart {
        width: 38px;
        height: 38px;
    }
    .nav-cart svg {
        width: 18px;
        height: 18px;
    }
    .nav-cart .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 18px;
    }
}