/*
Theme Name: FengMi Luxe
Theme URI: https://fengmitw.shop/
Author: FengMi
Description: FengMi 風靡時尚生活專屬輕奢 WooCommerce 佈景。
Version: 1.2.0
Text Domain: fengmi-luxe
*/

:root {
  --fm-ivory: #f2efe8;
  --fm-champagne: #b69b62;
  --fm-stone: #686c66;
  --fm-cocoa: #19312b;
  --fm-berry: #774254;
  --fm-white: #fffdf8;
  --fm-line: rgba(25, 49, 43, .16);
  --fm-shadow: 0 24px 70px rgba(25, 49, 43, .13);
  --fm-serif: "Avenir Next", Avenir, "PingFang TC", "Noto Sans TC", sans-serif;
  --fm-sans: "Avenir Next", Avenir, "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fm-cocoa); background: var(--fm-ivory); font-family: var(--fm-sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.fm-container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.fm-kicker { margin: 0 0 12px; color: var(--fm-berry); font-size: 12px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.fm-title { max-width: 10em; margin: 0; font-family: var(--fm-serif); font-size: clamp(48px, 5.4vw, 78px); font-weight: 620; line-height: 1.08; letter-spacing: -.055em; }
.fm-section-title { margin: 0; font-family: var(--fm-serif); font-size: clamp(36px, 4.5vw, 62px); font-weight: 620; line-height: 1.1; letter-spacing: -.055em; }
.fm-button, .button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 25px; border: 1px solid var(--fm-cocoa); border-radius: 16px; background: var(--fm-cocoa); color: var(--fm-white); font-family: var(--fm-sans); font-size: 14px; font-weight: 650; letter-spacing: .02em; cursor: pointer; transition: .25s ease; }
.fm-button:hover, .button:hover, button:hover, input[type="submit"]:hover { border-color: var(--fm-berry); background: var(--fm-berry); transform: translateY(-2px); }
.fm-button--ghost { background: transparent; color: var(--fm-cocoa); }

.fm-announcement { padding: 8px 20px; background: var(--fm-berry); color: #fff7ee; text-align: center; font-size: 12px; letter-spacing: .14em; }
.fm-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--fm-line); background: rgba(251, 248, 242, .93); backdrop-filter: blur(18px); }
.fm-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 24px; }
.fm-nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.fm-nav a { position: relative; padding-block: 10px; }
.fm-nav a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--fm-champagne); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.fm-nav a:hover::after { transform: scaleX(1); }
.fm-brand { text-align: center; }
.fm-brand__en { display: block; font-family: var(--fm-sans); font-size: 23px; font-weight: 700; letter-spacing: .24em; line-height: 1; }
.fm-brand__zh { display: block; margin-top: 7px; color: var(--fm-stone); font-size: 11px; font-weight: 500; letter-spacing: .28em; }
.fm-tools { display: flex; justify-content: flex-end; gap: 20px; font-size: 13px; }
.fm-menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--fm-cocoa); }

.fm-hero { position: relative; overflow: hidden; padding: 58px 0 96px; background: radial-gradient(circle at 17% 35%, rgba(182,155,98,.13), transparent 28%); }
.fm-hero::before { position: absolute; top: 23%; left: -10%; width: 82%; height: 360px; border: 1px solid rgba(200,170,120,.5); border-radius: 50%; content: ""; transform: rotate(-12deg); pointer-events: none; }
.fm-hero__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 620px; align-items: center; gap: 7vw; }
.fm-hero__copy { z-index: 2; padding-left: clamp(0px, 4vw, 56px); }
.fm-hero__copy p:not(.fm-kicker) { max-width: 520px; margin: 26px 0 32px; color: var(--fm-stone); font-size: 16px; }
.fm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-hero__visual { position: relative; align-self: stretch; min-height: 610px; overflow: hidden; background: linear-gradient(145deg, #ddd0bd, #b99c76 55%, #6f5746); box-shadow: var(--fm-shadow); }
.fm-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.fm-hero__visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(35,27,22,.2)); content: ""; }
.fm-hero__stamp { position: absolute; right: -20px; bottom: 40px; z-index: 2; display: grid; width: 120px; height: 120px; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; font-family: Georgia, serif; font-size: 11px; letter-spacing: .18em; text-align: center; }

