/*
Theme Name: M Sing Local
Description: 銘城 WordPress + WooCommerce 本地站點主題
Version: 0.2.0
Text Domain: msing-local
*/
:root {
  --primary:#0d9488; --primary-dark:#0d9488; --primary-light:#ccfbf1;
  --primary-glow:rgba(13,148,136,.15); --announce-bar-third:#14b8a6;
  --accent:#f59e0b; --accent-light:#fef3c7; --text:#1e293b;
  --text-mid:#475569; --text-light:#94a3b8; --bg:#f8fafc;
  --white:#fff; --border:#e2e8f0; --border-light:#f1f5f9;
  --danger:#ef4444; --success:#10b981; --warning:#f59e0b;
  --radius:12px; --radius-sm:8px; --max-width:1200px;
  --transition:.25s cubic-bezier(.4,0,.2,1);
}
body { font-family:Inter,-apple-system,"PingFang HK","Microsoft JhengHei",sans-serif; font-size:14px; background:var(--bg); color:var(--text); line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:var(--primary); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--primary-dark); }
button,input,select,textarea { font:inherit; }
.site-header,.header-nav { background:#fff; color:var(--text); }
.h-language { cursor:default; }
.hamburger { flex-shrink:0; }
.nav-list { justify-content:space-between; }
.nav-list li a { padding-left:13px; padding-right:13px; }
.nav-more { position:relative; }
.nav-more-menu { display:none; position:absolute; right:0; top:100%; min-width:170px; padding:8px; background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow-md); z-index:101; }
.nav-more:hover .nav-more-menu,.nav-more:focus-within .nav-more-menu { display:block; }
.nav-more-menu a { display:block; padding:7px 12px!important; border:0!important; }
.mobile-drawer-header strong { font-size:18px; color:var(--primary); }
#mobileClose { width:36px; height:36px; border:0; border-radius:50%; background:var(--bg); font-size:26px; line-height:1; cursor:pointer; }
.banner-text h1 { color:#fff; font-size:40px; font-weight:800; margin:0 0 12px; line-height:1.2; letter-spacing:-.5px; }
.banner-section .banner-slide img { display:block; }
.banner-progress { width:0; }
.cat-card .name { line-height:24px; }
.pc-price-now .woocommerce-Price-currencySymbol { margin-right:0; }
.pc-add-cart-btn { text-decoration:none; text-align:center; }
.pc-add-cart-btn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.pc-media { position:relative; }
.wishlist-toggle { border:1px solid var(--border); background:#fff; color:var(--text-mid); border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; font-size:24px; line-height:1; cursor:pointer; }
.pc-media .wishlist-toggle { position:absolute; top:10px; right:10px; z-index:2; }
.wishlist-toggle[aria-pressed="true"] { color:#ef4444; }
.detail-wishlist { width:auto; height:auto; border-radius:8px; font-size:14px; padding:8px 14px; margin-bottom:14px; }
.wishlist-page { margin-bottom:60px; }
.wishlist-page .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.wishlist-item[hidden] { display:none; }
.site-footer {
  --footer-bg:#1e293b; --footer-text:#94a3b8; --footer-link:#94a3b8;
  --footer-link-hover:#fff; --footer-muted:#64748b;
  --footer-guide-title:#fff; --footer-service-title:#fff; --footer-account-title:#fff;
  --footer-brand-size:20px; --footer-heading-size:15px; --footer-body-size:13px;
  --footer-small-size:12px; --footer-tiny-size:11px; --footer-font-base:14px;
  --footer-grid-cols:2.2fr 1fr 1fr 1fr; --footer-radius:20px;
  --newsletter-bg:#0d9488; --newsletter-text:#fff; --newsletter-btn-bg:#fff;
  --newsletter-btn-text:#0d9488; --newsletter-btn-hover-bg:#fef3c7;
  --newsletter-input-bg:rgba(255,255,255,.12); --newsletter-title-size:22px;
  --newsletter-desc-size:14px;
}
.footer-newsletter { opacity:1; transform:none; }
.footer-grid { align-items:start; }
.footer-about .footer-brand { color:#fff; }
.footer-payment { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:16px 0 26px; border-bottom:1px solid rgba(255,255,255,.08); color:var(--footer-text); font-size:12px; }
.footer-payment img { display:block; width:42px; height:30px; object-fit:contain; background:#fff; border-radius:4px; padding:2px; }
.footer-bottom { padding-top:22px; color:var(--footer-muted); font-size:12px; }
.fn-message { margin:8px 0 0; color:#fff; font-size:12px; }
.back-to-top { position:fixed; right:24px; bottom:88px; z-index:90; width:42px; height:42px; border:1px solid var(--border); border-radius:50%; background:#fff; color:var(--primary); cursor:pointer; opacity:0; pointer-events:none; transition:opacity .2s; }
.back-to-top.is-visible { opacity:1; pointer-events:auto; }
.chat-fab { position:fixed; right:20px; bottom:20px; z-index:91; width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#3b82f6; box-shadow:0 5px 15px rgba(0,0,0,.2); color:#fff; font-size:25px; }
.chat-fab:hover { color:#fff; }
.page-shell,.shop-shell,.product-shell { padding-top:26px; }
.breadcrumb { color:var(--text-light); font-size:13px; margin-bottom:20px; }
.breadcrumb a { color:var(--text-light); }
.page-panel { background:#fff; border:1px solid var(--border); border-radius:16px; padding:36px; }
.page-panel h1 { margin:0 0 28px; font-size:30px; }
.page-panel h2 { font-size:23px; margin:28px 0 12px; }
.page-panel p { margin:0 0 16px; }
.shop-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:24px; }
.shop-sidebar { background:#fff; border:1px solid var(--border); border-radius:14px; padding:20px; align-self:start; }
.shop-sidebar h3 { font-size:16px; margin-bottom:12px; }
.shop-sidebar ul { list-style:none; padding:0; }
.shop-sidebar li a { display:flex; justify-content:space-between; padding:7px 0; color:var(--text-mid); }
.shop-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.shop-toolbar h1 { font-size:26px; margin:0; }
.shop-toolbar select { padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.shop-layout .product-grid { grid-template-columns:repeat(3,1fr); }
.product-detail { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.product-detail-image { background:#fff; border-radius:18px; overflow:hidden; }
.product-detail-image img { width:100%; display:block; }
.product-detail-summary h1 { font-size:30px; line-height:1.25; margin:14px 0; }
.product-detail-summary .category-pill { display:inline-block; background:var(--primary-light); color:var(--primary); border-radius:20px; padding:4px 12px; font-weight:600; }
.product-detail-price { background:#d5faf2; color:var(--primary); padding:18px 24px; border-radius:14px; font-size:30px; font-weight:800; margin:14px 0 24px; }
.product-detail-summary form.cart { display:flex; align-items:center; gap:12px; margin-top:20px; }
.product-detail-summary .quantity input { width:70px; padding:10px; border:1px solid var(--border); border-radius:8px; }
.product-detail-summary .single_add_to_cart_button { flex:1; border:0; background:var(--primary); color:#fff; padding:14px 22px; border-radius:12px; font-weight:700; cursor:pointer; }
body .product-detail-summary .single_add_to_cart_button.button { background:var(--primary); color:#fff; }
.product-description { margin-top:48px; padding:28px; background:#fff; border-radius:16px; }
.woocommerce-notices-wrapper { margin:12px 0; }
.woocommerce-message,.woocommerce-info { border-top-color:var(--primary)!important; }
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { border-radius:8px; }
.contact-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr); gap:24px; padding-bottom:60px; }
.contact-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.contact-form label { display:flex; flex-direction:column; gap:6px; font-weight:600; }
.contact-form label.full { grid-column:1/-1; }
.contact-form input,.contact-form select,.contact-form textarea { width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:8px; background:#fff; font-weight:400; }
.contact-form button { justify-self:start; border:0; border-radius:8px; background:var(--primary); color:#fff; padding:12px 25px; font-weight:700; cursor:pointer; }
.form-honey { display:none; }
.form-notice { padding:12px 16px; border-radius:8px; background:var(--primary-light); color:var(--primary); }
.contact-info h2 { margin-top:0; }
.contact-info h3 { margin:24px 0 4px; font-size:15px; }
@media (max-width:768px) {
  .banner-text h1 { font-size:24px; }
  .nav-list { display:none; }
  .h-language { display:none; }
  .header-actions .h-btn { padding:8px; }
  .home-main .section { padding:36px 0; }
  .cat-grid,.product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .footer-newsletter { padding:28px 24px; flex-direction:column; align-items:stretch; }
  .fn-form { flex-direction:column; }
  .fn-form input { width:100%; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; }
  .footer-about,.footer-col-account { grid-column:1 / -1; }
  .shop-layout { grid-template-columns:1fr; }
  .shop-sidebar { display:none; }
  .shop-layout .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-detail { grid-template-columns:1fr; gap:24px; }
  .product-detail-summary h1 { font-size:24px; }
  .page-panel { padding:24px; }
  .back-to-top { bottom:82px; right:16px; }
  .contact-layout { grid-template-columns:1fr; }
  .contact-form { grid-template-columns:1fr; }
  .wishlist-page .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
