/* ===== Moon Replica 视觉复刻 ===== */
:root {
  --moon-text: #767676;
  --moon-head: #333;
  --moon-black: #0d0d0d;
  --moon-line: #e6e6e6;
  --moon-imgbg: #f7f7f7;
  --moon-footerbg: #f4f4f4;
  --moon-green: #00b67a;
}
body.moon-replica { font-family: 'Lato', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Microsoft YaHei', sans-serif; color: var(--moon-text); font-size: 14px; background: #fff; }
body.moon-replica h1, body.moon-replica h2, body.moon-replica h3, body.moon-replica h4, body.moon-replica h5 { font-family: inherit; color: var(--moon-head); font-weight: 400; }
body.moon-replica a { color: var(--moon-head); text-decoration: none; }
body.moon-replica a:hover { color: var(--moon-black); }
body.moon-replica .container, body.moon-replica .site-content .container { max-width: 1200px; }
.moon-desktop { display: flex; }
.moon-mobile { display: none; }

/* ----- 公告条 ----- */
.moon-announce { position: relative; background: #f5f5f5; height: 38px; display: flex; align-items: center; justify-content: center; }
.moon-announce p { margin: 0; font-size: 13px; color: var(--moon-head); }
.moon-ann-prev, .moon-ann-next { position: absolute; top: 0; height: 38px; width: 44px; background: none; border: 0; color: #999; font-size: 18px; cursor: pointer; }
.moon-ann-prev { left: 0; } .moon-ann-next { right: 0; }

/* ----- 头部 ----- */
.moon-header-row { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 14px 20px; position: relative; }
.moon-h-left { gap: 22px; flex: 1; }
.moon-h-left a { font-size: 13px; color: var(--moon-head); }
.moon-h-logo { flex: 0 0 auto; text-align: center; }
.moon-h-logo img, .moon-h-logo .custom-logo { max-height: 64px; width: auto; }
.moon-logo-text { font-size: 24px; letter-spacing: 4px; color: var(--moon-head); }
.moon-h-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.moon-search-btn { background: none; border: 0; padding: 0; color: var(--moon-head); cursor: pointer; display: flex; }
.moon-cart { position: relative; color: var(--moon-head); display: flex; }
.moon-cart-count { position: absolute; top: -6px; right: -9px; background: var(--moon-black); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.moon-burger { background: none; border: 0; width: 30px; height: 24px; flex-direction: column; justify-content: space-between; padding: 3px 0; cursor: pointer; }
.moon-burger span { display: block; height: 1.6px; background: var(--moon-head); width: 22px; }
.moon-nav-row { border-top: 1px solid var(--moon-line); border-bottom: 1px solid var(--moon-line); }
.moon-nav { display: flex; justify-content: center; gap: 34px; list-style: none; margin: 0; padding: 0; max-width: 1200px; margin: 0 auto; }
.moon-nav > li { position: relative; }
.moon-nav > li > a { display: block; padding: 13px 2px; font-size: 14px; color: var(--moon-head); border-bottom: 2px solid transparent; }
.moon-nav > li > a:hover, .moon-nav > li.current-menu-item > a { border-bottom-color: var(--moon-black); }
.moon-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; background: #fff; border: 1px solid var(--moon-line); min-width: 200px; padding: 8px 0; z-index: 90; list-style: none; margin: 0; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.moon-nav li:hover > .sub-menu { display: block; }
.moon-nav .sub-menu a { display: block; padding: 7px 18px; font-size: 13px; color: var(--moon-text); }
.moon-nav .sub-menu a:hover { color: var(--moon-black); background: #fafafa; }
/* 语言切换器下拉 */
.moon-nav .pll-parent-menu-item > a { cursor: pointer; }
.moon-nav .pll-parent-menu-item .sub-menu { left: auto; right: -14px; }

/* ----- 抽屉 / 搜索 ----- */
.moon-drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background: #fff; z-index: 200; transition: left .25s; overflow-y: auto; padding: 18px; }
body.moon-drawer-open .moon-drawer { left: 0; }
.moon-drawer-mask, .moon-filter-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 190; opacity: 0; pointer-events: none; transition: opacity .25s; }
body.moon-drawer-open .moon-drawer-mask { opacity: 1; pointer-events: auto; }
.moon-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.moon-drawer-close, .moon-search-close, .moon-filter-close { background: none; border: 0; font-size: 26px; color: var(--moon-head); cursor: pointer; line-height: 1; }
.moon-drawer-nav { list-style: none; margin: 0; padding: 0; }
.moon-drawer-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--moon-line); font-size: 14px; color: var(--moon-head); }
.moon-drawer-nav .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
.moon-drawer .lang-item { display: inline-block; margin: 14px 10px 0 0; list-style: none; }
.moon-search-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.97); z-index: 210; display: none; align-items: center; justify-content: center; }
body.moon-search-open .moon-search-overlay { display: flex; }
.moon-search-overlay form { display: flex; width: min(640px, 86vw); border-bottom: 2px solid var(--moon-black); }
.moon-search-overlay input { flex: 1; border: 0; background: none; font-size: 20px; padding: 12px 4px; outline: none; color: var(--moon-head); }
.moon-search-overlay form button { background: none; border: 0; color: var(--moon-head); cursor: pointer; }
.moon-search-close { position: absolute; top: 22px; right: 26px; }