.fm-departments { padding: 105px 0; background: var(--fm-white); }
.fm-department-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.fm-department-card { position: relative; display: flex; min-height: 330px; overflow: hidden; padding: 34px; flex-direction: column; justify-content: flex-end; isolation: isolate; background: var(--category-fallback); transition: transform .35s ease, box-shadow .35s ease; }
.fm-department-card::after { position: absolute; z-index: 0; inset: 0; background-image: var(--category-image); background-position: center; background-size: cover; content: ""; transform: scale(1.01); transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.fm-department-card::before { position: absolute; z-index: 1; inset: 0; background: var(--category-overlay); content: ""; }
.fm-department-card > * { position: relative; z-index: 2; }
.fm-department-card:hover { z-index: 2; transform: translateY(-7px); box-shadow: var(--fm-shadow); }
.fm-department-card:hover::after { transform: scale(1.07); }
.fm-department-card span { margin-bottom: auto; font-family: Georgia, serif; font-size: 11px; letter-spacing: .24em; }
.fm-department-card h3 { margin: 18px 0 4px; font-family: var(--fm-serif); font-size: 32px; font-weight: 620; letter-spacing: -.025em; }
.fm-department-card p { max-width: 330px; margin: 0 0 20px; font-size: 14px; }
.fm-department-card b { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.fm-department-card--clothing { --category-fallback: #dad4c8; --category-image: url("assets/category-clothing.jpg"); --category-overlay: linear-gradient(180deg, rgba(218,212,200,.48), rgba(218,212,200,.88)); grid-column: span 4; }
.fm-department-card--bags { --category-fallback: var(--fm-cocoa); --category-image: url("assets/category-bags.jpg"); --category-overlay: linear-gradient(180deg, rgba(25,49,43,.38), rgba(25,49,43,.88)); grid-column: span 5; color: #f6f0e5; }
.fm-department-card--jewelry { --category-fallback: #b69b62; --category-image: url("assets/category-jewelry.jpg"); --category-overlay: linear-gradient(180deg, rgba(182,155,98,.38), rgba(182,155,98,.87)); grid-column: span 3; color: #1a2c27; }
.fm-department-card--beauty { --category-fallback: #b78691; --category-image: url("assets/category-beauty.jpg"); --category-overlay: linear-gradient(180deg, rgba(183,134,145,.36), rgba(183,134,145,.88)); grid-column: span 5; color: #2d1820; }
.fm-department-card--living { --category-fallback: #5f6f62; --category-image: url("assets/category-living.jpg"); --category-overlay: linear-gradient(180deg, rgba(95,111,98,.35), rgba(63,77,66,.9)); grid-column: span 7; color: #fffdf8; }

.fm-materials { padding: 100px 0; background: var(--fm-white); }
.fm-section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.fm-section-head p { max-width: 460px; margin: 0; color: var(--fm-stone); }
.fm-material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fm-line); border: 1px solid var(--fm-line); }
.fm-material-card { position: relative; min-height: 410px; overflow: hidden; padding: 38px; background: var(--fm-ivory); }
.fm-material-card::before { position: absolute; inset: 0; opacity: .95; background: var(--card-bg); content: ""; transition: transform .5s ease; }
.fm-material-card:hover::before { transform: scale(1.04); }
.fm-material-card__content { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; }
.fm-material-card h3 { margin: 8px 0; font-family: var(--fm-serif); font-size: 30px; font-weight: 620; letter-spacing: -.025em; }
.fm-material-card p { margin: 0; color: var(--fm-stone); }
.fm-material-card span { font-size: 11px; letter-spacing: .2em; }

.fm-products { padding: 105px 0; }
.fm-products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 45px 0 0 !important; }
.fm-products ul.products::before, .fm-products ul.products::after { display: none !important; }
.fm-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; margin: 0 0 18px; object-fit: cover; background: #eee7dd; transition: transform .4s ease; }
.woocommerce ul.products li.product:hover a img { transform: translateY(-5px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-family: var(--fm-serif); font-size: 18px; font-weight: 620; letter-spacing: -.02em; }
.woocommerce ul.products li.product .price { color: var(--fm-berry); font-size: 14px; }
.woocommerce ul.products li.product .button { min-height: 40px; margin-top: 10px; padding: 0 16px; font-size: 12px; }

.fm-daily-live { padding: 105px 0; background: var(--fm-cocoa); color: #f7f2e9; }
.fm-daily-live__head { display: grid; grid-template-columns: 1.4fr .6fr; gap: 9vw; align-items: end; margin-bottom: 48px; }
.fm-daily-live__head > div:first-child > p:last-child { max-width: 700px; color: #cbd2cc; }
.fm-daily-live .fm-kicker { color: #d9bd83; }
.fm-daily-live__meta { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.22); }
.fm-daily-live__meta span { display: block; color: #d9bd83; font-size: 10px; letter-spacing: .2em; }
.fm-daily-live__meta strong { display: block; margin: 12px 0 20px; font-family: var(--fm-serif); font-size: 19px; font-weight: 620; line-height: 1.6; letter-spacing: -.025em; }
.fm-daily-live__meta a { font-size: 12px; letter-spacing: .1em; }
.fm-live-products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 !important; }
.fm-live-products ul.products::before, .fm-live-products ul.products::after { display: none !important; }
.fm-live-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.fm-live-products .woocommerce-loop-product__title { color: #fffdf8; }
.fm-live-products .price { color: #d9bd83 !important; }
.fm-live-products .button { border-color: rgba(255,255,255,.46); background: transparent; color: #fff; }
.fm-live-products .button:hover { border-color: var(--fm-champagne); background: var(--fm-champagne); color: var(--fm-cocoa); }
.fm-live-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 55px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.fm-live-flow span { position: relative; padding: 18px 12px; color: #cbd2cc; font-size: 11px; letter-spacing: .08em; text-align: center; }
.fm-live-flow span:not(:last-child)::after { position: absolute; top: 50%; right: -4px; color: #d9bd83; content: "→"; transform: translateY(-50%); }
.fm-section-note { max-width: 360px; text-align: right; }
.fm-section-note p { margin: 0 0 5px; color: var(--fm-stone); }
.fm-section-note a { color: var(--fm-berry); font-size: 13px; }

.fm-live { padding: 105px 0; background: var(--fm-cocoa); color: var(--fm-white); }
.fm-live__panel { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.fm-live__visual { position: relative; min-height: 430px; background: radial-gradient(circle at 30% 30%, rgba(200,170,120,.35), transparent 32%), linear-gradient(135deg, #5f4b40, #281f1b); }
.fm-live__visual::before, .fm-live__visual::after { position: absolute; border: 1px solid rgba(200,170,120,.55); border-radius: 50%; content: ""; }
.fm-live__visual::before { inset: 16% 8% 6% -18%; }
.fm-live__visual::after { inset: 2% -30% 22% 22%; }
.fm-live__tag { position: absolute; top: 28px; left: 28px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.5); font-size: 11px; letter-spacing: .18em; }
.fm-live__copy { display: flex; padding: clamp(42px, 6vw, 82px); flex-direction: column; justify-content: center; }
.fm-live__copy .fm-kicker { color: #ddc9a7; }
.fm-live__copy p { margin: 22px 0 30px; color: #d4cbc4; }
.fm-live__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; color: #eadfce; font-size: 13px; }
.fm-live__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #ddc9a7; font-size: 12px; letter-spacing: .13em; }
.fm-live__status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--fm-champagne); content: ""; }

.fm-membership { padding: 100px 0; background: #ede4d8; }
.fm-membership__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 8vw; }
.fm-membership__list { display: grid; gap: 0; border-top: 1px solid var(--fm-line); }
.fm-membership__item { display: grid; grid-template-columns: 74px 1fr; padding: 24px 0; border-bottom: 1px solid var(--fm-line); }
.fm-membership__item strong { color: var(--fm-berry); font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.fm-membership__item h3 { margin: 0 0 5px; font-family: var(--fm-serif); font-weight: 620; letter-spacing: -.025em; }
.fm-membership__item p { margin: 0; color: var(--fm-stone); font-size: 14px; }

.fm-footer { padding: 70px 0 30px; background: #0e1c18; color: #cad1cc; }
.fm-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 55px; }
.fm-footer h3, .fm-footer h4 { color: #fff; font-weight: 500; }
.fm-footer h3 { font-family: var(--fm-sans); letter-spacing: .18em; }
.fm-footer h4 { font-size: 13px; letter-spacing: .15em; }
.fm-footer ul { margin: 0; padding: 0; list-style: none; }
.fm-footer li { margin: 9px 0; font-size: 13px; }
.fm-footer__bottom { margin-top: 55px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; letter-spacing: .1em; }

.fm-content { padding: 70px 0 100px; }
.fm-shop-content { padding: 55px 0 100px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 25px; color: var(--fm-stone); font-size: 12px; }
.woocommerce div.product { padding-bottom: 90px; }
.woocommerce div.product .product_title, .woocommerce-products-header__title, .entry-title { font-family: var(--fm-serif); font-weight: 620; letter-spacing: -.035em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--fm-berry); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--fm-champagne); background: #fff; }

@media (max-width: 900px) {
  .fm-container { width: min(100% - 32px, 720px); }
  .fm-header__inner { grid-template-columns: auto 1fr auto; min-height: 70px; }
  .fm-menu-toggle { display: inline-flex; }
  .fm-nav { display: none; }
  .fm-brand { text-align: left; }
  .fm-brand__en { font-size: 20px; }
  .fm-brand__zh { display: none; }
  .fm-tools a:not(:last-child) { display: none; }
  .fm-hero { padding-top: 25px; }
  .fm-hero__grid, .fm-live__panel, .fm-membership__grid { grid-template-columns: 1fr; }
  .fm-hero__grid { gap: 35px; }
  .fm-hero__copy { padding: 35px 0 0; }
  .fm-hero__visual { min-height: 520px; }
  .fm-material-grid { grid-template-columns: 1fr; }
  .fm-material-card { min-height: 300px; }
  .fm-department-grid { grid-template-columns: 1fr 1fr; }
  .fm-department-card { grid-column: auto; }
  .fm-department-card--living { grid-column: 1 / -1; }
  .fm-daily-live__head { grid-template-columns: 1fr; gap: 28px; }
  .fm-live-products ul.products { grid-template-columns: repeat(2, 1fr); }
  .fm-live-flow { grid-template-columns: 1fr 1fr; }
  .fm-live-flow span:not(:last-child)::after { display: none; }
  .fm-products ul.products { grid-template-columns: repeat(2, 1fr); }
  .fm-footer__grid { grid-template-columns: 1fr 1fr; }
  body.fm-menu-open { overflow: hidden; }
  body.fm-menu-open .fm-nav { position: fixed; z-index: 1000; inset: 70px 0 0; display: flex; padding: 48px 28px; flex-direction: column; align-items: center; gap: 28px; background: rgba(247,243,237,.98); font-family: var(--fm-serif); font-size: 22px; }
}

@media (max-width: 540px) {
  .fm-container { width: min(100% - 24px, 480px); }
  .fm-announcement { font-size: 10px; letter-spacing: .08em; }
  .fm-title { font-size: clamp(42px, 13vw, 60px); }
  .fm-section-title { font-size: clamp(34px, 10vw, 48px); }
  .fm-hero__visual { min-height: 400px; }
  .fm-hero__stamp { right: 12px; bottom: 20px; width: 92px; height: 92px; }
  .fm-section-head { display: block; }
  .fm-section-head p { margin-top: 18px; }
  .fm-section-note { margin-top: 18px; text-align: left; }
  .fm-department-grid { grid-template-columns: 1fr; }
  .fm-department-card, .fm-department-card--living { grid-column: auto; min-height: 275px; }
  .fm-live-flow { grid-template-columns: 1fr; }
  .fm-products ul.products { gap: 14px; }
  .fm-live__visual { min-height: 320px; }
  .fm-live__features, .fm-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
