/*
Theme Name: 暮寓家居 MuyU Home
Theme URI: https://example.com/
Author: OpenAI
Description: 暖白、米色、木質調的家居生活 WooCommerce 佈景主題，適合房間飾品、投影機、投影布幕與桌上飾品商城。
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: muyu-home
*/
:root{
  --bg:#f7f3ec;
  --paper:#fffdf9;
  --ink:#2b241f;
  --muted:#776e66;
  --line:#e8dfd5;
  --accent:#a87958;
  --accent-dark:#7f563b;
  --forest:#18211d;
  --radius:18px;
  --shadow:0 16px 50px rgba(64,42,27,.09);
  --max:1320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,253,249,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(232,223,213,.85)}
.header-top{display:grid;grid-template-columns:240px minmax(280px,1fr) 260px;gap:24px;align-items:center;padding:15px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:44px;height:44px;border:1.5px solid #8f765f;border-radius:12px;display:grid;place-items:center;font-family:Georgia,serif;font-size:24px}
.brand-title{font-family:Georgia,"Noto Serif TC",serif;font-size:24px;letter-spacing:.15em}
.brand-sub{font-size:10px;letter-spacing:.36em;color:var(--muted)}
.header-search form{display:flex;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.header-search input{border:0;outline:0;padding:13px 16px;flex:1;background:transparent}
.header-search button{border:0;background:#8a7463;color:#fff;width:52px;cursor:pointer}
.header-actions{display:flex;justify-content:flex-end;gap:17px;font-size:13px}
.header-actions a{display:flex;align-items:center;gap:6px;white-space:nowrap}
.main-nav{border-top:1px solid rgba(232,223,213,.65)}
.main-nav .container{display:flex;gap:30px;align-items:center;min-height:48px;overflow:auto}
.main-nav a{font-size:14px;white-space:nowrap}
.main-nav a:hover{color:var(--accent-dark)}
.promo-pill{margin-left:auto;background:var(--accent);color:#fff;padding:8px 16px;border-radius:999px}

.hero{position:relative;min-height:620px;display:flex;align-items:center;overflow:hidden;background:#6f5946}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,26,20,.72) 0%,rgba(35,26,20,.38) 42%,rgba(35,26,20,.12) 72%)}
.hero-content{position:relative;z-index:2;color:#fff;padding:90px 0;max-width:620px}
.eyebrow{font-size:14px;letter-spacing:.12em;opacity:.9;margin-bottom:13px}
.hero h1,.section-title{font-family:Georgia,"Noto Serif TC",serif;font-weight:500}
.hero h1{font-size:clamp(44px,6vw,78px);line-height:1.15;margin:0 0 22px}
.hero p{font-size:17px;max-width:520px;color:rgba(255,255,255,.88)}
.btn{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;background:var(--accent);color:#fff;margin-top:16px;transition:.2s}
.btn:hover{transform:translateY(-2px);background:var(--accent-dark)}
.btn.light{background:#fff;color:var(--ink)}
.btn.outline{background:transparent;border:1px solid var(--line);color:var(--ink)}

.section{padding:72px 0}
.section.soft{background:var(--bg)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}
.section-title{font-size:38px;margin:0}
.section-copy{color:var(--muted);margin:7px 0 0}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{position:relative;min-height:260px;border-radius:var(--radius);overflow:hidden;background:#ddd;box-shadow:var(--shadow)}
.category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.category-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.55))}
.category-body{position:absolute;z-index:2;left:22px;right:22px;bottom:20px;color:#fff}
.category-body h3{font-family:Georgia,"Noto Serif TC",serif;font-size:27px;margin:0 0 4px}
.category-body p{font-size:13px;margin:0;opacity:.9}

.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.22s}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-media{aspect-ratio:1/1;overflow:hidden;background:#f1ece6}
.product-media img{width:100%;height:100%;object-fit:cover;transition:.35s}
.product-card:hover .product-media img{transform:scale(1.035)}
.product-info{padding:15px}
.product-name{font-size:15px;min-height:48px;margin:0 0 10px}
.product-price{font-weight:700;color:#b15f3e}
.product-meta{font-size:12px;color:var(--muted);margin-top:8px}

.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.story-card{position:relative;min-height:470px;border-radius:var(--radius);overflow:hidden;background:#d9d1c8}
.story-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.62))}
.story-body{position:absolute;z-index:2;left:36px;right:36px;bottom:34px;color:#fff;max-width:520px}
.story-body h3{font-family:Georgia,"Noto Serif TC",serif;font-size:40px;line-height:1.25;margin:5px 0 12px}
.story-body p{margin:0;color:rgba(255,255,255,.88)}

.benefits{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;padding:28px 0}
.benefit{display:flex;gap:12px;align-items:center}
.benefit-icon{font-size:29px}
.benefit strong{display:block;font-size:14px}
.benefit span{font-size:12px;color:var(--muted)}

.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.review{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff}
.stars{color:#e2a735;letter-spacing:.1em}
.review p{color:#5f5751}
.review small{color:var(--muted)}

.site-footer{background:var(--forest);color:#f5efe7;padding:58px 0 22px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.35fr;gap:42px}
.site-footer h4{margin-top:0}
.site-footer a,.site-footer p{color:#c9c4bd;font-size:14px}
.newsletter{display:flex;border:1px solid rgba(255,255,255,.18);border-radius:12px;overflow:hidden}
.newsletter input{flex:1;border:0;padding:12px;background:#fff}
.newsletter button{border:0;background:var(--accent);color:#fff;padding:0 18px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:38px;padding-top:20px;color:#958f88;font-size:12px}

.content-wrap{padding:48px 0}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{background:var(--accent)!important;color:#fff!important;border-radius:999px!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{border:1px solid var(--line);padding:12px;border-radius:14px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:#b15f3e}

.mobile-bar{display:none}
@media(max-width:980px){
  .header-top{grid-template-columns:1fr auto}
  .header-search{grid-column:1/-1;grid-row:2}
  .header-actions span{display:none}
  .category-grid,.products-grid{grid-template-columns:repeat(2,1fr)}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  body{padding-bottom:68px}
  .container{width:min(100% - 24px,var(--max))}
  .header-top{padding:10px 0}
  .brand-title{font-size:20px}
  .brand-mark{width:38px;height:38px}
  .main-nav .container{gap:20px}
  .promo-pill{display:none}
  .hero{min-height:520px}
  .hero-content{padding:68px 0}
  .hero h1{font-size:43px}
  .section{padding:48px 0}
  .section-title{font-size:31px}
  .category-grid{grid-template-columns:1fr 1fr}
  .category-card{min-height:210px}
  .products-grid{grid-template-columns:1fr 1fr;gap:10px}
  .split-grid,.review-grid{grid-template-columns:1fr}
  .story-card{min-height:390px}
  .story-body{left:24px;right:24px;bottom:24px}
  .story-body h3{font-size:32px}
  .benefits{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr}
  .mobile-bar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:80;background:#fff;border-top:1px solid var(--line);box-shadow:0 -7px 24px rgba(0,0,0,.07)}
  .mobile-bar a{padding:10px 4px;text-align:center;font-size:11px}
  .mobile-bar b{display:block;font-size:20px;line-height:1.2}
}


/* v1.1 圖片保護 */
body.muyu-protect-images img,
body.muyu-protect-images .woocommerce-product-gallery__image img,
body.muyu-protect-images .wp-post-image {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