/* ----- 页脚 ----- */
.moon-footer { background: var(--moon-footerbg); margin-top: 60px; padding: 50px 20px 26px; }
.moon-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; max-width: 1200px; margin: 0 auto; }
.moon-fcol h3 { font-size: 16px; margin: 0 0 18px; }
.moon-fcol ul { list-style: none; margin: 0; padding: 0; }
.moon-fcol li { margin-bottom: 12px; }
.moon-fcol a, .moon-fcol p { font-size: 13px; color: var(--moon-text); }
.moon-fcol a:hover { color: var(--moon-black); }
.moon-news-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.moon-news-form input { border: 1px solid #ddd; background: #fff; height: 40px; padding: 0 12px; font-size: 13px; color: var(--moon-head); }
.moon-news-form button { background: var(--moon-black); color: #fff; border: 0; height: 40px; width: 92px; font-size: 13px; cursor: pointer; }
.moon-sub-ok { color: var(--moon-green); }
.moon-social { display: flex; gap: 16px; margin-top: 20px; }
.moon-social a { color: #555; }
.moon-copy { text-align: center; font-size: 13px; color: var(--moon-text); margin-top: 44px; }

/* ----- 面包屑 / 页头 ----- */
body.moon-replica .botiga-page-header, body.moon-replica .page-header { text-align: center; padding: 34px 0 10px; }
body.moon-replica .botiga-page-header h1, body.moon-replica .page-header h1, body.moon-replica .woocommerce-page-header h1 { font-size: 28px; margin: 0 0 14px; }
body.moon-replica .breadcrumb, body.moon-replica .woocommerce-breadcrumb, body.moon-replica .botiga-breadcrumb { font-size: 13px; color: var(--moon-text); text-align: left; max-width: 1200px; margin: 0 auto; padding: 0 20px 14px; }
body.moon-replica .woocommerce-breadcrumb a { color: var(--moon-text); }

/* ----- 商店工具栏 / 卡片 ----- */
body.moon-replica .woocommerce-result-count { font-size: 13px; color: var(--moon-text); }
body.moon-replica .woocommerce-ordering select { border: 1px solid #ddd; font-size: 13px; padding: 6px 8px; color: var(--moon-head); background: #fff; }
.moon-filter-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; font-size: 13px; color: var(--moon-head); cursor: pointer; float: right; padding: 4px 0; }
.moon-filter-drawer { position: fixed; top: 0; right: -380px; width: 360px; max-width: 92vw; height: 100%; background: #fff; z-index: 200; transition: right .25s; overflow-y: auto; }
body.moon-filter-open .moon-filter-drawer { right: 0; }
body.moon-filter-open .moon-filter-mask { opacity: 1; pointer-events: auto; }
.moon-filter-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--moon-line); }
.moon-filter-body { padding: 18px; }
.moon-filter-body h4 { margin: 18px 0 10px; font-size: 14px; }
.moon-filter-cats { list-style: none; margin: 0; padding: 0; }
.moon-filter-cats li { margin-bottom: 8px; font-size: 13px; }
body.moon-replica ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin: 0; padding: 0; }
body.moon-replica ul.products li.product { list-style: none; margin: 0; padding: 0; width: auto !important; float: none !important; text-align: center; position: relative; }
body.moon-replica ul.products li.product img { background: var(--moon-imgbg) !important; width: 100%; aspect-ratio: 1/1; object-fit: contain; margin: 0 0 14px; display: block; }
body.moon-replica .botiga-quantity-minus, body.moon-replica .botiga-quantity-plus { display: none !important; }
body.moon-replica ul.products li.product .tinvwl_add_to_wishlist_button, body.moon-replica ul.products li.product .tinvwl-loop-button { display: none !important; }
body.moon-replica div.product .yith_compare_button, body.moon-replica div.product .compare-button { background: none !important; color: #767676 !important; border: 1px solid #ddd !important; font-size: 12px !important; padding: 6px 12px !important; border-radius: 0 !important; }
body.moon-replica ul.products li.product .woocommerce-LoopProduct-link { display: block; }
body.moon-replica ul.products li.product h2, body.moon-replica ul.products li.product .woocommerce-loop-product__title, body.moon-replica ul.products li.product .botiga-loop-product-title { font-size: 14px; color: var(--moon-head); margin: 0 0 8px; padding: 0 6px; line-height: 1.45; font-weight: 400; }
body.moon-replica ul.products li.product .price { font-size: 14px; color: var(--moon-black); justify-content: center; display: flex; gap: 8px; flex-wrap: wrap; }
body.moon-replica ul.products li.product .price del { color: #999; font-weight: 400; }
body.moon-replica ul.products li.product .price ins { text-decoration: none; font-weight: 700; }
body.moon-replica ul.products li.product .price span.woocommerce-Price-amount { font-weight: 700; }
body.moon-replica ul.products li.product .price del span.woocommerce-Price-amount { font-weight: 400; }
.moon-badge, body.moon-replica span.onsale { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--moon-head); font-size: 12px; padding: 4px 8px; border-radius: 0; margin: 0; min-width: 0; min-height: 0; line-height: 1.4; z-index: 5; font-weight: 400; }
body.moon-replica ul.products li.product .button, body.moon-replica ul.products li.product a.add_to_cart_button { background: var(--moon-black); color: #fff; border-radius: 0; font-size: 13px; padding: 10px 18px; margin-top: 10px; }
body.moon-replica ul.products li.product .star-rating { margin: 0 auto 6px; }
/* 分页 */
body.moon-replica .woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
body.moon-replica .woocommerce-pagination ul li { border: 0; }
body.moon-replica .woocommerce-pagination ul li a, body.moon-replica .woocommerce-pagination ul li span { border: 1px solid var(--moon-line); padding: 8px 13px; font-size: 13px; color: var(--moon-head); }
body.moon-replica .woocommerce-pagination ul li span.current { background: var(--moon-black); color: #fff; border-color: var(--moon-black); }

/* ----- 商品页 ----- */
body.moon-replica div.product div.images { background: var(--moon-imgbg); }
body.moon-replica div.product div.images img { background: var(--moon-imgbg); object-fit: contain; }
body.moon-replica div.product div.images .flex-control-thumbs { margin-top: 10px; }
body.moon-replica div.product div.summary { padding-left: 10px; }
body.moon-replica div.product .product_title { font-size: 24px; margin: 0 0 14px; }
body.moon-replica div.product p.price, body.moon-replica div.product span.price { font-size: 20px; color: var(--moon-black); display: flex; gap: 10px; align-items: baseline; }
body.moon-replica div.product p.price del, body.moon-replica div.product span.price del { color: #999; font-size: 16px; }
body.moon-replica div.product p.price ins, body.moon-replica div.product span.price ins { text-decoration: none; font-weight: 700; }
.moon-trust { list-style: none; margin: 16px 0; padding: 0; }
.moon-trust li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--moon-head); margin-bottom: 9px; }
.moon-trust svg { color: #bbb; background: #f2f2f2; padding: 2px; width: 19px; height: 19px; }
body.moon-replica div.product form.cart { margin-top: 18px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
body.moon-replica div.product form.cart .variations { width: 100%; margin-bottom: 6px; }
body.moon-replica div.product form.cart .variations label { font-size: 14px; color: var(--moon-head); }
body.moon-replica div.product form.cart .variations select { border: 1px solid #ddd; height: 42px; padding: 0 10px; font-size: 13px; color: var(--moon-head); background: #fff; min-width: 200px; }
body.moon-replica div.product form.cart .quantity { display: flex; border: 1px solid #ddd; height: 46px; }
body.moon-replica div.product form.cart .quantity input.qty { border: 0; width: 44px; text-align: center; font-size: 14px; color: var(--moon-head); -moz-appearance: textfield; }
body.moon-replica div.product form.cart .quantity input.qty::-webkit-outer-spin-button, body.moon-replica div.product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.moon-qty-btn { width: 32px; background: none; border: 0; color: #999; font-size: 16px; cursor: pointer; }
body.moon-replica div.product form.cart .single_add_to_cart_button { flex: 1; background: var(--moon-black); color: #fff; border-radius: 0; height: 46px; font-size: 14px; font-weight: 400; min-width: 180px; }
body.moon-replica div.product form.cart .single_add_to_cart_button:hover { background: #333; }
body.moon-replica div.product .woocommerce-tabs ul.tabs { display: none; }
body.moon-replica div.product .woocommerce-tabs .panel h2, body.moon-replica div.product .moon-desc-title { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--moon-head); display: inline-block; padding-bottom: 4px; margin: 26px 0 14px; }
body.moon-replica div.product .woocommerce-tabs .panel { font-size: 14px; line-height: 1.8; }
body.moon-replica div.product .woocommerce-tabs .panel table { border-collapse: collapse; margin: 14px 0; }
body.moon-replica div.product .woocommerce-tabs .panel table td, body.moon-replica div.product .woocommerce-tabs .panel table th { border: 1px solid var(--moon-line); padding: 8px 14px; font-size: 13px; text-align: center; }
body.moon-replica .related.products > h2 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin: 46px 0 20px; }
/* 心愿单心形位置 */
body.moon-replica div.product .tinvwl_add_to_wishlist_button { margin-left: 4px; }

/* ----- 首页分区 ----- */
.moon-front { width: 100%; flex: 0 0 100%; max-width: 100%; }
body.moon-replica .main-row > .content-area, body.moon-replica .main-row > #primary { flex: 0 0 100%; max-width: 100%; width: 100%; }
body.moon-replica #secondary, body.moon-replica .shop-sidebar { display: none; }
.moon-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.moon-hero-panel { position: relative; background-size: cover; background-position: center; min-height: 320px; }
.moon-hero-copy { position: absolute; left: 6%; bottom: 10%; max-width: 420px; }
.moon-hero-copy h2 { font-size: 32px; margin: 0 0 14px; color: #3d3d3d; }
.moon-hero-copy p { font-size: 13px; line-height: 1.7; color: #555; margin: 0 0 18px; }
.moon-btn-outline { display: inline-block; border: 1px solid var(--moon-head); color: var(--moon-head); background: rgba(255,255,255,.85); padding: 11px 22px; font-size: 13px; }
.moon-btn-outline:hover { background: var(--moon-black); color: #fff; border-color: var(--moon-black); }
.moon-welcome { text-align: center; padding: 64px 20px 40px; max-width: 760px; margin: 0 auto; }
.moon-welcome h2 { font-size: 26px; margin: 0 0 18px; }
.moon-welcome p { font-size: 14px; line-height: 1.8; }
.moon-catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 26px; max-width: 1200px; margin: 0 auto; padding: 10px 20px 30px; }
.moon-catcell img { width: 100%; aspect-ratio: 1/1.02; object-fit: cover; display: block; background: var(--moon-imgbg); }
.moon-catcell h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px; }
.moon-catlinks { font-size: 13px; color: var(--moon-text); }
.moon-catlinks a { color: var(--moon-text); }
.moon-catlinks a:hover { color: var(--moon-black); }
.moon-section-head { text-align: center; padding: 40px 20px 26px; }
.moon-section-head h2 { font-size: 24px; margin: 0 0 10px; }
.moon-section-head p { font-size: 13px; margin: 0; }
.moon-carousel { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 44px; }
.moon-car-viewport { overflow: hidden; }
.moon-car-track { display: flex; transition: transform .35s; }
.moon-car-track > * { flex: 0 0 25%; max-width: 25%; padding: 0 11px; box-sizing: border-box; }
.moon-car-track ul.products { display: contents; }
.moon-car-track ul.products li.product { flex: 0 0 25%; max-width: 25%; padding: 0 11px; }
.moon-car-prev, .moon-car-next { position: absolute; top: 38%; background: none; border: 0; font-size: 26px; color: #999; cursor: pointer; z-index: 5; }
.moon-car-prev { left: 8px; } .moon-car-next { right: 8px; }
.moon-car-progress { height: 2px; background: var(--moon-line); max-width: 1152px; margin: 26px auto 0; position: relative; }
.moon-car-progress i { position: absolute; left: 0; top: 0; height: 2px; background: #999; width: 25%; transition: left .3s; }
/* 评价区 */
.moon-reviews { display: grid; grid-template-columns: 260px 1fr; gap: 40px; max-width: 1200px; margin: 30px auto 0; padding: 0 20px; align-items: center; }
.moon-rev-score { text-align: center; }
.moon-rev-score h3 { font-size: 20px; margin: 0 0 10px; }
.moon-stars { display: inline-flex; gap: 2px; }
.moon-stars i { width: 22px; height: 22px; background: var(--moon-green); color: #fff; font-style: normal; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.moon-rev-score p { font-size: 12px; margin: 10px 0 6px; }
.moon-rev-score p a { text-decoration: underline; color: var(--moon-head); }
.moon-rev-brand { font-size: 15px; color: var(--moon-head); display: inline-flex; align-items: center; gap: 6px; }
.moon-rev-brand i { color: var(--moon-green); font-style: normal; }
.moon-rev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.moon-rev-card .moon-stars i { width: 16px; height: 16px; font-size: 11px; }
.moon-rev-verified { font-size: 12px; color: var(--moon-head); text-decoration: underline; margin-left: 8px; }
.moon-rev-meta { font-size: 12px; color: var(--moon-text); margin: 8px 0; }
.moon-rev-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.moon-rev-card p { font-size: 13px; line-height: 1.6; margin: 0; }
.moon-rev-note { font-size: 12px; margin-top: 16px; }
/* Instagram */
.moon-ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.moon-ig-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

/* ----- carousel 卡片 ----- */
.moon-car-track { list-style: none; margin: 0; padding: 0; }
.moon-car-track > li.product { list-style: none; margin: 0; text-align: center; position: relative; padding: 0 11px; box-sizing: border-box; width: auto !important; float: none !important; }
.moon-car-track > li.product img { background: var(--moon-imgbg) !important; width: 100%; aspect-ratio: 1/1; object-fit: contain; margin: 0 0 14px; display: block; }
.moon-car-track > li.product h2, .moon-car-track > li.product .woocommerce-loop-product__title { font-size: 14px; color: var(--moon-head); margin: 0 0 8px; padding: 0 6px; line-height: 1.45; font-weight: 400; }
.moon-car-track > li.product .price { font-size: 14px; color: var(--moon-black); justify-content: center; display: flex; gap: 8px; flex-wrap: wrap; }
.moon-car-track > li.product .price del { color: #999; }
.moon-car-track > li.product .price ins { text-decoration: none; font-weight: 700; }
.moon-car-track > li.product .price span.woocommerce-Price-amount { font-weight: 700; }
.moon-car-track > li.product .price del span.woocommerce-Price-amount { font-weight: 400; }
.moon-car-track > li.product .button { background: var(--moon-black); color: #fff; border-radius: 0; font-size: 13px; padding: 10px 18px; margin-top: 10px; }
.moon-car-track > li.product .tinvwl_add_to_wishlist_button, .moon-car-track > li.product .tinvwl-loop-button { display: none !important; }
body.moon-replica ul.products li.product .button, body.moon-replica ul.products li.product a.add_to_cart_button, .moon-car-track > li.product .button, .moon-car-track > li.product a.add_to_cart_button { display: none !important; }
body.moon-replica div.product a.compare, body.moon-replica div.product .button.compare, body.moon-replica div.product .yith_compare_button { background: none !important; color: #767676 !important; border: 1px solid #ddd !important; font-size: 12px !important; padding: 6px 12px !important; border-radius: 0 !important; }

/* ----- 响应式 ----- */
@media (max-width: 1023px) {
  .moon-desktop { display: none !important; }
  .moon-mobile { display: flex; }
  .moon-header-row { padding: 10px 16px; }
  .moon-h-left { display: none; }
  .moon-burger { flex: 1; align-items: flex-start; }
  .moon-h-right { flex: 1; }
  .moon-h-logo img, .moon-h-logo .custom-logo { max-height: 52px; }
  body.moon-replica ul.products { grid-template-columns: repeat(4, 1fr); gap: 18px 12px; }
  .moon-reviews { grid-template-columns: 1fr; }
  .moon-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body.moon-replica ul.products { grid-template-columns: repeat(2, 1fr); }
  .moon-car-track > *, .moon-car-track ul.products li.product { flex: 0 0 50%; max-width: 50%; }
  .moon-hero { grid-template-columns: 1fr; }
  .moon-hero-panel { min-height: 380px; }
  .moon-hero-copy h2 { font-size: 24px; }
  .moon-catgrid { grid-template-columns: 1fr; }
  .moon-rev-cards { grid-template-columns: 1fr; }
  .moon-ig-grid { grid-template-columns: repeat(2, 1fr); }
  .moon-footer-cols { grid-template-columns: 1fr; }
  body.moon-replica div.product div.images, body.moon-replica div.product div.summary { width: 100%; float: none; padding-left: 0; }
  .moon-welcome { padding: 40px 18px 26px; }
  .moon-welcome h2 { font-size: 22px; }
}